/* style/tro-choi-moi.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --bg-color: #0D0E12;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

.page-tro-choi-moi {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.page-tro-choi-moi__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.page-tro-choi-moi__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-tro-choi-moi__main-title,
.page-tro-choi-moi__section-title {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tro-choi-moi__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-tro-choi-moi__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.page-tro-choi-moi__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-tro-choi-moi__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-tro-choi-moi__cta-center {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.page-tro-choi-moi__btn-primary,
.page-tro-choi-moi__btn-secondary,
.page-tro-choi-moi__game-button,
.page-tro-choi-moi__promo-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tro-choi-moi__btn-primary,
.page-tro-choi-moi__game-button,
.page-tro-choi-moi__promo-button {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-main-color);
    border: 2px solid var(--deep-orange-color);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tro-choi-moi__btn-primary:hover,
.page-tro-choi-moi__game-button:hover,
.page-tro-choi-moi__promo-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-tro-choi-moi__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-tro-choi-moi__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Hero Section */
.page-tro-choi-moi__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.page-tro-choi-moi__hero-image-container {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tro-choi-moi__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-tro-choi-moi__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-tro-choi-moi__hero-description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

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

.page-tro-choi-moi__feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tro-choi-moi__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-tro-choi-moi__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.page-tro-choi-moi__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-tro-choi-moi__feature-description {
    font-size: 1em;
    color: var(--text-main-color);
}

/* Game Categories Section */
.page-tro-choi-moi__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-tro-choi-moi__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-tro-choi-moi__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-tro-choi-moi__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-tro-choi-moi__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 20px 15px 10px;
}

.page-tro-choi-moi__game-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px;
    flex-grow: 1;
}

.page-tro-choi-moi__game-button {
    margin: 20px auto;
    width: fit-content;
}

/* Guide Section */
.page-tro-choi-moi__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-tro-choi-moi__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-main-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-tro-choi-moi__guide-item strong {
    color: var(--secondary-color);
}

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

.page-tro-choi-moi__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-tro-choi-moi__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-tro-choi-moi__promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-tro-choi-moi__promo-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin: 20px 15px 10px;
}

.page-tro-choi-moi__promo-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    padding: 0 15px;
    flex-grow: 1;
}

.page-tro-choi-moi__promo-button {
    margin: 20px auto;
    width: fit-content;
}

/* Tips Section */
.page-tro-choi-moi__tips-content {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.page-tro-choi-moi__tips-text {
    flex: 1;
}

.page-tro-choi-moi__tips-image-container {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.page-tro-choi-moi__tips-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-tro-choi-moi__tips-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-main-color);
    margin-top: 20px;
}

.page-tro-choi-moi__tips-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-tro-choi-moi__tips-item strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-tro-choi-moi__faq-list {
    margin-top: 30px;
}

.page-tro-choi-moi__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-tro-choi-moi__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--secondary-color);
    font-weight: bold;
    background-color: rgba(255, 140, 26, 0.1);
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details/summary */
}

.page-tro-choi-moi__faq-question::-webkit-details-marker {
    display: none;
}

.page-tro-choi-moi__faq-question:hover {
    background-color: rgba(255, 140, 26, 0.2);
}

.page-tro-choi-moi__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-tro-choi-moi__faq-item[open] .page-tro-choi-moi__faq-toggle {
    transform: rotate(45deg);
}

.page-tro-choi-moi__faq-answer {
    padding: 20px;
    font-size: 1.05em;
    color: var(--text-main-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-tro-choi-moi__faq-answer p {
    margin: 0;
}

/* Conclusion Section */
.page-tro-choi-moi__conclusion {
    text-align: center;
    padding-bottom: 60px;
}

/* Global image responsiveness */
.page-tro-choi-moi img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-tro-choi-moi__container {
        padding: 0 15px;
    }

    .page-tro-choi-moi__hero-content {
        padding: 30px 15px;
    }

    .page-tro-choi-moi__features-grid,
    .page-tro-choi-moi__game-grid,
    .page-tro-choi-moi__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-tro-choi-moi__tips-content {
        flex-direction: column;
    }

    .page-tro-choi-moi__tips-image-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-tro-choi-moi__hero-section {
        padding-top: 10px !important;
    }

    .page-tro-choi-moi__hero-image-container {
        max-height: none;
    }

    .page-tro-choi-moi__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-tro-choi-moi__main-title {
        font-size: 2rem;
    }

    .page-tro-choi-moi__section-title {
        font-size: 1.8rem;
    }

    .page-tro-choi-moi__hero-description {
        font-size: 1em;
    }

    .page-tro-choi-moi__cta-buttons,
    .page-tro-choi-moi__cta-center {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons */
    .page-tro-choi-moi__btn-primary,
    .page-tro-choi-moi__btn-secondary,
    .page-tro-choi-moi__game-button,
    .page-tro-choi-moi__promo-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tro-choi-moi__cta-buttons,
    .page-tro-choi-moi__button-group,
    .page-tro-choi-moi__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Game Grid */
    .page-tro-choi-moi__game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: hidden;
    }

    .page-tro-choi-moi__game-image {
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Features Grid (Why Choose) */
    .page-tro-choi-moi__features-grid {
        grid-template-columns: 1fr;
    }

    /* Promotions Grid */
    .page-tro-choi-moi__promo-grid {
        grid-template-columns: 1fr;
    }

    /* Tips Section */
    .page-tro-choi-moi__tips-content {
        flex-direction: column;
    }

    .page-tro-choi-moi__tips-image-container {
        max-width: 100%;
    }

    /* General Images and Containers */
    .page-tro-choi-moi img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tro-choi-moi__section,
    .page-tro-choi-moi__card,
    .page-tro-choi-moi__container,
    .page-tro-choi-moi__hero-content,
    .page-tro-choi-moi__feature-card,
    .page-tro-choi-moi__game-card,
    .page-tro-choi-moi__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* FAQ Section */
    .page-tro-choi-moi__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-tro-choi-moi__faq-answer {
        font-size: 1em;
        padding: 15px;
    }
}