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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    overflow: hidden;
    background-color: #017439;
    color: #ffffff;
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

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

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

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

/* General Sections */
.page-casino__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-casino__dark-bg .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-casino__dark-bg .page-casino__text-block {
    color: #f0f0f0;
}

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

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

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

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

.page-casino__feature-icon {
    width: 100%; /* Ensure max-width on img is applied */
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
}

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

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

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

.page-casino__game-categories-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;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.page-casino__view-all-games {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-casino__promo-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-casino__promo-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-casino__promo-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
    color: #017439;
}

.page-casino__promo-card-description {
    font-size: 0.95em;
    margin: 0 15px 20px 15px;
    color: #555555;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin-bottom: 20px;
}

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

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

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

.page-casino__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

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

.page-casino__faq-list {
    max-width: 900px;
    margin: 50px auto 0 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: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.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 20px;
    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: 20px;
}

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

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

/* 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 {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-casino__feature-item,
    .page-casino__game-card,
    .page-casino__promo-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__feature-icon {
        max-width: 200px;
    }

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

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

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

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

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

    /* Image responsive handling */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive handling */
    .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;
    }

    /* Ensure content containers have padding for mobile */
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__video-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Global image rules for content area */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Specific image rules to ensure minimum size and no small icons */
.page-casino__feature-icon {
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow auto scaling up to max-width */
    height: auto;
}

.page-casino__game-card-image {
    min-width: 200px;
    min-height: 200px;
}

.page-casino__promo-card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Content area images minimum size enforcement for CSS */
.page-casino__hero-image,
.page-casino__feature-icon,
.page-casino__game-card-image,
.page-casino__promo-card-image,
.page-casino__video {
    min-width: 200px;
    min-height: 200px;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-casino__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}