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

.page-blog {
    background-color: var(--background); /* Inherited from shared.css, which is #08160F */
    color: var(--text-main); /* #F2FFF6 for light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--card-bg); /* Use a slightly different dark tone */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for desktop */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--text-main);
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold); /* Use gold for prominent titles */
}

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

/* Buttons */
.page-blog__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main); /* Light text on dark button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--glow); /* Glow color for secondary button text */
    text-decoration: none;
    border: 2px solid var(--glow);
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-blog__btn-secondary:hover {
    background-color: var(--glow);
    color: var(--background); /* Dark background text on hover */
}

/* Section Titles */
.page-blog__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

/* Latest Posts Section */
.page-blog__latest-posts {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-blog__post-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-blog__post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-blog__post-title:hover {
    color: var(--glow);
}

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

.page-blog__post-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push read more to bottom */
}

.page-blog__read-more {
    font-weight: bold;
    color: var(--glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-blog__view-all {
    text-align: center;
}

/* Categories Section */
.page-blog__categories {
    padding: 60px 0;
    background-color: var(--deep-green); /* Use deep green for a section */
}

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

.page-blog__category-item {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--border);
}

.page-blog__category-item:hover {
    background-color: var(--glow);
    color: var(--background);
}

/* Guides Section */
.page-blog__guides {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-blog__guide-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.page-blog__guide-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.page-blog__read-more-link {
    color: var(--glow);
    text-decoration: none;
    font-weight: bold;
    transition: text-decoration 0.3s ease;
}

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

/* Middle CTA Section */
.page-blog__cta-middle {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); /* Brand gradient */
    color: #ffffff; /* White text on gradient */
}

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

.page-blog__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-blog__faq {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-blog__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.page-blog__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-main);
    transition: 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 {
    color: var(--glow);
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow);
    margin-left: 15px;
}

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

/* Bottom CTA Section */
.page-blog__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green);
    color: var(--text-main);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-blog__post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

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

    /* Images responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-blog__hero-image-wrapper,
    .page-blog__post-card,
    .page-blog__category-item,
    .page-blog__guide-item,
    .page-blog__faq-item,
    .page-blog__cta-middle,
    .page-blog__cta-bottom,
    .page-blog__latest-posts,
    .page-blog__categories,
    .page-blog__guides {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-blog__intro-text {
        font-size: 1em;
    }

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

    .page-blog__post-image {
        height: 180px; /* Adjust height for mobile */
    }

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

    .page-blog__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-blog__category-item {
        width: 100%;
        max-width: 250px;
    }
    
    /* Buttons responsive */
    .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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-blog__hero-content .page-blog__btn-primary {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: 1.8em;
    }
    .page-blog__section-title {
        font-size: 1.6em;
    }
    .page-blog__cta-title {
        font-size: 1.8em;
    }
    .page-blog__post-image {
        height: 150px;
    }
}