/* style/casino.css */

/* General styles for the page-casino scope */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
}

/* Section styling */
.page-casino__hero-section,
.page-casino__about-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__how-to-start-section,
.page-casino__faq-section,
.page-casino__cta-final-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as per instruction */
    background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-casino__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1; /* Ensure content is above image if any overlap */
}

.page-casino__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: #F2C14E; /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-casino__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-top: 20px;
}

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

/* Section Titles and Descriptions */
.page-casino__section-title {
    font-size: 2.5rem;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-casino__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Secondary text color */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Main text color */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Green color */
    border: 2px solid #2AD16F;
    box-shadow: none;
}

.page-casino__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Dark background color */
    transform: translateY(-3px);
}

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

/* Card styles */
.page-casino__card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #F2FFF6; /* Main text color */
    border: 1px solid #2E7A4E; /* Custom Border */
    box-sizing: border-box;
}

/* About Section */
.page-casino__about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-casino__about-heading {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold color */
    margin-bottom: 15px;
}

.page-casino__about-text {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-casino__feature-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-casino__games-section {
    background-color: #0A4B2C; /* Deep Green background */
    border-radius: 15px;
    padding: 80px 20px;
    margin-top: 40px;
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-description {
    color: #F2FFF6; /* Light text for dark background */
}

.page-casino__game-category {
    margin-bottom: 60px;
}

.page-casino__game-category:last-child {
    margin-bottom: 0;
}

.page-casino__category-title {
    font-size: 2rem;
    color: #F2C14E; /* Gold color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.page-casino__category-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow content to wrap */
}

.page-casino__game-category--reverse .page-casino__category-content {
    flex-direction: row-reverse; /* Reverse order for alternating layout */
}

.page-casino__category-image {
    width: 100%;
    max-width: 500px; /* Max width for images */
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent image from shrinking too much */
}

.page-casino__category-text {
    flex: 1;
    min-width: 300px; /* Minimum width for text block */
    color: #F2FFF6; /* Main text color */
}

.page-casino__category-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Secondary text color */
}

/* Promotions Section */
.page-casino__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-casino__promo-card {
    text-align: center;
}

.page-casino__promo-title {
    font-size: 1.35rem;
    color: #F2C14E; /* Gold color */
    margin-bottom: 10px;
}

.page-casino__promo-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-casino__promo-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-casino__security-section {
    background-color: #11271B; /* Card BG color */
    border-radius: 15px;
    padding: 80px 20px;
}

.page-casino__security-section .page-casino__section-title,
.page-casino__security-section .page-casino__section-description {
    color: #F2FFF6; /* Light text for dark background */
}

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

.page-casino__security-item {
    text-align: center;
    color: #F2FFF6; /* Main text color */
}

.page-casino__security-heading {
    font-size: 1.4rem;
    color: #2AD16F; /* Green color */
    margin-bottom: 10px;
}

.page-casino__security-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-casino__security-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* How to Start Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-casino__step-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.page-casino__step-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(242, 193, 78, 0.1); /* Transparent Gold */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.page-casino__step-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold color */
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-casino__step-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Secondary text color */
    position: relative;
    z-index: 1;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #0A4B2C; /* Deep Green background */
    border-radius: 15px;
    padding: 80px 20px;
}

.page-casino__faq-section .page-casino__section-title {
    color: #F2FFF6; /* Light text for dark background */
}

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

.page-casino__faq-item {
    background-color: #11271B; /* Card BG color */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Main text color */
}

.page-casino__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    outline: none;
    list-style: none; /* Hide default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-casino__faq-question .page-casino__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F; /* Green color */
}

.page-casino__faq-item[open] .page-casino__faq-question .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-casino__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

.page-casino__faq-answer p {
    margin: 0;
}


/* Final CTA Section */
.page-casino__cta-final-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Image and Video Responsive & Min Size */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-casino video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min video size */
    min-height: 200px; /* Min video size */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-content {
        margin-bottom: 30px;
    }
    .page-casino__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }
    .page-casino__section-title {
        font-size: 2.2rem;
    }
    .page-casino__game-category--reverse .page-casino__category-content {
        flex-direction: column; /* Stack on smaller screens */
    }
    .page-casino__category-content {
        flex-direction: column;
    }
    .page-casino__category-image {
        max-width: 100%; /* Image takes full width */
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__how-to-start-section,
    .page-casino__faq-section,
    .page-casino__cta-final-section {
        padding: 40px 15px; /* Adjust padding for mobile */
    }

    .page-casino__hero-content {
        margin-bottom: 20px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller H1 for mobile */
        max-width: 100%; /* Ensure H1 fits */
        padding: 0 5px;
    }

    .page-casino__hero-description {
        font-size: 1rem;
        padding: 0 5px;
    }

    .page-casino__hero-actions {
        flex-direction: column; /* Stack buttons */
        gap: 15px;
        width: 100%; /* Ensure button container takes full width */
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box;
    }

    .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: 12px 20px;
        font-size: 1rem;
    }

    .page-casino__section-title {
        font-size: 1.8rem;
        padding: 0 5px;
    }

    .page-casino__section-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }

    .page-casino__about-grid,
    .page-casino__promotions-grid,
    .page-casino__security-grid,
    .page-casino__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-casino__game-category .page-casino__category-content,
    .page-casino__game-category--reverse .page-casino__category-content {
        flex-direction: column; /* Always stack content */
        gap: 20px;
    }
    
    .page-casino__category-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-casino__category-text {
        min-width: unset; /* Remove min-width for mobile */
        width: 100%;
        padding: 0 5px;
    }

    .page-casino__promo-image,
    .page-casino__feature-image,
    .page-casino__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Image responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }

    /* Video responsive */
    .page-casino video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Maintain minimum size */
        min-height: 200px; /* Maintain minimum size */
    }

    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        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: 10px !important; /* Small top padding for hero section */
    }
}