/* style/game-rules-strategies.css */

/* Custom Colors */
:root {
    --fly88-primary-color: #11A84E;
    --fly88-secondary-color: #22C768;
    --fly88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --fly88-card-bg: #11271B;
    --fly88-background: #08160F;
    --fly88-text-main: #F2FFF6;
    --fly88-text-secondary: #A7D9B8;
    --fly88-border: #2E7A4E;
    --fly88-glow: #57E38D;
    --fly88-gold: #F2C14E;
    --fly88-divider: #1E3A2A;
    --fly88-deep-green: #0A4B2C;
}

.page-game-rules-strategies {
    background-color: var(--fly88-background);
    color: var(--fly88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-game-rules-strategies__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-game-rules-strategies__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    background-color: var(--fly88-deep-green);
}

.page-game-rules-strategies__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    margin-bottom: 20px;
}

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

.page-game-rules-strategies__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--fly88-text-main);
    margin-bottom: 15px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-game-rules-strategies__hero-description {
    font-size: 1.1rem;
    color: var(--fly88-text-secondary);
    margin-bottom: 30px;
}

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

.page-game-rules-strategies__btn-primary,
.page-game-rules-strategies__btn-secondary,
.page-game-rules-strategies__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-rules-strategies__btn-primary {
    background: var(--fly88-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-game-rules-strategies__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--fly88-primary-color), 0.4);
}

.page-game-rules-strategies__btn-secondary {
    background: transparent;
    color: var(--fly88-primary-color);
    border: 2px solid var(--fly88-primary-color);
}

.page-game-rules-strategies__btn-secondary:hover {
    background: var(--fly88-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--fly88-primary-color), 0.2);
}

.page-game-rules-strategies__btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.page-game-rules-strategies__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--fly88-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
}

.page-game-rules-strategies__sub-title {
    font-size: 1.5rem;
    color: var(--fly88-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-rules-strategies__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--fly88-text-main);
}

.page-game-rules-strategies__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--fly88-text-main);
}

.page-game-rules-strategies__list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-game-rules-strategies__list li strong {
    color: var(--fly88-primary-color);
}

.page-game-rules-strategies__introduction-section,
.page-game-rules-strategies__fairness-policy-section,
.page-game-rules-strategies__conclusion-section {
    background-color: var(--fly88-background);
    padding: 60px 0;
}

.page-game-rules-strategies__general-rules-section,
.page-game-rules-strategies__risk-management-section,
.page-game-rules-strategies__faq-section {
    background-color: var(--fly88-card-bg);
    padding: 60px 0;
}

.page-game-rules-strategies__game-specific-rules {
    background-color: var(--fly88-background);
    padding: 60px 0;
}

.page-game-rules-strategies__rule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-rules-strategies__rule-item {
    background-color: var(--fly88-deep-green);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--fly88-border);
}

.page-game-rules-strategies__rule-title {
    font-size: 1.3rem;
    color: var(--fly88-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-rules-strategies__rule-description {
    font-size: 0.95rem;
    color: var(--fly88-text-secondary);
    line-height: 1.6;
}

.page-game-rules-strategies__game-category {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--fly88-divider);
}

.page-game-rules-strategies__game-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.page-game-rules-strategies__game-category-title {
    font-size: 2rem;
    color: var(--fly88-primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-game-rules-strategies__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 25px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-game-rules-strategies__faq-list {
    margin-top: 30px;
}

.page-game-rules-strategies__faq-item {
    background-color: var(--fly88-deep-green);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--fly88-border);
}

.page-game-rules-strategies__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--fly88-text-main);
    cursor: pointer;
    background-color: var(--fly88-deep-green);
    border-bottom: 1px solid var(--fly88-divider);
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.page-game-rules-strategies__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-rules-strategies__faq-question:hover {
    background-color: var(--fly88-deep-green);
    filter: brightness(1.2);
}

.page-game-rules-strategies__faq-qtext {
    flex-grow: 1;
}

.page-game-rules-strategies__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--fly88-gold);
    transition: transform 0.3s ease;
}

.page-game-rules-strategies__faq-item[open] .page-game-rules-strategies__faq-toggle {
    transform: rotate(45deg);
}

.page-game-rules-strategies__faq-answer {
    padding: 15px 25px 25px;
    font-size: 0.95rem;
    color: var(--fly88-text-secondary);
    line-height: 1.6;
    background-color: var(--fly88-card-bg);
}

.page-game-rules-strategies__faq-answer p {
    margin-bottom: 15px;
}

.page-game-rules-strategies__faq-answer .page-game-rules-strategies__btn-small {
    margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-rules-strategies__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-game-rules-strategies__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .page-game-rules-strategies {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-rules-strategies__container,
    .page-game-rules-strategies__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-rules-strategies__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-game-rules-strategies__hero-image {
        max-height: 300px;
    }

    .page-game-rules-strategies__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-game-rules-strategies__hero-description {
        font-size: 1rem;
    }

    .page-game-rules-strategies__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-rules-strategies__btn-primary,
    .page-game-rules-strategies__btn-secondary,
    .page-game-rules-strategies__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1rem;
    }

    .page-game-rules-strategies__section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-game-rules-strategies__sub-title {
        font-size: 1.3rem;
    }

    .page-game-rules-strategies__text-block,
    .page-game-rules-strategies__list li,
    .page-game-rules-strategies__rule-description,
    .page-game-rules-strategies__faq-answer p {
        font-size: 0.95rem;
    }

    .page-game-rules-strategies__rule-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-rules-strategies__game-category-title {
        font-size: 1.7rem;
    }

    .page-game-rules-strategies__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-game-rules-strategies__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-game-rules-strategies__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure images maintain original color */
.page-game-rules-strategies img {
    filter: none !important;
}