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

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

/* 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 top padding, body handles --header-offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and text */
}

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

.page-blog__hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    z-index: 1;
    color: #F2FFF6; /* Light text on dark background */
}

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

.page-blog__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
}

.page-blog__hero-cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

/* Section Titles */
.page-blog__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-blog__section-title--light {
    color: #F2FFF6;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-blog__btn-secondary:hover {
    background: #2AD16F;
    color: #08160F;
}

.page-blog__btn-secondary--wide {
    min-width: 250px;
}

.page-blog__btn-text-link {
    color: #2AD16F;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-blog__btn-text-link:hover {
    color: #57E38D;
}


/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
}

.page-blog__article-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 background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-blog__article-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for thumbnails */
    object-fit: cover;
    display: block;
}

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

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

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

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

.page-blog__article-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__article-date {
    font-size: 0.85rem;
    color: #A7D9B8;
    margin-bottom: 15px;
    display: block;
}

.page-blog__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2E7A4E; /* Deep Green for read more button */
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    align-self: flex-start; /* Align to start */
}

.page-blog__read-more-btn:hover {
    background: #57E38D;
    color: #08160F;
}

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

/* Categories Section */
.page-blog__categories-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green for this section */
}

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

.page-blog__category-card {
    background-color: #11271B; /* Card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2AD16F; /* Highlight category titles */
}

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

/* Featured Guides Section */
.page-blog__featured-guides-section {
    padding: 60px 0;
}

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

.page-blog__guide-card {
    background-color: #11271B; /* Card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.page-blog__guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.3;
}

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

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

.page-blog__guide-excerpt {
    font-size: 0.95rem;
    color: #A7D9B8;
    padding: 0 20px 20px;
}

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

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

.page-blog__faq-item {
    background-color: #11271B; /* Card background */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6;
    cursor: pointer;
    background-color: #1E3A2A; /* Slightly lighter than card BG for summary */
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: #2E7A4E; /* Border color on hover */
}

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

.page-blog__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: #2AD16F;
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

/* Remove default details marker */
.page-blog__faq-item summary {
    list-style: none;
}
.page-blog__faq-item summary::-webkit-details-marker {
    display: none;
}


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

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

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

.page-blog__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6;
}

.page-blog__description {
    font-size: 1.1rem;
    color: #A7D9B8;
    max-width: 700px;
    margin: 0 auto 40px;
}

.page-blog__description--light {
    color: #A7D9B8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-blog__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-blog__hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-blog__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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.8rem;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-blog__latest-articles-section,
    .page-blog__categories-section,
    .page-blog__featured-guides-section,
    .page-blog__faq-section,
    .page-blog__cta-section {
        padding: 40px 0;
    }

    .page-blog__article-grid,
    .page-blog__category-grid,
    .page-blog__guide-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }

    .page-blog__article-thumbnail,
    .page-blog__guide-thumbnail {
        height: 180px; /* Adjust height for mobile */
    }

    .page-blog__article-content,
    .page-blog__guide-card .page-blog__guide-title,
    .page-blog__guide-card .page-blog__guide-excerpt {
        padding: 20px;
    }

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

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

    /* Mobile image and video responsiveness */
    .page-blog img {
        max-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__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;
        overflow: hidden !important;
    }
}