/* style/casino.css */

/* Base Styles */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-casino__heading {
    font-size: 2.5em;
    color: #017439; /* Brand color for headings */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__heading--white {
    color: #FFFFFF;
}

.page-casino__sub-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
}

.page-casino__sub-description--white {
    color: #f0f0f0;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    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; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.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: #a00606;
    border-color: #a00606;
}

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

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
}

.page-casino__btn-secondary--login {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

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

.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;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to let background color show */
    border-radius: 0; /* Hero image usually full width */
}

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

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow content to wrap */
}

.page-casino__text-block {
    flex: 1;
    min-width: 300px;
}

.page-casino__text-block p {
    margin-bottom: 15px;
}

.page-casino__image-right,
.page-casino__image-left {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Adjust for layout */
}

.page-casino__image-right {
    order: 2; /* Image on right by default */
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

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

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

.page-casino__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for game titles */
    font-weight: bold;
}

.page-casino__game-title a {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #FFFFFF;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
    color: #333333;
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

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

.page-casino__feature-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    margin-bottom: 20px;
    border-radius: 50%; /* Make icons round */
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    display: inline-block; /* Center block element */
}

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

.page-casino__feature-title--white {
    color: #FFFF00; /* Custom font color */
}

.page-casino__feature-description--white {
    color: #f0f0f0;
}

/* How to Start Section */
.page-casino__how-to-start-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

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

.page-casino__step-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-casino__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-casino__video-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-casino__video-cta {
    margin-top: 20px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    color: #333333;
    text-align: center;
}

.page-casino__responsible-gaming-section .page-casino__text-block {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-casino__faq-item {
    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;
    background-color: #f9f9f9;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #C30808;
}

.page-casino__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #FFFFFF;
}

.page-casino__faq-answer p {
    padding: 15px 0;
    margin: 0;
    color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 200px; /* Adjust as needed for content */
    padding-bottom: 15px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    content: '-';
}

/* Call to Action Final Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

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

/* Copyright Section */
.page-casino__copyright-section {
    padding: 30px 0;
    background-color: #333333;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-casino__hero-title {
        font-size: 3em;
    }

    .page-casino__heading {
        font-size: 2em;
    }

    .page-casino__content-wrapper {
        flex-direction: column;
    }

    .page-casino__image-right,
    .page-casino__image-left {
        max-width: 100%;
        order: 1; /* Image on top for smaller screens */
    }

    .page-casino__text-block {
        order: 2;
    }

    .page-casino__features-grid,
    .page-casino__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 100px);
    }

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

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

    .page-casino__heading {
        font-size: 1.8em;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-casino__games-grid,
    .page-casino__features-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__feature-icon {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 80px);
    }

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

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

    .page-casino__heading {
        font-size: 1.5em;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100%;
    }

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