/* style/blog.css */

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

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

/* 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 decorative top padding, body handles header offset */
    text-align: center;
    background-color: #08160F;
}

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

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

.page-blog__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

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

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

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

.page-blog__btn-secondary {
    background: #11271B; /* Card BG */
    color: #57E38D; /* Glow */
    border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
    background: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
}

/* Section Titles */
.page-blog__section-title {
    font-size: 2.5em;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-blog__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-blog__article-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
    color: #57E38D; /* Glow */
}

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

.page-blog__article-excerpt {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-blog__read-more-btn {
    display: inline-block;
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
    color: #F2C14E; /* Gold */
}

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

.page-blog__view-all-btn {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-blog__view-all-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Category Section */
.page-blog__category-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.page-blog__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6; /* Text Main */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    background-color: #2E7A4E; /* Border */
}

.page-blog__category-icon {
    width: 100px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 10px;
}

.page-blog__category-name {
    font-weight: bold;
    font-size: 1.1em;
}

/* Featured Article Section */
.page-blog__featured-article-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-blog__featured-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__featured-image-wrapper {
    flex: 1;
    min-width: 400px; /* Ensure image has a minimum size */
    border-radius: 8px;
    overflow: hidden;
}

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

.page-blog__featured-text {
    flex: 2;
}

.page-blog__featured-title {
    font-size: 2em;
    margin-bottom: 15px;
}

.page-blog__featured-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
    color: #F2C14E; /* Gold */
}

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

.page-blog__sub-title {
    font-size: 1.6em;
    color: #57E38D; /* Glow */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

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

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

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

.page-blog__faq-question:hover {
    background-color: #22C768; /* Auxiliary color */
    color: #08160F;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    color: #F2C14E; /* Gold */
}

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__faq-answer .page-blog__btn-primary,
.page-blog__faq-answer .page-blog__btn-secondary {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
}

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

.page-blog__cta-text {
    font-size: 1.2em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-blog__featured-content {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__featured-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-blog__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__category-icon {
        width: 80px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section,
    .page-blog__latest-articles-section,
    .page-blog__category-section,
    .page-blog__featured-article-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }

    .page-blog__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

    .page-blog__description {
        font-size: 1em;
    }

    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-blog__article-thumbnail-wrapper {
        height: 200px; /* Adjust height for smaller screens */
    }

    .page-blog__article-title {
        font-size: 1.3em;
    }

    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .page-blog__category-icon {
        width: 60px;
        height: 45px;
    }

    .page-blog__category-name {
        font-size: 0.9em;
    }

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

    .page-blog__featured-title {
        font-size: 1.5em;
    }

    .page-blog__sub-title {
        font-size: 1.3em;
    }

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

    .page-blog__faq-toggle {
        font-size: 1.2em;
    }

    .page-blog img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-blog__article-thumbnail,
    .page-blog__featured-image {
        min-width: 200px !important; /* Ensure content images are not too small */
        min-height: 150px !important;
    }

    .page-blog__category-icon {
        min-width: 60px !important;
        min-height: 45px !important;
    }

    .page-blog__faq-answer .page-blog__btn-primary,
    .page-blog__faq-answer .page-blog__btn-secondary {
        max-width: unset !important;
        width: auto !important;
    }

    .page-blog__cta-buttons.page-blog__button-group,
    .page-blog__cta-buttons.page-blog__btn-container {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-blog__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .page-blog__category-icon {
        width: 50px;
        height: 38px;
    }
    .page-blog__category-name {
        font-size: 0.8em;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}