:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #2c3e50;
    --border-color: #e0e0e0;
}

/* General page styling */
.page-xo-so-lottery-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

.page-xo-so-lottery-rules h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
}

.page-xo-so-lottery-rules h3 {
    font-size: 1.6em;
}

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

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

.page-xo-so-lottery-rules a:hover {
    color: var(--secondary-color);
}

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

.page-xo-so-lottery-rules-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-xo-so-lottery-rules-section:last-of-type {
    border-bottom: none;
}

/* Hero Section */
.page-xo-so-lottery-rules-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color); /* Fallback if image doesn't load */
    overflow: hidden;
}

.page-xo-so-lottery-rules-hero-container {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Wider container for hero */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-xo-so-lottery-rules-hero-image {
    width: 100%;
    height: auto;
    max-height: 550px; /* Limit height for aesthetic */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.page-xo-so-lottery-rules-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    margin-top: -100px; /* Overlap with image slightly */
}

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

.page-xo-so-lottery-rules-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-xo-so-lottery-rules-cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-xo-so-lottery-rules-intro p {
    text-align: justify;
}

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

.page-xo-so-lottery-rules-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-xo-so-lottery-rules-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-xo-so-lottery-rules-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

.page-xo-so-lottery-rules-card p {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px;
    text-align: justify;
}

/* Gameplay Section */
.page-xo-so-lottery-rules-gameplay ol {
    list-style-type: decimal;
    padding-left: 25px;
    margin-top: 20px;
}

.page-xo-so-lottery-rules-gameplay ol li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-xo-so-lottery-rules-gameplay ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.page-xo-so-lottery-rules-gameplay ul li {
    margin-bottom: 5px;
    font-size: 1em;
    color: #555;
}

/* Strategies Section */
.page-xo-so-lottery-rules-grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-xo-so-lottery-rules-strategy-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-xo-so-lottery-rules-strategy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-xo-so-lottery-rules-strategy-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-xo-so-lottery-rules-strategy-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 20px;
    text-align: center;
}

.page-xo-so-lottery-rules-strategy-item h3 a {
    color: var(--primary-color);
}

.page-xo-so-lottery-rules-strategy-item p {
    font-size: 1em;
    color: #666;
    padding: 0 20px;
    text-align: justify;
}

/* Advantages Section */
.page-xo-so-lottery-rules-advantages ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 20px;
}

.page-xo-so-lottery-rules-advantages ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}

/* FAQ Section */
.page-xo-so-lottery-rules-faq {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-xo-so-lottery-rules-faq h2 {
    color: var(--secondary-color);
}

.page-xo-so-lottery-rules-faq p {
    color: var(--text-light);
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #3a4a60;
    color: var(--text-light);
    border: 1px solid #4a5a70;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
    background: #4a5a70;
    border-color: var(--secondary-color);
}

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

.faq-question h3 a {
    color: var(--text-light);
}

.faq-question h3 a:hover {
    color: var(--secondary-color);
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #2a3a4e;
    color: #cccccc;
    border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
    border: 1px solid #4a5a70;
    border-top: none;
}

.faq-item.active .faq-answer p {
    color: #cccccc;
}

/* Call to Action Section */
.page-xo-so-lottery-rules-call-to-action {
    background: linear-gradient(135deg, var(--primary-color), #2c4a7e);
    text-align: center;
    color: var(--text-light);
    padding: 80px 20px;
}

.page-xo-so-lottery-rules-cta-content h2 {
    color: var(--secondary-color);
    font-size: 2.5em;
}

.page-xo-so-lottery-rules-cta-content h2 a {
    color: var(--secondary-color);
}

.page-xo-so-lottery-rules-cta-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-xo-so-lottery-rules-hero-content {
        margin-top: -80px;
        padding: 25px;
    }
    .page-xo-so-lottery-rules-hero h1 {
        font-size: 2.4em;
    }
    .page-xo-so-lottery-rules h2 {
        font-size: 2em;
    }
    .page-xo-so-lottery-rules-grid,
    .page-xo-so-lottery-rules-grid-2-col {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-xo-so-lottery-rules-hero {
        padding: 60px 15px;
    }
    .page-xo-so-lottery-rules-hero-image {
        max-height: 400px;
    }
    .page-xo-so-lottery-rules-hero-content {
        margin-top: -60px;
        padding: 20px;
    }
    .page-xo-so-lottery-rules-hero h1 {
        font-size: 2em;
    }
    .page-xo-so-lottery-rules-hero-content p {
        font-size: 1em;
    }
    .page-xo-so-lottery-rules-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-xo-so-lottery-rules-section {
        padding: 40px 0;
    }
    .page-xo-so-lottery-rules h2 {
        font-size: 1.8em;
    }
    .page-xo-so-lottery-rules h3 {
        font-size: 1.3em;
    }
    .page-xo-so-lottery-rules p,
    .page-xo-so-lottery-rules ol li,
    .page-xo-so-lottery-rules ul li {
        font-size: 0.95em;
    }
    .page-xo-so-lottery-rules-grid,
    .page-xo-so-lottery-rules-grid-2-col {
        grid-template-columns: 1fr;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-xo-so-lottery-rules-cta-content h2 {
        font-size: 2em;
    }
    .page-xo-so-lottery-rules-cta-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-xo-so-lottery-rules-hero-image {
        max-height: 300px;
    }
    .page-xo-so-lottery-rules-hero-content {
        margin-top: -40px;
        padding: 15px;
    }
    .page-xo-so-lottery-rules-hero h1 {
        font-size: 1.8em;
    }
    .page-xo-so-lottery-rules h2 {
        font-size: 1.6em;
    }
    .page-xo-so-lottery-rules-card h3,
    .page-xo-so-lottery-rules-strategy-item h3 {
        font-size: 1.2em;
    }
    .page-xo-so-lottery-rules-cta-content h2 {
        font-size: 1.8em;
    }
}