/* style/index.css */

:root {
    --ysb66-main-color: #C91F17;
    --ysb66-aux-color: #E53935;
    --ysb66-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --ysb66-card-bg: #D32F2F;
    --ysb66-background: #B71C1C;
    --ysb66-text-main: #FFF5E1;
    --ysb66-border: #F2B544;
    --ysb66-glow: #FFCC66;
    --ysb66-gold: #F4D34D;
    --ysb66-deep-red: #7A0E0E;
    --header-offset: 122px; /* Default value, assumed to be handled by shared.css body padding-top */
}

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

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

.page-index__section {
    padding: 30px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Module 0: Top Section + Dual CTA */
.page-index__top-section {
    padding-top: 10px; /* Minimal padding, assuming body handles --header-offset */
    text-align: center;
    background-color: var(--ysb66-deep-red);
    color: var(--ysb66-text-main);
    padding-bottom: 30px;
}

.page-index__page-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--ysb66-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px; /* Constraint to avoid overly wide title */
    margin-left: auto;
    margin-right: auto;
}

.page-index__top-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    min-height: 44px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-index__btn--primary {
    background: var(--ysb66-btn-gradient);
    color: #333333; /* Ensure contrast on gold gradient */
    border: 2px solid var(--ysb66-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-index__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Module 1: Announcement / Main Promo */
.page-index__announcement-section {
    background-color: var(--ysb66-card-bg);
    color: var(--ysb66-text-main);
    text-align: justify;
}

.page-index__section-title {
    font-size: 2.2em;
    color: var(--ysb66-gold);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
}

.page-index__section-title--notification {
    color: var(--ysb66-gold);
    font-size: 2.4em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-index__feature-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-index__emphasis-text {
    text-align: center;
    font-style: italic;
    color: var(--ysb66-gold);
    font-size: 1.2em;
    margin-top: 20px;
}

.page-index__emphasis-text a {
    color: var(--ysb66-gold);
    text-decoration: underline;
}

.page-index__emphasis-text a:hover {
    color: #fff;
}

/* Module 2: Brand Overview + Info Cards */
.page-index__brand-overview-section {
    background-color: var(--ysb66-background);
    color: var(--ysb66-text-main);
    text-align: justify;
}

.page-index__fact-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-index__fact-list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-index__info-card {
    background-color: #f9f9f9; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-index__info-card p strong {
    color: var(--ysb66-main-color);
    font-size: 1.1em;
}

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

.page-index__info-card ul li {
    margin-bottom: 5px;
}

.page-index__info-card em {
    font-size: 0.9em;
    color: #666;
}

.page-index__warning-card {
    background-color: #fff4f4; /* Very light red background */
    color: #333333; /* Dark text for contrast */
    border-left: 5px solid #ff4141; /* Red border for warning */
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 1.05em;
}

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

/* Module 3: Long SEO Content */
.page-index__long-content-section {
    background-color: #ffffff; /* White background for long text */
    color: #333333; /* Dark text for readability */
    padding-bottom: 50px;
    text-align: justify;
}

.page-index__long-content-section h2 {
    font-size: 2em;
    color: var(--ysb66-main-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__long-content-section h3 {
    font-size: 1.6em;
    color: var(--ysb66-deep-red);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__long-content-section p {
    margin-bottom: 15px;
}

.page-index__long-content-section ul,
.page-index__long-content-section ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-index__long-content-section ul li,
.page-index__long-content-section ol li {
    margin-bottom: 8px;
}

.page-index__long-content-section a {
    color: var(--ysb66-main-color);
    text-decoration: underline;
}

.page-index__long-content-section a:hover {
    color: var(--ysb66-deep-red);
}

.page-index__wp-caption {
    text-align: center;
    margin: 25px auto;
    max-width: 680px;
}

.page-index__wp-caption img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

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

.page-index__blockquote {
    background-color: #f0f0f0; /* Light background for quote */
    border-left: 5px solid var(--ysb66-main-color);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.15em;
    color: #333333;
    border-radius: 0 8px 8px 0;
}

.page-index__blockquote cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--ysb66-deep-red);
    text-align: right;
}

/* Module 4: World Cup / Big Event Promo Box */
.page-index__promo-box-section {
    background-color: var(--ysb66-background);
    color: var(--ysb66-text-main);
}

.page-index__promo-box {
    background-color: #fffbe6; /* Light yellow background */
    border: 2px dashed #111; /* Dashed border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #333333; /* Dark text for contrast */
}

.page-index__promo-box-title {
    font-size: 2em;
    color: var(--ysb66-main-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-index__promo-features li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: var(--ysb66-glow);
}

.page-index__btn--promo {
    background-color: #d62828; /* Red button */
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-index__btn--promo:hover {
    background-color: #ff4141;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Module 5: Four-Step Registration Tutorial */
.page-index__registration-tutorial-section {
    background-color: var(--ysb66-card-bg);
    color: var(--ysb66-text-main);
    text-align: justify;
}

.page-index__registration-tutorial-section h2 {
    color: var(--ysb66-gold);
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 25px;
}

.page-index__registration-tutorial-section h3 {
    font-size: 1.8em;
    color: var(--ysb66-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Module 6: FAQ + Footer Contact Info */
.page-index__faq-section {
    background-color: var(--ysb66-background);
    color: var(--ysb66-text-main);
    text-align: justify;
    padding-bottom: 50px;
}

.page-index__faq-section h2 {
    color: var(--ysb66-gold);
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 25px;
}

.page-index__faq-section h3 {
    font-size: 1.6em;
    color: var(--ysb66-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__contact-info {
    background-color: var(--ysb66-card-bg);
    color: var(--ysb66-text-main);
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__contact-info p strong {
    font-size: 1.2em;
    color: var(--ysb66-gold);
    margin-bottom: 10px;
    display: block;
}

.page-index__contact-info ul {
    list-style-type: none;
    padding: 0;
    margin-top: 15px;
}

.page-index__contact-info ul li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-index__contact-info ul li strong {
    color: var(--ysb66-gold);
}

/* General text styles */
.page-index strong {
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index__page-title {
        font-size: 2.4em;
    }

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

    .page-index__section-title--notification {
        font-size: 2.2em;
    }

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

    .page-index__long-content-section h2 {
        font-size: 1.8em;
    }

    .page-index__long-content-section h3 {
        font-size: 1.5em;
    }

    .page-index__registration-tutorial-section h2,
    .page-index__faq-section h2 {
        font-size: 2em;
    }

    .page-index__registration-tutorial-section h3,
    .page-index__faq-section h3 {
        font-size: 1.4em;
    }

    .page-index__btn {
        padding: 10px 25px;
        font-size: 1em;
    }

    .page-index__btn--promo {
        padding: 12px 30px;
        font-size: 1.1em;
    }
}

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

    /* Top Section + Dual CTA */
    .page-index__top-section {
        padding-top: 10px !important;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 20px;
    }

    .page-index__page-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-index__top-cta {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__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;
        padding-right: 15px;
    }

    /* Announcement / Main Promo */
    .page-index__announcement-section,
    .page-index__brand-overview-section,
    .page-index__long-content-section,
    .page-index__promo-box-section,
    .page-index__registration-tutorial-section,
    .page-index__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__section-title,
    .page-index__section-title--notification {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-index__info-card,
    .page-index__warning-card,
    .page-index__promo-box,
    .page-index__contact-info {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-index__wp-caption {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Long Content Section */
    .page-index__long-content-section h2 {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-index__long-content-section h3 {
        font-size: 1.3em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    /* World Cup Promo Box */
    .page-index__promo-box-title {
        font-size: 1.6em;
    }

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

    .page-index__btn--promo {
        font-size: 1em;
        padding: 10px 20px;
    }

    /* Registration Tutorial & FAQ */
    .page-index__registration-tutorial-section h2,
    .page-index__faq-section h2 {
        font-size: 1.8em;
    }

    .page-index__registration-tutorial-section h3,
    .page-index__faq-section h3 {
        font-size: 1.3em;
    }

    .page-index__contact-info p strong {
        font-size: 1.1em;
    }

    .page-index__contact-info ul li {
        font-size: 1em;
    }

    .page-index__feature-list,
    .page-index__fact-list,
    .page-index__why-join-list,
    .page-index__long-content-section ul,
    .page-index__long-content-section ol {
        padding-left: 20px;
    }
}