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

    /* RGB values for transparent effects if needed */
    --border-rgb: 46, 122, 78; /* RGB for #2E7A4E */
}

/* style/blog.css */

/* --- Base Styles & Layout --- */
.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-color); /* Inherited from shared.css, which is #08160F */
}

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

.page-blog__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-blog__section-description {
    font-size: 1.1em;
    color: var(--text-secondary); /* #A7D9B8 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
}

.page-blog__hero-content {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 900px;
    z-index: 1;
}

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

.page-blog__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

/* --- Buttons --- */
.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: var(--button-gradient); /* Button color */
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--glow); /* #57E38D */
}

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

.page-blog__btn-secondary:hover {
    background: rgba(var(--border-rgb), 0.2); /* Using RGB for transparency if needed */
    box-shadow: 0 0 10px var(--glow); /* #57E38D */
}

/* --- Latest Posts Section --- */
.page-blog__latest-posts-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__dark-section {
    background-color: var(--bg-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-blog__post-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-blog__post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-blog__post-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-blog__post-meta {
    font-size: 0.9em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 15px;
}

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-blog__read-more-link {
    color: var(--glow); /* #57E38D */
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
}

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

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

/* --- Categories Section --- */
.page-blog__categories-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-blog__category-card {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.page-blog__category-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 10px;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* --- Featured Guide Section --- */
.page-blog__featured-guide-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__deep-green-bg {
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__featured-guide-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-blog__text-block {
    flex: 1;
}

.page-blog__featured-guide-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* --- FAQ Section --- */
.page-blog__faq-section {
    padding: 80px 0;
    background-color: var(--bg-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

.page-blog__faq-list {
    margin-top: 40px;
}

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

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

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

.page-blog__faq-question:hover {
    background-color: rgba(var(--border-rgb), 0.1); /* Lighter on hover */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--glow); /* #57E38D */
    transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__faq-answer p {
    margin: 0;
}

/* --- Call to Action Section --- */
.page-blog__cta-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        padding: 30px 20px 40px;
    }

    .page-blog__section-title {
        font-size: 2em;
    }

    .page-blog__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-blog__featured-guide-content {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__featured-guide-image {
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-blog__hero-image {
        max-height: 400px;
    }

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

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

    .page-blog__hero-description {
        font-size: 1em;
    }

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

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog__posts-grid,
    .page-blog__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-blog__post-image {
        height: 180px;
    }

    .page-blog__post-title {
        font-size: 1.2em;
    }

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

    .page-blog__featured-guide-image {
        max-width: 100%;
    }

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

    /* Mobile image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__featured-guide-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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