/* style/casino.css */

/* General Styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    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: #26A9E0;
    border-radius: 2px;
}

.page-casino__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 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; /* Break long words */
}

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-casino__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-casino__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* Intro Section */
.page-casino__intro-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-casino__card-description {
    color: #cccccc;
    font-size: 0.95em;
    padding: 0 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-casino__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino__security-text {
    flex: 1;
    min-width: 300px;
}

.page-casino__security-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-casino__security-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-casino__list-highlight {
    color: #26A9E0;
}

.page-casino__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
}

.page-casino__guide-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.page-casino__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: none;
}

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

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #cccccc;
    line-height: 1.7;
}

.page-casino__faq-answer p {
    margin-top: 15px;
    margin-bottom: 0;
}

.page-casino__faq-item details > summary {
    list-style: none;
}

.page-casino__faq-item details > summary::-webkit-details-marker {
    display: none;
}

/* Call to Action Section */
.page-casino__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0;
}

.page-casino__cta-section .page-casino__section-title {
    color: #ffffff;
}

.page-casino__cta-section .page-casino__section-title::after {
    background-color: #ffffff;
}

.page-casino__cta-section .page-casino__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__cta-section .page-casino__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

.page-casino__cta-section .page-casino__btn-primary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-casino__cta-section .page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-casino__cta-section .page-casino__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: 80vh;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-casino__btn-primary, .page-casino__btn-secondary {
        width: 100%;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__sub-title {
        font-size: 1.5em;
    }
    .page-casino__text-block {
        font-size: 1em;
    }

    .page-casino__container {
        padding: 15px;
    }

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

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }

    .page-casino__security-content {
        flex-direction: column;
    }
    .page-casino__security-image {
        max-width: 100%;
    }

    /* Mobile specific image/video/button rules with !important */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino video,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure hero section is pushed down */
    }

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

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-casino__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Color Contrast Adjustments (Assuming --dark-bg-1 is dark) */
.page-casino__dark-section {
    background-color: var(--dark-bg-1);
    color: #ffffff;
}
.page-casino__games-section, .page-casino__security-section, .page-casino__faq-section {
    background-color: #1a1a1a; /* Slightly different dark shade */
    color: #ffffff;
}

.page-casino__card {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.page-casino__card-description {
    color: #cccccc;
}
.page-casino__faq-answer p {
    color: #cccccc;
}