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

.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 */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

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

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

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

.page-blog__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    white-space: normal; /* For mobile */
    word-wrap: break-word; /* For mobile */
}

.page-blog__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #F2FFF6;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-blog__section-description {
    font-size: 1rem;
    color: #A7D9B8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.page-blog__latest-articles-section,
.page-blog__importance-section,
.page-blog__categories-section,
.page-blog__faq-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.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 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ensure cards have a minimum height for consistency */
}

.page-blog__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-blog__article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F2FFF6;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog__article-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog__read-more {
    display: inline-block;
    color: #2AD16F; /* Main color */
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

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

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

.page-blog__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid #2AD16F; /* Main color */
    color: #2AD16F;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    white-space: normal; /* For mobile */
    word-wrap: break-word; /* For mobile */
}

.page-blog__view-all-button:hover {
    background-color: #2AD16F;
    color: #08160F; /* Dark background color for text on hover */
    border-color: #2AD16F;
}

.page-blog__importance-section p {
    font-size: 1rem;
    color: #A7D9B8;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-blog__category-item {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure consistency */
    display: flex;
    flex-direction: column;
}

.page-blog__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-blog__category-title a {
    color: #F2FFF6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__category-title a:hover {
    color: #2AD16F;
}

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

.page-blog__cta-banner-section {
    background-color: #11A84E; /* Main color as background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.page-blog__cta-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
    display: block;
}

.page-blog__cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-blog__cta-banner-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-blog__cta-banner-description {
    font-size: 1.1rem;
    color: #F2FFF6;
    margin-bottom: 40px;
}

.page-blog__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.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: 600;
    color: #F2FFF6;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
    background-color: rgba(34, 199, 104, 0.1); /* Auxiliary color with transparency */
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2AD16F; /* Main color */
    margin-left: 20px;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    color: #A7D9B8; /* Text Secondary when open */
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8;
    line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-blog__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 15px;
    }

    .page-blog__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-blog__cta-button,
    .page-blog__view-all-button {
        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;
    }
    
    /* Ensure any container with buttons also adapts */
    .page-blog__cta-banner-content {
        padding: 0 15px;
    }
    .page-blog__view-all-wrapper {
        padding: 0 15px;
    }

    .page-blog__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-blog__latest-articles-section,
    .page-blog__importance-section,
    .page-blog__categories-section,
    .page-blog__faq-section {
        padding: 40px 15px;
    }

    .page-blog__articles-grid,
    .page-blog__categories-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-blog__article-card {
        min-height: auto; /* Allow height to adjust */
    }
    
    .page-blog__article-image {
        height: 180px; /* Slightly smaller on mobile */
    }

    .page-blog__article-title {
        font-size: 1.2rem;
    }

    .page-blog__category-item {
        min-height: auto;
    }

    .page-blog__category-title {
        font-size: 1.3rem;
    }

    .page-blog__cta-banner-section {
        padding: 60px 15px;
    }

    .page-blog__cta-banner-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog__cta-banner-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-blog__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

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

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

    /* Mobile image responsiveness */
    .page-blog img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-blog__hero-image-wrapper,
    .page-blog__articles-grid,
    .page-blog__categories-grid,
    .page-blog__cta-banner-section,
    .page-blog__cta-banner-content,
    .page-blog__article-card,
    .page-blog__category-item,
    .page-blog__faq-list,
    .page-blog__faq-item,
    .page-blog__importance-section,
    .page-blog__latest-articles-section,
    .page-blog__categories-section,
    .page-blog__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for padding on sections that already have it */
    .page-blog__latest-articles-section,
    .page-blog__importance-section,
    .page-blog__categories-section,
    .page-blog__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-blog__hero-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-blog__cta-banner-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Content area images CSS size lower bound check */
/* This rule ensures that no image within .page-blog is rendered smaller than 200px by CSS */
.page-blog img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px; /* Enforce minimum width for content images */
    min-height: 200px; /* Enforce minimum height for content images */
}

/* Contrast Fixes */
.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}