/* style/blog.css */

/* Custom properties for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Default background color */
}

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

.page-blog__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

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

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--color-button-gradient-start);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-blog__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

/* Content Area */
.page-blog__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.page-blog__section-title {
    font-size: 2.2em;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-blog__content-area p {
    margin-bottom: 1.5em;
    font-size: 1.1em;
    color: #333333;
}

/* Blog List */
.page-blog__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-blog__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__card-date {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.page-blog__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__card-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: var(--color-deep-green);
}

.page-blog__card-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-blog__read-more-btn:hover {
    background-color: var(--color-deep-green);
}

.page-blog__view-all-posts {
    text-align: center;
    margin-top: 50px;
}

/* Featured Article Section */
.page-blog__featured-article-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 60px auto;
    border-radius: 10px;
}

.page-blog__featured-article-content {
    flex: 1;
}

.page-blog__featured-article-content p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: var(--color-text-secondary);
}

.page-blog__featured-article-image-wrapper {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-blog__featured-article-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-blog__video-section {
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog__video-container {
    width: 100%;
    max-width: 1000px; /* Desktop max-width */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-blog__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-width: 100%;
}

.page-blog__video-caption {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

/* FAQ Section */
.page-blog__faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-list {
    margin-top: 30px;
}

.page-blog__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
    background-color: #f0f0f0;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-blog__faq-qtext {
    flex-grow: 1;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-deep-green);
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #555555;
}

.page-blog__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-blog__cta-final-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 100%;
    margin: 60px auto 0;
}

.page-blog__cta-final-section .page-blog__section-title {
    color: var(--color-gold);
}

.page-blog__cta-final-section p {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__text-link {
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: bold;
}

.page-blog__text-link:hover {
    color: var(--color-glow);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog__hero-section {
        padding: 40px 20px;
    }

    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .page-blog__featured-article-section {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__featured-article-content,
    .page-blog__featured-article-image-wrapper {
        width: 100%;
    }

    .page-blog__featured-article-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__hero-section {
        padding: 30px 15px;
    }

    .page-blog__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-blog__hero-description {
        font-size: 1em;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
    }

    .page-blog__cta-buttons,
    .page-blog__button-group,
    .page-blog__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-blog__content-area,
    .page-blog__featured-article-section,
    .page-blog__video-section,
    .page-blog__faq-section,
    .page-blog__cta-final-section {
        padding: 20px 15px;
    }

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

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

    .page-blog__blog-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

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

    .page-blog__card-title {
        font-size: 1.2em;
    }

    .page-blog__hero-image,
    .page-blog__card-image,
    .page-blog__featured-article-image,
    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__hero-image-wrapper,
    .page-blog__card,
    .page-blog__container,
    .page-blog__featured-article-image-wrapper,
    .page-blog__video-container,
    .page-blog__video-wrapper,
    .page-blog__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-blog__video-section {
        padding-top: 10px !important; /* body already has offset */
    }

    .page-blog__video-wrapper {
        padding-bottom: 56.25% !important;
    }

    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
    }

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

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

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }

    .page-blog__hero-description {
        font-size: 0.95em;
    }

    .page-blog__section-title {
        font-size: 1.6em;
    }

    .page-blog__faq-question {
        font-size: 1em;
    }
}