/* style/casino.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #007bff;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #0d0d0d; /* Assuming a dark background for shared.css body based on typical patterns if not specified */
    --login-button-color: #EA7C07;
}

/* Base styles for the page-casino scope */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
}

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

.page-casino__section {
    padding: 60px 0;
    text-align: center;
}

.page-casino__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-casino__light-bg {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.page-casino__section-title {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-casino__sub-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.page-casino__section-text {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
}

.page-casino__list li {
    margin-bottom: 10px;
    font-size: 17px;
    position: relative;
    padding-left: 25px;
}

.page-casino__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-casino__list a {
    color: var(--text-color-dark);
    text-decoration: underline;
}

.page-casino__list a:hover {
    color: var(--primary-color);
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
    cursor: pointer;
    border: none;
}

.page-casino__btn-primary,
.page-casino__cta-button {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-casino__btn-primary:hover,
.page-casino__cta-button:hover {
    background: #1e8dc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden; /* Ensure content does not overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-casino__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-casino__hero-description {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    opacity: 0.9;
}

/* Content Grid for text and image blocks */
.page-casino__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-casino__content-grid:nth-child(even) {
    flex-direction: row-reverse;
}

.page-casino__text-block {
    flex: 1;
}

.page-casino__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-casino__card {
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-casino__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-casino__card-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-casino__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-casino__card-title a:hover {
    text-decoration: underline;
}

.page-casino__card-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-casino__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-casino__faq-question:active {
    background: #eeeeee;
}

.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    text-align: left;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-casino__faq-answer p {
    font-size: 16px;
    margin: 0;
    color: var(--text-color-dark);
}

.page-casino__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 42px;
    }
    .page-casino__hero-description {
        font-size: 20px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__section-text {
        font-size: 17px;
    }
    .page-casino__content-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__content-grid:nth-child(even) {
        flex-direction: column;
    }
    .page-casino__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-title {
        font-size: 32px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-casino__section {
        padding: 40px 0;
    }
    .page-casino__section-title {
        font-size: 28px;
    }
    .page-casino__section-text {
        font-size: 16px;
    }
    .page-casino__game-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__card {
        padding: 20px;
    }
    .page-casino__card img {
        
    }
    .page-casino__card-title {
        font-size: 20px;
    }
    .page-casino__card-description {
        font-size: 15px;
    }

    /* Images responsive */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__content-grid,
    .page-casino__text-block,
    .page-casino__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__image-block img {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Buttons responsive */
    .page-casino__cta-button,
    .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;
        margin-left: 0;
        margin-right: 0;
    }
    .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;
        display: flex;
        flex-direction: column;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-casino__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-casino__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }
}