/* style/game-rules.css */
:root {
    --primary-color: #0A2342;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --bg-dark: #0A2342;
    --border-color: #e0e0e0;
}

.page-game-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-game-rules section {
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.page-game-rules .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page-game-rules .sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Hero Section */
.page-game-rules .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.page-game-rules .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-game-rules .hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-rules .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-game-rules .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-game-rules .hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-rules .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-game-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;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-rules .cta-button:hover {
    background: #ffc400;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Text & Lists */
.page-game-rules p {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--text-dark);
}

.page-game-rules p strong {
    color: var(--primary-color);
}

.page-game-rules ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-game-rules ol {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 1em;
}

.page-game-rules li {
    margin-bottom: 0.5em;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-game-rules .term-list li strong,
.page-game-rules .point-list li strong {
    color: var(--primary-color);
}

.page-game-rules .note {
    font-style: italic;
    color: #cc0000;
    font-weight: bold;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 20px;
}

/* Payout Table */
.page-game-rules .payout-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.page-game-rules .payout-table th,
.page-game-rules .payout-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
    font-size: 1.05em;
}

.page-game-rules .payout-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
    text-transform: uppercase;
}

.page-game-rules .payout-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.page-game-rules .payout-table tr:hover {
    background-color: #f1f1f1;
}

/* Online Guide Steps */
.page-game-rules .step-list li {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.page-game-rules .step-list li:hover {
    transform: translateY(-5px);
}

.page-game-rules .step-list li strong {
    color: var(--secondary-color);
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.page-game-rules .step-list li a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-game-rules .step-list li a:hover {
    text-decoration: underline;
}

/* Tips Section */
.page-game-rules .tip-list {
    list-style: none;
    padding: 0;
}

.page-game-rules .tip-list li {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.page-game-rules .tip-list li:hover {
    transform: translateY(-5px);
}

.page-game-rules .tip-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-game-rules .advantage-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-game-rules .advantage-list li {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.page-game-rules .advantage-list li:hover {
    transform: translateY(-5px);
}

.page-game-rules .advantage-list li strong {
    color: var(--secondary-color);
    font-size: 1.3em;
    display: block;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-game-rules .faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question:hover {
    background: #f5f5f5;
}

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

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Conclusion Section */
.page-game-rules .section-conclusion {
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-game-rules .section-conclusion .section-title {
    color: var(--secondary-color);
}

.page-game-rules .section-conclusion .section-title::after {
    background-color: var(--text-light);
}

.page-game-rules .section-conclusion p {
    font-size: 1.15em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-game-rules .section-conclusion a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: underline;
}

.page-game-rules .section-conclusion a:hover {
    color: #ffc400;
}

/* Image Styling */
.page-game-rules img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-rules .hero-content h1 {
        font-size: 2.8em;
    }
    .page-game-rules .section-title {
        font-size: 2em;
    }
    .page-game-rules .sub-title {
        font-size: 1.5em;
    }
    .page-game-rules p, .page-game-rules li {
        font-size: 1em;
    }
    .page-game-rules .payout-table th,
    .page-game-rules .payout-table td {
        padding: 10px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .page-game-rules .hero-section {
        padding: 60px 15px;
    }
    .page-game-rules .hero-content h1 {
        font-size: 2.2em;
    }
    .page-game-rules .hero-content p {
        font-size: 1em;
    }
    .page-game-rules .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-game-rules section {
        padding: 40px 0;
    }
    .page-game-rules .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-rules .sub-title {
        font-size: 1.3em;
    }
    .page-game-rules .advantage-list {
        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-game-rules img {
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .page-game-rules .hero-content h1 {
        font-size: 1.8em;
    }
    .page-game-rules .hero-content p {
        font-size: 0.9em;
    }
    .page-game-rules .section-title {
        font-size: 1.5em;
    }
    .page-game-rules .payout-table th,
    .page-game-rules .payout-table td {
        font-size: 0.85em;
        padding: 8px;
    }
    .page-game-rules .payout-table thead {
        display: none; /* Hide table header for very small screens */
    }
    .page-game-rules .payout-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
    .page-game-rules .payout-table td {
        display: block;
        text-align: right;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    .page-game-rules .payout-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
        color: var(--primary-color);
    }
    .page-game-rules .payout-table td:nth-of-type(1)::before { content: 'Cửa Cược:'; }
    .page-game-rules .payout-table td:nth-of-type(2)::before { content: 'Mô Tả:'; }
    .page-game-rules .payout-table td:nth-of-type(3)::before { content: 'Tỷ Lệ:'; }
}