/* style/blog.css */
/* 
 * Body padding-top is handled by shared.css var(--header-offset).
 * This page should not apply var(--header-offset) to its top sections.
 */

/* Color Variables based on provided palette */
: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-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

/* Ensure all text elements inherit or explicitly set color for contrast */
.page-blog h1,
.page-blog h2,
.page-blog h3,
.page-blog h4,
.page-blog h5,
.page-blog h6 {
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-blog p,
.page-blog li {
    color: var(--text-secondary); /* Use secondary text color for paragraphs and lists */
    margin-bottom: 10px;
}

/* Sections */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px; /* General padding, not using --header-offset */
    padding-top: 10px; /* Small top padding, body handles main offset */
    box-sizing: border-box;
    overflow: hidden; /* To contain the image if it overflows initially */
}

.page-blog__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-blog__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border included in width */
    text-align: center;
}

.page-blog__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    margin: 10px;
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-color), 0.4);
}

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

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

.page-blog__cta-button {
    margin-top: 30px;
}

.page-blog__introduction-section,
.page-blog__access-guide-section,
.page-blog__game-products-section,
.page-blog__promotions-section,
.page-blog__tips-section,
.page-blog__faq-section,
.page-blog__conclusion-section {
    padding: 80px 20px;
    box-sizing: border-box;
}

.page-blog__light-bg {
    background-color: var(--background); /* Effectively dark background for the site */
    color: var(--text-main);
}

.page-blog__dark-bg {
    background-color: var(--card-bg); /* Slightly darker card/section background */
    color: var(--text-main);
}

.page-blog__container {
    width: 100%; /* Ensure container takes full width on desktop too for proper max-width behavior */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-blog__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main);
}

.page-blog__sub-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-blog__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-blog__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-blog__list {
    list-style: disc inside;
    margin-left: 20px;
    padding: 0;
    color: var(--text-secondary);
}

.page-blog__list li {
    margin-bottom: 10px;
}

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

.page-blog__faq-item {
    background-color: var(--background); /* Darker background for FAQ items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-blog__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg); /* Use card background for question area */
    transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
    background-color: var(--deep-green);
}

.page-blog__faq-item[open] .page-blog__faq-question {
    background-color: var(--deep-green);
}

.page-blog__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
    content: '−';
}

.page-blog__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    transition: max-height 0.5s ease-in;
}

.page-blog__faq-item .page-blog__faq-answer p {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Specific styling for details/summary to remove default marker */
.page-blog__faq-item details > summary {
    list-style: none;
}
.page-blog__faq-item details > summary::-webkit-details-marker {
    display: none;
}


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

    .page-blog__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-blog__sub-title {
        font-size: 1.5rem;
    }

    .page-blog__introduction-section,
    .page-blog__access-guide-section,
    .page-blog__game-products-section,
    .page-blog__promotions-section,
    .page-blog__tips-section,
    .page-blog__faq-section,
    .page-blog__conclusion-section {
        padding: 60px 15px;
    }
}

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

    .page-blog__hero-section {
        padding: 40px 10px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual separation */
    }

    .page-blog__hero-content {
        padding: 20px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-blog__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .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;
        padding: 12px 15px !important;
        margin: 8px 0 !important; /* Stack buttons vertically */
    }
    
    .page-blog__hero-content .page-blog__btn-primary,
    .page-blog__hero-content .page-blog__btn-secondary {
        display: block; /* Ensure buttons stack */
    }

    .page-blog__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-blog__introduction-section,
    .page-blog__access-guide-section,
    .page-blog__game-products-section,
    .page-blog__promotions-section,
    .page-blog__tips-section,
    .page-blog__faq-section,
    .page-blog__conclusion-section {
        padding: 40px 15px;
    }

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

    /* Mobile container responsiveness */
    .page-blog__section,
    .page-blog__card,
    .page-blog__container,
    .page-blog__text-block,
    .page-blog__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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