/* style/blog.css */

/* Variables and base styles for the page-blog scope */
.page-blog {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--neon-background, #FFFFFF); /* Inherit from shared or default to white */
    overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

/* Ensure main content is not hidden by fixed header */
/* body already has padding-top from shared.css, so no additional padding-top here */

.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, #017439, #005f2e); /* Brand color gradient */
    color: #FFFFFF;
    text-align: center;
}

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

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-blog__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-blog__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-blog__description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-blog__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-blog__btn-primary:hover {
    background-color: #e00b0b;
    transform: translateY(-3px);
}

.page-blog__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Main brand color for text */
    border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.page-blog__section {
    padding: 80px 20px;
}

.page-blog__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-blog__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-blog__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: inherit; /* Inherit color from parent section */
}

.page-blog__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-blog__content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px;
    align-items: center;
}

@media (min-width: 769px) {
    .page-blog__content-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
    }

    .page-blog__content-grid--reverse .page-blog__text-block {
        order: 2; /* Text block on right for reversed grid */
    }

    .page-blog__content-grid--reverse .page-blog__image-wrapper {
        order: 1; /* Image on left for reversed grid */
    }
}

.page-blog__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-blog__text-block strong {
    font-weight: 700;
    color: inherit;
}

.page-blog__image-wrapper {
    text-align: center;
}

.page-blog__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-blog__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-blog__list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-blog__list li strong {
    color: inherit;
}

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

.page-blog__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Ensure dark text on light background */
}

.page-blog__faq-item[open] {
    background-color: #eaf7ed; /* Lighter green tint when open */
    border-color: #017439;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    background-color: #FFFFFF;
    color: #017439; /* Brand color for questions */
    list-style: none; /* Remove default marker for details summary */
}

.page-blog__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

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

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-blog__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

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

/* CTA Section specific styles */
.page-blog__cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(90deg, #017439, #005f2e);
    color: #FFFFFF;
}

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

.page-blog__cta-content .page-blog__section-title {
    margin-bottom: 25px;
    color: #FFFFFF;
}

.page-blog__cta-content p {
    font-size: 1.1em;
    margin-bottom: 35px;
    color: #f0f0f0;
}

.page-blog__cta-content a {
    color: #FFFF00; /* Yellow for links in dark sections */
    text-decoration: underline;
}

.page-blog__cta-content a:hover {
    color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-section,
    .page-blog__section {
        padding: 50px 15px;
    }

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

    .page-blog__description {
        font-size: 1em;
    }

    .page-blog__section-title {
        font-size: clamp(1.6em, 4vw, 2.4em);
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .page-blog__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, small decorative top padding */
    }

    /* All images must be responsive */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image/content containers must be responsive */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__hero-image-wrapper,
    .page-blog__image-wrapper,
    .page-blog__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* All videos must be responsive (if any, though none currently in blog.html) */
    .page-blog video,
    .page-blog__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All video containers must be responsive */
    .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;
    }

    /* All buttons must be responsive */
    .page-blog__cta-button,
    .page-blog__btn-primary,
    .page-blog a[class*="button"],
    .page-blog a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Make buttons full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add internal padding for text */
        padding-right: 15px;
    }
    
    /* Button containers for mobile */
    .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 !important; /* Adjust gap for vertical stacking */
    }

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

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

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

    .page-blog__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-blog__sub-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
        margin-top: 30px;
        margin-bottom: 15px;
    }

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

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