/* style/casino.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-dark: #1A1A1A;
    --btn-hover-dark: #e6c200;
    --btn-hover-light: #f0f0f0;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-light); /* Default light background */
}

.page-casino__section-padding {
    padding: 80px 0;
}

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

.page-casino__section-title {
    font-size: 3.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    box-sizing: border-box;
}

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

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

.page-casino__hero-title {
    font-size: 4.5em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.5em;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
    background-color: var(--btn-hover-dark);
    border-color: var(--btn-hover-dark);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.page-casino__btn-tertiary {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: 2px solid var(--bg-dark);
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

.page-casino__btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* About Section */
.page-casino__about-section .page-casino__text-block {
    text-align: left;
}

.page-casino__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Games Section */
.page-casino__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__dark-bg .page-casino__section-title {
    color: var(--primary-color);
}

.page-casino__dark-bg .page-casino__text-block {
    color: var(--text-light);
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-casino__game-card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__game-card-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Live Casino Section */
.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-casino__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.3s ease;
}

.page-casino__video-wrapper:hover .page-casino__video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.page-casino__video-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-casino__video-cta:hover {
    background-color: var(--btn-hover-dark);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Promotions Section */
.page-casino__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
}

.page-casino__promo-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-casino__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__promo-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Section */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-casino__feature-card:hover {
    transform: translateY(-8px);
}

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    min-width: 80px; /* Ensure min size, but still larger than 200px for content area */
    min-height: 80px; /* Ensure min size */
    /* Adjusted to meet the 200x200px minimum for content area images */
    width: 200px; 
    height: 200px;
    object-fit: contain;
}

.page-casino__feature-title {
    font-size: 1.8em;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

/* CTA Section */
.page-casino__cta-section {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
    color: var(--bg-dark);
}

.page-casino__cta-section .page-casino__text-block {
    color: var(--bg-dark);
}

.page-casino__cta-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-casino__cta-actions .page-casino__btn-primary {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border-color: var(--bg-dark);
}

.page-casino__cta-actions .page-casino__btn-primary:hover {
    background-color: rgba(26, 26, 26, 0.8);
    border-color: rgba(26, 26, 26, 0.8);
}

.page-casino__cta-actions .page-casino__btn-secondary {
    color: var(--bg-dark);
    border-color: var(--bg-dark);
}

.page-casino__cta-actions .page-casino__btn-secondary:hover {
    background-color: var(--bg-dark);
    color: var(--primary-color);
}

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

.page-casino__faq-item {
    background-color: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or -) */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.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-bottom: 0;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3.5em;
    }
    .page-casino__hero-description {
        font-size: 1.3em;
    }
    .page-casino__section-title {
        font-size: 2.8em;
    }
    .page-casino__promo-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-casino__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-casino__section-padding {
        padding: 60px 0;
    }
    .page-casino__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 1.1em;
        padding: 12px 20px;
        box-sizing: border-box !important;
    }

    .page-casino__section-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 1em;
        text-align: left;
    }
    .page-casino__game-grid,
    .page-casino__promo-list,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__video-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-casino__video,
    .page-casino__image,
    .page-casino__game-card-image,
    .page-casino__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    .page-casino__container,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__live-casino-section,
    .page-casino__promotions-section,
    .page-casino__why-choose-section,
    .page-casino__cta-section,
    .page-casino__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-casino__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__video-cta {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 1em;
        padding: 10px 15px;
    }
}