/* style/casino.css */
/* Main page styling for casino.html */

/* General page-casino styles */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
}

.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: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

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

.page-casino__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Red for primary action (Register) */
    color: #FFFF00; /* Yellow for text (Register/Login font) */
    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background-color: #017439; /* Brand primary color for secondary action */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

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

/* Section styling (Dark/Light backgrounds) */
.page-casino__dark-bg {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0;
}

.page-casino__light-bg {
    background-color: #1a1a1a; /* Dark gray for "light" section on black body */
    color: #ffffff;
    padding: 80px 0;
}

/* Introduction Section */
.page-casino__introduction-section .page-casino__section-title {
    color: #ffffff;
}
.page-casino__introduction-section .page-casino__text-block {
    color: #e0e0e0;
}

/* Games Section */
.page-casino__games-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-casino__game-card {
    background-color: #1a1a1a; /* Dark gray card background */
    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;
    color: #ffffff;
    border: 1px solid #017439; /* Brand border */
}

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

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

.page-casino__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-casino__card-title a:hover {
    color: #017439; /* Highlight with brand color on hover */
}

.page-casino__card-description {
    font-size: 1em;
    padding: 0 20px 20px;
    color: #e0e0e0;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-casino__why-choose-us .page-casino__section-title {
    color: #ffffff;
}

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

.page-casino__feature-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #017439;
}

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

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighter for visibility on dark bg */
}

.page-casino__feature-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

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

/* Promotions CTA Section */
.page-casino__promotions-cta {
    text-align: center;
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
}

.page-casino__promotions-cta .page-casino__section-title {
    color: #ffffff;
}

.page-casino__promotions-cta .page-casino__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

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

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
    padding: 80px 0;
}

.page-casino__responsible-gaming .page-casino__section-title {
    color: #ffffff;
}

.page-casino__responsible-gaming .page-casino__text-block {
    max-width: 900px;
    margin: 0 auto 30px;
    color: #e0e0e0;
    text-align: center;
}

/* How to Start Section */
.page-casino__how-to-start {
    padding: 80px 0;
}

.page-casino__how-to-start .page-casino__section-title {
    color: #ffffff;
}

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

.page-casino__step-item {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #017439;
    color: #ffffff;
}

.page-casino__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

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

.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #017439;
}

.page-casino__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-item:last-child {
    border-bottom: none;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    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 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 30px 30px;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #e0e0e0;
}


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

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: auto; /* Adjust height for mobile */
        min-height: 600px;
        padding: 40px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-casino__hero-content {
        padding: 15px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__dark-bg, .page-casino__light-bg {
        padding: 60px 0;
    }

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

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

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

    .page-casino__game-image,
    .page-casino__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__game-card,
    .page-casino__feature-item,
    .page-casino__step-item,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-title {
        font-size: 1.1em;
    }
    .page-casino__faq-toggle {
        font-size: 1.5em;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-casino__game-card, .page-casino__feature-item, .page-casino__step-item {
        padding: 20px;
    }
    .page-casino__card-title, .page-casino__feature-title, .page-casino__step-title {
        font-size: 1.2em;
    }
}