/* style/xo-so.css */
:root {
    --primary-color: #1A1A1A;
    --secondary-color: #FFD700;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #F8F8F8;
    --bg-dark: #2C2C2C;
    --border-color: #E0E0E0;
}

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

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

.page-xo-so section {
    padding: 60px 0;
    text-align: center;
}

.page-xo-so h1,
.page-xo-so h2,
.page-xo-so h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: bold;
}

.page-xo-so h1 {
    font-size: 3.2em;
    color: var(--text-light);
}

.page-xo-so h2 {
    font-size: 2.5em;
    color: var(--primary-color);
}

.page-xo-so h3 {
    font-size: 1.8em;
    color: var(--primary-color);
}

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

.page-xo-so a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-xo-so a:hover {
    color: #FFC107;
    text-decoration: underline;
}

/* Hero Section */
.page-xo-so .hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    color: var(--text-light);
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-xo-so .hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-xo-so .hero-content {
    flex: 1;
    text-align: left;
    padding-right: 40px;
    z-index: 1;
}

.page-xo-so .hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-xo-so .hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-xo-so .hero-content a {
    color: var(--secondary-color);
}

.page-xo-so .hero-image {
    flex: 1;
    text-align: right;
    z-index: 1;
}

.page-xo-so .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 400px; /* Ensure minimum size */
    min-height: 300px; /* Ensure minimum size */
}

.page-xo-so .cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-xo-so .cta-button:hover {
    background-color: #FFC107;
    transform: translateY(-3px);
    color: var(--primary-color);
    text-decoration: none;
}

/* Games Overview Section */
.page-xo-so .games-overview {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.page-xo-so .games-overview h2 {
    color: var(--primary-color);
}

.page-xo-so .game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-xo-so .game-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-xo-so .game-card img {
    max-width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    min-width: 250px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-xo-so .game-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-xo-so .game-card h3 a {
    color: var(--primary-color);
}

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

.page-xo-so .game-card p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-xo-so .card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-xo-so .card-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Why Choose Us Section */
.page-xo-so .why-choose-us {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-xo-so .why-choose-us h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.page-xo-so .why-choose-us p {
    color: #E0E0E0;
}

.page-xo-so .why-choose-us a {
    color: var(--secondary-color);
}

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

.page-xo-so .feature-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-xo-so .feature-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Allowed for stylistic purposes, not color change */
    min-width: 100px; /* Ensure minimum size */
    min-height: 100px; /* Ensure minimum size */
    object-fit: contain;
}

.page-xo-so .feature-item h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-xo-so .feature-item p {
    color: #C0C0C0;
    font-size: 1em;
}

/* How to Play Section */
.page-xo-so .how-to-play {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.page-xo-so .how-to-play h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

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

.page-xo-so .step-item {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--secondary-color);
}

.page-xo-so .step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin: -60px auto 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-xo-so .step-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-xo-so .step-item p {
    color: var(--text-dark);
    font-size: 1em;
    margin-bottom: 25px;
}

.page-xo-so .step-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-xo-so .step-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* FAQ Section */
.page-xo-so .faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.page-xo-so .faq-section h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.page-xo-so .faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-xo-so .faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-xo-so .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-xo-so .faq-question:hover {
    background-color: #3A3A3A;
}

.page-xo-so .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--text-light);
}

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

.page-xo-so .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background-color: #252525;
    color: #E0E0E0;
    border-radius: 0 0 5px 5px;
}

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

.page-xo-so .faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-xo-so .faq-answer p {
    font-size: 1em;
    color: #E0E0E0;
    margin-bottom: 0;
}

.page-xo-so .faq-answer a {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-xo-so .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-xo-so .hero-content {
        padding-right: 0;
        text-align: center;
        margin-top: 40px;
    }

    .page-xo-so .hero-content h1 {
        font-size: 2.8em;
    }

    .page-xo-so .hero-content p {
        font-size: 1.1em;
    }

    .page-xo-so .hero-image {
        text-align: center;
    }

    .page-xo-so .hero-image img {
        max-width: 80%;
        min-width: 300px;
        min-height: 250px;
    }

    .page-xo-so .games-overview .game-cards,
    .page-xo-so .why-choose-us .features-grid,
    .page-xo-so .how-to-play .steps-grid {
        grid-template-columns: 1fr;
    }

    .page-xo-so .step-number {
        margin: -45px auto 20px auto;
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-xo-so .step-item {
        padding-top: 40px;
    }

    .page-xo-so h1 {
        font-size: 2.5em;
    }

    .page-xo-so h2 {
        font-size: 2em;
    }

    .page-xo-so h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-xo-so section {
        padding: 40px 0;
    }

    .page-xo-so .hero-content h1 {
        font-size: 2.2em;
    }

    .page-xo-so .hero-content p {
        font-size: 1em;
    }

    .page-xo-so .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-xo-so .game-card img {
        height: 200px;
        min-width: 200px;
        min-height: 150px;
    }

    .page-xo-so .feature-item img {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .page-xo-so .faq-question h3 {
        font-size: 1.1em;
    }

    .page-xo-so .faq-toggle {
        font-size: 1.5em;
    }

    .page-xo-so .hero-image img {
        min-width: 280px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-xo-so .hero-content h1 {
        font-size: 1.8em;
    }

    .page-xo-so .hero-content p {
        font-size: 0.95em;
    }

    .page-xo-so .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-xo-so h2 {
        font-size: 1.8em;
    }

    .page-xo-so h3 {
        font-size: 1.3em;
    }

    .page-xo-so .faq-question h3 {
        font-size: 1em;
    }

    .page-xo-so .faq-question {
        padding: 15px 20px;
    }

    .page-xo-so .faq-answer {
        padding: 0 20px;
    }

    .page-xo-so .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}