/* style/blog.css */

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

/* Base styles for the blog page, respecting body padding-top from shared.css */
.page-blog {
    background-color: var(--bg-page); /* Dark background */
    color: var(--text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* General padding for footer space */
}

.page-blog h1,
.page-blog h2,
.page-blog h3,
.page-blog h4,
.page-blog h5,
.page-blog h6 {
    color: var(--text-main); /* Ensure headings are visible */
    font-weight: bold;
    margin-bottom: 15px;
}

.page-blog p {
    margin-bottom: 1em;
}

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

.page-blog a:hover {
    text-decoration: underline;
}

/* Reusable container for content width */
.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;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--bg-page);
    overflow: hidden; /* Ensure no overflow */
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-blog__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-blog__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* Section Titles and Subtitles */
.page-blog__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
}

.page-blog__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
    margin-right: 15px;
}

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

.page-blog__btn-secondary {
    background: transparent;
    color: var(--color-primary); /* Primary color text for secondary button */
    border: 2px solid var(--color-primary);
}

.page-blog__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
    padding: 60px 0;
    background-color: var(--bg-page);
}

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

.page-blog__article-card {
    background-color: var(--bg-card); /* Dark card background */
    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;
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__article-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-blog__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image {
    transform: scale(1.05);
}

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

.page-blog__article-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

.page-blog__article-title a {
    color: var(--text-main);
    text-decoration: none;
}

.page-blog__article-title a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

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

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

.page-blog__view-all-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* About Sodo666 Section */
.page-blog__about-sodo666-section {
    padding: 60px 0;
    background-color: var(--bg-page);
}

.page-blog__about-sodo666-section .page-blog__section-title {
    margin-bottom: 40px;
}

.page-blog__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-blog__text-block {
    flex: 2;
    color: var(--text-secondary);
}

.page-blog__text-block h3 {
    color: var(--text-main);
}

.page-blog__image-block {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* CTA Section */
.page-blog__cta-section {
    background: var(--color-deep-green); /* Deep green background */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff; /* White text for CTA section */
}

.page-blog__cta-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-blog__cta-description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--text-main); /* Ensure contrast */
}

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

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

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

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

.page-blog__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--color-deep-green); /* Darker background for summary */
    border-bottom: 1px solid var(--color-divider);
}

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

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-blog__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-blog__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--text-main);
}

.page-blog__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border-top: 1px solid var(--color-divider);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-blog__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-blog__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-blog__container {
        padding: 0 15px;
    }

    .page-blog__hero-section {
        padding-bottom: 30px;
    }

    .page-blog__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

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

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

    .page-blog__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-blog__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-blog__btn-primary,
    .page-blog__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Stack buttons */
    }

    .page-blog__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0;
    }

    /* Images responsiveness */
    .page-blog img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness (if any, though not present here) */
    .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; /* body handles --header-offset */
    }

    /* General container padding for mobile to prevent overflow */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__cta-section,
    .page-blog__faq-section,
    .page-blog__latest-articles-section,
    .page-blog__about-sodo666-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

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