/* style/blog.css */

/* Global styles for the blog page scope */
.page-blog {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Main text color from custom palette */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Space above footer */
}

/* 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 */
    text-align: center;
    overflow: hidden; /* Ensure content does not overflow */
}

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

.page-blog__hero-content {
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 0 20px;
}

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

.page-blog__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
}

/* Call to Action Buttons */
.page-blog__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to screen width */
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Main text color for contrast */
    border: none;
}

.page-blog__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Green color for secondary button text */
    border: 2px solid #2AD16F; /* Green border */
}

.page-blog__btn-secondary:hover {
    background: #2AD16F;
    color: #F2FFF6;
    transform: translateY(-2px);
}

/* Content Area */
.page-blog__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #11271B; /* Card BG from custom palette for content area */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article {
    padding: 20px;
}

.page-blog__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #F2C14E; /* Gold color for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
}

.page-blog__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    color: #57E38D; /* Glow color for sub titles */
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.page-blog p {
    margin-bottom: 15px;
    color: #F2FFF6; /* Main text color */
}

.page-blog__text-secondary {
    color: #A7D9B8; /* Secondary text color */
    font-style: italic;
    font-size: 0.95em;
}

.page-blog ul,
.page-blog ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #F2FFF6; /* Main text color */
}

.page-blog ul li,
.page-blog ol li {
    margin-bottom: 8px;
    color: #F2FFF6; /* Main text color */
}

.page-blog__unordered-list li::before {
    content: "•"; /* Custom bullet point */
    color: #2AD16F; /* Green color for bullet */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.page-blog__ordered-list li::marker {
    color: #2AD16F; /* Green color for ordered list marker */
    font-weight: bold;
}

.page-blog__nested-list {
    margin-left: 20px;
    list-style-type: disc;
    color: #F2FFF6;
}

.page-blog__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-blog__faq-list {
    margin-top: 30px;
}

.page-blog__faq-item {
    background-color: #0A4B2C; /* Deep Green for FAQ item background */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-item details {
    border: none; /* Remove default details border */
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    cursor: pointer;
    background-color: #1E3A2A; /* Divider color for question background */
    border-bottom: 1px solid #2E7A4E; /* Border color */
}

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

.page-blog__faq-question::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: #2AD16F; /* Green for toggle icon */
}

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

.page-blog__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
}

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

/* Bottom CTA buttons */
.page-blog__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-content {
        max-width: 700px;
    }

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

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

    .page-blog__sub-title {
        font-size: 1.4em;
    }
}

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

    /* Fixed header padding handled by shared.css body padding-top */
    .page-blog__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-blog__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

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

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

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-blog__content-area {
        padding: 20px 15px;
        border-radius: 0; /* Remove border-radius for full width on mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-blog__article {
        padding: 0;
    }

    .page-blog__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-blog__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-blog ul,
    .page-blog ol {
        margin-left: 20px;
    }

    /* Image responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }

    /* Ensure image containers also adapt */
    .page-blog__image-full {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

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

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

@media (max-width: 480px) {
    .page-blog__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }

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

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

/* Ensure no CSS filters are used for images */
.page-blog img {
    filter: none; /* Explicitly ensure no filter is applied */
}