/* style/aw8-casino-game-rules.css */

:root {
    --page-aw8-casino-game-rules__primary-color: #FFD700;
    --page-aw8-casino-game-rules__secondary-color: #1A202C;
    --page-aw8-casino-game-rules__text-light: #ffffff;
    --page-aw8-casino-game-rules__text-dark: #333333;
    --page-aw8-casino-game-rules__bg-dark: #121212;
    --page-aw8-casino-game-rules__card-bg: rgba(255, 255, 255, 0.08);
    --page-aw8-casino-game-rules__border-color: rgba(255, 255, 255, 0.15);
}

.page-aw8-casino-game-rules {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-aw8-casino-game-rules__text-light); /* Body background is dark, so text is light */
    background-color: var(--page-aw8-casino-game-rules__bg-dark);
}

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

.page-aw8-casino-game-rules__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--page-aw8-casino-game-rules__primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px; /* Add padding top for spacing */
}

.page-aw8-casino-game-rules__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--page-aw8-casino-game-rules__primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-aw8-casino-game-rules__text-block p,
.page-aw8-casino-game-rules ul li {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--page-aw8-casino-game-rules__text-light);
}

.page-aw8-casino-game-rules ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-aw8-casino-game-rules ul li {
    margin-bottom: 8px;
}

/* Hero Section */
.page-aw8-casino-game-rules__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Fixed navbar spacing */
    margin-top: 0;
    background: linear-gradient(135deg, var(--page-aw8-casino-game-rules__secondary-color), #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.page-aw8-casino-game-rules__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
    color: var(--page-aw8-casino-game-rules__text-light);
}

.page-aw8-casino-game-rules__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--page-aw8-casino-game-rules__primary-color);
    line-height: 1.2;
}

.page-aw8-casino-game-rules__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-aw8-casino-game-rules__hero-button {
    display: inline-block;
    background-color: var(--page-aw8-casino-game-rules__primary-color);
    color: var(--page-aw8-casino-game-rules__secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-aw8-casino-game-rules__hero-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-aw8-casino-game-rules__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    overflow: hidden;
}

.page-aw8-casino-game-rules__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Introduction Section */
.page-aw8-casino-game-rules__introduction-section {
    padding: 80px 0;
    background-color: var(--page-aw8-casino-game-rules__bg-dark);
}

.page-aw8-casino-game-rules__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-aw8-casino-game-rules__content-wrapper .page-aw8-casino-game-rules__text-block {
    flex: 2;
}

.page-aw8-casino-game-rules__content-wrapper .page-aw8-casino-game-rules__image-block {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-aw8-casino-game-rules__content-wrapper .page-aw8-casino-game-rules__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Game Rules Section */
.page-aw8-casino-game-rules__game-rules-section {
    padding: 80px 0;
    background-color: var(--page-aw8-casino-game-rules__secondary-color);
}

.page-aw8-casino-game-rules__game-rule-item {
    background-color: var(--page-aw8-casino-game-rules__card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--page-aw8-casino-game-rules__border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-aw8-casino-game-rules__game-rule-title {
    font-size: 30px;
    font-weight: bold;
    color: var(--page-aw8-casino-game-rules__primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.page-aw8-casino-game-rules__game-rule-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-aw8-casino-game-rules__game-rule-content .page-aw8-casino-game-rules__text-block {
    flex: 2;
}

.page-aw8-casino-game-rules__game-rule-image {
    flex: 1;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Fairness Section */
.page-aw8-casino-game-rules__fairness-section {
    padding: 80px 0;
    background-color: var(--page-aw8-casino-game-rules__bg-dark);
}

.page-aw8-casino-game-rules__fairness-section .page-aw8-casino-game-rules__content-wrapper {
    flex-direction: row-reverse;
}

/* Tips Section */
.page-aw8-casino-game-rules__tips-section {
    padding: 80px 0;
    background-color: var(--page-aw8-casino-game-rules__secondary-color);
}

.page-aw8-casino-game-rules__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-aw8-casino-game-rules__tip-card {
    background-color: var(--page-aw8-casino-game-rules__card-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--page-aw8-casino-game-rules__border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-aw8-casino-game-rules__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-aw8-casino-game-rules__tip-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--page-aw8-casino-game-rules__primary-color);
    margin-bottom: 15px;
}

/* FAQ Section */
.page-aw8-casino-game-rules__faq-section {
    padding: 80px 0;
    background-color: var(--page-aw8-casino-game-rules__bg-dark);
}

.page-aw8-casino-game-rules__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-aw8-casino-game-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--page-aw8-casino-game-rules__card-bg);
    border: 1px solid var(--page-aw8-casino-game-rules__border-color);
}

.page-aw8-casino-game-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-aw8-casino-game-rules__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-aw8-casino-game-rules__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--page-aw8-casino-game-rules__text-light);
    pointer-events: none;
}

.page-aw8-casino-game-rules__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--page-aw8-casino-game-rules__primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-aw8-casino-game-rules__faq-item.active .page-aw8-casino-game-rules__faq-toggle {
    color: var(--page-aw8-casino-game-rules__text-light);
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-aw8-casino-game-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--page-aw8-casino-game-rules__text-light);
    background-color: rgba(255, 255, 255, 0.03);
}

.page-aw8-casino-game-rules__faq-item.active .page-aw8-casino-game-rules__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
}

/* General Image and Button Responsive Styles */
.page-aw8-casino-game-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-aw8-casino-game-rules__hero-button,
.page-aw8-casino-game-rules a[class*="button"],
.page-aw8-casino-game-rules a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-aw8-casino-game-rules__hero-title {
        font-size: 40px;
    }
    .page-aw8-casino-game-rules__hero-description {
        font-size: 18px;
    }
    .page-aw8-casino-game-rules__section-title {
        font-size: 32px;
    }
    .page-aw8-casino-game-rules__sub-title {
        font-size: 22px;
    }
    .page-aw8-casino-game-rules__content-wrapper {
        flex-direction: column;
    }
    .page-aw8-casino-game-rules__content-wrapper .page-aw8-casino-game-rules__image-block {
        max-width: 600px;
        margin: 0 auto;
    }
    .page-aw8-casino-game-rules__game-rule-content {
        flex-direction: column;
    }
    .page-aw8-casino-game-rules__game-rule-image {
        max-width: 100%;
        order: -1; /* Image above text on smaller screens */
    }
    .page-aw8-casino-game-rules__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-aw8-casino-game-rules__hero-section {
        min-height: 400px;
        padding-top: 10px; /* Mobile fixed navbar spacing */
    }
    .page-aw8-casino-game-rules__hero-title {
        font-size: 32px;
    }
    .page-aw8-casino-game-rules__hero-description {
        font-size: 16px;
    }
    .page-aw8-casino-game-rules__hero-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-aw8-casino-game-rules__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-aw8-casino-game-rules__sub-title {
        font-size: 20px;
    }
    .page-aw8-casino-game-rules__introduction-section,
    .page-aw8-casino-game-rules__game-rules-section,
    .page-aw8-casino-game-rules__fairness-section,
    .page-aw8-casino-game-rules__tips-section,
    .page-aw8-casino-game-rules__faq-section {
        padding: 60px 0;
    }
    .page-aw8-casino-game-rules__container {
        padding: 0 15px;
    }
    .page-aw8-casino-game-rules__text-block p,
    .page-aw8-casino-game-rules ul li {
        font-size: 16px;
    }
    .page-aw8-casino-game-rules__game-rule-item {
        padding: 20px;
    }
    .page-aw8-casino-game-rules__game-rule-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-aw8-casino-game-rules__tips-grid {
        gap: 20px;
    }
    .page-aw8-casino-game-rules__tip-card {
        padding: 20px;
    }
    .page-aw8-casino-game-rules__tip-title {
        font-size: 20px;
    }
    .page-aw8-casino-game-rules__faq-question {
        padding: 15px 20px;
    }
    .page-aw8-casino-game-rules__faq-question h3 {
        font-size: 16px;
    }
    .page-aw8-casino-game-rules__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-aw8-casino-game-rules__faq-item.active .page-aw8-casino-game-rules__faq-answer {
        padding: 15px 20px !important;
    }

    /* Force responsive for all images and containers */
    .page-aw8-casino-game-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-aw8-casino-game-rules__section,
    .page-aw8-casino-game-rules__card,
    .page-aw8-casino-game-rules__container,
    .page-aw8-casino-game-rules__content-wrapper,
    .page-aw8-casino-game-rules__tips-grid,
    .page-aw8-casino-game-rules__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-aw8-casino-game-rules__hero-button,
    .page-aw8-casino-game-rules a[class*="button"],
    .page-aw8-casino-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;
    }
}

@media (max-width: 480px) {
    .page-aw8-casino-game-rules__hero-title {
        font-size: 28px;
    }
    .page-aw8-casino-game-rules__section-title {
        font-size: 24px;
    }
    .page-aw8-casino-game-rules__game-rule-title {
        font-size: 22px;
    }
    .page-aw8-casino-game-rules__tip-title {
        font-size: 18px;
    }
    .page-aw8-casino-game-rules__faq-question h3 {
        font-size: 15px;
    }
}