/* style/casino.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-casino {
    /* Default text color for the page, contrasting with dark backgrounds */
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-casino__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-casino__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure sufficient height */
    overflow: hidden; /* Hide overflow for image */
    padding-bottom: 40px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image slightly for text contrast */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-cta-buttons,
.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-casino__cta-buttons--center {
    margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__btn-secondary {
    background: #ffffff; /* White background for contrast */
    color: #11A84E; /* Main brand green for text */
    border: 2px solid #11A84E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
    background: #11A84E; /* Main brand green on hover */
    color: #ffffff; /* White text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-casino__about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-casino__text-block {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.8;
}

.page-casino__image-content {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    display: block;
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG */
}

.page-casino__dark-section {
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
}

.page-casino__game-cards,
.page-casino__promo-cards,
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card {
    background-color: #08160F; /* Background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino__game-card .page-casino__card-title,
.page-casino__promo-card .page-casino__card-title {
    padding: 15px 20px 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
}

.page-casino__game-card .page-casino__card-title a,
.page-casino__promo-card .page-casino__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card .page-casino__card-title a:hover,
.page-casino__promo-card .page-casino__card-title a:hover {
    color: #2AD16F; /* Button color */
}

.page-casino__game-card .page-casino__card-description,
.page-casino__promo-card .page-casino__card-description {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1; /* Make descriptions take up available space */
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-casino__feature-item {
    text-align: center;
    background-color: #11271B; /* Card BG */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
    width: 80px; /* Display size */
    height: 80px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum generated image size */
    min-height: 200px; /* Enforce minimum generated image size */
}

.page-casino__feature-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__feature-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Promotions Section (reusing game card styles) */
.page-casino__promotions-section {
    padding: 60px 0;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-casino__step-item {
    text-align: center;
    background-color: #11271B; /* Card BG */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.page-casino__step-icon {
    width: 80px; /* Display size */
    height: 80px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum generated image size */
    min-height: 200px; /* Enforce minimum generated image size */
}

.page-casino__step-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__step-text {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-casino__btn-text-link {
    color: #2AD16F; /* Button color for text link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-casino__btn-text-link:hover {
    color: #13994A; /* Darker green on hover */
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
}

.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-casino__faq-item {
    background-color: #08160F; /* Background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #1E3A2A; /* Darker Divider on hover */
}

.page-casino__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #F2FFF6; /* Text Main for better contrast */
    margin-left: 15px;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    color: #2AD16F; /* Highlight when open */
}

.page-casino__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

/* Call to Action Section */
.page-casino__call-to-action-section {
    padding: 60px 0;
    text-align: center;
    background-color: #08160F; /* Background */
}

.page-casino__cta-content {
    background-color: #11271B; /* Card BG */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-casino__section-title {
        font-size: 2rem;
    }
    .page-casino__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-casino__game-cards,
    .page-casino__promo-cards,
    .page-casino__steps-grid,
    .page-casino__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-casino__section-title {
        font-size: 1.8rem;
    }
    .page-casino__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-casino__hero-description {
        font-size: 1rem;
    }
    .page-casino__hero-cta-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain buttons width on small screens */
        margin-left: auto;
        margin-right: auto;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__container,
    .page-casino__hero-image-wrapper,
    .page-casino__about-content,
    .page-casino__game-cards,
    .page-casino__promo-cards,
    .page-casino__steps-grid,
    .page-casino__features-grid,
    .page-casino__faq-list,
    .page-casino__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-casino__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-left: 0;
        padding-right: 0;
    }
    .page-casino__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px;
    }
    .page-casino__about-content {
        flex-direction: column;
    }
    .page-casino__image-content {
        margin: 15px 0;
    }
    .page-casino__feature-item,
    .page-casino__step-item {
        padding: 20px 15px;
    }
    .page-casino__card-image {
        height: 180px; /* Slightly smaller card images */
    }
    .page-casino__game-card .page-casino__card-title,
    .page-casino__promo-card .page-casino__card-title {
        font-size: 1.2rem;
    }
    .page-casino__game-card .page-casino__card-description,
    .page-casino__promo-card .page-casino__card-description {
        font-size: 0.9rem;
    }

    /* Video responsiveness - Included for completeness as per instructions, though no video element is used */
    .page-casino video,
    .page-casino__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-casino__video-section {
      padding-top: 10px !important;
    }
    .page-casino__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Ensure minimum image size rules are met visually for icon-like elements */
.page-casino__feature-icon,
.page-casino__step-icon {
    min-width: 200px; /* Actual generated size */
    min-height: 200px; /* Actual generated size */
    width: 80px; /* Display size */
    height: 80px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}