/* style/index.css */
.page-index {
    color: #333333; /* Dark text for default (light) body background */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: #1A2E59;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-index__text-content {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-index__text-content--centered {
    text-align: center;
}

.page-index__text-link {
    color: #1A2E59;
    text-decoration: underline;
}

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

.page-index__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.05em;
    text-align: center;
}

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

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

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

.page-index__button--secondary:hover {
    background-color: #1A2E59;
    color: #FFD700;
}

.page-index__button--text {
    background-color: transparent;
    color: #1A2E59;
    border: none;
    padding: 0;
    margin-top: 15px;
    display: block;
    text-align: center;
    text-decoration: underline;
}

.page-index__button--text:hover {
    color: #FFD700;
    text-decoration: none;
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.95em;
    margin-top: 15px;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

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

.page-index__hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-index__hero-content {
    max-width: 900px;
    background-color: rgba(26, 46, 89, 0.85); /* Slightly transparent main color overlay */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-index__hero-cta .page-index__button {
    margin: 0 10px;
}

/* About Section */
.page-index__about-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

/* Why Choose Section */
.page-index__why-choose-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-index__feature-card {
    background-color: #f0f5fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
    width: 100%; /* Ensure images are not tiny */
    height: auto;
    max-width: 300px;
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Games Section */
.page-index__games-section {
    background-color: #1A2E59;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-index__games-section .page-index__section-title::after {
    background-color: #ffffff;
}

.page-index__games-section .page-index__text-content {
    color: #f0f0f0;
}

.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: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index__game-image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-index__game-card .page-index__card-title {
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index__game-card .page-index__card-description {
    color: #e0e0e0;
    flex-grow: 1;
}

.page-index__game-card .page-index__button {
    align-self: center;
}

/* Promotions Section */
.page-index__promotions-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

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

.page-index__promo-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-index__promo-card .page-index__card-title {
    color: #1A2E59;
    margin-bottom: 10px;
}

.page-index__promo-card .page-index__card-description {
    color: #555555;
    flex-grow: 1;
}

.page-index__promo-card .page-index__button {
    align-self: center;
}

/* Banking, Responsible Gaming, Support, Join Sections */
.page-index__banking-section, .page-index__responsible-gaming-section, .page-index__support-section, .page-index__join-section {
    padding: 60px 0;
    text-align: center;
}

.page-index__banking-section, .page-index__support-section {
    background-color: #eef4f8;
}

.page-index__join-section {
    background-color: #1A2E59;
    color: #ffffff;
}

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

.page-index__join-section .page-index__section-title::after {
    background-color: #ffffff;
}

.page-index__join-section .page-index__text-content {
    color: #f0f0f0;
}

/* Mobile App Section */
.page-index__mobile-app-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-index__app-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-index__app-qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    border: 5px solid #1A2E59;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
}

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

    .page-index__hero-content {
        padding: 30px;
    }

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

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

    .page-index__hero-cta .page-index__button {
        display: block;
        margin: 15px auto;
    }

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

    .page-index__text-content {
        font-size: 1em;
    }

    .page-index__features-grid, .page-index__games-grid, .page-index__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-index__app-cta {
        flex-direction: column;
    }

    /* Ensure images are responsive and don't overflow on mobile */
    .page-index img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum size for content images */
        min-height: 200px; /* Enforce minimum size for content images */
    }
    .page-index__hero-image {
        min-width: auto;
        min-height: auto;
    }
}

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

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

    .page-index__hero-content {
        padding: 20px;
    }

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