/* style/casino.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1A1A1A;
    --text-light: #ffffff;
    --text-dark: #333333;
    --button-hover-dark: #E6C200;
    --button-hover-light: #f0f0f0;
}

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--secondary-color); /* Body background from shared.css */
}

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

.page-casino__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-casino__section-description {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('[GALLERY:hero_bg:1920x1080:casino,mt68 vip,luxury,gambling,games,gold,dark]');
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.page-casino__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-casino__main-title {
    font-size: 52px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-casino__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-casino__cta-button--primary:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-button--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__cta-button--secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Games Overview Section */
.page-casino__games-overview {
    background-color: #1A1A1A;
    padding: 80px 0;
}

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

.page-casino__game-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.page-casino__game-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-card-description {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__game-card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-casino__game-card-button:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-2px);
}

/* Why Choose Section */
.page-casino__why-choose {
    background-color: #1A1A1A;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: inline-block;
    object-fit: contain;
}

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

.page-casino__feature-description {
    font-size: 15px;
    color: #cccccc;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #1A1A1A;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-casino__promo-card {
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.page-casino__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__promo-card-description {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__promo-card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-casino__promo-card-button:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-2px);
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling {
    background-color: #1A1A1A;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-casino__responsible-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__responsible-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: inline-block;
    object-fit: contain;
}

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

.page-casino__responsible-item p {
    font-size: 15px;
    color: #cccccc;
}

.page-casino__responsible-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-casino__responsible-link:hover {
    color: var(--button-hover-dark);
    text-decoration: underline;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #1A1A1A;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2a2a2a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #2a2a2a;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.page-casino__faq-question:hover {
    background: #3a3a3a;
}

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

.page-casino__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 30px;
    height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Changed to rotate for a consistent look */
    color: var(--button-hover-dark);
}

.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 25px;
    opacity: 0;
    background: #222222;
    color: #cccccc;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
}

/* Final CTA Section */
.page-casino__final-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--secondary-color);
}

.page-casino__final-cta .page-casino__section-title {
    color: var(--secondary-color);
}

.page-casino__final-cta .page-casino__section-description {
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.page-casino__final-cta .page-casino__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-casino__final-cta .page-casino__cta-button--primary:hover {
    background-color: #000000;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-section {
        height: 500px;
    }

    .page-casino__main-title {
        font-size: 44px;
    }

    .page-casino__hero-description {
        font-size: 18px;
    }

    .page-casino__section-title {
        font-size: 30px;
    }

    .page-casino__section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .page-casino__hero-container {
        padding: 15px;
    }

    .page-casino__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .page-casino__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-casino__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .page-casino__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-casino__game-cards,
    .page-casino__features,
    .page-casino__promo-cards,
    .page-casino__responsible-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: 180px;
    }

    .page-casino__game-card-content,
    .page-casino__promo-card-content {
        padding: 20px;
    }

    .page-casino__game-card-title,
    .page-casino__promo-card-title,
    .page-casino__feature-title,
    .page-casino__responsible-subtitle {
        font-size: 20px;
    }

    .page-casino__game-card-description,
    .page-casino__promo-card-description,
    .page-casino__feature-description,
    .page-casino__responsible-item p {
        font-size: 14px;
    }

    .page-casino__game-card-button,
    .page-casino__promo-card-button {
        padding: 10px 20px;
        font-size: 15px;
    }

    .page-casino__faq-list {
        margin-top: 30px;
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-casino__faq-question h3 {
        font-size: 16px;
    }

    .page-casino__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

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

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

    .page-casino__faq-answer p {
        font-size: 15px;
    }

    .page-casino__responsible-link {
        font-size: 16px;
    }

    /* Image responsive overrides */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item,
    .page-casino__responsible-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Global image reset for content area to ensure min-size and no small icons */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Override for small icons that are explicitly required (e.g., feature icons) but still enforce min-size if possible */
.page-casino__feature-icon,
.page-casino__responsible-icon {
    min-width: 80px;
    min-height: 80px;
    width: 80px;
    height: 80px;
    object-fit: contain; /* Icons should be contained, not covered */
}