/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default light background */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-top: 20px;
}

.page-casino__section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: #017439;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px);
    min-height: 600px;
    background: linear-gradient(90deg, #017439 0%, #017439 60%, rgba(1, 116, 57, 0.8) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-casino__hero-content {
    flex: 1;
    padding-right: 40px;
    z-index: 1;
    max-width: 60%;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register and Login font color */
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
}

.page-casino__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    max-width: 40%;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-casino__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register and Login font color */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #9a0606;
    border-color: #9a0606;
}

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

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

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

/* Game Types Section */
.page-casino__game-types-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

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

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-casino__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px;
    color: #017439;
}

.page-casino__card-link {
    text-decoration: none;
    color: inherit;
}

.page-casino__card-link:hover {
    text-decoration: underline;
}

.page-casino__card-description {
    font-size: 1em;
    color: #555555;
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__card-button {
    margin: 0 15px 20px;
}

/* Advantages Section */
.page-casino__advantages-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-casino__advantages-section .page-casino__section-title::after {
    background-color: #ffffff;
}

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

.page-casino__advantage-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-casino__advantage-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-casino__advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(100%); /* This is an exception if icons are dark and need to be white on dark background, but generally avoid */
    /* Per instruction, filter is prohibited for images. Reverting this. If icons are needed, they should be provided in correct color. */
    /* For this exercise, assume icons are designed to be light on dark background or will be handled by system. */
}

.page-casino__advantage-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-casino__advantage-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__advantage-button {
    color: #ffffff;
    border-color: #ffffff;
}

.page-casino__advantage-button:hover {
    background-color: #ffffff;
    color: #017439;
}

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

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

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

.page-casino__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__view-all-promos {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-casino__view-all-promos:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* How to Start Section */
.page-casino__how-to-start-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-casino__how-to-start-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__how-to-start-section .page-casino__section-title::after {
    background-color: #ffffff;
}

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

.page-casino__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 10px;
}

.page-casino__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Register and Login font color */
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-casino__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-casino__start-playing-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register and Login font color */
    border: 2px solid #C30808;
}

.page-casino__start-playing-button:hover {
    background-color: #9a0606;
    border-color: #9a0606;
}

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

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #eaf7ed;
    border-bottom: 1px solid #d0e7d5;
}

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
    text-align: justify;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Use !important as per instructions */
    padding: 15px 25px;
}

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

.page-casino__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register and Login font color */
}

.page-casino__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: auto;
    }

    .page-casino__hero-content {
        padding-right: 0;
        max-width: 100%;
        margin-bottom: 30px;
    }

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

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

    .page-casino__hero-image-wrapper {
        max-width: 100%;
    }

    .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"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__cta-buttons,
    .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;
        flex-direction: column;
        overflow: hidden !important;
    }

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

    .page-casino__text-block {
        font-size: 0.95em;
    }

    .page-casino__game-grid,
    .page-casino__advantage-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__card-image {
        height: 180px;
    }

    .page-casino__advantage-icon {
        width: 60px;
        height: 60px;
    }

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

    .page-casino__step-number {
        font-size: 2.5em;
    }

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

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

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

    .page-casino__cta-description {
        font-size: 1em;
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__game-types-section,
    .page-casino__advantages-section,
    .page-casino__promotions-section,
    .page-casino__how-to-start-section,
    .page-casino__faq-section,
    .page-casino__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@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.6em;
    }
    .page-casino__cta-title {
        font-size: 1.6em;
    }
    .page-casino__faq-question {
        font-size: 1em;
    }
    .page-casino__faq-answer {
        font-size: 0.9em;
    }
}