/* style/casino.css */

.page-casino {
    font-family: Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #FFFFFF;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    color: #ffffff; /* Light text for dark background */
}

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

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

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Specific color for hero title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

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

/* General Section Styles */
.page-casino__section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.page-casino__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-casino__text-light {
    color: #ffffff;
}

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

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

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

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

/* Buttons */
.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: 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; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

.page-casino__btn-light-text {
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.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;
    color: #017439;
    padding: 0 15px;
}

.page-casino__game-card-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-secondary {
    margin-top: auto;
}

/* Live Casino Section */
.page-casino__live-casino-section .page-casino__section-title,
.page-casino__live-casino-section .page-casino__section-description {
    color: #333333;
}

.page-casino__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #f8f8f8;
}

.page-casino__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-casino__promotion-item {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #333333;
}

.page-casino__promotion-item strong {
    color: #017439;
}

.page-casino__image-centered {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Security Section */
.page-casino__security-section {
    background-color: #017439;
    color: #ffffff;
}

.page-casino__security-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__security-section .page-casino__section-description {
    color: #f0f0f0;
}

/* Register Guide Section */
.page-casino__guide-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-casino__guide-item {
    counter-increment: guide-counter;
    background-color: #ffffff;
    padding: 20px 25px 20px 60px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    position: relative;
    color: #333333;
}

.page-casino__guide-item::before {
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-casino__guide-item strong {
    color: #017439;
}

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

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

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

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

.page-casino__faq-item[open] .page-casino__faq-question {
    background-color: #e0e0e0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #017439;
}

.page-casino__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #555555;
}

.page-casino__faq-item details > summary {
    list-style: none;
}

.page-casino__faq-item details > summary::-webkit-details-marker {
    display: none;
}

/* Responsive Styles */
@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: 2em;
    }

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

@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; /* Mobile header offset */
    }

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

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .page-casino__video-wrapper {
        margin: 20px auto 0 auto;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-casino__section {
        padding: 40px 15px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

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

    .page-casino__image-full-width,
    .page-casino__image-centered {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .page-casino__promotion-item,
    .page-casino__guide-item {
        font-size: 1em;
        padding: 15px 15px 15px 50px;
    }

    .page-casino__guide-item::before {
        width: 25px;
        height: 25px;
        font-size: 1em;
        left: 15px;
    }

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

    .page-casino__faq-answer {
        font-size: 1em;
        padding: 0 15px 15px 15px;
    }
    
    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure any img within .page-casino is responsive on mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

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

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

    .page-casino__section-title {
        font-size: 1.5em;
    }

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