/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-casino__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

.page-casino__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Section backgrounds */
.page-casino__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 700px;
}

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

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

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

.page-casino__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.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;
    opacity: 0.3;
}

/* Why Choose Section */
.page-casino__why-choose-section,
.page-casino__games-section,
.page-casino__live-dealer-section,
.page-casino__video-section,
.page-casino__guide-section,
.page-casino__strategy-section,
.page-casino__faq-section,
.page-casino__cta-section {
    padding: 80px 0;
}

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

.page-casino__feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-casino__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

/* Games Section */
.page-casino__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

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

.page-casino__game-title {
    font-size: 1.4em;
    margin: 15px;
    color: #26A9E0;
}

.page-casino__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-casino__game-description {
    font-size: 0.95em;
    margin: 0 15px 15px;
    color: #f0f0f0;
}

/* Live Dealer Section */
.page-casino__live-dealer-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__live-dealer-text {
    flex: 1;
}

.page-casino__live-dealer-text p {
    color: #555555;
    margin-bottom: 15px;
}

.page-casino__live-dealer-text .page-casino__sub-title {
    color: #26A9E0;
}

.page-casino__list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-casino__list-item {
    color: #555555;
    margin-bottom: 8px;
}

.page-casino__list-item strong {
    color: #333333;
}

.page-casino__btn-margin-top {
    margin-top: 20px;
}

.page-casino__live-dealer-image-wrapper {
    flex: 1;
    min-width: 400px;
}

.page-casino__live-dealer-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Video Section */
.page-casino__video-section {
    text-align: center;
    padding-top: 80px; /* Adjust if header offset is needed here specifically */
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__video {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-casino__step-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-casino__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__step-description {
    color: #555555;
    margin-bottom: 20px;
}

/* Strategy Section */
.page-casino__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__strategy-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-casino__strategy-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__strategy-description {
    color: #f0f0f0;
}

.page-casino__strategy-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-casino__faq-item {
    background-color: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

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

.page-casino__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    color: #26A9E0;
    font-weight: bold;
    margin-left: 15px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

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

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
}

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

/* Global image settings for content area */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent styling */
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__live-dealer-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__live-dealer-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important; /* Full width for buttons on mobile */
        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__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-intro {
        font-size: 0.95em;
    }
    .page-casino__sub-title {
        font-size: 1.5em;
    }
    .page-casino__why-choose-section,
    .page-casino__games-section,
    .page-casino__live-dealer-section,
    .page-casino__video-section,
    .page-casino__guide-section,
    .page-casino__strategy-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 10px; /* Smaller padding on mobile */
    }

    /* Force responsive images, videos, and containers on mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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,
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__why-choose-section,
    .page-casino__games-section,
    .page-casino__live-dealer-section,
    .page-casino__guide-section,
    .page-casino__strategy-section,
    .page-casino__faq-section,
    .page-casino__cta-section,
    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Specific mobile adjustments for sections */
    .page-casino__features-grid,
    .page-casino__games-grid,
    .page-casino__guide-steps,
    .page-casino__strategy-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__feature-card,
    .page-casino__game-card,
    .page-casino__step-card,
    .page-casino__strategy-item {
        padding: 20px;
    }

    .page-casino__faq-question {
        padding: 15px;
    }
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px;
    }
}

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