/* style/index.css */

/* Biến CSS cho màu sắc */
:root {
    --page-index-primary-color: #FFD700; /* Gold */
    --page-index-secondary-color: #2C3E50; /* Dark Blue */
    --page-index-text-light: #FFFFFF; /* White */
    --page-index-text-dark: #1a252f; /* Very dark blue for text on light backgrounds */
    --page-index-background-light: #f5f5f5;
    --page-index-background-dark: #202d3d;
}

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

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

.page-index-section-title {
    font-size: 2.5em;
    color: var(--page-index-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-index-highlight {
    color: var(--page-index-primary-color);
}

/* Buttons */
.page-index-btn {
    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;
}

.page-index-btn-primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-secondary-color); /* Dark text on gold */
    border: 2px solid var(--page-index-primary-color);
}

.page-index-btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    color: var(--page-index-secondary-color);
}

.page-index-btn-secondary {
    background-color: transparent;
    color: var(--page-index-secondary-color); /* Dark blue text */
    border: 2px solid var(--page-index-secondary-color);
}

.page-index-btn-secondary:hover {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-light); /* White text on dark blue */
}

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

.page-index-btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Hero Section */
.page-index-hero {
    background: linear-gradient(135deg, var(--page-index-primary-color) 0%, #ffeb8c 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: var(--page-index-secondary-color);
}

.page-index-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,gold_pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 1;
}

.page-index-hero .page-index-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.page-index-hero-content {
    flex: 1;
    min-width: 300px;
}

.page-index-hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-index-secondary-color);
}

.page-index-hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--page-index-secondary-color);
}

.page-index-hero-actions .page-index-btn {
    margin-right: 15px;
}

.page-index-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* About Section */
.page-index-about {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

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

.page-index-feature-item:hover {
    transform: translateY(-5px);
}

.page-index-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.page-index-feature-title {
    font-size: 1.8em;
    color: var(--page-index-secondary-color);
    margin-bottom: 15px;
}

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

/* Games Section */
.page-index-games {
    padding: 80px 0;
    background-color: var(--page-index-background-dark);
    color: var(--page-index-text-light);
}

.page-index-games .page-index-section-title {
    color: var(--page-index-primary-color);
}

.page-index-games .page-index-section-subtitle {
    color: var(--page-index-text-light);
}

.page-index-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-index-game-item {
    background-color: var(--page-index-secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-game-item:hover {
    transform: translateY(-5px);
}

.page-index-game-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index-game-title {
    font-size: 1.6em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
}

.page-index-game-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index-promotions {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

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

.page-index-promo-item:hover {
    transform: translateY(-5px);
}

.page-index-promo-image {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index-promo-title {
    font-size: 1.6em;
    color: var(--page-index-secondary-color);
    margin-bottom: 10px;
}

.page-index-promo-description {
    font-size: 0.95em;
    color: var(--page-index-text-dark);
    margin-bottom: 20px;
}

/* APP Download Section */
.page-index-app-download {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--page-index-secondary-color) 0%, #1a252f 100%);
    color: var(--page-index-text-light);
}

.page-index-app-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-index-app-content {
    flex: 1;
    min-width: 300px;
}

.page-index-app-download .page-index-section-title {
    color: var(--page-index-primary-color);
    text-align: left;
}

.page-index-app-download .page-index-section-subtitle {
    color: var(--page-index-text-light);
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index-app-description {
    font-size: 1em;
    margin-bottom: 30px;
}

.page-index-app-actions .page-index-btn {
    margin-right: 15px;
}

.page-index-app-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Detail Pages Section */
.page-index-detail-pages {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

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

.page-index-detail-item {
    background-color: var(--page-index-text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-index-detail-item:hover {
    transform: translateY(-5px);
}

.page-index-detail-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-index-detail-title a {
    color: var(--page-index-secondary-color);
    text-decoration: none;
}

.page-index-detail-title a:hover {
    color: var(--page-index-primary-color);
}

.page-index-detail-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-index-responsible-gaming {
    padding: 80px 0;
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-text-light);
}

.page-index-responsible-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-index-responsible-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-responsible-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index-responsible-content {
    flex: 1;
    min-width: 300px;
}

.page-index-responsible-gaming .page-index-section-title {
    color: var(--page-index-primary-color);
    text-align: left;
}

.page-index-responsible-gaming .page-index-section-subtitle {
    color: var(--page-index-text-light);
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-index-responsible-description {
    font-size: 1em;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-index-faq {
    padding: 80px 0;
    background-color: var(--page-index-background-light);
}

.page-index-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-index-faq-item {
    background-color: var(--page-index-text-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-index-faq-question {
    font-size: 1.4em;
    color: var(--page-index-secondary-color);
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-index-faq-question::after {
    content: '+';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-index-faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-index-faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-index-faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* CTA Section */
.page-index-cta {
    padding: 60px 0;
    background-color: var(--page-index-primary-color);
    color: var(--page-index-secondary-color);
    text-align: center;
}

.page-index-cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-index-secondary-color);
}

.page-index-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-index-secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-hero .page-index-container,
    .page-index-app-flex,
    .page-index-responsible-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-index-hero-content,
    .page-index-app-content,
    .page-index-responsible-content {
        order: 2; /* Content below image on mobile */
    }

    .page-index-hero-image,
    .page-index-app-image,
    .page-index-responsible-image {
        order: 1;
        margin-bottom: 30px;
    }

    .page-index-app-download .page-index-section-title,
    .page-index-app-download .page-index-section-subtitle,
    .page-index-responsible-gaming .page-index-section-title,
    .page-index-responsible-gaming .page-index-section-subtitle {
        text-align: center;
    }
}

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

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

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

    .page-index-hero-actions .page-index-btn {
        margin-right: 0;
        margin-bottom: 15px;
        display: block;
        width: 100%;
    }
}

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

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

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

    .page-index-hero-description,
    .page-index-section-subtitle,
    .page-index-app-description,
    .page-index-responsible-description,
    .page-index-cta-description {
        font-size: 0.9em;
    }

    .page-index-btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }
}