/* style/casino.css */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff;
}

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

.page-casino__section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #017439;
    font-weight: bold;
}

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

.page-casino__btn-primary {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-casino__btn-primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    transform: translateY(-2px);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
    background-color: #017439; /* Dark background for hero */
    color: #ffffff; /* White text for dark background */
}

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

.page-casino__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-casino__hero-section .page-casino__container {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    border-radius: 12px;
}

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

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

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-casino__about-section .page-casino__section-title {
    color: #017439;
}

.page-casino__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-casino__image-block {
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-subtitle {
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
    padding: 0 15px;
}

.page-casino__card-description {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 15px;
    flex-grow: 1;
}

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

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

.page-casino__promotion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__promotion-text h3 {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-casino__promotion-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-casino__promotion-text a {
    color: #017439;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-casino__promotion-text a:hover {
    color: #005a2e;
}

/* Download Section */
.page-casino__download-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-casino__download-section .page-casino__section-title,
.page-casino__download-section .page-casino__section-subtitle {
    color: #ffffff;
}

.page-casino__download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino__download-text p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-casino__download-image-wrapper {
    text-align: center;
}

.page-casino__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-casino__faq-title {
    text-align: center;
    color: #017439;
    margin-bottom: 40px;
    font-size: 2.5em;
}

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

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

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

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

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Ensure H3 within question is not too large */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

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

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

/* Call to Action Section */
.page-casino__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-casino__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

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

/* Image and Video responsive styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-casino video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__content-grid,
    .page-casino__promotion-content,
    .page-casino__download-content {
        grid-template-columns: 1fr;
    }
    .page-casino__promotion-image,
    .page-casino__download-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino__hero-section .page-casino__container {
        padding: 40px 15px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__hero-cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__section-subtitle {
        font-size: 1em;
    }
    .page-casino__game-card {
        margin-bottom: 20px;
    }
    .page-casino__promotion-text h3 {
        font-size: 1.6em;
    }
    .page-casino__cta-title {
        font-size: 2.2em;
    }
    .page-casino__cta-description {
        font-size: 1.1em;
    }
    .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: 15px 20px;
    }

    /* Mobile image and video responsiveness */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino video,
    .page-casino__hero-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,
    .page-casino__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__download-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__cta-title {
        font-size: 1.8em;
    }
}