:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background-dark: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --white: #ffffff;
    --dark-text: #333333;
}

body {
    background-color: var(--background-dark); /* Assuming shared.css defines --background-color, but setting a default for page-casino scope */
    color: var(--text-main); /* Default text color for the page */
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Ensure main content text is light for dark background */
}

/* --- General Section Styles --- */
.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.page-casino__text-block {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-casino__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* As per instruction, small top padding */
    background-color: var(--background-dark);
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* For flex item width */
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image for text contrast, but not color filter */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-main);
}

.page-casino__main-title {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    font-weight: normal; /* As per instruction, don't hardcode font-size for h1, use font-weight etc. */
    letter-spacing: 1px;
}

.page-casino__hero-description {
    font-size: 20px;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.page-casino__cta-button,
.page-casino__btn-primary,
.page-casino__cta-final-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-casino__cta-button:hover,
.page-casino__btn-primary:hover,
.page-casino__cta-final-button:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* --- Intro Section --- */
.page-casino__intro-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

/* --- Why Choose Us Section --- */
.page-casino__why-choose-us-section {
    background-color: var(--card-bg); /* Slightly lighter background for contrast */
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.page-casino__feature-card {
    background-color: var(--background-dark);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-casino__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-casino__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__feature-card p {
    font-size: 16px;
    color: var(--text-main);
}

/* --- Game Types Section --- */
.page-casino__game-types-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

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

.page-casino__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-casino__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-casino__game-card .page-casino__game-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-casino__game-card p {
    font-size: 16px;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-main);
}

.page-casino__game-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    background-color: #1a1a1a;
}

.page-casino__game-link:hover {
    background-color: #2a2a2a;
    color: var(--secondary-color);
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.page-casino__promo-card {
    background-color: var(--background-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.page-casino__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-casino__promo-card .page-casino__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-casino__promo-card p {
    font-size: 16px;
    padding: 0 20px 20px;
    color: var(--text-main);
}

.page-casino__button-group {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Button responsive */
    width: 100%; /* Button responsive */
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    overflow: hidden; /* Button responsive */
}

.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Live Casino Section --- */
.page-casino__live-casino-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

.page-casino__live-casino-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-casino__highlight-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-casino__highlight-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__highlight-item p {
    font-size: 16px;
    color: var(--text-main);
}

/* --- Safety Section --- */
.page-casino__safety-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-casino__safety-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-casino__safety-item {
    background-color: var(--background-dark);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-casino__safety-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__safety-item p {
    font-size: 16px;
    color: var(--text-main);
}

/* --- How To Join Section --- */
.page-casino__how-to-join-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-casino__step-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

.page-casino__step-card .page-casino__card-title {
    margin-top: 40px; /* Adjust for step number */
    color: var(--secondary-color);
}

.page-casino__step-card p {
    font-size: 16px;
    color: var(--text-main);
}

/* --- FAQ Section --- */
.page-casino__faq-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--background-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
details.page-casino__faq-item summary.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
    font-weight: bold;
    font-size: 18px;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
    display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
    background: #1a1a1a;
}
.page-casino__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}
.page-casino__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}
details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 25px 20px;
    background: #0d0d0d;
    border-radius: 0 0 12px 12px;
    color: var(--text-main);
    font-size: 16px;
}
.page-casino__faq-answer p {
    margin: 0;
    padding-top: 10px;
    color: var(--text-main);
}
.page-casino__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Conclusion Section --- */
.page-casino__conclusion-section {
    background-color: var(--background-dark);
    padding: 60px 0 80px 0;
    text-align: center;
}

.page-casino__cta-final-button {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 40px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-image {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .page-casino__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__cta-final-button,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-casino__button-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 15px;
    }
    .page-casino__container {
        padding: 30px 15px;
    }

    /* Images responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size is respected */
        min-height: 200px !important; /* Ensure minimum size is respected */
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__feature-card,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__highlight-item,
    .page-casino__safety-item,
    .page-casino__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__feature-card img,
    .page-casino__game-card img,
    .page-casino__promo-card img {
        height: auto; /* Allow height to adjust */
    }

    .page-casino__card-title,
    .page-casino__game-title,
    .page-casino__highlight-title,
    .page-casino__safety-title {
        font-size: 18px;
    }
    .page-casino__feature-card p,
    .page-casino__game-card p,
    .page-casino__promo-card p,
    .page-casino__highlight-item p,
    .page-casino__safety-item p {
        font-size: 14px;
    }

    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 15px; }
    details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 28px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__cta-final-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}