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

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

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-blog__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: -80px; /* Overlap with image for visual effect, but text is below image in DOM */
    position: relative;
    z-index: 1;
    color: #F2FFF6;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-blog__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 150px;
    text-align: center;
}

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

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

.page-blog__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
    transform: translateY(-2px);
    background: #2AD16F;
    color: #ffffff;
}

/* General Section Styling */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-blog__section-title {
    font-size: 2.2rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__section-subtitle {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    background-color: #08160F; /* Background color */
    padding: 60px 0;
}

.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: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
    display: flex;
    flex-direction: column;
    min-width: 200px; /* Enforce minimum size */
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
}

.page-blog__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-blog__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-blog__card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
    flex-grow: 1;
}

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

.page-blog__card-title a:hover {
    color: #2AD16F; /* Main brand color */
}

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

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

.page-blog__read-more-link {
    color: #2AD16F; /* Main brand color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-blog__read-more-link:hover {
    text-decoration: underline;
    color: #57E38D; /* Glow color */
}

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

.page-blog__view-all-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Categories Section */
.page-blog__categories-section {
    background-color: #11271B; /* Card BG */
    padding: 60px 0;
    color: #F2FFF6;
}

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

.page-blog__category-card {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.page-blog__category-card:hover {
    background-color: #13994A; /* Darker green from button gradient */
    transform: translateY(-3px);
}

.page-blog__category-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #F2FFF6;
}

.page-blog__category-description {
    font-size: 0.95rem;
    color: #A7D9B8;
}

/* Featured Article Section */
.page-blog__featured-article-section {
    background-color: #08160F; /* Background color */
    padding: 60px 0;
}

.page-blog__featured-card {
    display: flex;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__featured-image-wrapper {
    flex: 1;
    min-width: 50%; /* Ensure image takes at least half width on desktop */
}

.page-blog__featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-blog__featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #F2FFF6;
}

.page-blog__featured-title {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-blog__featured-title a:hover {
    color: #2AD16F; /* Main brand color */
}

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

.page-blog__featured-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
}

.page-blog__sub-title {
    font-size: 1.5rem;
    color: #2AD16F; /* Main brand color */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-blog__conclusion {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-top: 25px;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-blog__faq-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 0;
    color: #F2FFF6;
}

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

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

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: #F2FFF6;
    outline: none;
    list-style: none; /* Hide default marker */
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

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

/* CTA Banner Section */
.page-blog__cta-banner {
    background-color: #08160F; /* Background color */
    padding: 60px 0;
    text-align: center;
    color: #F2FFF6;
}

.page-blog__cta-banner .page-blog__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-blog__cta-content {
    max-width: 800px;
}

.page-blog__cta-title {
    font-size: 2.5rem;
    color: #F2FFF6;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-blog__cta-description {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 30px;
}

.page-blog__cta-image-wrapper {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E;
}

.page-blog__cta-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}


/* Responsive Styles */
@media (max-width: 992px) {
    .page-blog__featured-card {
        flex-direction: column;
    }
    .page-blog__featured-image-wrapper {
        min-width: 100%;
    }
    .page-blog__hero-content {
        margin-top: -40px;
        padding: 30px 15px;
    }
    .page-blog__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .page-blog__section-title {
        font-size: 2rem;
    }
    .page-blog__featured-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 10px 0;
    }
    .page-blog__hero-content {
        margin-top: -20px;
        padding: 25px 15px;
    }
    .page-blog__main-title {
        font-size: 1.8rem;
    }
    .page-blog__description {
        font-size: 1rem;
    }
    .page-blog__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

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

    .page-blog__section-title {
        font-size: 1.8rem;
    }
    .page-blog__section-subtitle {
        font-size: 1rem;
    }

    .page-blog__articles-grid,
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-blog__article-card,
    .page-blog__category-card {
        min-width: unset;
    }

    .page-blog__featured-card {
        flex-direction: column;
    }
    .page-blog__featured-image-wrapper {
        width: 100%;
    }
    .page-blog__featured-content {
        padding: 20px;
    }
    .page-blog__featured-title {
        font-size: 1.5rem;
    }
    .page-blog__sub-title {
        font-size: 1.3rem;
    }

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

    .page-blog__cta-title {
        font-size: 2rem;
    }
    .page-blog__cta-description {
        font-size: 1rem;
    }

    /* Mobile image and video responsiveness enforcement */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog video,
    .page-blog__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__card-image-wrapper,
    .page-blog__featured-image-wrapper,
    .page-blog__cta-image-wrapper,
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    
    .page-blog__hero-section,
    .page-blog__latest-articles-section,
    .page-blog__categories-section,
    .page-blog__featured-article-section,
    .page-blog__faq-section,
    .page-blog__cta-banner {
        padding-left: 0;
        padding-right: 0;
    }
    .page-blog__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure no horizontal scroll from content area */
    .page-blog {
        overflow-x: hidden;
    }
}

/* Ensure images within content area are not too small */
.page-blog p img,
.page-blog__article-card img,
.page-blog__featured-card img {
    min-width: 200px;
    min-height: 200px;
}