/* style/xo-so.css */

/* General page styles for .page-xo-so */
.page-xo-so {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

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

/* Hero Section */
.page-xo-so__hero {
    background: linear-gradient(135deg, #0A2463 0%, #1A3F80 100%); /* Gradient with primary color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-xo-so__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-xo-so__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold for main title */
}

.page-xo-so__highlight {
    color: #FFD700; /* Gold for keywords */
}

.page-xo-so__subtitle {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-xo-so__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-xo-so__btn--primary {
    background-color: #FFD700; /* Gold button */
    color: #0A2463; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-xo-so__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-xo-so__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-xo-so__btn--secondary:hover {
    background-color: #FFD700;
    color: #0A2463;
    transform: translateY(-2px);
}

.page-xo-so__hero-image {
    max-width: 500px;
    margin-top: 30px;
    z-index: 1;
}

.page-xo-so__image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Section common styles */
.page-xo-so__intro,
.page-xo-so__game-types,
.page-xo-so__why-choose,
.page-xo-so__how-to-play,
.page-xo-so__tips,
.page-xo-so__faq,
.page-xo-so__cta-final {
    padding: 60px 0;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-xo-so__intro {
    background-color: #f0f4f8;
    text-align: center;
}

.page-xo-so__section-title {
    font-size: 2.5em;
    color: #0A2463;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-xo-so__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    border-radius: 2px;
}

.page-xo-so__intro p {
    font-size: 1.1em;
    max-width: 900px;
    margin: 20px auto;
    color: #555;
}

.page-xo-so__intro p a {
    color: #0A2463;
    font-weight: bold;
    text-decoration: none;
}

.page-xo-so__intro p a:hover {
    text-decoration: underline;
}

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

.page-xo-so__game-card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-xo-so__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-xo-so__card-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-xo-so__card-title {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-xo-so__card-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-xo-so__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: auto;
}

/* Why Choose Section */
.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: #f0f4f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-xo-so__feature-item:hover {
    transform: translateY(-5px);
}

.page-xo-so__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.page-xo-so__feature-title {
    font-size: 1.6em;
    color: #0A2463;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-xo-so__feature-item p {
    color: #555;
    font-size: 1em;
}

/* How to Play Section */
.page-xo-so__how-to-play {
    background-color: #e6f0ff;
}

.page-xo-so__steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-xo-so__steps li {
    background-color: #ffffff;
    border-left: 5px solid #0A2463;
    margin-bottom: 20px;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-xo-so__step-title {
    font-size: 1.8em;
    color: #0A2463;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.page-xo-so__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #FFD700;
    color: #0A2463;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 15px;
    transform: translateY(-2px);
    flex-shrink: 0;
}

.page-xo-so__steps li p {
    color: #555;
    font-size: 1.05em;
}

.page-xo-so__steps li p a {
    color: #0A2463;
    font-weight: bold;
    text-decoration: none;
}

.page-xo-so__steps li p a:hover {
    text-decoration: underline;
}

.page-xo-so__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-xo-so__cta-bottom p {
    font-size: 1.1em;
    margin-top: 20px;
    color: #555;
}

.page-xo-so__cta-bottom p a {
    color: #0A2463;
    font-weight: bold;
    text-decoration: none;
}

.page-xo-so__cta-bottom p a:hover {
    text-decoration: underline;
}

/* Tips Section */
.page-xo-so__tips {
    background-color: #fff8e1;
}

.page-xo-so__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-xo-so__tip-list li {
    background-color: #ffffff;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-xo-so__tip-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.page-xo-so__tip-list li strong {
    color: #0A2463;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: block;
}

.page-xo-so__tip-list li p {
    color: #555;
    font-size: 0.95em;
}

/* FAQ Section */
.page-xo-so__faq {
    background-color: #f0f4f8;
}

.page-xo-so__faq-list {
    margin-top: 40px;
}

.page-xo-so__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-xo-so__faq-question {
    font-size: 1.3em;
    color: #0A2463;
    padding: 18px 25px;
    margin: 0;
    cursor: pointer;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.page-xo-so__faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-xo-so__faq-item.active .page-xo-so__faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.page-xo-so__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #ffffff;
}

.page-xo-so__faq-item.active .page-xo-so__faq-answer {
    max-height: 200px; /* Adjust as needed for content */
    padding: 15px 25px 25px;
}

.page-xo-so__faq-answer p {
    color: #555;
    font-size: 1em;
    margin-bottom: 0;
}

.page-xo-so__faq-answer p a {
    color: #0A2463;
    font-weight: bold;
    text-decoration: none;
}

.page-xo-so__faq-answer p a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-xo-so__cta-final {
    background: linear-gradient(45deg, #0A2463, #1A3F80);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-xo-so__cta-final .page-xo-so__section-title {
    color: #FFD700;
}

.page-xo-so__cta-final .page-xo-so__section-title::after {
    background-color: #ffffff;
}

.page-xo-so__cta-final p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 20px auto 40px;
    color: #e0e0e0;
}

.page-xo-so__cta-final p a {
    color: #FFD700;
    font-weight: bold;
    text-decoration: none;
}

.page-xo-so__cta-final p a:hover {
    text-decoration: underline;
}

.page-xo-so__final-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-xo-so__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 220px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-xo-so__title {
        font-size: 2.8em;
    }
    .page-xo-so__subtitle {
        font-size: 1.2em;
    }
    .page-xo-so__section-title {
        font-size: 2em;
    }
    .page-xo-so__game-grid,
    .page-xo-so__features-grid,
    .page-xo-so__tip-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-xo-so__hero {
        flex-direction: column;
        padding: 60px 15px;
    }
    .page-xo-so__title {
        font-size: 2.2em;
    }
    .page-xo-so__subtitle {
        font-size: 1em;
    }
    .page-xo-so__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-xo-so__btn {
        width: 100%;
        max-width: 300px;
    }
    .page-xo-so__section-title {
        font-size: 1.8em;
    }
    .page-xo-so__intro,
    .page-xo-so__game-types,
    .page-xo-so__why-choose,
    .page-xo-so__how-to-play,
    .page-xo-so__tips,
    .page-xo-so__faq,
    .page-xo-so__cta-final {
        padding: 40px 0;
    }
    .page-xo-so__game-card,
    .page-xo-so__feature-item,
    .page-xo-so__tip-list li,
    .page-xo-so__faq-item {
        padding: 20px;
    }
    .page-xo-so__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-xo-so__faq-item.active .page-xo-so__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-xo-so__final-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-xo-so__btn--large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-xo-so__title {
        font-size: 1.8em;
    }
    .page-xo-so__subtitle {
        font-size: 0.9em;
    }
    .page-xo-so__section-title {
        font-size: 1.5em;
    }
    .page-xo-so__game-grid,
    .page-xo-so__features-grid,
    .page-xo-so__tip-list {
        grid-template-columns: 1fr;
    }
    .page-xo-so__steps li {
        padding: 20px 20px;
    }
    .page-xo-so__step-title {
        font-size: 1.5em;
    }
}