/* CSS styles for specific blog page elements */

/* Hero */
.blog-hero-section {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    /* Offset for header if needed, adjust based on header height */
}

@media (max-width: 768px) {
    .blog-hero-section {
        height: 200px;
        margin-bottom: 20px;
        align-items: end;
        padding-bottom: 20px;
    }
}

.blog-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-content .page-title {
    font-family: var(--font-heading);
    font-size: 53px;
    margin-bottom: 10px;
    color: #fff;
}

.breadcrumbs {
    font-family: var(--font-body);
    font-size: 14px;
    color: #ccc;
    color: #fff;
}

.breadcrumbs-top {
    font-family: var(--font-body);
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumbs-top a {
    color: #000;
    white-space: nowrap;
}

.breadcrumbs-top a:hover {
    color: var(--primary-gold);
}

.breadcrumbs-top i {
    font-size: 10px;
    color: var(--primary-gold);
}

.breadcrumbs-top .current {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

/* Featured Post */
.blog-main-container {
    padding-bottom: 100px;
}

.featured-blog-section {
    margin-bottom: 80px;
}

.featured-blog-card {
    display: flex;
    background: #FAF9F7;
    /* Light cream/off-white */
    border-radius: 12px;
    overflow: hidden;
    gap: 0;
}

.featured-image {
    flex: 0 0 55%;
    position: relative;
    height: 500px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.featured-content .blog-date {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content .blog-title {
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111;
}

.featured-content .blog-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-content .blog-title a:hover {
    color: var(--primary-gold);
}

.featured-content .blog-excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #808080;
    margin-bottom: 30px;
}

.featured-content .read-more-btn {
    border-radius: 8px;
    padding: 12px 35px;
    font-size: 16px;
}

/* More Articles Grid */
.more-articles-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #111;
}

.blog-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.grid-blog-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    background: #000;
}

.grid-image-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.grid-blog-card:hover .grid-image-box img {
    transform: scale(1.05);
    opacity: 0.7;
}

/* Gradient Overlay for Grid Items */
.grid-image-box .grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 2;
}

.grid-content .grid-date {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 8px;
    display: block;
}

.grid-content .grid-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.grid-content .grid-title a {
    color: #fff;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 60px;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    margin: 0 5px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
}

.pagination-wrapper .prev,
.pagination-wrapper .next {
    width: auto;
    padding: 0 15px;
    border: 1px solid #eee;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-blog-card {
        flex-direction: column;
    }

    .featured-image {
        height: 350px;
        flex: auto;
    }

    .featured-content {
        padding: 10px;
    }

    .blog-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content .page-title {
        font-size: 30px;
    }

    .featured-content .blog-title {
        font-size: 20px;
    }

    .featured-content .blog-excerpt {
        font-size: 14px;
    }

    .more-articles-title {
        font-size: 30px;
    }

    .grid-content .grid-date {
        font-size: 14px;
    }

    .grid-content .grid-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}