/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the dark body background */
    background-color: var(--primary-color); /* Inherit from shared, which is #0A2239 */
}

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.page-casino__section-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: #FFD700;
    text-align: center;
    margin-bottom: 15px;
}

.page-casino__section-description {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-description--light {
    color: #ffffff;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-casino__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A2239; /* Dark blue */
    border: 2px solid #FFD700;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2239;
    transform: translateY(-2px);
}

.page-casino__btn-text-link {
    background: none;
    border: none;
    color: #FFD700;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: normal;
    text-decoration: underline;
}

.page-casino__btn-text-link:hover {
    color: #e6c200;
    text-decoration: none;
}

.page-casino__btn-large {
    padding: 16px 32px;
    font-size: 20px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    padding-top: 0; /* Assuming shared.css sets padding-top for body */
}

.page-casino__hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
}

.page-casino__hero-title {
    font-size: 52px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.page-casino__hero-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* About Section */
.page-casino__about-section {
    background-color: #0A2239; /* Main dark blue */
    padding: 80px 0;
    color: #ffffff;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__feature-text {
    font-size: 16px;
    color: #f0f0f0;
}

/* Game Categories Section */
.page-casino__game-categories-section {
    background-color: #071a2a; /* Slightly darker blue */
    padding: 80px 0;
    color: #ffffff;
}

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

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

.page-casino__category-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-casino__category-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fill */
    display: block;
}

.page-casino__category-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: bold;
}

.page-casino__category-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #0A2239;
    padding: 80px 0;
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.page-casino__promo-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-casino__promo-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 20px;
    font-weight: bold;
}

.page-casino__promo-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
}

/* Getting Started Section */
.page-casino__getting-started-section {
    background-color: #071a2a;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-casino__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-casino__step-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__step-text {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__download-app-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__btn-download {
    margin-top: 30px;
}

/* Security Section */
.page-casino__security-section {
    background-color: #0A2239;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-casino__security-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__security-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__security-text {
    font-size: 16px;
    color: #f0f0f0;
}

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

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 20px;
    color: #FFD700;
}

.page-casino__faq-toggle {
    font-size: 24px;
    color: #FFD700;
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 200px; /* Adjust based on expected content length */
    padding: 20px 30px;
}

.page-casino__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-casino__faq-answer .page-casino__btn-text-link {
    display: inline-block;
    margin-top: 10px;
}

/* CTA Section */
.page-casino__cta-section {
    background-color: #1a3a5a; /* A slightly different dark blue for contrast */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-casino__hero-title {
        font-size: 42px;
    }

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

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

    .page-casino__features-grid,
    .page-casino__category-card-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid,
    .page-casino__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
    }

    .page-casino__hero-title {
        font-size: 36px;
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }

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

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

    .page-casino__feature-item,
    .page-casino__category-card,
    .page-casino__promo-card,
    .page-casino__step-item,
    .page-casino__security-item {
        padding: 25px;
    }

    .page-casino__feature-title,
    .page-casino__category-title,
    .page-casino__promo-title,
    .page-casino__step-title,
    .page-casino__security-title {
        font-size: 20px;
    }

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

    .page-casino__faq-question h3 {
        font-size: 18px;
    }

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

@media (max-width: 480px) {
    .page-casino__hero-section {
        min-height: 400px;
    }

    .page-casino__hero-title {
        font-size: 28px;
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-large {
        padding: 10px 20px;
        font-size: 15px;
    }

    .page-casino__features-grid,
    .page-casino__category-card-grid,
    .page-casino__promo-grid,
    .page-casino__steps-grid,
    .page-casino__security-features {
        grid-template-columns: 1fr;
    }

    .page-casino__download-app-section {
        padding: 30px;
    }

    .page-casino__faq-question {
        font-size: 16px;
    }

    .page-casino__faq-question h3 {
        font-size: 16px;
    }
}