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

.page-index__section {
    padding: 60px 20px;
    margin: 0 auto;
}

.page-index__section--dark {
    background-color: #0A192F;
    color: #ffffff;
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__section-title {
    font-size: 2.5em;
    color: #0A192F;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__section--dark .page-index__section-title {
    color: #FFD700;
}

.page-index__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.page-index__text-link {
    color: #0A192F;
    text-decoration: underline;
}

.page-index__section--dark .page-index__text-link {
    color: #FFD700;
}

.page-index__text-link:hover {
    opacity: 0.8;
}

.page-index__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.page-index__button--primary {
    background-color: #FFD700;
    color: #0A192F;
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-index__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    background-color: #0A192F;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
}

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

.page-index__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
    font-weight: bold;
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-index__hero-actions .page-index__button {
    margin: 10px;
    min-width: 180px;
}

/* Legitimacy Section */
.page-index__legitimacy-section {
    background-color: #f8f8f8;
}

.page-index__legitimacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__legitimacy-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-index__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-index__card-title {
    font-size: 1.5em;
    color: #0A192F;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__card-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index__card-link:hover {
    color: #e6c200;
}

/* Games Section */
.page-index__games-section {
    background-color: #ffffff;
}

.page-index__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Promotions Section */
.page-index__promotions-section {
    background-color: #f0f0f0;
}

.page-index__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__promotion-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Transactions Section */
.page-index__transactions-section {
    background-color: #ffffff;
}

.page-index__transactions-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-index__transactions-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-index__transactions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 500px;
}

.page-index__transactions-item {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    font-size: 1.05em;
}

.page-index__transactions-item:last-child {
    margin-bottom: 0;
}

/* App Section */
.page-index__app-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-index__app-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-index__app-content .page-index__section-title,
.page-index__app-content .page-index__section-intro {
    text-align: left;
}

.page-index__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Section */
.page-index__why-choose-section {
    background-color: #f8f8f8;
}

.page-index__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__why-choose-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
}

.page-index__why-choose-title {
    font-size: 1.4em;
    color: #0A192F;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__why-choose-description {
    font-size: 1em;
    color: #555555;
}

.page-index__call-to-action {
    text-align: center;
    margin-top: 50px;
}

.page-index__call-to-action .page-index__button {
    font-size: 1.2em;
    padding: 15px 35px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-container {
    text-align: center;
}

.page-index__responsible-gaming-container .page-index__section-title {
    color: #FFD700;
}

.page-index__responsible-gaming-container .page-index__section-intro {
    color: #e0e0e0;
}

.page-index__responsible-gaming-container .page-index__button {
    margin-top: 30px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    .page-index__hero-section {
        min-height: 500px;
    }

    .page-index__hero-title {
        font-size: 2.5em;
    }

    .page-index__hero-description {
        font-size: 1.1em;
    }

    .page-index__hero-actions {
        flex-direction: column;
    }

    .page-index__hero-actions .page-index__button {
        width: 100%;
        margin: 10px 0;
    }

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

    .page-index__section-intro {
        font-size: 1em;
    }

    .page-index__legitimacy-grid,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__why-choose-grid {
        grid-template-columns: 1fr;
    }

    .page-index__transactions-content {
        flex-direction: column;
    }

    .page-index__app-container {
        flex-direction: column-reverse;
    }

    .page-index__app-content {
        text-align: center;
    }

    .page-index__app-content .page-index__section-title,
    .page-index__app-content .page-index__section-intro {
        text-align: center;
    }

    /* Ensure content area images are not too wide on mobile */
    .page-index img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    /* Prevent hero image from overflowing on mobile */
    .page-index__hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }

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

    .page-index__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-index__call-to-action .page-index__button {
        font-size: 1em;
        padding: 12px 25px;
    }
}