/* style/casino.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #017439;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --font-register-login: #FFFF00;
}

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

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

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.page-casino__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-register-login);
    border: 2px solid var(--btn-register);
}

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

.page-casino__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-casino__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-casino__btn-tertiary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Image styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0; /* Ensures no double padding with body offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.page-casino__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

.page-casino__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: var(--font-register-login);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-casino__hero-content .page-casino__description {
    color: var(--text-light);
    max-width: 900px;
}

/* About Section */
.page-casino__about-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.page-casino__text-block {
    margin-bottom: 20px;
    text-align: justify;
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__description {
    color: var(--text-light);
}

.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.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-casino__game-card-title {
    font-size: 1.5em;
    color: var(--font-register-login);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-casino__game-card-title a {
    color: var(--font-register-login);
    text-decoration: none;
}

.page-casino__game-card-title a:hover {
    text-decoration: underline;
}

.page-casino__game-card-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.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: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
}

.page-casino__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-casino__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-casino__promo-description {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Advantages Section */
.page-casino__advantages-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__advantages-section .page-casino__section-title,
.page-casino__advantages-section .page-casino__description {
    color: var(--text-light);
}

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

.page-casino__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 0;
}

.page-casino__advantage-title {
    font-size: 1.3em;
    color: var(--font-register-login);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-casino__advantage-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

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

.page-casino__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-casino__faq-question::marker { /* Hide default marker for Firefox */
    display: none;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom-color: transparent;
}

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.6;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 60px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-casino__cta-content .page-casino__section-title,
.page-casino__cta-content .page-casino__description {
    color: var(--text-light);
}

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

    .page-casino__hero-content {
        padding-top: 30px;
    }

    .page-casino__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }

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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-casino__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* HERO Section (padding-top: 0 !important for shared body offset) */
    .page-casino__hero-section {
        padding-top: 0 !important;
        padding-bottom: 40px;
    }

    .page-casino__hero-content {
        padding-top: 20px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .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;
        padding-right: 15px;
    }

    /* General image and container responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* LOGO carousel (if present, not explicitly in this page but for completeness) */
    .page-casino__logo-item {
        width: 80px !important; /* Fixed size */
        height: 80px !important; /* Fixed size */
        max-width: 80px !important;
        box-sizing: border-box;
    }

    /* Games Section */
    .page-casino__games-grid,
    .page-casino__promotions-grid,
    .page-casino__advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__advantage-item {
        padding: 20px;
    }

    .page-casino__game-card-image,
    .page-casino__promo-image {
        height: 160px;
    }

    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-casino__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-casino__advantage-icon {
        width: 70px;
        height: 70px;
    }
}

/* Color Contrast Fixes */
.page-casino__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-casino__game-card .page-casino__btn-tertiary,
.page-casino__promo-card .page-casino__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-casino__game-card .page-casino__btn-tertiary:hover,
.page-casino__promo-card .page-casino__btn-tertiary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}