/* style/blog.css */

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

.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);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-blog__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F;
    overflow: hidden;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

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

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

.page-blog__hero-title {
    font-size: clamp(32px, 5vw, 56px);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-blog__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-blog__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
}

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

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

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

/* 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: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

.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: block;
}

.page-blog__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-blog__article-title {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-blog__article-excerpt {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

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

/* Why Choose Us Section */
.page-blog__why-choose-us {
    background-color: #0A4B2C; /* Deep Green */
    padding: 80px 0;
}

.page-blog__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-blog__text-block {
    flex: 1;
    min-width: 300px;
}

.page-blog__text-block h3 {
    font-size: clamp(22px, 3vw, 30px);
    color: #F2FFF6; /* Text Main */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__text-block p {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-blog__text-block ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-blog__text-block ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #A7D9B8; /* Text Secondary */
}

.page-blog__text-block ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #2AD16F;
}

.page-blog__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

/* 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 BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
    background-color: #0A4B2C; /* Deep Green */
    border-color: #2AD16F;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-question:hover {
    background-color: rgba(42, 209, 111, 0.1);
}

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

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

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

/* CTA Section */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
}

.page-blog__cta-title {
    font-size: clamp(30px, 4.5vw, 48px);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__cta-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    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;
    box-sizing: border-box;
    overflow: hidden;
}

/* Global image and container responsiveness for mobile */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-blog__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body handles --header-offset, small padding for section */
    }

    .page-blog__hero-content {
        padding: 20px 15px;
    }

    .page-blog__hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

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

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

    .page-blog__article-image {
        height: 180px;
    }

    .page-blog__content-wrapper {
        flex-direction: column;
    }

    .page-blog__text-block,
    .page-blog__image-block {
        min-width: unset;
        width: 100%;
    }

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

    .page-blog__faq-answer {
        padding: 0 15px 15px 15px;
    }

    .page-blog__section-title,
    .page-blog__cta-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    /* Enforce image responsiveness */
    .page-blog img {
        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__content-wrapper,
    .page-blog__image-block,
    .page-blog__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Ensure images within content areas are not too small */
.page-blog__content-image, .page-blog__article-image {
    min-width: 200px;
    min-height: 200px;
}