/* style/index.css */

/* Biến CSS */
:root {
    --page-index-primary-color: #1A2B4C;
    --page-index-secondary-color: #FFD700;
    --page-index-text-light: #FFFFFF;
    --page-index-text-dark: #333333;
    --page-index-background-light: #F8F8F8;
    --page-index-background-dark: #111B2C; /* Slightly darker than primary for contrast */
    --page-index-border-color: #4A5B7D;
    --page-index-font-family: 'Arial', sans-serif;
}

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

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

.page-index__section {
    padding: 80px 0;
    text-align: center;
}

.page-index__bg-dark {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
}

.page-index__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-index-primary-color);
    position: relative;
    padding-bottom: 10px;
}

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

.page-index__section-title--light {
    color: var(--page-index-text-light);
}

.page-index__section-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #666;
}

.page-index__section-subtitle--light {
    color: #CCCCCC;
}

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

.page-index__btn--primary {
    background-color: var(--page-index-secondary-color);
    color: var(--page-index-primary-color);
}

.page-index__btn--primary:hover {
    background-color: #E5C100; /* Slightly darker gold */
    transform: translateY(-2px);
}

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

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

.page-index__btn--text {
    color: var(--page-index-primary-color);
    text-decoration: underline;
    background: none;
    padding: 0;
}

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

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

.page-index__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--page-index-text-light);
    text-align: center;
    background-color: var(--page-index-primary-color); /* Fallback */
}

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

.page-index__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 43, 76, 0.7), rgba(255, 215, 0, 0.2));
    z-index: 2;
}

.page-index__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

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

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

.page-index__hero-actions .page-index__btn {
    margin: 10px;
}

/* About Section */
.page-index__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-index__about-text {
    flex: 1;
}

.page-index__about-text p {
    margin-bottom: 15px;
    color: var(--page-index-text-dark);
}

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

.page-index__about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-index__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index__game-card {
    background-color: var(--page-index-background-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index__game-card:hover {
    transform: translateY(-5px);
}

.page-index__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-index__game-card-title {
    font-size: 1.8em;
    color: var(--page-index-secondary-color);
    margin: 20px 20px 10px;
}

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

.page-index__game-card-title a:hover {
    text-decoration: underline;
}

.page-index__game-card-description {
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index__game-card .page-index__btn {
    margin: 0 20px 20px;
    align-self: flex-start;
}

/* Promotions Section */
.page-index__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index__promotion-card {
    background-color: var(--page-index-text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-index__promotion-card:hover {
    transform: translateY(-5px);
}

.page-index__promotion-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.page-index__promotion-card-content {
    padding: 20px;
}

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

.page-index__promotion-card-description {
    color: #555;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-index__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__feature-item {
    background-color: var(--page-index-background-dark);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(70%) sepia(90%) saturate(1000%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Gold tint */
}

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

.page-index__feature-description {
    color: rgba(255, 255, 255, 0.8);
}

/* App Download Section */
.page-index__app-download-section {
    background: linear-gradient(135deg, var(--page-index-primary-color), #2A3D63);
    color: var(--page-index-text-light);
}

.page-index__app-download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

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

.page-index__app-text .page-index__section-title {
    color: var(--page-index-text-light);
}

.page-index__app-text .page-index__section-title::after {
    background-color: var(--page-index-secondary-color);
    left: 0;
    transform: translateX(0);
}

.page-index__app-text .page-index__section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

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

.page-index__app-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--page-index-secondary-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.page-index__icon-check::before {
    content: '✓';
    color: var(--page-index-primary-color);
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

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

/* Responsible Gambling Section */
.page-index__responsible-gambling-section .page-index__section-title::after {
    background-color: var(--page-index-secondary-color);
}

.page-index__responsible-gambling-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-index__responsible-gambling-image {
    flex: 1;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__responsible-gambling-list {
    flex: 2;
    list-style: none;
    padding: 0;
}

.page-index__responsible-gambling-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__icon-warning {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--page-index-secondary-color);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
}

.page-index__icon-warning::before {
    content: '!';
    color: var(--page-index-primary-color);
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* FAQ Section */
.page-index__faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: left;
}

.page-index__faq-item {
    background-color: var(--page-index-text-light);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
    font-size: 1.3em;
    color: var(--page-index-primary-color);
    margin-bottom: 10px;
}

.page-index__faq-answer {
    color: #555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__about-content, .page-index__app-download-content, .page-index__responsible-gambling-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index__about-text, .page-index__app-text, .page-index__responsible-gambling-list {
        order: 2; /* Text below image on mobile */
    }
    .page-index__about-image-wrapper, .page-index__app-image-wrapper, .page-index__responsible-gambling-image {
        order: 1;
        margin-bottom: 30px;
    }
    .page-index__app-text .page-index__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .page-index__responsible-gambling-image {
      max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        height: 60vh;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__section {
        padding: 60px 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__game-categories, .page-index__promotion-grid, .page-index__features-grid, .page-index__faq-grid {
        grid-template-columns: 1fr;
    }
    .page-index__game-card, .page-index__promotion-card, .page-index__feature-item, .page-index__faq-item {
        margin: 0 auto;
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-section {
        height: 50vh;
    }
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__hero-actions .page-index__btn {
        width: 100%;
        margin: 5px 0;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__btn--large {
        width: 100%;
    }
    .page-index__responsible-gambling-image {
      max-width: 90%;
    }
}