/* style/casino.css */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Inherited from shared, ensuring consistency */
}

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

.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff; /* White text for dark background */
}

.page-casino__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-casino__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherits color from parent section */
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherits color from parent section */
}

.page-casino__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.page-casino__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.page-casino__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-section .page-casino__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-casino__hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

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

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

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

.page-casino__hero-image-wrapper {
    flex: 1.2;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
}

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

.page-casino__card {
    background-color: #f8f8f8;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for light card background */
}

.page-casino__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

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

.page-casino__card .page-casino__btn-primary {
    margin: 0 auto;
    width: calc(100% - 30px);
    max-width: 250px;
    font-size: 0.9em;
    padding: 12px 20px;
    color: #FFFF00; /* Custom font color for register/login type buttons */
}

/* Experience Section */
.page-casino__experience-section {
    padding: 80px 0;
}

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

.page-casino__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-casino__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlighted color for feature titles */
}

.page-casino__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
}

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

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
}

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

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

.page-casino__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: #C30808; /* Custom color for step icons */
    color: #FFFF00; /* Custom font color for step icons */
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-casino__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlighted color for step titles */
}

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

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

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

.page-casino__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light FAQ background */
}

.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: #ffffff;
    border-bottom: 1px solid #eee;
    color: #017439; /* Brand color for FAQ questions */
    transition: background-color 0.3s ease;
}

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

.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;
    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;
    font-size: 1em;
    color: #555555;
}

/* Conclusion Section */
.page-casino__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-casino__conclusion-section .page-casino__btn-primary {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

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

    .page-casino__hero-section {
        padding: 60px 0;
        min-height: auto;
    }

    .page-casino__hero-section .page-casino__container {
        flex-direction: column;
        text-align: center;
    }

    .page-casino__hero-content {
        order: 2;
        text-align: center;
    }

    .page-casino__hero-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }

    .page-casino__hero-title {
        font-size: 2.5em;
        margin-top: 20px;
    }

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

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

    .page-casino__btn-primary, .page-casino__btn-secondary {
        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__container {
        padding: 0 15px;
    }

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

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

    .page-casino__card {
        padding-bottom: 15px;
    }

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

    .page-casino__card-title {
        font-size: 1.3em;
    }

    .page-casino__card .page-casino__btn-primary {
        width: calc(100% - 30px);
        max-width: 100%;
    }

    .page-casino__feature-icon {
        width: 80px;
        height: 80px;
    }

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

    .page-casino__step-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
    }

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

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

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

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

    .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__games-section,
    .page-casino__experience-section,
    .page-casino__promotions-section,
    .page-casino__guide-section,
    .page-casino__faq-section,
    .page-casino__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
}

@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__section-description {
        font-size: 0.85em;
    }
    .page-casino__btn-primary, .page-casino__btn-secondary {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}