/* style/casino.css */
/* General styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main color for overall page on dark background */
    background-color: #08160F; /* Background color from custom palette */
}

/* Container for content sections */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-casino__section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #F2FFF6; /* Text Main */
    line-height: 1.2;
    letter-spacing: 0.05em;
    padding-top: 20px;
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H2 */
}

/* 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; /* Small top padding, body handles header offset */
    background-color: #0A4B2C; /* Deep Green for hero background */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-casino__hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
    border-radius: 8px;
}

.page-casino__main-title {
    color: #F2C14E; /* Gold color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow effect */
    font-size: clamp(32px, 5vw, 60px); /* Using clamp for responsive H1 size */
}

.page-casino__hero-description {
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* CTA Buttons */
.page-casino__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Gold */
    border: 2px solid #F2C14E; /* Gold border */
}

.page-casino__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
}

/* Dark Section styling */
.page-casino__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 60px 20px;
    color: #F2FFF6; /* Text Main */
}

.page-casino__dark-section .page-casino__section-title {
    color: #F2C14E; /* Gold for titles in dark sections */
}

/* Content Area */
.page-casino__content-area {
    padding: 40px 20px;
}

.page-casino__text-block {
    margin-bottom: 20px;
    color: #F2FFF6; /* Text Main */
}

.page-casino__text-block p {
    color: #F2FFF6; /* Text Main */
}

/* Game Grid */
.page-casino__games-section {
    background-color: #08160F; /* Background */
    padding: 60px 20px;
}

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

.page-casino__game-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

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

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

.page-casino__game-card h3 {
    margin: 15px 15px 10px;
    font-size: 1.4em;
    color: #F2C14E; /* Gold */
}

.page-casino__game-card h3 a {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card h3 a:hover {
    color: #57E38D; /* Glow */
}

.page-casino__game-description {
    margin: 0 15px 15px;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1; /* Push footer down */
}

/* Promotions Section */
.page-casino__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-casino__promo-list li {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main */
}

.page-casino__promo-list li strong {
    color: #F2C14E; /* Gold */
}

/* Feature Section */
.page-casino__experience-section {
    background-color: #08160F; /* Background */
    padding: 60px 20px;
}

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

.page-casino__feature-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-casino__feature-card:hover {
    transform: translateY(-5px);
}

.page-casino__feature-image {
    width: 100%;
    max-width: 300px; /* Constraint feature image width */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-casino__feature-description {
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1;
}

/* Guide Section */
.page-casino__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    margin-top: 30px;
}

.page-casino__guide-list li {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    padding: 20px 20px 20px 60px; /* Left padding for counter */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #F2FFF6; /* Text Main */
    position: relative;
}

.page-casino__guide-list li::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #F2C14E; /* Gold */
    color: #11271B; /* Card BG for contrast */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-casino__guide-list li strong {
    color: #F2C14E; /* Gold */
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #08160F; /* Background */
    padding: 60px 20px;
}

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

.page-casino__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    font-size: 1.1em;
    list-style: none; /* Hide default marker for details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-qtext {
    flex-grow: 1;
    color: #F2C14E; /* Gold for question text */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle */
}

.page-casino__faq-answer {
    padding: 0 20px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    /* For details tag, browser handles visibility. For div, JS handles max-height */
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-casino__container {
        padding: 15px;
    }

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

    .page-casino__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

    .page-casino__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust clamp for mobile H1 */
    }

    .page-casino__hero-description {
        font-size: 1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    .page-casino__game-grid,
    .page-casino__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-card,
    .page-casino__feature-card {
        margin-bottom: 20px;
    }

    .page-casino__game-image {
        height: 180px; /* Slightly smaller image height on mobile */
    }

    .page-casino__promo-list li,
    .page-casino__guide-list li {
        padding: 15px 15px 15px 50px; /* Adjust padding for mobile counter */
    }

    .page-casino__guide-list li::before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__hero-image-wrapper,
    .page-casino__game-card,
    .page-casino__feature-card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-casino__hero-content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__dark-section,
    .page-casino__games-section,
    .page-casino__experience-section,
    .page-casino__guide-section,
    .page-casino__faq-section {
        padding: 40px 15px;
    }
}