/* Blog styles for D&L Elektro */

/* Global Blog Styles */
.blog-hero {
    background-color: #1a171b;
    color: #fff;
    padding: 30px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.blog-hero .lead {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 800px;
}

/* Post Grid */
.blog-grid-card {
    background-color: #2a2a2a;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.blog-grid-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-grid-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-grid-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.blog-grid-card .card-meta {
    font-size: 0.85rem;
    color: #bd0a26;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.blog-grid-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-grid-card .card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-grid-card .card-title a:hover {
    color: #bd0a26;
}

.blog-grid-card .card-text {
    color: #ccc;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.blog-grid-card .btn-read-more {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    background-color: #bd0a26;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: auto;
}

.blog-grid-card .btn-read-more i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.blog-grid-card .btn-read-more:hover {
    background-color: #9c0010;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(189, 10, 38, 0.3);
    color: #fff;
}

.blog-grid-card .btn-read-more:hover i {
    transform: translateX(3px);
}

/* Featured Post (First item in grid if needed, or specific callout) */
.featured-post-card {
    background-color: #1a171b;
    border: 1px solid #333;
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background-color: #bd0a26;
    color: #fff;
}

/* Single Post */
.single-post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(26, 23, 27, 1) 100%);
}

.single-post-hero .container {
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
}

.single-post-meta {
    font-size: 0.9rem;
    color: #bd0a26;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.single-post-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.single-post-content h2 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.single-post-content h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content a {
    color: #bd0a26;
    text-decoration: underline;
}

.single-post-content a:hover {
    color: #fff;
    text-decoration: none;
}

.single-post-content blockquote {
    border-left: 4px solid #bd0a26;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.25rem;
}

.single-post-navigation {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 2rem 0;
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #bd0a26;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Related Posts */
.related-posts {
    background-color: #222;
    padding: 60px 0;
    margin-top: 0;
}

.related-posts h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.25rem;
    }

    .single-post-title {
        font-size: 2rem;
    }

    .single-post-hero {
        height: 50vh;
    }
}