/* style/blog.css */

/* Custom Colors */
:root {
    --page-blog-bg: #08160F;
    --page-blog-card-bg: #11271B;
    --page-blog-text-main: #F2FFF6;
    --page-blog-text-secondary: #A7D9B8;
    --page-blog-border: #2E7A4E;
    --page-blog-glow: #57E38D;
    --page-blog-gold: #F2C14E;
    --page-blog-divider: #1E3A2A;
    --page-blog-deep-green: #0A4B2C;
    --page-blog-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog {
    background-color: var(--page-blog-bg);
    color: var(--page-blog-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

/* Section Styling */
.page-blog__section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__dark-section {
    background-color: var(--page-blog-deep-green);
    color: var(--page-blog-text-main);
}

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

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Use clamp for H1/H2, not fixed large values */
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--page-blog-text-main);
}

.page-blog__section-title--light {
    color: var(--page-blog-text-main);
}

/* Hero Section */
.page-blog__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--page-blog-bg);
    position: relative;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width for desktop */
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-size: clamp(32px, 5vw, 54px); /* H1 clamp */
    font-weight: 700;
    color: var(--page-blog-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: 18px;
    color: var(--page-blog-text-secondary);
    margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text breaking by default, let word-wrap handle it */
    box-sizing: border-box;
    min-width: 180px;
}

.page-blog__btn-primary {
    background: var(--page-blog-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: var(--page-blog-glow);
    border: 2px solid var(--page-blog-glow);
}

.page-blog__btn-secondary:hover {
    background-color: var(--page-blog-glow);
    color: var(--page-blog-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Grid */
.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-color: var(--page-blog-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-blog__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-blog__article-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--page-blog-text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-title:hover {
    color: var(--page-blog-gold);
}

.page-blog__article-excerpt {
    font-size: 16px;
    color: var(--page-blog-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1; /* Allows excerpt to take available space */
}

.page-blog__article-date {
    font-size: 14px;
    color: var(--page-blog-text-secondary);
    opacity: 0.8;
}

.page-blog__view-all-button {
    margin-top: 20px;
}

/* Categories Section */
.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-blog__category-card {
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background-color: var(--page-blog-deep-green); /* Slightly darker on hover */
}

.page-blog__category-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--page-blog-gold);
    margin-bottom: 10px;
}

.page-blog__category-description {
    font-size: 16px;
    color: var(--page-blog-text-secondary);
}

/* Why Follow Section */
.page-blog__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-blog__benefit-item {
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.page-blog__benefit-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--page-blog-text-main);
    margin-bottom: 10px;
}

.page-blog__benefit-description {
    font-size: 16px;
    color: var(--page-blog-text-secondary);
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: var(--page-blog-deep-green);
}

.page-blog__cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.page-blog__cta-text-block {
    flex: 1;
}

.page-blog__cta-description {
    font-size: 18px;
    color: var(--page-blog-text-secondary);
    margin-bottom: 30px;
}

.page-blog__cta-buttons-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-blog__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-blog__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-blog__faq-item {
    background-color: var(--page-blog-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--page-blog-text-main);
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-blog-deep-green); /* Darker background for summary */
    color: var(--page-blog-text-main);
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: var(--page-blog-divider);
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: var(--page-blog-divider);
    border-bottom: 1px solid var(--page-blog-border);
}

.page-blog__faq-qtext {
    flex-grow: 1;
    color: var(--page-blog-text-main);
}

.page-blog__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-blog-gold);
}

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

.page-blog__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--page-blog-text-secondary);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-blog__cta-content {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__cta-text-block {
        order: 2; /* Text below image */
    }

    .page-blog__cta-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog__section {
        padding: 40px 0;
    }

    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .page-blog__hero-section {
        padding-bottom: 40px;
    }

    .page-blog__hero-title {
        font-size: 40px;
    }

    .page-blog__hero-description {
        font-size: 16px;
    }

    .page-blog__hero-cta-buttons,
    .page-blog__cta-buttons-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        min-width: unset;
    }

    .page-blog__article-image {
        height: 180px; /* Adjust height for mobile */
    }

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

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

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

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

    .page-blog__faq-question {
        font-size: 18px;
        padding: 15px 20px;
    }

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

    /* Mobile image, video, container rules */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog video,
    .page-blog__video { /* Assuming if there was a video */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-image-wrapper,
    .page-blog__cta-image-wrapper,
    .page-blog__cta-buttons-wrapper,
    .page-blog__hero-cta-buttons,
    .page-blog__video-section, /* If video was present */
    .page-blog__video-container, /* If video was present */
    .page-blog__video-wrapper { /* If video was present */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Important for preventing overflow */
    }
    .page-blog__hero-section {
      padding-top: 10px !important; /* body handles --header-offset, small padding for hero */
    }
}