/* style/index.css */

/* Biến CSS */
:root {
    --page-index-primary-color: #0A192F;
    --page-index-secondary-color: #FFD700;
    --page-index-text-light: #F8F8F8;
    --page-index-text-dark: #333333;
    --page-index-background-dark: #0A192F;
    --page-index-background-light: #FFFFFF;
    --page-index-gray-light: #EEEEEE;
    --page-index-gray-dark: #555555;
}

/* Base styles for the page content */
.page-index {
    font-family: 'Arial', sans-serif;
    color: var(--page-index-text-light);
    background-color: var(--page-index-background-dark);
    line-height: 1.6;
}

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

.page-index-text-center {
    text-align: center;
}

.page-index-mt-4 {
    margin-top: 2rem;
}

.page-index-mb-4 {
    margin-bottom: 2rem;
}

.page-index h1,
.page-index h2,
.page-index h3 {
    color: var(--page-index-secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-index h1 {
    font-size: 2.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index h2 {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.page-index h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--page-index-text-light);
}

.page-index p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--page-index-gray-light);
}

.page-index-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
}

.page-index-btn-primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-primary-color);
    border: 2px solid var(--page-index-secondary-color);
}

.page-index-btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-index-btn-secondary {
    background-color: transparent;
    color: var(--page-index-secondary-color);
    border: 2px solid var(--page-index-secondary-color);
    margin-left: 15px;
}

.page-index-btn-secondary:hover {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-primary-color);
    transform: translateY(-2px);
}

.page-index-btn-outline {
    background-color: transparent;
    color: var(--page-index-secondary-color);
    border: 1px solid var(--page-index-secondary-color);
    padding: 8px 18px;
    font-size: 1em;
}

.page-index-btn-outline:hover {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-primary-color);
}

.page-index-btn-lg {
    padding: 15px 30px;
    font-size: 1.2em;
}

.page-index-img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.page-index-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.page-index-hero-content h1 {
    margin-bottom: 20px;
}

.page-index-hero-content p {
    margin-bottom: 30px;
}

.page-index-hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page-index-hero-image img {
    max-height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center right;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-index-about-item {
    text-align: center;
    background-color: #1a2a43;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-index-about-item:hover {
    transform: translateY(-10px);
}

.page-index-about-item .page-index-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-index-about-item h3 {
    color: var(--page-index-secondary-color);
    margin-top: 0;
    font-size: 1.4em;
}

.page-index-about-item p {
    font-size: 1em;
    color: var(--page-index-gray-light);
}

/* Games Section */
.page-index-games {
    padding: 60px 0;
    background-color: #0d1e34;
}

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

.page-index-game-item {
    background-color: #1a2a43;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
}

.page-index-game-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--page-index-secondary-color);
}

.page-index-game-item h3 {
    color: var(--page-index-secondary-color);
    margin: 20px 0 10px;
}

.page-index-game-item p {
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--page-index-gray-light);
}

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

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

.page-index-promo-item {
    background-color: #1a2a43;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
}

.page-index-promo-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--page-index-secondary-color);
}

.page-index-promo-item h3 {
    color: var(--page-index-secondary-color);
    margin: 20px 0 10px;
}

.page-index-promo-item p {
    padding: 0 20px;
    color: var(--page-index-gray-light);
}

/* App CTA Section */
.page-index-app-cta {
    padding: 80px 0;
    background: linear-gradient(90deg, #1a304f 0%, var(--page-index-primary-color) 100%);
}

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

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

.page-index-app-text h2 {
    text-align: left;
}

.page-index-app-qr {
    text-align: center;
    flex-shrink: 0;
}

.page-index-qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-index-app-qr p {
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--page-index-gray-light);
}

.page-index-app-screenshots {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index-screenshot {
    width: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--page-index-secondary-color);
}

.page-index-screenshot-hidden-mobile {
    display: block; /* Default for desktop */
}

/* Advantages Section */
.page-index-advantages {
    padding: 60px 0;
    background-color: #0d1e34;
}

.page-index-advantage-list ul {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-index-advantage-list li {
    background-color: #1a2a43;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: var(--page-index-gray-light);
    transition: background-color 0.3s ease;
}

.page-index-advantage-list li:hover {
    background-color: #2a3d58;
}

.page-index-advantage-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    filter: brightness(1.2);
}

/* Deep Content / FAQ Section */
.page-index-deep-content {
    padding: 60px 0;
    background-color: var(--page-index-background-dark);
}

.page-index-deep-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.page-index-deep-content h3 {
    color: var(--page-index-secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8em;
}

.page-index-deep-content h4 {
    color: var(--page-index-text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4em;
}

.page-index-deep-content p {
    color: var(--page-index-gray-light);
    margin-bottom: 1em;
}

.page-index-deep-content ul {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--page-index-gray-light);
}

.page-index-deep-content li {
    margin-bottom: 0.5em;
}

/* Detail Pages Section */
.page-index-detail-pages {
    padding: 60px 0;
    background-color: #0d1e34;
}

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

.page-index-detail-item {
    background-color: #1a2a43;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-detail-item h3 {
    color: var(--page-index-secondary-color);
    margin-top: 0;
    font-size: 1.3em;
}

.page-index-detail-item p {
    font-size: 0.95em;
    color: var(--page-index-gray-light);
    flex-grow: 1;
    margin-bottom: 20px;
}

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

.page-index-final-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-index-final-cta .page-index-btn {
    margin: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index-hero {
        padding: 60px 0;
        min-height: 500px;
    }

    .page-index-hero-content h1 {
        font-size: 2.2em;
    }

    .page-index-hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .page-index-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
        min-height: auto;
    }

    .page-index-hero-content {
        max-width: 100%;
    }

    .page-index-hero-image {
        position: static;
        width: 80%;
        margin-top: 30px;
        justify-content: center;
    }

    .page-index-hero-image img {
        max-height: 300px;
        border-radius: 10px;
    }

    .page-index-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-index-btn-secondary {
        margin-left: 0;
    }

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

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

    .page-index h3 {
        font-size: 1.3em;
    }

    .page-index-app-content {
        flex-direction: column;
        text-align: center;
    }

    .page-index-app-text h2 {
        text-align: center;
    }

    .page-index-screenshot-hidden-mobile {
        display: none;
    }

    .page-index-final-cta .page-index-btn {
        margin: 10px 0;
        width: 80%;
    }
}

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

    .page-index-hero-content p {
        font-size: 1em;
    }

    .page-index-btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-index-hero-image img {
        max-height: 250px;
    }

    .page-index h2 {
        font-size: 1.6em;
    }

    .page-index h3 {
        font-size: 1.2em;
    }

    .page-index p {
        font-size: 0.95em;
    }

    .page-index-screenshot {
        width: 100%;
    }
}