/* General styles for the page-index scope */
.page-index {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-bottom: 30px; /* Ensure some space before footer */
}

/* Module 1: Top Section (H1 + Lead + CTA) */
.page-index__top-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px 40px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    text-align: center;
    background: #f8f9fa; /* Light background for the top section */
    border-bottom: 1px solid #e0e0e0;
}

.page-index__top-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
    font-weight: 700;
    color: #26A9E0; /* Brand color for H1 */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-index__top-lead {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #EA7C07; /* Login/Register color for primary CTA */
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__start-btn:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

/* Module 2 & 3: Casino & Sports Blocks */
.page-index__casino-main,
.page-index__sports-section {
    display: grid;
    grid-template-columns: 5fr 7fr; /* Desktop layout */
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 15px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #ffffff; /* Light background */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-index__sports-section {
    grid-template-columns: 7fr 5fr; /* Mirrored layout */
}

.page-index__casino-image-wrapper,
.page-index__sports-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__casino-image,
.page-index__sports-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-index__casino-title,
.page-index__sports-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0; /* Brand color */
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-index__casino-content p,
.page-index__sports-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-index__reg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__reg-button:hover {
    background-color: #1f8ec7;
    transform: translateY(-1px);
}

/* Module 4: Promo Code Full-width Bar + Table */
.page-index__promo-section {
    background: #26A9E0; /* Primary brand color for dark background */
    color: #ffffff; /* White text for dark background */
    padding: 50px 15px;
    text-align: center;
    margin: 40px 0;
}

.page-index__promo-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-index__promo-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.page-index__promo-description {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-index__promo-table-wrapper {
    max-width: 100%;
    overflow-x: auto; /* For responsive table */
    margin: 0 auto 20px;
}

.page-index__promo-table {
    width: 100%;
    min-width: 600px; /* Ensure table doesn't get too narrow */
    border-collapse: collapse;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for table rows */
    border-radius: 8px;
    overflow: hidden;
}

.page-index__promo-table th,
.page-index__promo-table td {
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    font-size: 16px;
}

.page-index__promo-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.page-index__promo-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-index__promo-disclaimer {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Module 5: Official Website Description */
.page-index__official-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-color: #f8f9fa; /* Light background */
    border-left: 8px solid #26A9E0; /* Emphasized left border */
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.page-index__official-content-wrapper {
    flex: 1;
}

.page-index__official-title {
    font-size: 30px;
    font-weight: 700;
    color: #26A9E0; /* Brand color */
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Module 6: Advantages List + Rating + User Reviews */
.page-index__rating-section {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Desktop layout */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 15px;
    box-sizing: border-box;
    background-color: #ffffff; /* Light background */
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.page-index__benefits-title {
    font-size: 28px;
    font-weight: 700;
    color: #26A9E0; /* Brand color */
    margin-bottom: 20px;
}

.page-index__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-index__benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
}

.page-index__benefits-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #26A9E0;
    font-size: 20px;
    line-height: 1;
}

.page-index__rating-title {
    font-size: 28px;
    font-weight: 700;
    color: #26A9E0; /* Brand color */
    margin-bottom: 20px;
}

.page-index__overall-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #EA7C07; /* Login color for emphasis */
}

.page-index__rating-score {
    margin-right: 5px;
}

.page-index__stars {
    display: flex;
    margin-left: 10px;
}

.page-index__star {
    font-size: 28px;
    color: #e0e0e0; /* Grey for inactive stars */
    cursor: pointer;
    transition: color 0.2s ease;
}

.page-index__star.is-active {
    color: #EA7C07; /* Orange for active stars */
}

.page-index__rating-value {
    font-size: 14px;
    color: #666666;
    margin-top: 10px;
    margin-left: 10px;
}

.page-index__review-list {
    margin-top: 30px;
}

.page-index__review-item {
    background-color: #f8f9fa; /* Light background for review cards */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.page-index__review-text {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 15px;
}

.page-index__reviewer-info {
    font-size: 14px;
    color: #666666;
    text-align: right;
}

.page-index__reviewer-name {
    font-weight: 600;
    color: #333333;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    /* Top Section */
    .page-index__top-text {
        padding: 10px 15px 30px;
    }

    .page-index__top-title {
        font-size: clamp(24px, 7vw, 36px); /* Adjust H1 size for mobile */
    }

    .page-index__top-lead {
        font-size: 16px;
    }

    .page-index__start-btn {
        font-size: 18px;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Casino & Sports Blocks - single column */
    .page-index__casino-main,
    .page-index__sports-section {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image order for Casino (Image then Text) */
    .page-index__casino-main .page-index__casino-image-wrapper {
        order: 1;
    }
    .page-index__casino-main .page-index__casino-content {
        order: 2;
    }

    /* Image order for Sports (Text then Image) */
    .page-index__sports-section .page-index__sports-content {
        order: 1;
    }
    .page-index__sports-section .page-index__sports-image-wrapper {
        order: 2;
    }

    .page-index__casino-title,
    .page-index__sports-title {
        font-size: 26px;
        margin-top: 20px; /* Add space above title if image comes first */
    }
    .page-index__sports-title {
        margin-top: 0; /* No extra margin if content is first */
    }

    .page-index__reg-button {
        font-size: 16px;
        padding: 10px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Promo Section */
    .page-index__promo-section {
        padding: 40px 15px;
        margin: 30px 0;
    }

    .page-index__promo-title {
        font-size: 28px;
    }

    .page-index__promo-subtitle {
        font-size: 18px;
    }

    .page-index__promo-table-wrapper {
        padding: 0 5px; /* Add small padding for table wrapper on mobile */
    }

    .page-index__promo-table {
        min-width: unset; /* Allow table to shrink, but overflow-x handles too small */
    }

    .page-index__promo-table th,
    .page-index__promo-table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Official Section */
    .page-index__official-section {
        flex-direction: column;
        padding: 30px 15px;
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-left: none;
        border-top: 8px solid #26A9E0;
        border-radius: 10px 10px 0 0;
    }

    .page-index__official-title {
        font-size: 26px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Rating Section - single column */
    .page-index__rating-section {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-index__benefits-title,
    .page-index__rating-title {
        font-size: 26px;
        text-align: center;
    }

    .page-index__overall-rating {
        justify-content: center;
        font-size: 20px;
    }

    .page-index__star {
        font-size: 24px;
    }

    .page-index__review-item {
        padding: 15px;
    }

    .page-index__review-text {
        font-size: 14px;
    }
    
    /* Universal image responsive styles for mobile */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Universal container responsive styles for mobile */
    .page-index__top-text,
    .page-index__casino-main,
    .page-index__sports-section,
    .page-index__promo-section,
    .page-index__official-section,
    .page-index__rating-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}