/* style/x-s.css */

:root {
    --primary-color: #1a202c; /* Deep Dark Blue/Grey */
    --secondary-color: #e53e3e; /* Red */
    --text-light: #ffffff;
    --text-dark: #cbd5e0; /* Light grey for general text on dark background */
    --bg-light-contrast: #2d3748; /* Slightly lighter dark for contrast sections */
    --border-color: #4a5568;
    --card-bg: #2d3748;
    --button-hover-bg: #c53030;
    --faq-question-bg: #2d3748;
    --faq-answer-bg: #1a202c;
    --faq-border: #4a5568;
}

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

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

.page-x-s section {
    padding: 60px 0;
    text-align: center;
}

.page-x-s h1, .page-x-s h2, .page-x-s h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-x-s h1 {
    font-size: 3.2em;
    font-weight: bold;
}

.page-x-s h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.page-x-s h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-x-s p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-x-s .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-x-s .cta-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-x-s .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1016 100%);
}

.page-x-s .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-x-s .hero-image {
    width: 100%;
    margin-bottom: 40px;
}

.page-x-s .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-x-s .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-x-s .hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-x-s .hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

/* Games Section */
.page-x-s .section-games {
    background-color: var(--bg-light-contrast);
    padding: 80px 0;
}

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

.page-x-s .game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-x-s .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-x-s .game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .game-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-x-s .game-card h3 a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-x-s .game-card h3 a:hover {
    color: var(--secondary-color);
}

.page-x-s .game-card p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-x-s .game-card .card-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-x-s .game-card .card-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* Benefits Section */
.page-x-s .section-benefits {
    background-color: var(--primary-color);
    padding: 80px 0;
}

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

.page-x-s .benefit-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-x-s .benefit-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-x-s .benefit-item h3 {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-x-s .benefit-item p {
    font-size: 1em;
    color: var(--text-dark);
}

.page-x-s .center-button {
    margin-top: 50px;
    text-align: center;
}

/* Guide Section */
.page-x-s .section-guide {
    background-color: var(--bg-light-contrast);
    padding: 80px 0;
}

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

.page-x-s .step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-x-s .step-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .step-item h3 {
    font-size: 1.6em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-x-s .step-item p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-x-s .step-item .step-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-x-s .step-item .step-button:hover {
    background: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* Tips Section */
.page-x-s .section-tips {
    background-color: var(--primary-color);
    padding: 80px 0;
}

.page-x-s .tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-x-s .tips-list li {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-x-s .tips-list li h3 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-x-s .tips-list li p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* FAQ Section */
.page-x-s .section-faq {
    background-color: var(--bg-light-contrast);
    padding: 80px 0;
}

.page-x-s .faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-x-s .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--faq-border);
}

.page-x-s .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--faq-question-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-x-s .faq-question:hover {
    background: #3a475a;
}

.page-x-s .faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-light);
    flex-grow: 1;
}

.page-x-s .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-x-s .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.page-x-s .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: var(--faq-answer-bg);
    padding: 0 25px;
    color: var(--text-dark);
}

.page-x-s .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid var(--faq-border);
}

.page-x-s .faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Final CTA Section */
.page-x-s .section-cta-final {
    background-color: var(--primary-color);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.page-x-s .section-cta-final h2 {
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-x-s .section-cta-final p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2em;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-x-s .hero-content h1 {
        font-size: 3em;
    }
    .page-x-s h2 {
        font-size: 2em;
    }
    .page-x-s h3 {
        font-size: 1.6em;
    }
    .page-x-s .game-grid, .page-x-s .benefits-grid, .page-x-s .guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-x-s section {
        padding: 40px 0;
    }
    .page-x-s .hero-section {
        padding: 60px 15px 30px;
    }
    .page-x-s .hero-content h1 {
        font-size: 2.5em;
    }
    .page-x-s .hero-content p {
        font-size: 1.1em;
    }
    .page-x-s h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-x-s h3 {
        font-size: 1.4em;
    }
    .page-x-s p {
        font-size: 1em;
    }
    .page-x-s .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-x-s .game-card, .page-x-s .benefit-item, .page-x-s .step-item {
        padding: 20px;
    }
    .page-x-s .game-card img, .page-x-s .step-item img {
        height: 160px;
    }
    .page-x-s .faq-question {
        padding: 15px 20px;
    }
    .page-x-s .faq-question h3 {
        font-size: 1.1em;
    }
    .page-x-s .faq-toggle {
        font-size: 20px;
    }
    .page-x-s .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-x-s .section-cta-final h2 {
        font-size: 2em;
    }
    .page-x-s .section-cta-final p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-x-s .hero-content h1 {
        font-size: 2em;
    }
    .page-x-s h2 {
        font-size: 1.5em;
    }
    .page-x-s h3 {
        font-size: 1.2em;
    }
    .page-x-s .game-grid, .page-x-s .benefits-grid, .page-x-s .guide-steps {
        grid-template-columns: 1fr;
    }
    .page-x-s .game-card img, .page-x-s .step-item img {
        height: 150px;
    }
    .page-x-s .faq-question h3 {
        font-size: 1em;
    }
    .page-x-s .faq-toggle {
        font-size: 18px;
    }
}