/* style/index.css */

.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-index__section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

/* Module 0: Top Section */
.page-index__top-section {
    padding-top: 10px; /* Adheres to 10px top spacing */
    text-align: center;
    background-color: #FFFFFF;
}

.page-index__page-title {
    font-size: 2.8em; /* Adjusted for H1 font-size constraint */
    font-weight: bold;
    color: #26A9E0; /* Brand color */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #555555;
}

.page-index__top-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container fills width */
    max-width: 500px; /* Limit overall width for aesthetics */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-index__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    min-height: 44px; /* Minimum touch target size */
    box-sizing: border-box;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    flex-grow: 1; /* Allow buttons to grow */
    flex-basis: 0; /* Default flex basis */
}

.page-index__btn--primary {
    background-color: #0066ff; /* CTA blue from 188BET visual tokens */
    color: #ffffff;
    border: 2px solid #0066ff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-index__btn--primary:hover {
    background-color: #0056e6;
    border-color: #0056e6;
}

.page-index__btn--secondary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-index__btn--secondary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

/* Module 1: Announcement Section */
.page-index__announcement-section {
    background-color: #f9f9f9;
}

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

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

.page-index__feature-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #555555;
}

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

.page-index__highlight-text {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #d62828; /* Emphasis red */
    margin-top: 30px;
}

.page-index__link-highlight {
    color: #d62828;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__link-highlight:hover {
    text-decoration: underline;
    color: #ed1c24;
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-index__fact-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-index__fact-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #555555;
}

.page-index__fact-list li::before {
    content: "•";
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-index__info-card {
    background-color: #f9f9f9; /* Gray background for info card */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #333333;
}

.page-index__info-card p {
    text-align: left;
    margin-bottom: 15px;
}

.page-index__info-card ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-index__info-card em {
    font-style: italic;
    color: #777777;
}

.page-index__warning-card {
    background-color: #fff4f4; /* Light red background for warning card */
    border-left: 5px solid #ff4141; /* Red left border */
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #d62828; /* Red text */
    font-weight: bold;
}

.page-index__warning-card strong {
    color: #d62828;
}

/* Module 3: Long SEO Content */
.page-index__seo-content h2 {
    font-size: 2em;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-index__seo-content h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left; /* H3 can be left aligned */
}

.page-index__seo-content p {
    margin-bottom: 15px;
    text-align: justify;
}

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

.page-index__wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

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

.page-index__identification-list,
.page-index__why-join-list,
.page-index__product-list {
    list-style-type: decimal; /* For identification list */
    margin-left: 25px;
    margin-bottom: 20px;
    color: #555555;
}

.page-index__why-join-list {
    list-style-type: disc;
}

.page-index__product-list {
    list-style-type: disc;
}

.page-index__seo-content blockquote {
    background-color: #f0f8ff;
    border-left: 5px solid #26A9E0;
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #555555;
    text-align: left;
}

.page-index__blockquote-text {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.page-index__seo-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: bold;
    color: #26A9E0;
}

/* Module 4: World Cup / Promo Box */
.page-index__promo-box-section {
    background-color: #FFFFFF;
}

.page-index__promo-box {
    background-color: #fffbe6; /* Light yellow background */
    border: 2px dashed #111; /* Dashed border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    box-sizing: border-box;
}

.page-index__promo-title {
    font-size: 1.8em;
    color: #d62828; /* Red emphasis */
    margin-bottom: 20px;
}

.page-index__promo-features {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-index__promo-features li {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-index__promo-features li::before {
    content: "⭐"; /* Star icon */
    position: absolute;
    left: 0;
    top: 0;
}

.page-index__btn--promo {
    background-color: #d62828; /* Emphasis red */
    color: #ffffff;
    border: 2px solid #d62828;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    padding: 15px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.page-index__btn--promo:hover {
    background-color: #c22525;
    border-color: #c22525;
}

/* Module 5: Registration Tutorial */
.page-index__registration-tutorial-section {
    background-color: #f9f9f9;
}

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

.page-index__registration-tutorial-section > p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

.page-index__step-item {
    margin-bottom: 40px;
}

.page-index__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    text-align: center;
}

.page-index__step-item p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Module 6: FAQ + Contact Info */
.page-index__faq-section {
    background-color: #FFFFFF;
}

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

.page-index__faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 20px;
}

.page-index__faq-item:last-of-type {
    border-bottom: none;
}

.page-index__faq-question {
    font-size: 1.4em;
    color: #26A9E0;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.page-index__faq-answer {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

.page-index__closing-text {
    text-align: center;
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 40px;
    color: #555555;
}

.page-index__contact-info {
    margin-top: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.page-index__contact-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-index__contact-list {
    list-style-type: none;
    padding-left: 0;
}

.page-index__contact-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555555;
}

.page-index__contact-list a {
    color: #0066ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__contact-list a:hover {
    text-decoration: underline;
    color: #0056e6;
}

/* General image styling for content area */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Ensure padding/border is included in width */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. Top section */
    .page-index__top-section {
        padding-top: 10px !important; /* Fixed 10px top spacing */
    }

    .page-index__page-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .page-index__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-index__top-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index__btn,
    .page-index__btn--primary,
    .page-index__btn--secondary,
    .page-index__btn--promo {
        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;
        font-size: 1em; /* Adjust button font size for mobile */
    }

    /* 2. Single column content container (Article Wrap) and cards */
    .page-index__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-index__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Info and Warning Cards */
    .page-index__info-card,
    .page-index__warning-card {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* SEO Content */
    .page-index__seo-content h2 {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .page-index__seo-content h3 {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
        padding: 0 10px;
    }

    .page-index__seo-content p {
        padding: 0 5px; /* Slightly less padding for paragraphs */
    }

    /* 3. Generic images and figure */
    .page-index__wp-caption {
        margin: 15px auto;
        padding: 0 5px;
    }

    .page-index__wp-caption img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Promo Box */
    .page-index__promo-box {
        padding: 25px;
        margin: 30px auto;
    }

    .page-index__promo-title {
        font-size: 1.5em;
    }

    .page-index__promo-features li {
        font-size: 1em;
    }

    /* 4. Buttons and button containers */
    .page-index__top-cta { /* Already covered above */ }
    .page-index__btn--promo { /* Already covered above */}}