.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Logo Carousel Section */
.page-casino__logo-carousel-section {
    padding: 10px 0 30px; /* Small top padding, no var(--header-offset) */
    background-color: #0d0d0d; /* Same as body for seamless look */
    text-align: center;
}

.page-casino__logo-carousel-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-casino__logo-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%; /* Ensure it doesn't overflow */
    overflow: hidden;
}

.page-casino__logo-item {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Prevent shrinking on smaller screens */
}

.page-casino__logo-item img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    width: auto; /* Allow image to scale within item */
    height: auto;
    border-radius: 0; /* No border-radius on image itself */
    filter: brightness(0.8) grayscale(0.2); /* Slightly dim and desaturate */
}

/* Hero Section */
.page-casino__hero-section {
    padding-top: 0; /* Handled by body padding-top */
    padding-bottom: 50px;
    background-color: #0d0d0d; /* Ensure consistent background */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper doesn't overflow */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 0; /* No border-radius */
}

.page-casino__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-casino__hero-title {
    font-size: 3.2em; /* Using em, will scale */
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-casino__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__text-block .highlight {
    color: #FFFF00; /* Highlight color for keywords */
    font-weight: bold;
}

.page-casino__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* About Section */
.page-casino__about-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

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

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 0; /* No border-radius */
}

.page-casino__game-card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin: 0 15px 10px;
    font-weight: bold;
}

.page-casino__game-card-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left;
}

/* Strategy Section */
.page-casino__strategy-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.page-casino__strategy-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__strategy-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__strategy-item-title {
    font-size: 1.3em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__strategy-item-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 0; /* No border-radius */
}

.page-casino__promo-card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin: 0 15px 10px;
    font-weight: bold;
}

.page-casino__promo-card-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: left;
}

/* Security Section */
.page-casino__security-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

/* Mobile Section */
.page-casino__mobile-section {
    padding: 60px 0;
    background-color: #0d0d0d;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color for FAQ questions */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none;
}

.page-casino__faq-question::marker {
    display: none;
}

.page-casino__faq-qtext {
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-casino__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #cccccc;
    line-height: 1.6;
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Buttons General */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login text color */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login text color */
    border: 2px solid #C30808;
}

.page-casino__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-casino__btn-text {
    background-color: transparent;
    color: #017439;
    border: none;
    padding: 8px 15px;
    font-size: 1em;
    font-weight: normal;
    text-decoration: underline;
}

.page-casino__btn-text:hover {
    color: #01a350;
}

.page-casino__btn-full-width {
    width: 100%;
    max-width: 300px; /* Limit max width for full width buttons */
    margin-top: 30px;
}

/* Links in content */
.page-casino a {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino a:hover {
    color: #01a350;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }

    .page-casino__section-title {
        font-size: 2em;
    }

    .page-casino__games-grid,
    .page-casino__strategy-list,
    .page-casino__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino {
        font-size: 14px;
        line-height: 1.5;
    }

    /* LOGO Carousel Section */
    .page-casino__logo-carousel-section {
        padding: 10px 0 20px; /* Adjusted padding */
    }

    .page-casino__logo-carousel-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-casino__logo-carousel {
        gap: 10px; /* Reduced gap */
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .page-casino__logo-carousel::-webkit-scrollbar {
        display: none;
    }

    /* 🚨 LOGO轮播项必须单独设置，保持固定尺寸 */
    .page-casino__logo-item {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box;
    }

    /* HERO Section */
    .page-casino__hero-section {
        padding-bottom: 30px;
    }
    .page-casino__hero-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Responsive font size */
        margin-bottom: 10px;
    }
    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure container takes full width */
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* General Sections */
    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-casino__text-block {
        font-size: 1em;
    }
    .page-casino__image-content {
        margin: 20px auto;
    }

    /* Games Section */
    .page-casino__games-section {
        padding: 40px 0;
    }
    .page-casino__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__game-card {
        padding-bottom: 15px;
    }
    .page-casino__game-card-image {
        height: 180px;
    }
    .page-casino__game-card-title {
        font-size: 1.2em;
    }
    .page-casino__game-card-description {
        font-size: 0.9em;
    }

    /* Strategy Section */
    .page-casino__strategy-section {
        padding: 40px 0;
    }
    .page-casino__strategy-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__strategy-item {
        padding: 20px;
    }
    .page-casino__strategy-item-title {
        font-size: 1.1em;
    }

    /* Promotions Section */
    .page-casino__promotions-section {
        padding: 40px 0;
    }
    .page-casino__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__promo-card {
        padding-bottom: 15px;
    }
    .page-casino__promo-card-image {
        height: 200px;
    }
    .page-casino__promo-card-title {
        font-size: 1.2em;
    }
    .page-casino__promo-card-description {
        font-size: 0.9em;
    }
    .page-casino__btn-full-width {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Security Section */
    .page-casino__security-section {
        padding: 40px 0;
    }

    /* Mobile Section */
    .page-casino__mobile-section {
        padding: 40px 0;
    }

    /* FAQ Section */
    .page-casino__faq-section {
        padding: 40px 0;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-casino__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section */
    .page-casino__cta-final-section {
        padding: 40px 0;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 🚨 Universal Image & Button Adapation for Mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Containers that might hold images or other content */
    .page-casino__container,
    .page-casino__section,
    .page-casino__card,
    .page-casino__hero-image-wrapper,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal overflow */
    }

    /* Buttons mobile adaptation */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-text,
    .page-casino a[class*="button"],
    .page-casino 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; /* Ensure button text has padding */
        padding-right: 15px;
    }

    /* Button containers mobile adaptation */
    .page-casino__hero-cta-buttons,
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px !important; /* Consistent gap for stacked buttons */
    }
}