/* style/game-rules.css */

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

/* Global styles for page-game-rules, ensuring text contrast against dark body background */
.page-game-rules {
    font-family: 'Arial', sans-serif;
    color: var(--lv88-text-main); /* Main text color for readability */
    background-color: var(--lv88-background);
}

.page-game-rules__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.page-game-rules__dark-bg {
    background-color: var(--lv88-background);
    color: var(--lv88-text-main);
}

.page-game-rules__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--lv88-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-rules__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--lv88-text-secondary);
}

.page-game-rules__highlight {
    color: var(--lv88-gold);
    font-weight: bold;
}

.page-game-rules a {
    color: var(--lv88-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-rules a:hover {
    color: var(--lv88-gold);
    text-decoration: underline;
}

/* Hero Section */
.page-game-rules__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    background-color: var(--lv88-deep-green);
}

.page-game-rules__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-rules__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Slightly dim the image to make text pop */
}

.page-game-rules__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-game-rules__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--lv88-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-game-rules__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--lv88-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-game-rules__cta-button {
    display: inline-block;
    background: var(--lv88-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-rules__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-game-rules__cta-button--secondary {
    background: none;
    border: 2px solid var(--lv88-gold);
    color: var(--lv88-gold);
    margin-left: 20px;
}

.page-game-rules__cta-button--secondary:hover {
    background: var(--lv88-gold);
    color: var(--lv88-background);
}

/* Intro Section */
.page-game-rules__intro-section {
    background-color: var(--lv88-background);
}

/* Principles Section */
.page-game-rules__principles-section {
    background-color: var(--lv88-card-bg);
}

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

.page-game-rules__card {
    background-color: var(--lv88-background);
    border: 1px solid var(--lv88-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--lv88-text-secondary);
}

.page-game-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-rules__card-title {
    font-size: 24px;
    color: var(--lv88-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-game-rules__card-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-game-rules__learn-more-link {
    display: inline-block;
    color: var(--lv88-secondary);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-rules__learn-more-link:hover {
    color: var(--lv88-gold);
    text-decoration: underline;
}

/* Game Rules Detail Section */
.page-game-rules__game-rules-detail {
    background-color: var(--lv88-background);
}

.page-game-rules__game-category {
    background-color: var(--lv88-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--lv88-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules__category-title {
    font-size: 28px;
    color: var(--lv88-gold);
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.page-game-rules__category-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-game-rules__category-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--lv88-text-secondary);
    margin-bottom: 20px;
}

.page-game-rules__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-game-rules__list li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--lv88-text-secondary);
}

.page-game-rules__list li::before {
    content: '•';
    color: var(--lv88-secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.page-game-rules__list-item-title {
    font-weight: bold;
    color: var(--lv88-text-main);
}

/* Promotions Section */
.page-game-rules__promotions-section {
    background-color: var(--lv88-deep-green);
}

.page-game-rules__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Transactions Section */
.page-game-rules__transactions-section {
    background-color: var(--lv88-background);
}

.page-game-rules__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 25px auto 30px auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Dispute Section */
.page-game-rules__dispute-section {
    background-color: var(--lv88-card-bg);
}

.page-game-rules__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.page-game-rules__numbered-list li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--lv88-text-secondary);
}

/* Responsible Gambling Section */
.page-game-rules__responsible-gambling-section {
    background-color: var(--lv88-background);
}

/* FAQ Section */
.page-game-rules__faq-section {
    background-color: var(--lv88-deep-green);
}

.page-game-rules__faq-list {
    margin-top: 40px;
}

.page-game-rules__faq-item {
    background-color: var(--lv88-card-bg);
    border: 1px solid var(--lv88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-game-rules__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--lv88-text-main);
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-game-rules__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-game-rules__faq-item summary:hover {
    background-color: rgba(var(--lv88-primary), 0.1);
}

.page-game-rules__faq-qtext {
    flex-grow: 1;
    color: var(--lv88-gold);
}

.page-game-rules__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--lv88-secondary);
}

.page-game-rules__faq-item[open] .page-game-rules__faq-toggle {
    content: '−'; /* Changed via JS */
}

.page-game-rules__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--lv88-text-secondary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-rules__hero-content {
        max-width: 700px;
    }
    .page-game-rules__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-game-rules__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-game-rules__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
}

@media (max-width: 768px) {
    .page-game-rules__section {
        padding: 40px 0;
    }
    .page-game-rules__hero-content {
        padding: 15px;
    }
    .page-game-rules__main-title {
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 15px;
    }
    .page-game-rules__hero-description {
        font-size: clamp(14px, 2.5vw, 16px);
        margin-bottom: 25px;
    }
    .page-game-rules__cta-button,
    .page-game-rules__cta-button--secondary {
        padding: 12px 25px;
        font-size: 16px;
        margin-left: 0;
        width: 100%;
        margin-bottom: 15px;
    }
    .page-game-rules__button-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .page-game-rules__grid-container {
        grid-template-columns: 1fr;
    }
    .page-game-rules__card {
        padding: 25px;
    }
    .page-game-rules__card-title {
        font-size: 22px;
    }
    .page-game-rules__game-category {
        padding: 25px;
    }
    .page-game-rules__category-title {
        font-size: 24px;
    }
    .page-game-rules__list li {
        font-size: 15px;
    }
    .page-game-rules__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-game-rules__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }

    /* Mobile specific image/video/button rules */
    .page-game-rules img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-game-rules__section,
    .page-game-rules__card,
    .page-game-rules__container,
    .page-game-rules__game-category,
    .page-game-rules__button-group {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-game-rules__hero-section {
        padding-top: 10px !important;
    }
    .page-game-rules__cta-button,
    .page-game-rules__cta-button--secondary,
    .page-game-rules a[class*="button"],
    .page-game-rules a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}