/* style/x-s.css */

:root {
    --primary-color: #1A202C; /* Dark Midnight Blue / Ink Black */
    --secondary-color: #FFD700; /* Bright Gold / Amber */
    --text-light: #F0F2F5; /* Light gray for text on dark backgrounds */
    --text-dark: #1A202C; /* Dark text for light backgrounds */
    --background-dark: #1A202C;
    --background-light: #FFFFFF;
    --accent-color-hover: #E0B500; /* Slightly darker gold for hover */
    --border-color: #333C4A;
}

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

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

/* Hero Banner Section */
.page-x-s .hero-banner {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
}

.page-x-s .hero-banner .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-x-s .hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay for text readability */
    z-index: 2;
}

.page-x-s .hero-banner .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-x-s .hero-banner h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-x-s .hero-banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-x-s .cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-x-s .cta-button:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-x-s section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-x-s section:last-of-type {
    border-bottom: none;
}

.page-x-s h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-x-s h3 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-bottom: 15px;
}

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

.page-x-s strong {
    color: var(--secondary-color);
}

.page-x-s .content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

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

.page-x-s .game-card {
    background-color: #2A313F; /* Slightly lighter dark for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-x-s .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-x-s .game-card .card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-x-s .game-card h3 {
    padding: 15px 20px 0;
    font-size: 1.5em;
    color: var(--secondary-color);
}

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

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

.page-x-s .game-card p {
    padding: 0 20px 15px;
    flex-grow: 1;
    color: var(--text-light);
}

.page-x-s .game-card .card-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.page-x-s .game-card .card-button:hover {
    background-color: var(--accent-color-hover);
}

/* Why Choose Us Section */
.page-x-s .feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-x-s .feature-list li {
    background-color: #2A313F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-x-s .feature-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

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

.page-x-s .feature-list li p {
    color: var(--text-light);
}

/* How to Play Section */
.page-x-s .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-x-s .step-item {
    background-color: #2A313F;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-x-s .step-item .step-number {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.page-x-s .step-item p {
    color: var(--text-light);
    flex-grow: 1;
}

.page-x-s .step-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.page-x-s .step-button:hover {
    background-color: var(--accent-color-hover);
}

/* Promotions Section */
.page-x-s .promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-x-s .promo-list li {
    background-color: #2A313F;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-x-s .promo-list .promo-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-x-s .promo-list p {
    color: var(--text-light);
    flex-grow: 1;
}

.page-x-s .promo-cta {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
}

/* Safety & Support Section */
.page-x-s .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-x-s .info-item {
    background-color: #2A313F;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-x-s .info-item p {
    color: var(--text-light);
}

.page-x-s .support-cta {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
}

/* FAQ Section */
.page-x-s .faq-list {
    margin-top: 40px;
}

.page-x-s .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2A313F;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-x-s .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #333C4A; /* Slightly darker for question background */
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent; /* To prevent double border on active */
}

.page-x-s .faq-question:hover {
    background: #444D5C;
}

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

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

.page-x-s .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background-color: #2A313F;
    color: var(--text-light);
}

.page-x-s .faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

.page-x-s .faq-item.active .faq-question {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.page-x-s .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-x-s .hero-banner h1 {
        font-size: 3em;
    }
    .page-x-s h2 {
        font-size: 2em;
    }
    .page-x-s h3 {
        font-size: 1.5em;
    }
    .page-x-s p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-x-s .hero-banner {
        height: 450px;
    }
    .page-x-s .hero-banner h1 {
        font-size: 2.5em;
    }
    .page-x-s .hero-banner p {
        font-size: 1em;
    }
    .page-x-s .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-x-s section {
        padding: 40px 0;
    }
    .page-x-s h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-x-s h3 {
        font-size: 1.3em;
    }
    .page-x-s .game-cards, .page-x-s .feature-list, .page-x-s .steps-container, .page-x-s .promo-list, .page-x-s .info-grid {
        grid-template-columns: 1fr;
    }
    .page-x-s .game-card .card-image {
        height: 180px;
    }
    .page-x-s .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-x-s .faq-question h3 {
        font-size: 1em;
    }
    .page-x-s .faq-toggle {
        font-size: 1.5em;
    }
    .page-x-s .faq-answer {
        padding: 0 20px;
    }
    .page-x-s .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-x-s .hero-banner {
        height: 350px;
    }
    .page-x-s .hero-banner h1 {
        font-size: 2em;
    }
    .page-x-s .hero-banner p {
        font-size: 0.9em;
    }
    .page-x-s .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-x-s h2 {
        font-size: 1.5em;
    }
    .page-x-s h3 {
        font-size: 1.2em;
    }
    .page-x-s p {
        font-size: 0.9em;
    }
    .page-x-s .step-item .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }
}