/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: #1a1a2e; /* Inherited from body, but good to explicitly state for sections */
}

/* General Section Styling */
.page-casino__section-title {
    font-size: 2.8em;
    color: #ffffff; /* White text for titles on dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

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

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

.page-casino__center-align {
    text-align: center;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    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; /* Register/Login color */
    color: #ffffff; /* Ensuring WCAG AA contrast */
    border: 2px solid #C30808;
}

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

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

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Adjust as needed */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px; /* Base padding */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

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

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

/* Introduction Section */
.page-casino__introduction-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
}

.page-casino__dark-section {
    background-color: #1a1a2e; /* Consistent dark background */
    color: #ffffff;
}

/* Game Categories Section */
.page-casino__game-categories-section {
    padding: 80px 0;
    background-color: #0f0f1d; /* Slightly different dark background */
}

.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: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

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

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

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

.page-casino__game-card-title a:hover {
    color: #017439; /* Brand color on hover */
}

.page-casino__game-card-description {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background for this section */
}

.page-casino__why-choose-section .page-casino__section-title,
.page-casino__why-choose-section .page-casino__feature-title,
.page-casino__why-choose-section .page-casino__feature-description {
    color: #ffffff; /* White text on brand color background */
}

.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: rgba(255, 255, 255, 0.15); /* Slightly transparent white on brand color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.25);
}

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

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

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

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #1a1a2e;
}

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

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate it's clickable */
}

/* Testimonials Section */
.page-casino__testimonials-section {
    padding: 80px 0;
    background-color: #0f0f1d;
}

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

.page-casino__testimonial-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    font-style: italic;
    color: #ffffff;
}

.page-casino__testimonial-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #cccccc;
}

.page-casino__testimonial-author {
    font-weight: bold;
    color: #017439; /* Brand color for author */
    font-style: normal;
}

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.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;
    color: #cccccc;
    font-size: 1em;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px;
}

.page-casino__faq-answer p {
    margin: 0;
}

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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
        min-height: 50vh;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-content {
        padding: 15px;
        max-width: 100%;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        margin: 0; /* Reset margin for full width */
    }

    .page-casino__introduction-section,
    .page-casino__game-categories-section,
    .page-casino__why-choose-section,
    .page-casino__video-section,
    .page-casino__testimonials-section,
    .page-casino__faq-section {
        padding: 60px 0;
    }

    .page-casino__game-grid,
    .page-casino__features-grid,
    .page-casino__testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to grid containers */
    }

    .page-casino__game-card-image {
        height: 180px;
    }

    /* 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-item,
    .page-casino__testimonial-card,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0px;
        padding-right: 0px;
    }
    .page-casino__container {
        padding: 0 15px;
    }

    /* Video responsiveness */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        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;
        font-size: 1.1em;
    }
    .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: 2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.6em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 0.9em;
    }
}