/* style/casino.css */

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

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding */
    background-color: var(--page-casino-deep-green); /* Background behind hero image */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--page-casino-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-casino__description {
    font-size: 1.1rem;
    color: var(--page-casino-text-secondary);
    margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-primary {
    background: var(--page-casino-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--page-casino-text-main);
    border: 2px solid var(--page-casino-border);
}

.page-casino__btn-secondary:hover {
    background: var(--page-casino-deep-green);
    color: #ffffff;
    border-color: var(--page-casino-deep-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-casino__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--page-casino-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-casino-gold);
    border-radius: 2px;
}

.page-casino__intro-section,
.page-casino__games-section,
.page-casino__live-casino-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-section {
    padding: 80px 0;
}

.page-casino__dark-section {
    background-color: var(--page-casino-deep-green);
    color: var(--page-casino-text-main);
}

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

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

.page-casino__card {
    background-color: var(--page-casino-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height in a row */
}

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

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

.page-casino__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--page-casino-text-main);
}

.page-casino__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: var(--page-casino-gold);
}

.page-casino__card p {
    font-size: 1rem;
    color: var(--page-casino-text-secondary);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-casino__card-button {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-casino__view-all-games,
.page-casino__view-all-promos {
    text-align: center;
    margin-top: 50px;
}

/* Live Casino Features */
.page-casino__live-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-casino__feature-item {
    flex: 1 1 280px;
    max-width: 350px;
    background-color: var(--page-casino-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-casino__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-casino-text-main);
    margin-bottom: 10px;
}

.page-casino__feature-item p {
    color: var(--page-casino-text-secondary);
}

/* Security Section */
.page-casino__security-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    font-size: 1.1rem;
    color: var(--page-casino-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-casino__security-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-casino__security-list li::before {
    content: '✅'; /* Green checkmark */
    position: absolute;
    left: 0;
    color: var(--page-casino-glow);
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-casino__faq-item {
    background-color: var(--page-casino-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--page-casino-text-main);
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--page-casino-deep-green);
    border-bottom: 1px solid var(--page-casino-divider);
    list-style: none; /* Remove default marker for summary */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-casino__faq-qtext {
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-casino-gold);
}

.page-casino__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-casino-text-secondary);
}

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

.page-casino__faq-answer a {
    color: var(--page-casino-gold);
    text-decoration: none;
}

.page-casino__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--page-casino-deep-green);
}

.page-casino__cta-section .page-casino__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-image-wrapper {
        max-height: 60vh;
    }

    .page-casino__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-casino__section-title {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: 10px !important; /* body already handles offset */
        padding-bottom: 40px;
    }

    .page-casino__hero-image-wrapper {
        max-height: 50vh;
        margin-bottom: 20px;
    }

    .page-casino__hero-content {
        padding: 0 15px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-casino__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-casino__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__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__live-casino-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__faq-section,
    .page-casino__cta-section {
        padding: 50px 0;
    }

    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness (if any video) */
    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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__game-grid,
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-casino__feature-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

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

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

/* Ensure content area images are not too small */
.page-casino__content-area img,
.page-casino__card-image,
.page-casino__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure text contrast for default P and LI elements */
.page-casino p,
.page-casino li {
    color: var(--page-casino-text-secondary); /* Use secondary text color for paragraphs */
}

/* Contrast fix for specific elements if needed */
.page-casino__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-casino__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}