/* style/xo-so.css */
:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #002244;
    --border-color: #e0e0e0;
}

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

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

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

.page-xo-so h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
}

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

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

.page-xo-so p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

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

/* Hero Section */
.page-xo-so .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

.page-xo-so .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-xo-so .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-xo-so .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-xo-so .hero-content p {
    font-size: 1.2em;
    margin-top: 20px;
    color: var(--text-light);
}

.page-xo-so .highlight-text {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-xo-so .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-xo-so .cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* About Section (Feature Grid) */
.page-xo-so .about-section, .page-xo-so .how-to-play-section, .page-xo-so .strategy-section, .page-xo-so .platform-advantages-section, .page-xo-so .faq-section, .page-xo-so .blog-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-xo-so .about-section p, .page-xo-so .how-to-play-section p, .page-xo-so .strategy-section p, .page-xo-so .platform-advantages-section p, .page-xo-so .faq-section p, .page-xo-so .blog-section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-xo-so .feature-item, .page-xo-so .advantage-item, .page-xo-so .blog-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so .feature-icon, .page-xo-so .advantage-icon {
    width: 150px; /* Min 200px requirement applies to actual image generation, not necessarily CSS display size for icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

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

.page-xo-so .btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-xo-so .btn-small:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* How-To-Play Section */
.page-xo-so .how-to-play-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-xo-so .how-to-play-section h2 {
    color: var(--secondary-color);
}

.page-xo-so .how-to-play-section p {
    color: var(--text-light);
}

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

.page-xo-so .guide-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

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

.page-xo-so .guide-item p {
    font-size: 1em;
    text-align: center;
}

.page-xo-so .btn-guide {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.page-xo-so .btn-guide:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

/* Strategy Section */
.page-xo-so .strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-xo-so .strategy-list li {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-xo-so .strategy-list li h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-xo-so .faq-section {
    background-color: var(--background-light);
}

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

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

.page-xo-so .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-xo-so .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
}

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

/* Blog Section */
.page-xo-so .blog-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-xo-so .blog-section h2 {
    color: var(--secondary-color);
}

.page-xo-so .blog-section p {
    color: var(--text-light);
}

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

.page-xo-so .blog-card {
    background: #ffffff;
    color: var(--text-dark);
    text-align: left;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.page-xo-so .blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

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

.page-xo-so .blog-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-xo-so .blog-content p {
    font-size: 0.95em;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
}

.page-xo-so .read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-xo-so .read-more:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-xo-so h1 {
        font-size: 2.2em;
    }
    .page-xo-so h2 {
        font-size: 1.8em;
    }
    .page-xo-so h3 {
        font-size: 1.3em;
    }
    .page-xo-so .cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-xo-so .feature-grid, .page-xo-so .advantage-grid, .page-xo-so .step-by-step-guide, .page-xo-so .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-xo-so .hero-section {
        padding: 40px 15px;
    }
    .page-xo-so .hero-image img {
        border-radius: 4px;
    }
    .page-xo-so .hero-content p {
        font-size: 1.1em;
    }
    .page-xo-so .cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 30px;
    }
    .page-xo-so .about-section, .page-xo-so .how-to-play-section, .page-xo-so .strategy-section, .page-xo-so .platform-advantages-section, .page-xo-so .faq-section, .page-xo-so .blog-section {
        padding: 40px 0;
    }
    .page-xo-so .faq-question {
        padding: 15px 20px;
    }
    .page-xo-so .faq-question h3 {
        font-size: 1.1em;
    }
    .page-xo-so .faq-answer {
        padding: 0 20px;
    }
    .page-xo-so .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-xo-so h1 {
        font-size: 1.8em;
    }
    .page-xo-so h2 {
        font-size: 1.5em;
    }
    .page-xo-so h3 {
        font-size: 1.2em;
    }
    .page-xo-so .feature-grid, .page-xo-so .advantage-grid, .page-xo-so .step-by-step-guide, .page-xo-so .blog-grid {
        grid-template-columns: 1fr;
    }
    .page-xo-so .feature-icon, .page-xo-so .advantage-icon {
        width: 120px;
    }
    .page-xo-so .blog-image {
        height: 200px;
    }
}