/* style/games.css */

/* Biến CSS */
:root {
    --page-games-primary-color: #0A2463;
    --page-games-secondary-color: #E3B505;
    --page-games-text-light: #FFFFFF;
    --page-games-text-dark: #333333;
    --page-games-background-light: #F8F8F8;
    --page-games-background-dark: #071C46;
    --page-games-border-color: #CCCCCC;
}

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

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

.page-games__section-title {
    font-size: 2.5em;
    color: var(--page-games-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-games__section-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--page-games-text-dark);
}

/* Hero Section */
.page-games__hero-section {
    background: linear-gradient(135deg, var(--page-games-primary-color) 0%, var(--page-games-background-dark) 100%);
    color: var(--page-games-text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-games-text-light);
}

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

.page-games__btn--primary {
    background-color: var(--page-games-secondary-color);
    color: var(--page-games-primary-color);
    box-shadow: 0 5px 15px rgba(227, 181, 5, 0.4);
}

.page-games__btn--primary:hover {
    background-color: #FFC91C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 181, 5, 0.6);
}

.page-games__btn--secondary {
    background-color: var(--page-games-primary-color);
    color: var(--page-games-text-light);
    border: 2px solid var(--page-games-secondary-color);
}

.page-games__btn--secondary:hover {
    background-color: var(--page-games-secondary-color);
    color: var(--page-games-primary-color);
    transform: translateY(-3px);
}

.page-games__btn--lg {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-games__btn--inline {
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 20px;
    background-color: var(--page-games-secondary-color);
    color: var(--page-games-primary-color);
}

.page-games__btn--inline:hover {
    background-color: #FFC91C;
}

.page-games__text-link {
    color: var(--page-games-secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-games__text-link:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-games__why-choose-section {
    padding: 80px 0;
    background-color: var(--page-games-background-light);
}

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

.page-games__feature-item {
    background-color: var(--page-games-text-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-games__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

.page-games__feature-title {
    font-size: 1.5em;
    color: var(--page-games-primary-color);
    margin-bottom: 15px;
}

.page-games__feature-text {
    font-size: 1em;
    color: var(--page-games-text-dark);
}

/* Game Categories Section */
.page-games__game-categories-section {
    padding: 80px 0;
    background-color: var(--page-games-background-dark);
    color: var(--page-games-text-light);
}

.page-games__game-categories-section .page-games__section-title {
    color: var(--page-games-text-light);
}

.page-games__game-categories-section .page-games__section-intro {
    color: var(--page-games-text-light);
}

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

.page-games__category-card {
    background-color: var(--page-games-primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-games__category-card:hover {
    transform: translateY(-10px);
}

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

.page-games__category-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-games__category-title {
    font-size: 1.6em;
    color: var(--page-games-secondary-color);
    margin-bottom: 15px;
}

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

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

.page-games__category-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-games__category-card .page-games__btn--secondary {
    align-self: flex-start;
    background-color: var(--page-games-secondary-color);
    color: var(--page-games-primary-color);
    border: none;
}

.page-games__category-card .page-games__btn--secondary:hover {
    background-color: #FFC91C;
    color: var(--page-games-primary-color);
}

/* Guide Section */
.page-games__guide-section {
    padding: 80px 0;
    background-color: var(--page-games-background-light);
}

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

.page-games__step-item {
    background-color: var(--page-games-text-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-games__step-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-games__step-title {
    font-size: 1.4em;
    color: var(--page-games-primary-color);
    margin-bottom: 15px;
}

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

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

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

/* CTA Section */
.page-games__cta-section {
    background: linear-gradient(90deg, var(--page-games-secondary-color) 0%, #FFC91C 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--page-games-primary-color);
}

.page-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-games-primary-color);
}

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

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

.page-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-games-primary-color);
}

.page-games__cta-description a {
    color: var(--page-games-primary-color);
    font-weight: bold;
    text-decoration: underline;
}

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

.page-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-games__faq-item {
    background-color: var(--page-games-text-light);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.page-games__faq-question {
    font-size: 1.25em;
    color: var(--page-games-primary-color);
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    background-color: #F0F5F9;
    border-bottom: 1px solid var(--page-games-border-color);
}

.page-games__faq-question a {
    color: inherit;
    text-decoration: none;
}

.page-games__faq-question a:hover {
    text-decoration: underline;
}

.page-games__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: var(--page-games-secondary-color);
    transition: transform 0.3s ease;
}

.page-games__faq-item.active .page-games__faq-question::after {
    transform: rotate(45deg);
}

.page-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-games-text-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-games__faq-item.active .page-games__faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

.page-games__faq-answer a {
    color: var(--page-games-secondary-color);
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-games__hero-title {
        font-size: 2.8em;
    }
    .page-games__hero-description {
        font-size: 1.1em;
    }
    .page-games__section-title {
        font-size: 2em;
    }
    .page-games__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-games__hero-section {
        padding: 80px 0;
    }
    .page-games__hero-title {
        font-size: 2.2em;
    }
    .page-games__hero-description {
        font-size: 1em;
    }
    .page-games__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-games__features-grid, .page-games__category-grid, .page-games__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-games__feature-item, .page-games__category-card, .page-games__step-item {
        margin-bottom: 20px;
    }
    .page-games__section-title {
        font-size: 1.8em;
    }
    .page-games__cta-title {
        font-size: 1.8em;
    }
    .page-games__cta-description {
        font-size: 1em;
    }
    .page-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-games__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-games__hero-section {
        padding: 60px 0;
    }
    .page-games__hero-title {
        font-size: 1.8em;
    }
    .page-games__hero-description {
        font-size: 0.9em;
    }
    .page-games__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-games__section-title {
        font-size: 1.5em;
    }
    .page-games__cta-title {
        font-size: 1.5em;
    }
    .page-games__cta-description {
        font-size: 0.9em;
    }
}