/* 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 dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #1a1a2e; /* Dark background for hero section */
    color: #ffffff;
    overflow: hidden;
    /* Removed padding-top for desktop as shared.css handles body padding */
}

.page-casino__hero-content {
    z-index: 10;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

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

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken background image for text readability */
    transition: transform 0.3s ease;
}

.page-casino__hero-image:hover {
    transform: scale(1.03);
}

/* General Section Styles */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-casino__section-title {
    font-size: 2.8em;
    color: #ffffff; /* Default for dark sections */
    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-color: #017439;
    border-radius: 2px;
}

.page-casino__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0; /* Default for dark sections */
}

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

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark section */
}

/* Game Categories Section */
.page-casino__game-categories {
    padding: 80px 0;
    background-color: #2a2a4a; /* Slightly lighter dark background */
}

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

.page-casino__card {
    background-color: #3a3a5a; /* Card background, still dark */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure consistent card height */
}

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

.page-casino__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-casino__card-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__card-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-link:hover {
    color: #017439;
}

.page-casino__card-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-casino__card-button {
    margin-top: auto; /* Push button to bottom */
}

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

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

.page-casino__promotion-card {
    background-color: #3a3a5a; /* Card background */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

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

.page-casino__promotion-card h3,
.page-casino__promotion-card p,
.page-casino__promotion-card a {
    padding: 0 25px;
}

.page-casino__promotion-title {
    font-size: 1.6em;
    color: #ffffff;
    margin: 20px 0 10px;
    font-weight: bold;
}

.page-casino__promotion-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-casino__promotion-button {
    display: inline-block;
    margin-bottom: 25px;
}

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

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding: 80px 0;
    background-color: #2a2a4a; /* Slightly lighter dark background */
}

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

.page-casino__feature-item {
    background-color: #3a3a5a; /* Card background */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__feature-icon {
    width: 200px; /* Min size 200x200px required */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__feature-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark section */
}

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

.page-casino__faq-item {
    background-color: #3a3a5a; /* Card background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #02944b; /* Slightly lighter brand color on hover */
}

.page-casino__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Ensure font size is consistent */
}

.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 25px; /* Adjust padding for closed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #4a4a6a; /* Lighter background for answer */
    color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px; /* Adjust padding for open state */
}

.page-casino__faq-answer p {
    margin-bottom: 0;
    text-align: left;
}


/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #2a2a4a; /* Dark section */
    text-align: center;
}

.page-casino__cta-section .page-casino__container {
    background-color: #017439; /* Brand color for CTA background */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.page-casino__cta-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Custom red for primary action */
    color: #FFFF00; /* Custom yellow for text */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #e30a0a;
    border-color: #e30a0a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background-color: #ffffff; /* White background for secondary button */
    color: #017439; /* Brand green for text */
    border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Text links within content */
.page-casino__text-link {
    color: #017439; /* Brand green for text links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-casino__text-link:hover {
    color: #02944b; /* Slightly lighter on hover */
}

/* Dark background specific styles */
.page-casino__dark-section .page-casino__paragraph,
.page-casino__dark-section .page-casino__card-description {
    color: #f0f0f0;
}

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

@media (max-width: 992px) {
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__card-title {
        font-size: 1.6em;
    }
    .page-casino__promotion-title {
        font-size: 1.4em;
    }
    .page-casino__cta-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Explicitly set for mobile hero to clear header */
    }
    .page-casino__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-casino__paragraph {
        font-size: 1em;
    }

    .page-casino__category-grid,
    .page-casino__promotions-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__card,
    .page-casino__promotion-card,
    .page-casino__feature-item {
        padding: 20px;
        min-height: auto; /* Allow cards to adjust height */
    }

    .page-casino__card-image,
    .page-casino__promotion-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

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

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

    .page-casino__feature-icon {
        width: 200px !important;
        height: 200px !important;
    }

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

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

    .page-casino__faq-title {
        font-size: 1.1em;
    }

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

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

    .page-casino__cta-section .page-casino__container {
        padding: 40px 20px;
    }
    .page-casino__cta-title {
        font-size: 1.8em;
    }
    .page-casino__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image and video responsiveness */
    .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-image-wrapper,
    .page-casino__promotion-card,
    .page-casino__feature-item,
    .page-casino__faq-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsive */
    .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__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
    }
}

/* Ensure no content causes horizontal scroll on mobile */
@media (max-width: 768px) {
    .page-casino {
        overflow-x: hidden;
    }
}