/* style/x-s.css */

/* Variables for consistency */
:root {
    --page-x-s-primary-color: #0A2239;
    --page-x-s-accent-color: #FFD700;
    --page-x-s-text-dark: #0A2239;
    --page-x-s-text-light: #F5F5DC;
    --page-x-s-bg-light: #F5F5DC;
    --page-x-s-bg-dark: #0A2239;
    --page-x-s-gradient-start: #0A2239;
    --page-x-s-gradient-end: #3B5998; /* A slightly lighter blue for gradient effect */
}

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

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

/* Hero Section */
.page-x-s__hero-section {
    background: linear-gradient(135deg, var(--page-x-s-gradient-start), var(--page-x-s-gradient-end));
    color: var(--page-x-s-text-light);
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.page-x-s__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-x-s__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-x-s-accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-x-s__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-x-s__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.page-x-s__btn--primary {
    background-color: var(--page-x-s-accent-color);
    color: var(--page-x-s-text-dark);
}

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

.page-x-s__btn--secondary {
    background-color: transparent;
    color: var(--page-x-s-accent-color);
    border: 2px solid var(--page-x-s-accent-color);
}

.page-x-s__btn--secondary:hover {
    background-color: var(--page-x-s-accent-color);
    color: var(--page-x-s-text-dark);
    transform: translateY(-2px);
}

.page-x-s__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-x-s__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

/* General Section Styling */
.page-x-s__section {
    padding: 60px 0;
    background-color: var(--page-x-s-bg-light);
}

.page-x-s__section:nth-of-type(even) {
    background-color: #F0F0E8; /* Slightly different background for visual separation */
}

.page-x-s__section-title {
    font-size: 2.5em;
    color: var(--page-x-s-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-x-s__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--page-x-s-accent-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-x-s__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-x-s__highlight {
    color: var(--page-x-s-primary-color);
    font-weight: bold;
}

/* Game Types Section */
.page-x-s__grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-x-s__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-x-s__game-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-x-s__game-title {
    font-size: 1.6em;
    color: var(--page-x-s-primary-color);
    margin-bottom: 10px;
}

.page-x-s__game-description {
    font-size: 1em;
    color: #555;
}

/* How to Play Section */
.page-x-s__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-x-s__step-item {
    background-color: #FFFFFF;
    border-left: 5px solid var(--page-x-s-accent-color);
    margin-bottom: 25px;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.page-x-s__step-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-color: var(--page-x-s-accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--page-x-s-text-dark);
    font-size: 0.9em;
}

.page-x-s__step-item:nth-child(1)::before { content: '1'; }
.page-x-s__step-item:nth-child(2)::before { content: '2'; }
.page-x-s__step-item:nth-child(3)::before { content: '3'; }
.page-x-s__step-item:nth-child(4)::before { content: '4'; }

.page-x-s__step-title {
    font-size: 1.5em;
    color: var(--page-x-s-primary-color);
    margin-bottom: 10px;
}

.page-x-s__step-item p {
    font-size: 1em;
    color: #444;
}

.page-x-s__step-item a {
    color: var(--page-x-s-accent-color);
    text-decoration: none;
    font-weight: bold;
}

.page-x-s__step-item a:hover {
    text-decoration: underline;
}

.page-x-s__illustration-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Strategies Section */
.page-x-s__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-x-s__strategy-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    padding: 25px 30px;
}

.page-x-s__strategy-title {
    font-size: 1.4em;
    color: var(--page-x-s-primary-color);
    margin-bottom: 10px;
}

/* Advantages Section */
.page-x-s__grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-x-s__advantage-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-x-s__advantage-title {
    font-size: 1.6em;
    color: var(--page-x-s-accent-color);
    margin-bottom: 15px;
}

/* FAQ Section */
.page-x-s__faq-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    padding: 20px 25px;
}

.page-x-s__faq-question {
    font-size: 1.3em;
    color: var(--page-x-s-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.page-x-s__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: var(--page-x-s-accent-color);
    transition: transform 0.3s ease;
}

.page-x-s__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-x-s__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-x-s__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}

/* Call to Action Bottom */
.page-x-s__cta-bottom {
    background: var(--page-x-s-bg-dark);
    color: var(--page-x-s-text-light);
    text-align: center;
    padding: 80px 0;
}

.page-x-s__cta-content {
    max-width: 900px;
}

.page-x-s__cta-title {
    font-size: 3em;
    color: var(--page-x-s-accent-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-x-s__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-x-s__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-x-s__hero-title {
        font-size: 2.8em;
    }
    .page-x-s__section-title {
        font-size: 2em;
    }
    .page-x-s__grid-2 {
        grid-template-columns: 1fr;
    }
    .page-x-s__grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-x-s__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-x-s__hero-title {
        font-size: 2.2em;
    }
    .page-x-s__hero-description {
        font-size: 1.1em;
    }
    .page-x-s__hero-actions {
        flex-direction: column;
    }
    .page-x-s__btn {
        width: 80%;
        max-width: 300px;
    }
    .page-x-s__section {
        padding: 40px 0;
    }
    .page-x-s__section-title {
        font-size: 1.8em;
    }
    .page-x-s__game-card, .page-x-s__advantage-item, .page-x-s__faq-item, .page-x-s__strategy-item {
        padding: 20px;
    }
    .page-x-s__cta-title {
        font-size: 2em;
    }
    .page-x-s__cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-x-s__hero-title {
        font-size: 1.8em;
    }
    .page-x-s__hero-description {
        font-size: 1em;
    }
    .page-x-s__btn {
        width: 100%;
    }
    .page-x-s__section-title {
        font-size: 1.5em;
    }
    .page-x-s__game-title, .page-x-s__step-title, .page-x-s__strategy-title, .page-x-s__advantage-title, .page-x-s__faq-question {
        font-size: 1.2em;
    }
    .page-x-s__cta-title {
        font-size: 1.8em;
    }
}