/* Base styles for the blog page */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main on the overall dark background */
    background: #B71C1C; /* Background color */
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD86A; /* Gold for section titles */
}

.page-blog__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: #FFF5E1;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, assuming body has --header-offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background: #7A0E0E; /* Deep Red for hero section */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-blog__hero-image {
    width: 100%;
    height: 675px; /* Display height for 1200x675 */
    object-fit: cover;
    display: block;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-blog__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #FFD86A; /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__intro-text {
    font-size: 20px;
    color: #FFF5E1;
    margin-bottom: 30px;
}

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #FFF5E1; /* Text Main */
}

.page-blog__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest Articles Section */
.page-blog__latest-articles {
    background: #D32F2F; /* Card BG for this section */
    padding: 60px 0;
    color: #FFF5E1;
}

.page-blog__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-blog__article-card {
    background: #7A0E0E; /* Deep Red for card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F2B544; /* Border color */
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-blog__article-image {
    width: 100%;
    height: 225px; /* Display height for 400x225 */
    object-fit: cover;
    display: block;
}

.page-blog__card-content {
    padding: 25px;
}

.page-blog__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD86A; /* Gold color for card titles */
}

.page-blog__card-meta {
    font-size: 14px;
    color: rgba(255, 245, 225, 0.7);
    margin-bottom: 15px;
}

.page-blog__card-excerpt {
    font-size: 16px;
    color: #FFF5E1;
    margin-bottom: 20px;
}

.page-blog__read-more {
    display: inline-block;
    font-weight: bold;
    color: #FFD86A;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__view-all-button-wrapper {
    text-align: center;
}

/* Featured Content Section */
.page-blog__featured-content {
    background: #C91F17; /* Primary color */
    padding: 60px 0;
    color: #FFF5E1;
}

.page-blog__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.page-blog__article-body p {
    margin-bottom: 20px;
    color: #FFF5E1;
}

.page-blog__article-figure {
    margin: 40px 0;
    text-align: center;
}

.page-blog__article-figure img {
    width: 100%;
    height: auto;
    max-width: 800px; /* Max width for article image */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

.page-blog__article-caption {
    font-style: italic;
    font-size: 15px;
    margin-top: 15px;
    color: rgba(255, 245, 225, 0.8);
}

.page-blog__article-subtitle {
    font-size: 28px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #FFCC66; /* Glow color for subtitles */
}

/* CTA Section */
.page-blog__cta-section {
    background: #E53935; /* Secondary color */
    padding: 60px 0;
    text-align: center;
    color: #FFF5E1;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #FFF5E1;
    border: none;
}

.page-blog__btn-secondary {
    background: #ffffff;
    color: #C91F17;
    border: 2px solid #C91F17;
}

.page-blog__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog__faq-section {
    background: #D32F2F; /* Card BG */
    padding: 60px 0;
    color: #FFF5E1;
}

.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-blog__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #F2B544; /* Border color */
    overflow: hidden;
    background: #7A0E0E; /* Deep Red */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-blog__faq-item summary.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFD86A; /* Gold color */
    font-weight: bold;
}

details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
    display: none;
}

details.page-blog__faq-item summary.page-blog__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-qtext {
    flex: 1;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
}

.page-blog__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFD86A; /* Gold color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 25px 25px;
    background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark for answer background */
    border-radius: 0 0 12px 12px;
    color: #FFF5E1;
}

.page-blog__faq-answer p {
    margin: 0;
    font-size: 16px;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-blog__container {
        padding: 15px;
    }

    .page-blog__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .page-blog__section-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* HERO Section */
    .page-blog__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-blog__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-blog__hero-image {
        height: auto !important;
        object-fit: contain !important; /* Mobile HERO: object-fit:contain */
        aspect-ratio: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-blog__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-blog__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-blog__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Latest Articles Section */
    .page-blog__latest-articles {
        padding: 40px 0;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__article-card {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .page-blog__card-content {
        padding: 20px;
    }

    .page-blog__card-title {
        font-size: 20px;
    }

    .page-blog__card-excerpt {
        font-size: 15px;
    }

    /* Featured Content Section */
    .page-blog__featured-content {
        padding: 40px 0;
    }

    .page-blog__article-body {
        font-size: 16px;
        padding: 0 15px;
        max-width: 100% !important; /* Ensure content body is responsive */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__article-figure {
        margin: 30px 0;
    }

    .page-blog__article-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-blog__article-caption {
        font-size: 14px;
    }

    .page-blog__article-subtitle {
        font-size: 24px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* CTA Section */
    .page-blog__cta-section {
        padding: 40px 0;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Buttons stack vertically on mobile */
        gap: 15px;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 40px 0;
    }

    details.page-blog__faq-item summary.page-blog__faq-question {
        padding: 15px 20px;
    }

    .page-blog__faq-qtext {
        font-size: 16px;
    }

    .page-blog__faq-toggle {
        font-size: 24px;
        width: 24px;
    }

    details.page-blog__faq-item .page-blog__faq-answer {
        padding: 0 20px 20px;
    }

    .page-blog__faq-answer p {
        font-size: 15px;
    }

    /* General image and container responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__articles-grid,
    .page-blog__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__articles-grid { padding-left: 0; padding-right: 0; }
}