/* style/casino.css */

/* Base styles for the page content, ensuring text color contrasts with body background */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, contrasting with dark body background */
    background-color: transparent; /* Main content background will be handled by sections */
}

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

/* Section specific backgrounds and text colors based on contrast requirements */
.page-casino__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: var(--header-offset, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-section .page-casino__container {
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlight title with custom color */
    font-weight: bold;
}

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

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

/* Buttons */
.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, color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

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

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image to ensure text contrast */
}

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

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__how-to-start-section,
.page-casino__faq-section {
    padding: 60px 0;
}

.page-casino__games-section,
.page-casino__security-section,
.page-casino__why-choose-section,
.page-casino__video-section {
    padding: 60px 0;
}

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

.page-casino__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff;
}

.page-casino__light-bg .page-casino__card {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

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

.page-casino__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-casino__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-casino__card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #C30808; /* Button color for internal links */
    color: #FFFF00;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-casino__card-link:hover {
    background-color: #e00b0b;
}

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

.page-casino__promotion-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-casino__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-casino__promotion-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino__promotion-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #017439;
    font-weight: bold;
}

.page-casino__promotion-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-casino__promotion-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__view-all-promotions {
    text-align: center;
    margin-top: 50px;
}

/* Security Section */
.page-casino__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-casino__feature-description {
    font-size: 0.95em;
}

.page-casino__read-more-security {
    text-align: center;
    margin-top: 50px;
}

/* How to Start Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-item {
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-casino__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-casino__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

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

.page-casino__download-app {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 12px;
    color: #333333;
}

/* Video Section */
.page-casino__video-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for video section */
    padding-bottom: 60px;
    text-align: center;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 0;
    background-color: #000; /* Black background for video area */
    border-radius: 12px;
}

.page-casino__video-wrapper .page-casino__video,
.page-casino__video-wrapper .page-casino__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px; /* Adjust padding for expanded state */
}

.page-casino__contact-support {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Why Choose Section */
.page-casino__why-choose-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__list-item-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Highlight with custom color */
}

.page-casino__list-item p {
    font-size: 1em;
}

.page-casino__final-cta {
    text-align: center;
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-casino__hero-title {
        font-size: 2.5em;
    }

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

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

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

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

    .page-casino__text-block {
        font-size: 0.95em;
    }

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