/* style/xo-so.css */
.page-xo-so {
    --primary-color: #CC0000;
    --secondary-color: #003366;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --bg-dark: #002244;
    --accent-color: #FFD700; /* Gold for accent */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

.page-xo-so .hero-banner {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
}

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

.page-xo-so .hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

.page-xo-so .hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-xo-so .hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-xo-so .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-xo-so .cta-button:hover {
    background-color: #E60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-xo-so .cta-button-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--secondary-color);
    margin-top: 20px;
}

.page-xo-so .cta-button-secondary:hover {
    background-color: #004488;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-xo-so .intro-section, .page-xo-so why-choose-us, .page-xo-so popular-games, .page-xo-so how-to-play, .page-xo-so promotions-section, .page-xo-so safety-tips, .page-xo-so faq-section, .page-xo-so conclusion-section {
    padding: 60px 0;
}

.page-xo-so .intro-section {
    background-color: var(--bg-light);
}

.page-xo-so .section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-xo-so .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-xo-so .section-paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--text-dark);
}

.page-xo-so .why-choose-us {
    background-color: #ffffff;
}

.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(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-xo-so .feature-item p {
    font-size: 1em;
    color: var(--text-dark);
}

.page-xo-so .popular-games {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-xo-so .popular-games .section-title {
    color: var(--accent-color);
}

.page-xo-so .popular-games .section-title::after {
    background-color: var(--primary-color);
}

.page-xo-so .popular-games .section-paragraph {
    color: var(--text-light);
}

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

.page-xo-so .game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .game-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-xo-so .game-card .card-content {
    padding: 25px;
}

.page-xo-so .game-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

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

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

.page-xo-so .card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-xo-so .card-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-xo-so .how-to-play {
    background-color: var(--bg-light);
}

.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: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    padding-top: 60px;
}

.page-xo-so .step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-xo-so .step-button:hover {
    background-color: var(--primary-color);
}

.page-xo-so .promotions-section {
    background-color: #ffffff;
}

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

.page-xo-so .promo-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .promo-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-xo-so .promo-card .card-content {
    padding: 25px;
}

.page-xo-so .promo-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

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

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

.page-xo-so .safety-tips {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-xo-so .safety-tips .section-title {
    color: var(--accent-color);
}

.page-xo-so .safety-tips .section-title::after {
    background-color: var(--primary-color);
}

.page-xo-so .safety-tips .section-paragraph {
    color: var(--text-light);
}

.page-xo-so .tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0;
}

.page-xo-so .tips-list li {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-light);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-xo-so .tips-list li strong {
    color: var(--accent-color);
}

.page-xo-so .faq-section {
    background-color: var(--bg-light);
}

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

/* FAQ default state - answer hidden */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Question styling */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--secondary-color);
}

/* Toggle icon */
.faq-toggle {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-xo-so .faq-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-xo-so .faq-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-xo-so .conclusion-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-xo-so .conclusion-section .section-title {
    color: var(--accent-color);
}

.page-xo-so .conclusion-section .section-title::after {
    background-color: var(--primary-color);
}

.page-xo-so .conclusion-section .section-paragraph {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-xo-so .hero-title {
        font-size: 3em;
    }
    .page-xo-so .hero-description {
        font-size: 1.1em;
    }
    .page-xo-so .section-title {
        font-size: 2em;
    }
    .page-xo-so .section-paragraph {
        font-size: 1em;
    }
    .page-xo-so .feature-item h3, .page-xo-so .game-card h3, .page-xo-so .step-item h3, .page-xo-so .promo-card h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-xo-so .hero-banner {
        min-height: 400px;
        padding: 20px;
    }
    .page-xo-so .hero-overlay {
        padding: 30px 20px;
    }
    .page-xo-so .hero-title {
        font-size: 2.5em;
    }
    .page-xo-so .hero-description {
        font-size: 1em;
    }
    .page-xo-so .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-xo-so .intro-section, .page-xo-so why-choose-us, .page-xo-so popular-games, .page-xo-so how-to-play, .page-xo-so promotions-section, .page-xo-so safety-tips, .page-xo-so faq-section, .page-xo-so conclusion-section {
        padding: 40px 0;
    }
    .page-xo-so .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-xo-so .section-paragraph {
        margin-bottom: 20px;
    }
    .page-xo-so .features-grid, .page-xo-so .game-cards-grid, .page-xo-so .steps-grid, .page-xo-so .promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-xo-so .feature-item, .page-xo-so .game-card, .page-xo-so .step-item, .page-xo-so .promo-card {
        padding: 25px;
    }
    .page-xo-so .step-number {
        top: -20px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    .page-xo-so .tips-list li {
        padding: 15px 20px;
        font-size: 1em;
    }
    .faq-question {
        padding: 12px;
        flex-direction: row;
        align-items: center;
    }
    .faq-question h3 {
        font-size: 1.1em;
        margin-right: 10px;
    }
    .faq-toggle {
        font-size: 18px;
    }
    .faq-item.active .faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-xo-so .hero-title {
        font-size: 2em;
    }
    .page-xo-so .hero-description {
        font-size: 0.9em;
    }
    .page-xo-so .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-xo-so .section-title {
        font-size: 1.5em;
    }
    .page-xo-so .feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-xo-so .game-card .card-image, .page-xo-so .promo-card .card-image {
        height: 150px;
    }
}