/* style/game-rules.css */
.page-game-rules {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

.page-game-rules-hero-section {
    background: linear-gradient(135deg, #0A246A 0%, #304E8A 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-game-rules-hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-rules-hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-game-rules-hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-game-rules-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-game-rules-section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.page-game-rules-section:nth-of-type(even) {
    background-color: #f2f4f6;
}

.page-game-rules-section-title {
    font-size: 2.5em;
    color: #0A246A;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.page-game-rules-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-game-rules-content-grid.page-game-rules-reverse {
    grid-template-columns: 1fr 1fr;
}

.page-game-rules-content-grid.page-game-rules-reverse .page-game-rules-text-content {
    order: 2;
}

.page-game-rules-content-grid.page-game-rules-reverse .page-game-rules-image-wrapper {
    order: 1;
}

.page-game-rules-text-content h3 {
    font-size: 1.8em;
    color: #0A246A;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-rules-text-content p {
    margin-bottom: 15px;
    color: #555;
}

.page-game-rules-list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: #555;
}

.page-game-rules-list li {
    margin-bottom: 8px;
}

.page-game-rules-image-wrapper {
    text-align: center;
}

.page-game-rules-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-rules-highlight {
    color: #0A246A;
    font-weight: bold;
}

.page-game-rules-faq-items {
    margin-top: 40px;
}

.page-game-rules-faq-item {
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-game-rules-faq-question {
    font-size: 1.4em;
    color: #0A246A;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-game-rules-faq-question::after {
    content: '+';
    font-size: 1.2em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-game-rules-faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-game-rules-faq-answer {
    font-size: 1.05em;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
}

.page-game-rules-faq-answer.active {
    max-height: 200px; /* Adjust based on expected content length */
    padding-top: 15px;
}

.page-game-rules-cta-section {
    background: linear-gradient(90deg, #0A246A 0%, #1A3E85 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    border-radius: 8px;
    margin: 40px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-game-rules-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-rules-cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 25px;
}

.page-game-rules-cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-game-rules-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-game-rules-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-game-rules-btn-primary {
    background-color: #FFD700;
    color: #0A246A;
    border: 2px solid #FFD700;
}

.page-game-rules-btn-primary:hover {
    background-color: #e6c200;
    color: #0A246A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-game-rules-btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-game-rules-btn-secondary:hover {
    background-color: #FFD700;
    color: #0A246A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-game-rules-btn-app {
    background-color: #0A246A;
    color: #fff;
    border: 2px solid #fff;
}

.page-game-rules-btn-app:hover {
    background-color: #fff;
    color: #0A246A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-rules-hero-title {
        font-size: 2.5em;
    }
    .page-game-rules-section-title {
        font-size: 2em;
    }
    .page-game-rules-content-grid {
        grid-template-columns: 1fr;
    }
    .page-game-rules-content-grid.page-game-rules-reverse .page-game-rules-text-content {
        order: unset;
    }
    .page-game-rules-content-grid.page-game-rules-reverse .page-game-rules-image-wrapper {
        order: unset;
    }
    .page-game-rules-cta-title {
        font-size: 2.2em;
    }
    .page-game-rules-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-game-rules-hero-section {
        padding: 60px 0;
    }
    .page-game-rules-hero-title {
        font-size: 2em;
    }
    .page-game-rules-hero-description {
        font-size: 1em;
    }
    .page-game-rules-section {
        padding: 40px 0;
    }
    .page-game-rules-section-title {
        font-size: 1.8em;
    }
    .page-game-rules-text-content h3 {
        font-size: 1.5em;
    }
    .page-game-rules-faq-question {
        font-size: 1.2em;
    }
    .page-game-rules-cta-section {
        padding: 60px 0;
    }
    .page-game-rules-cta-title {
        font-size: 1.8em;
    }
    .page-game-rules-cta-description {
        font-size: 1em;
    }
    .page-game-rules-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-game-rules-container {
        padding: 0 15px;
    }
    .page-game-rules-hero-title {
        font-size: 1.8em;
    }
    .page-game-rules-hero-description {
        font-size: 0.95em;
    }
    .page-game-rules-section-title {
        font-size: 1.6em;
    }
    .page-game-rules-text-content h3 {
        font-size: 1.3em;
    }
    .page-game-rules-faq-question {
        font-size: 1.1em;
    }
    .page-game-rules-cta-title {
        font-size: 1.6em;
    }
    .page-game-rules-cta-description {
        font-size: 0.95em;
    }
    .page-game-rules-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}