/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text for the main page content, assuming a dark body background */
    background-color: var(--dark-bg); /* Inherited from shared.css */
}

/* Header offset for main content */
.page-casino__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
    position: relative;
    overflow: hidden;
}

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

/* Section titles and descriptions */
.page-casino__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* 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;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-casino__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.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;
}

.page-casino__btn-text {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

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

.page-casino__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-casino__btn-text:hover .page-casino__arrow {
    transform: translateX(5px);
}

/* Hero Section */
.page-casino__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #0A2239; /* Deep blue background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-casino__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title */
    line-height: 1.2;
}

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

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

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Game Categories Section */
.page-casino__game-categories-section {
    padding: 80px 0;
    background-color: #0A2239; /* Dark section */
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-casino__game-card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover {
    color: #e6c200;
}

.page-casino__game-card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Live Casino Experience Section */
.page-casino__live-casino-experience {
    padding: 80px 0;
    background-color: #ffffff; /* Light section */
    color: #333333;
}

.page-casino__live-casino-experience .page-casino__section-title {
    color: #0A2239; /* Dark blue title on light background */
}

.page-casino__live-casino-experience .page-casino__section-description {
    color: #555555;
}

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

.page-casino__live-casino-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.page-casino__live-casino-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__live-casino-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-casino__live-casino-title {
    font-size: 1.4em;
    color: #0A2239;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__live-casino-text {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
}

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

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-casino__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-casino__promo-card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__promo-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-card-title a:hover {
    color: #e6c200;
}

.page-casino__promo-card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding: 80px 0;
    background-color: #ffffff; /* Light section */
    color: #333333;
}

.page-casino__why-choose-us .page-casino__section-title {
    color: #0A2239;
}

.page-casino__why-choose-us .page-casino__section-description {
    color: #555555;
}

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

.page-casino__feature-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-casino__feature-text {
    font-size: 0.95em;
    color: #666666;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
    padding: 80px 0;
    background-color: #0A2239; /* Dark section */
    color: #ffffff;
}

.page-casino__responsible-gaming-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-casino__responsible-gaming-list li {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    display: flex;
    align-items: center;
}

.page-casino__responsible-gaming-list li::before {
    content: '✓';
    color: #FFD700;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.page-casino__responsible-gaming-list li p {
    margin: 0;
    color: inherit;
}

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

.page-casino__faq-section .page-casino__section-title {
    color: #0A2239;
}

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

.page-casino__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #f9f9f9;
}

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

.page-casino__faq-question:hover {
    background-color: #f0f0f0;
}

.page-casino__faq-title {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    content: '−';
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #ffffff;
}

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

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


/* General dark background section */
.page-casino__dark-section {
    background-color: #0A2239;
    color: #ffffff;
}
.page-casino__dark-section .page-casino__section-title {
    color: #FFD700;
}
.page-casino__dark-section .page-casino__section-description {
    color: #f0f0f0;
}

/* CTA Buttons container */
.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: 180px;
    }
    .page-casino__live-casino-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-casino__game-categories-section,
    .page-casino__live-casino-experience,
    .page-casino__promotions-section,
    .page-casino__why-choose-us,
    .page-casino__responsible-gaming,
    .page-casino__faq-section {
        padding: 50px 0;
    }
    .page-casino__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__live-casino-item,
    .page-casino__feature-item,
    .page-casino__cta-buttons,
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__live-casino-grid,
    .page-casino__features-grid,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow from children */
    }

    /* Adjust feature icon size for mobile if it's considered an icon */
    .page-casino__feature-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: 160px;
    }
    .page-casino__live-casino-image {
        height: 180px;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

/* Content area images CSS dimensions lower limit */
/* Ensure images in content areas are not displayed smaller than 200px */
.page-casino img:not(.page-casino__feature-icon) { /* Exclude feature icons from this rule */
    min-width: 200px; /* Applies to display size */
    min-height: 200px;
    width: auto; /* Allow auto width to scale with max-width */
    height: auto; /* Allow auto height to scale with max-width */
}
.page-casino__hero-image {
    min-width: unset; /* Hero image can be larger and scale */
    min-height: unset;
}
.page-casino__game-card-image,
.page-casino__live-casino-image,
.page-casino__promo-card-image {
    min-width: 200px;
    min-height: 200px;
}
/* Feature icons are smaller, but their purpose is different, they are illustrative icons, not content images */
.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    min-width: unset;
    min-height: unset;
}