.page-casino {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency, though shared.css sets body */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-casino__dark-bg {
    background-color: #1a1a1a; /* Darker background for contrast sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-casino__light-bg {
    background-color: #0a0a0a; /* The body background color, but for specific sections for text contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-casino__text-center {
    text-align: center;
}

.page-casino a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino a:hover {
    color: #4dc2ff; /* Lighter shade of brand color on hover */
    text-decoration: underline;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

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

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

.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__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-casino__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    object-fit: cover;
    cursor: pointer; /* Indicate video is clickable */
}

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

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

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff; /* White title for contrast */
}

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

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

.page-casino__introduction-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff; /* Light text */
}

.page-casino__introduction-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    text-align: justify;
}

.page-casino__introduction-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__games-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

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

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

.page-casino__game-title a:hover {
    color: #4dc2ff;
    text-decoration: underline;
}

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

.page-casino__game-button {
    margin: 0 15px;
    width: calc(100% - 30px); /* Adjust width for padding */
}

.page-casino__advantages-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
}

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

.page-casino__advantage-item {
    text-align: center;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__advantage-icon {
    width: 200px; /* Enforce min-size rule */
    height: 200px; /* Enforce min-size rule */
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Slightly brighten icons for visibility on dark background */
    display: block; /* Ensure it's treated as a block for centering */
    margin-left: auto;
    margin-right: auto;
}

.page-casino__advantage-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-casino__advantage-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-casino__promo-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    margin-bottom: 15px;
}

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

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

.page-casino__promo-title a:hover {
    color: #4dc2ff;
    text-decoration: underline;
}

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

.page-casino__promo-button {
    margin: 0 15px;
    width: calc(100% - 30px);
}

.page-casino__guide-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-casino__step-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__step-number {
    font-size: 2.5em;
    color: #26A9E0;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-casino__step-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-casino__guide-cta {
    margin-top: 50px;
}

.page-casino__tips-section {
    padding: 60px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-casino__tip-item {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__tip-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-casino__tip-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

.page-casino__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-casino__faq-item {
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.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: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

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

.page-casino__faq-answer p {
    margin-bottom: 10px;
}

.page-casino img {
    min-width: 200px; /* Enforce min-size rule */
    min-height: 200px; /* Enforce min-size rule */
    object-fit: cover; /* Ensure images fill their space properly */
}

@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-content {
        padding: 0 15px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 0.95em;
    }

    .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__games-grid,
    .page-casino__advantages-grid,
    .page-casino__promotions-grid,
    .page-casino__guide-steps,
    .page-casino__tips-grid,
    .page-casino__faq-list,
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino__advantage-icon {
        width: 200px; /* Enforce min-size rule */
        height: 200px; /* Enforce min-size rule */
        object-fit: contain;
        margin-bottom: 20px;
        filter: brightness(1.2);
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

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