:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* --- General Styles --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Light text for dark body background */
    background-color: var(--background-color); /* #08160F */
}

.page-blog__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color);
}

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

.page-blog__section-title {
    font-size: 2.5em;
    color: var(--text-main-color);
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Important for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    min-width: 150px; /* Ensure minimum size */
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-blog__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color);
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-blog__btn-secondary:hover {
    background-color: var(--border-color);
    color: #ffffff;
}

/* --- Hero Section --- */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-height: 200px; /* Ensure minimum image size */
}

.page-blog__hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
}

.page-blog__hero-cta {
    font-size: 1.1em;
}

/* --- Latest Articles Section --- */
.page-blog__latest-articles {
    background-color: var(--background-color);
}

.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: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

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

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

.page-blog__article-title {
    font-size: 1.4em;
    color: var(--text-main-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__article-meta {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-blog__article-excerpt {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-blog__read-more {
    color: var(--gold-color); /* #F2C14E */
    font-weight: bold;
    text-decoration: none;
}

.page-blog__read-more:hover {
    text-decoration: underline;
}

.page-blog__view-all {
    margin-top: 40px;
}

/* --- Categories Section --- */
.page-blog__dark-section {
    background-color: var(--deep-green-color); /* #0A4B2C */
}

.page-blog__categories-section .page-blog__section-title {
    color: var(--text-main-color);
}

.page-blog__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-blog__category-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 25px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
    background-color: var(--border-color); /* #2E7A4E */
}

.page-blog__category-item a {
    text-decoration: none;
    color: var(--text-main-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* --- Popular Posts Section --- */
.page-blog__popular-posts {
    background-color: var(--background-color);
}

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

.page-blog__popular-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-blog__popular-item:hover {
    transform: translateY(-3px);
}

.page-blog__popular-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    min-width: 200px; /* Ensure minimum image size for content area */
    min-height: 100px; /* Adjusted to fit the Popular Post layout, but still over 200px width/height for the actual image. The displayed size here is 150x100, which is fine as long as the source image is larger */
}

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

.page-blog__popular-title {
    font-size: 1.2em;
    margin-bottom: 5px;
    line-height: 1.3;
}

.page-blog__popular-title a {
    text-decoration: none;
    color: var(--text-main-color);
    transition: color 0.3s ease;
}

.page-blog__popular-title a:hover {
    color: var(--gold-color); /* #F2C14E */
}

.page-blog__popular-meta {
    font-size: 0.85em;
    color: var(--text-secondary-color);
}

/* --- FAQ Section --- */
.page-blog__faq-section {
    background-color: var(--deep-green-color); /* #0A4B2C */
}

.page-blog__faq-section .page-blog__section-title {
    color: var(--text-main-color);
}

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

.page-blog__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-blog__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
}

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

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color); /* #F2C14E */
}

.page-blog__faq-item[open] summary .page-blog__faq-toggle {
    content: "−";
}

.page-blog__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary-color);
}

/* --- CTA Section --- */
.page-blog__cta-section {
    background-color: var(--background-color);
    padding-bottom: 80px;
}

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

.page-blog__cta-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
}

.page-blog__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-blog__section-title {
        font-size: 2em;
    }
    .page-blog__hero-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-blog__article-image {
        height: 180px;
    }
    .page-blog__popular-item {
        flex-direction: column;
        text-align: center;
    }
    .page-blog__popular-image {
        width: 100%;
        height: 150px;
        border-radius: 10px 10px 0 0;
    }
    .page-blog__popular-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-blog__section {
        padding: 40px 0;
    }
    .page-blog__section-title {
        font-size: 1.8em;
    }
    .page-blog__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-blog__hero-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-blog__hero-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any, though none on this page) */
    .page-blog video,
    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-blog__video-section,
    .page-blog__video-container,
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-blog__video-section {
        padding-top: 10px !important;
    }
    .page-blog__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .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__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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-blog__container {
        padding: 0 15px;
    }
    .page-blog__article-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }
    .page-blog__category-item {
        width: 100%;
        max-width: 250px;
    }
    .page-blog__popular-grid {
        grid-template-columns: 1fr;
    }
    .page-blog__popular-item {
        flex-direction: row; /* Keep row for popular items on mobile */
        align-items: center;
        text-align: left;
    }
    .page-blog__popular-image {
        width: 120px; /* Reduced width for popular item image on mobile */
        height: 80px;
        border-radius: 10px 0 0 10px;
        min-width: unset; /* Override min-width for this specific context */
        min-height: unset;
    }
    .page-blog__popular-content {
        padding: 15px 20px;
    }
    .page-blog__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-blog__faq-answer {
        padding: 10px 20px 15px;
    }
}