/* casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Matches body background */
}

/* Ensure all images are responsive by default */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General section styling */
.page-casino__section {
    padding: 60px 0;
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__subsection-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Hero Section */
.page-casino__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for hero content area */
    color: #ffffff;
    padding-bottom: 60px;
}

.page-casino__hero-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

.page-casino__hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-casino__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand color */
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b0;
    border-color: #1e87b0;
}

/* Introduction Section */
.page-casino__introduction-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

/* Games Section */
.page-casino__games-section {
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
}

.page-casino__games-section .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-casino__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-casino__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-casino__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-casino__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-casino__card-title {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    font-weight: bold;
}

.page-casino__card-title a {
    color: #26A9E0; /* Brand color for link */
    text-decoration: none;
}

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

.page-casino__card-description {
    font-size: 0.95em;
    padding: 0 15px 15px;
    flex-grow: 1; /* Ensures card description fills space */
}

/* Live Casino Section */
.page-casino__live-casino-section {
    background-color: #FFFFFF;
    color: #333333;
}

.page-casino__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-casino__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-casino__text-content,
.page-casino__image-content {
    flex: 1;
}

.page-casino__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-casino__list-item {
    margin-bottom: 10px;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-casino__promotions-section .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__promotions-section .page-casino__text-block {
    color: #FFFFFF;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

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

/* Features Section */
.page-casino__features-section {
    background-color: #F8F8F8; /* Light gray background */
    color: #333333;
}

.page-casino__feature-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Registration Guide Section */
.page-casino__registration-guide {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-casino__registration-guide .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__registration-guide .page-casino__subsection-title {
    color: #FFFFFF;
}

.page-casino__registration-guide .page-casino__text-block {
    color: #FFFFFF;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
    background-color: #FFFFFF;
    color: #333333;
}

.page-casino__responsible-gambling-section .page-casino__text-block {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #333333; /* Dark background for FAQ */
    color: #FFFFFF;
}

.page-casino__faq-section .page-casino__section-title {
    color: #FFFFFF;
}

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

.page-casino__faq-item {
    background-color: #444444; /* Slightly lighter dark for item */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question */
    color: #FFFFFF;
    list-style: none; /* For <summary> tag */
}

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

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

.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); /* Change + to X or similar */
}

.page-casino__faq-answer {
    padding: 15px 25px 25px;
    background-color: #333333; /* Darker background for answer */
    color: #FFFFFF;
    font-size: 1.0em;
}

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

    .page-casino__section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 15px;
    }

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

    .page-casino__subsection-title {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    /* HERO Section */
    .page-casino__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-casino__hero-image {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
        margin-bottom: 30px;
    }

    .page-casino__main-title {
        font-size: 2em !important; /* Ensure H1 is not too large */
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-casino__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 25px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* General images and containers */
    .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;
    }

    /* Grid layout for mobile (single column) */
    .page-casino__grid {
        grid-template-columns: 1fr;
    }
    .page-casino__grid--2-cols,
    .page-casino__grid--3-cols {
        grid-template-columns: 1fr;
    }

    .page-casino__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-casino__card-title {
        font-size: 1.2em;
    }

    /* Content Wrapper (e.g., Live Casino, Registration Guide) */
    .page-casino__content-wrapper {
        flex-direction: column; /* Stack content vertically */
        gap: 30px;
    }
    .page-casino__content-wrapper--reverse {
        flex-direction: column; /* Maintain column stacking for reverse layout too */
    }

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

    .page-casino__faq-answer {
        padding: 10px 20px 20px;
        font-size: 0.95em;
    }
}