.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main from custom colors, on dark background */
    background-color: #0A0A0A; /* Background from custom colors */
}

.page-index__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index__section {
    padding: 30px 0;
}

/* Module 0: Top Section Title + Dual CTA */
.page-index__top-section {
    text-align: center;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 30px;
}

.page-index__page-title {
    font-size: 2.5em; /* Using em for relative sizing, will clamp if needed */
    font-weight: bold;
    color: #F2C14E; /* Main color for H1 */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 44px; /* Minimum touch target height */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #333333; /* Dark text for light button background */
    border: none;
}

.page-index__btn--primary:hover {
    filter: brightness(1.1);
}

.page-index__btn--secondary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #333333; /* Dark text for light button background */
    border: none;
}

.page-index__btn--secondary:hover {
    filter: brightness(1.1);
}

/* Module 1: Announcement / Featured Promo */
.page-index__announcement-section {
    background-color: #111111; /* Card B G from custom colors */
    padding: 40px 0;
    border-top: 1px solid #3A2A12; /* Border from custom colors */
    border-bottom: 1px solid #3A2A12;
}

.page-index__announcement-title {
    font-size: 2em;
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-index__announcement-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__feature-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

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

.page-index__emphasis-text {
    font-style: italic;
    color: #FFD36B; /* Glow color */
    text-align: center;
    font-size: 1.1em;
}

.page-index__text-link {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
}

.page-index__text-link:hover {
    color: #FFD36B; /* Glow color on hover */
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section {
    padding: 40px 0;
}

.page-index__section-title {
    font-size: 2em;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-index__brand-overview-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__fact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.page-index__fact-list li {
    background-color: #111111; /* Card B G */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3A2A12; /* Border */
}

.page-index__card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.page-index__info-card,
.page-index__warning-card {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333333; /* Dark text for light card backgrounds */
    line-height: 1.6;
}

.page-index__info-card {
    background-color: #f9f9f9; /* 188BET demo grey background */
    border: 1px solid #ddd;
}

.page-index__warning-card {
    background-color: #fff4f4; /* 188BET demo light red background */
    border-left: 5px solid #ff4141; /* 188BET demo red border */
}

.page-index__card-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333333; /* Dark text */
}

.page-index__card-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 0;
}

.page-index__card-note {
    font-size: 0.9em;
    font-style: italic;
    color: #555555; /* Darker grey for notes */
}

.page-index__btn--warning {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #333333; /* Dark text */
    border: none;
    margin-top: 20px;
}

.page-index__btn--warning:hover {
    filter: brightness(1.1);
}

/* Module 3: Long SEO Text */
.page-index__long-seo-section {
    padding: 40px 0;
}

.page-index__long-seo-section h2 {
    font-size: 2em;
    color: #F2C14E;
    margin-top: 35px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-index__long-seo-section h3 {
    font-size: 1.5em;
    color: #FFD36B; /* Auxiliary color */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__long-seo-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__long-seo-section ul,
.page-index__long-seo-section ol {
    margin-bottom: 15px;
    padding: 0;
}

.page-index__long-seo-section ul {
    list-style: disc;
    margin-left: 20px;
}

.page-index__long-seo-section ol {
    list-style: decimal;
    margin-left: 25px;
}

.page-index__wp-caption {
    margin: 25px auto;
    text-align: center;
    max-width: 680px; /* Max width for images */
    box-sizing: border-box;
}

.page-index__wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #3A2A12;
}

.page-index__wp-caption figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #FFD36B;
    margin-top: 10px;
}

.page-index__aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index__blockquote-text {
    font-style: italic;
    font-size: 1.2em;
    border-left: 4px solid #F2C14E;
    padding-left: 20px;
    margin: 30px 0;
    color: #FFD36B;
}

.page-index__blockquote-cite {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: #F2C14E;
    margin-top: 10px;
}

/* Module 4: World Cup / Big Event Promo Box */
.page-index__promo-event-section {
    padding: 40px 0;
}

.page-index__promo-box {
    background-color: #fffbe6; /* 188BET demo light yellow background */
    border: 2px dashed #111; /* 188BET demo dashed border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #333333; /* Dark text for light background */
    margin: 0 auto;
    max-width: 800px;
}

.page-index__promo-box-title {
    font-size: 1.8em;
    color: #d62828; /* Emphasis red */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__promo-box p {
    margin-bottom: 15px;
}

.page-index__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-index__promo-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333; /* Dark text */
}

.page-index__btn--promo {
    background: #d62828; /* Emphasis red for promo button */
    color: #ffffff; /* White text for red button */
    border: none;
    margin-top: 20px;
}

.page-index__btn--promo:hover {
    background: #ff4141; /* Lighter red on hover */
}

/* Module 5: Four-Step Registration Tutorial */
.page-index__registration-tutorial-section {
    padding: 40px 0;
}

.page-index__registration-tutorial-section h2 {
    font-size: 2em;
    color: #F2C14E;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-index__registration-tutorial-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__step-title {
    font-size: 1.6em;
    color: #FFD36B;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__registration-info {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 0;
}

.page-index__final-cta-text {
    text-align: center;
    font-size: 1.1em;
    margin-top: 30px;
}

/* Module 6: FAQ + Footer Contact Info */
.page-index__faq-section {
    padding: 40px 0 60px 0;
}

.page-index__faq-section h2 {
    font-size: 2em;
    color: #F2C14E;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-index__faq-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__faq-question-title {
    font-size: 1.4em;
    color: #FFD36B;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__faq-answer-text {
    margin-bottom: 20px;
    text-align: justify;
}

.page-index__contact-intro {
    font-size: 1.1em;
    margin-top: 30px;
    text-align: center;
}

.page-index__contact-info-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: center;
}

.page-index__contact-info-list li {
    margin-bottom: 8px;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
    .page-index__page-title {
        font-size: 2.2em;
    }

    .page-index__section-title,
    .page-index__announcement-title,
    .page-index__long-seo-section h2,
    .page-index__registration-tutorial-section h2,
    .page-index__faq-section h2 {
        font-size: 1.8em;
    }

    .page-index__long-seo-section h3,
    .page-index__step-title,
    .page-index__promo-box-title,
    .page-index__faq-question-title {
        font-size: 1.4em;
    }

    .page-index__article-wrap {
        padding: 0 15px;
    }

    .page-index__card-group {
        flex-direction: column;
        align-items: center;
    }

    .page-index__info-card,
    .page-index__warning-card {
        min-width: unset;
        width: 100%;
        max-width: 600px; /* Constrain width on larger tablets */
    }
}

/* Mobile (max-width: 768px) - MUST include all required blocks */
@media (max-width: 768px) {
    .page-index {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-index__article-wrap {
        padding: 0 15px !important; /* Ensure padding on mobile */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 1. Top Section Title + Dual CTA */
    .page-index__top-section {
        padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
        padding-bottom: 20px !important;
    }

    .page-index__page-title {
        font-size: clamp(1.8em, 5vw, 2.2em); /* Clamp for H1 on mobile */
        margin-bottom: 10px;
    }

    .page-index__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-index__top-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-index__btn,
    .page-index__btn--primary,
    .page-index__btn--secondary,
    .page-index__btn--warning,
    .page-index__btn--promo,
    .page-index a[class*="button"],
    .page-index a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        min-width: unset;
    }

    /* 2. Single-column long text container and related sections */
    .page-index__section {
        padding: 25px 0 !important;
    }

    .page-index__announcement-section,
    .page-index__brand-overview-section,
    .page-index__long-seo-section,
    .page-index__promo-event-section,
    .page-index__registration-tutorial-section,
    .page-index__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__announcement-title,
    .page-index__section-title,
    .page-index__long-seo-section h2,
    .page-index__registration-tutorial-section h2,
    .page-index__faq-section h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-index__long-seo-section h3,
    .page-index__step-title,
    .page-index__faq-question-title {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-index__promo-box-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .page-index__fact-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-index__card-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__info-card,
    .page-index__warning-card {
        padding: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 3. General images and figure */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index__wp-caption {
        margin: 15px auto !important;
        max-width: 100% !important;
    }

    .page-index__wp-caption figcaption {
        font-size: 0.85em;
    }

    /* 4. Buttons and button containers (already covered above with .page-index__btn rules) */
    /* Ensure button groups wrap or stack */
    .page-index__top-cta,
    .page-index__card-group {
        flex-direction: column !important; /* Force vertical stacking for button groups */
        gap: 15px !important;
    }

    /* 5. Registration tutorial and FAQ sections */
    .page-index__registration-tutorial-section p,
    .page-index__faq-section p {
        font-size: 1em;
    }

    .page-index__registration-info,
    .page-index__feature-list,
    .page-index__card-list,
    .page-index__promo-list,
    .page-index__long-seo-section ul,
    .page-index__long-seo-section ol {
        margin-left: 15px;
        font-size: 1em;
    }

    .page-index__contact-info-list {
        text-align: left;
        margin-left: 15px;
    }
}