:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Aux */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --bg-card: #11271B; /* Card BG */
    --bg-main: #08160F; /* Background */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
}

.page-blog {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--bg-main); /* Page background */
}

/* --- General Layout & Typography --- */
.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-blog__section {
    padding: 60px 0;
    text-align: center;
}

.page-blog__section-title {
    font-size: clamp(28px, 4vw, 42px); /* H1/H2 font size, clamp for responsiveness */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-blog__section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-blog p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-blog a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog a:hover {
    color: var(--color-glow);
}

/* --- Hero Section --- */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--bg-main);
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Ensure image doesn't overflow */
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-blog__main-title {
    font-size: clamp(32px, 5vw, 56px); /* H1 font size, clamp for responsiveness */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-blog__intro-text {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-blog__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    margin-left: 20px;
}

.page-blog__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--bg-main);
    transform: translateY(-2px);
}

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

/* --- Article Grid / Cards --- */
.page-blog__article-grid,
.page-blog__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-blog__card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-blog__feature-icon {
    height: 150px; /* Smaller for feature icons */
    object-fit: contain; /* Contain for icons */
    padding: 20px;
}

.page-blog__article-content,
.page-blog__feature-item > div {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-blog__article-title,
.page-blog__feature-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-blog__article-title a,
.page-blog__feature-title a {
    color: var(--text-main);
    transition: color 0.3s ease;
}

.page-blog__article-title a:hover,
.page-blog__feature-title a:hover {
    color: var(--color-gold);
}

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

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

.page-blog__read-more {
    display: inline-block;
    color: var(--color-glow);
    font-weight: bold;
    margin-top: auto; /* Push to bottom */
}

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

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

/* --- Dark Section Specifics --- */
.page-blog__dark-section {
    background-color: var(--color-deep-green); /* A darker green for contrast */
    color: var(--text-main);
}

.page-blog__dark-section .page-blog__section-description {
    color: var(--text-secondary);
}

/* --- FAQ Section --- */
.page-blog__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-blog__faq-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* For transition effect if not using <details> */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--border-color);
}

.page-blog__faq-item[open] .page-blog__faq-question {
    border-bottom-color: transparent; /* Hide border when open */
}

.page-blog__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-blog__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--text-secondary);
    background-color: var(--bg-card);
}

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

/* --- Conclusion Section --- */
.page-blog__conclusion {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--color-deep-green);
}

.page-blog__conclusion .page-blog__section-title {
    color: var(--color-gold);
}

.page-blog__conclusion .page-blog__section-description,
.page-blog__conclusion .page-blog__call-to-action {
    font-size: 18px;
    color: var(--text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

.page-blog__conclusion .page-blog__call-to-action {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-glow);
}


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

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

    .page-blog__section {
        padding: 40px 0;
    }

    .page-blog__section-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-blog__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-blog__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .page-blog__intro-text {
        font-size: 18px;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add space between stacked buttons */
        padding: 12px 20px;
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 0; /* Reset gap for column layout */
        padding: 0 15px; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-blog__article-grid,
    .page-blog__feature-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-blog__article-image,
    .page-blog__feature-icon {
        height: 180px; /* Adjust image height for mobile */
    }

    .page-blog__article-title,
    .page-blog__feature-title {
        font-size: 19px;
    }

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

    .page-blog__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness - REQUIRED */
    .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__hero-section,
    .page-blog__hero-content,
    .page-blog__latest-news,
    .page-blog__guides-tips,
    .page-blog__safety-support,
    .page-blog__faq-section,
    .page-blog__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness (if any, though not explicitly in content for blog 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;
    }
}