/* style/index.css */

/* Variables for color scheme */
:root {
    --page-index-primary-color: #FFD700; /* Gold */
    --page-index-secondary-color: #8B0000; /* Dark Red */
    --page-index-text-dark: #222222; /* Very dark grey for text on light backgrounds */
    --page-index-text-light: #ffffff; /* White for text on dark backgrounds */
    --page-index-background-light: #f8f8f8; /* Light background */
    --page-index-background-dark: #333333; /* Dark background for contrast */
}

.page-index {
    font-family: 'Arial', sans-serif;
    color: var(--page-index-text-dark);
    line-height: 1.6;
    background-color: var(--page-index-background-light);
}

.page-index .page-index__brand-highlight {
    color: var(--page-index-secondary-color);
    font-weight: bold;
}

/* General Section Styling */
.page-index section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: var(--page-index-text-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-index .page-index__section-title {
    font-size: 2.8em;
    color: var(--page-index-secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.page-index .page-index__section-description {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-index-text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index .page-index__center-cta {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.page-index .page-index__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.page-index .page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index .page-index__btn--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-index .page-index__btn--secondary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-light);
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index .page-index__btn--secondary:hover {
    background-color: #6a0000; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-index .page-index__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 20px;
    background-color: var(--page-index-primary-color);
    color: var(--page-index-secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-index .page-index__btn--small:hover {
    background-color: #e6c200;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.page-index .page-index__btn--text {
    background: none;
    color: var(--page-index-secondary-color);
    padding: 0;
    margin: 0;
    font-size: 1.1em;
    text-decoration: underline;
}

.page-index .page-index__btn--text:hover {
    color: var(--page-index-primary-color);
    text-decoration: none;
}

.page-index .page-index__btn--large {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 35px;
}

/* Hero Section */
.page-index__hero-section {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, var(--page-index-secondary-color) 100%);
    color: var(--page-index-text-light);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    border-radius: 0; /* No border-radius for hero to be full width */
    box-shadow: none;
}

.page-index__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.page-index__hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--page-index-text-light); /* Ensure title is white */
}

.page-index__hero-title .page-index__brand-highlight {
    color: var(--page-index-primary-color); /* Gold highlight for brand name */
}

.page-index__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-index__hero-image-wrapper {
    margin-top: 40px;
    max-width: 100%;
}

.page-index__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    filter: none; /* Ensure no image color alteration */
}


/* About Section */
.page-index__about-section {
    background-color: var(--page-index-background-light);
}

.page-index__about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__about-text {
    flex: 1;
    font-size: 1.1em;
    color: var(--page-index-text-dark);
}

.page-index__about-text p {
    margin-bottom: 15px;
}

.page-index__about-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-index__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no image color alteration */
}

/* Games Section */
.page-index__games-section {
    background-color: var(--page-index-text-light);
}

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

.page-index__game-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px 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;
    align-items: center;
}

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

.page-index__game-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: none; /* Ensure no image color alteration */
}

.page-index__game-title {
    font-size: 1.6em;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index__game-description {
    font-size: 1em;
    color: var(--page-index-text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Promotions Section */
.page-index__promo-section {
    background-color: var(--page-index-background-light);
}

.page-index__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__promo-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-index__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: none; /* Ensure no image color alteration */
}

.page-index__promo-title {
    font-size: 1.5em;
    color: var(--page-index-secondary-color);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-index__promo-text {
    font-size: 1em;
    color: var(--page-index-text-dark);
    padding: 0 15px 20px;
}

/* Why Choose Section */
.page-index__why-choose-section {
    background-color: var(--page-index-text-light);
}

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

.page-index__why-choose-item {
    background-color: var(--page-index-background-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__why-choose-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: none; /* Ensure no image color alteration */
}

.page-index__feature-title {
    font-size: 1.4em;
    color: var(--page-index-secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-index__feature-description {
    font-size: 0.95em;
    color: var(--page-index-text-dark);
}

/* App Section */
.page-index__app-section {
    background: linear-gradient(90deg, var(--page-index-secondary-color) 0%, #a30000 100%);
    color: var(--page-index-text-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 40px auto; /* Adjust margin for section within main */
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__app-content {
    flex: 1;
}

.page-index__app-section .page-index__section-title {
    color: var(--page-index-text-light);
    text-align: left;
    margin-bottom: 25px;
    font-size: 2.5em;
}

.page-index__app-section .page-index__section-title .page-index__brand-highlight {
    color: var(--page-index-primary-color);
}

.page-index__app-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-index__app-features li {
    font-size: 1.05em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__app-features li::before {
    content: '✔';
    color: var(--page-index-primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-index__app-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-index__app-image {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no image color alteration */
}


/* FAQ Section */
.page-index__faq-section {
    background-color: var(--page-index-background-light);
}

.page-index__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    font-size: 1.3em;
    color: var(--page-index-secondary-color);
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
}

.page-index__faq-answer {
    font-size: 1.0em;
    color: var(--page-index-text-dark);
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 5px;
}

/* CTA Final Section */
.page-index__cta-final {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-secondary-color);
    text-align: center;
    padding: 80px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__cta-final .page-index__section-title {
    color: var(--page-index-secondary-color);
    font-size: 3.2em;
}

.page-index__cta-final .page-index__section-description {
    color: var(--page-index-secondary-color);
    margin-bottom: 50px;
    font-size: 1.3em;
}

.page-index__cta-final .page-index__brand-highlight {
    color: var(--page-index-secondary-color);
}

/* Detail Pages Section */
.page-index__detail-pages-section {
    background-color: var(--page-index-background-light);
}

.page-index__detail-page-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index__detail-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px 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__detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__detail-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.page-index__detail-title a {
    color: var(--page-index-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__detail-title a:hover {
    color: var(--page-index-primary-color);
    text-decoration: underline;
}

.page-index__detail-description {
    font-size: 1em;
    color: var(--page-index-text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3.2em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__about-content,
    .page-index__app-section {
        flex-direction: column;
        text-align: center;
    }
    .page-index__app-section .page-index__section-title {
        text-align: center;
    }
    .page-index__app-features {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .page-index section {
        padding: 40px 15px;
    }
    .page-index__hero-title {
        font-size: 2.5em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn--secondary {
        margin-left: 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-description {
        font-size: 1em;
    }
    .page-index__game-categories,
    .page-index__promo-grid,
    .page-index__why-choose-grid,
    .page-index__detail-page-list {
        grid-template-columns: 1fr;
    }
    .page-index__app-section {
        margin: 20px auto;
        padding: 40px 20px;
    }
    .page-index__app-image {
        max-width: 80%;
    }
    .page-index__cta-final .page-index__section-title {
        font-size: 2.5em;
    }
    .page-index__cta-final .page-index__section-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__btn {
        width: 100%;
        padding: 12px 20px;
    }
    .page-index__btn--large {
        padding: 15px 30px;
    }
    .page-index__game-card, .page-index__promo-card, .page-index__why-choose-item, .page-index__detail-card {
        padding: 20px;
    }
    .page-index__faq-item {
        padding: 15px 20px;
    }
    .page-index__app-section .page-index__section-title {
        font-size: 2em;
    }
}