/* style/casino.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

.page-casino__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

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

.page-casino__dark-bg {
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-casino__light-bg {
    background-color: #f8f8f8; /* A very light background to contrast with dark-bg sections */
    color: #333333;
}

.page-casino__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-casino__section-description {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 60px 0 0; /* Adjusted padding-top for header offset, then content padding */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

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

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px 60px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with the image for visual flow */
    background-color: var(--background-color-page);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-casino__hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__faq-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
    opacity: 0.9;
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(17, 168, 78, 0.3);
}

.page-casino__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

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

/* Why Choose Section */
.page-casino__why-choose {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-casino__feature-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* Game Categories Section */
.page-casino__game-categories {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-casino__game-card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
    color: var(--text-main);
}

.page-casino__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-casino__game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-casino__game-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* How To Join Section */
.page-casino__how-to-join {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-casino__step-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__step-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-casino__promo-item {
    background-color: var(--card-bg);
    border: 1px solid var(--divider-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    padding-left: 40px;
}

.page-casino__promo-item::before {
    content: '✨';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-casino__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-casino__faq-item[open] > .page-casino__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-casino__faq-question::-webkit-details-marker {
    display: none;
}

.page-casino__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.page-casino__faq-answer .page-casino__faq-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 5px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.page-casino__faq-answer .page-casino__faq-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Conclusion Section */
.page-casino__conclusion {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-casino__section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 15px;
    }

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

    .page-casino__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-casino__hero-content {
        margin-top: -30px;
        padding: 30px 15px 40px;
    }

    .page-casino__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__faq-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-casino__features-grid,
    .page-casino__game-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-casino__feature-card,
    .page-casino__game-card,
    .page-casino__step-item {
        padding: 25px;
    }

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

    .page-casino__promo-list {
        margin-top: 30px;
    }

    .page-casino__promo-item {
        font-size: 15px;
        padding: 15px 15px 15px 40px;
    }

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

    .page-casino__faq-answer {
        font-size: 15px;
        padding: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__hero-image-wrapper,
    .page-casino__feature-card,
    .page-casino__game-card,
    .page-casino__step-item,
    .page-casino__faq-item,
    .page-casino__cta-buttons,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-casino__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 30px;
    }

    .page-casino__hero-description {
        font-size: 15px;
    }

    .page-casino__section-title {
        font-size: 24px;
    }
}