/* style/blog.css */
.page-blog {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    line-height: 1.6;
    background-color: #08160F; /* Background */
}

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

/* Hero Section (Banner for Blog Page) */
.page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Background */
}

.page-blog__hero-section .page-blog__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-blog__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-blog__main-title {
    font-size: clamp(2em, 3.2vw, 3.2em); /* Clamp for responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-blog__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-blog__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-blog__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-blog__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #2AD16F; /* A lighter green for contrast */
    border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    color: #F2FFF6;
}

/* Posts Section */
.page-blog__posts-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__post-card {
    background-color: #11271B; /* Card B G */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.page-blog__post-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.page-blog__post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail img {
    transform: scale(1.05);
}

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.3;
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

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

/* FAQ Section */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-blog__faq-item {
    background-color: #11271B; /* Card B G */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Slightly lighter border color for hover */
}

.page-blog__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: #2AD16F;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-blog__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 10px;
}

/* General image responsiveness for content area */
.page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__main-title {
        font-size: 2.8em;
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__post-thumbnail {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
    }
    .page-blog__hero-section .page-blog__container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-blog__hero-content {
        flex: 1 1 100%;
    }
    .page-blog__hero-image {
        flex: 1 1 100%;
    }
    .page-blog__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-blog__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* CTA Buttons */
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Posts Section */
    .page-blog__posts-section {
        padding: 50px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-blog__post-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-blog__post-thumbnail {
        height: 160px;
    }
    .page-blog__post-title {
        font-size: 1.2em;
    }
    .page-blog__post-meta,
    .page-blog__post-excerpt {
        font-size: 0.9em;
    }

    /* FAQ Section */
    .page-blog__faq-section {
        padding: 50px 0;
    }
    .page-blog__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-blog__faq-answer {
        padding: 0 20px 15px;
    }

    /* General Images */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}