/* style/index.css */
.page-index {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__section-title {
    font-size: 2.8em;
    color: #000000; /* Main color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    font-weight: bold;
}

.page-index__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
}

.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;
    cursor: pointer;
    text-align: center;
}

.page-index__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000; /* Text color for register button */
    border: 2px solid #000000;
}

.page-index__button--register:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.page-index__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Text color for login button */
    border: 2px solid #FCBC45;
    margin-left: 15px;
}

.page-index__button--login:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-index__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--download:hover {
    background-color: #e0a53b;
    color: #000000;
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index__button--small:hover {
    background-color: #333333;
}

.page-index__button--large {
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    margin-top: 30px;
}

.page-index__button--large:hover {
    background-color: #e0a53b;
    color: #000000;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding: 0;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}

.page-index__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    width: 90%;
}

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FCBC45; /* Highlight title with accent color */
}

.page-index__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-index__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* About Section (Why Choose BBJL) */
.page-index__about-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

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

.page-index__grid-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__grid-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__grid-text {
    font-size: 1em;
    color: #666666;
}

/* Games Section */
.page-index__games-section {
    padding: 60px 0;
}

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

.page-index__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-index__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__game-card-title {
    font-size: 1.6em;
    color: #000000;
    margin: 20px 0 10px;
    font-weight: bold;
}

.page-index__game-card-title a {
    text-decoration: none;
    color: inherit;
}

.page-index__game-card-title a:hover {
    color: #FCBC45;
}

.page-index__game-card-text {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-index__game-card .page-index__button {
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promo-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-index__promo-image {
    flex: 1 1 500px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__promo-text {
    flex: 1 1 400px;
    padding: 20px;
}

.page-index__promo-subtitle {
    font-size: 2em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__promo-description {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 30px;
}

/* Mobile App Section */
.page-index__mobile-app-section {
    padding: 60px 0;
}

.page-index__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-direction: row-reverse; /* Image on right */
}

.page-index__app-image {
    flex: 1 1 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__app-details {
    flex: 1 1 400px;
    padding: 20px;
}

.page-index__app-subtitle {
    font-size: 2em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__app-description {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 30px;
}

/* Support Section */
.page-index__support-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-index__support-image {
    flex: 1 1 400px;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-index__support-details {
    flex: 1 1 400px;
    padding: 20px;
}

.page-index__support-subtitle {
    font-size: 2em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__support-description {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 30px;
}

/* CTA Section */
.page-index__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000;
    color: #FFFFFF;
}

.page-index__cta-section .page-index__section-title {
    color: #FCBC45;
}

.page-index__cta-section .page-index__section-intro {
    color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-index__faq-list {
    margin-top: 40px;
}

.page-index__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-index__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-index__faq-answer a {
    color: #FCBC45;
    text-decoration: none;
}

.page-index__faq-answer a:hover {
    text-decoration: underline;
}

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

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

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

    .page-index__promo-content,
    .page-index__app-content,
    .page-index__support-content {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
    }

    .page-index__promo-text,
    .page-index__app-details,
    .page-index__support-details {
        padding: 0;
    }

    .page-index__promo-image,
    .page-index__app-image,
    .page-index__support-image {
        max-width: 80%;
    }
}

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

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

    .page-index__hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-index__button--login {
        margin-left: 0;
    }

    .page-index__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

    .page-index__section-intro {
        margin-bottom: 30px;
    }

    .page-index__grid,
    .page-index__game-categories {
        grid-template-columns: 1fr;
    }

    .page-index__grid-item,
    .page-index__game-card {
        padding: 20px;
    }

    .page-index__grid-image,
    .page-index__game-image,
    .page-index__promo-image,
    .page-index__app-image,
    .page-index__support-image {
        max-width: 100%;
        height: auto; /* Ensure images scale correctly */
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }

    /* Enforce min-size for all images in content area */
    .page-index img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }

    .page-index__promo-subtitle,
    .page-index__app-subtitle,
    .page-index__support-subtitle {
        font-size: 1.6em;
    }

    .page-index__button--large {
        width: 100%;
        box-sizing: border-box;
    }
}

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

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

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

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

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