/* style/casino.css */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body var(--dark-bg-1) */
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    min-height: 600px;
    padding-bottom: 60px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

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

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

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

/* General Section Styles */
.page-casino__section {
    padding: 80px 0;
    background-color: var(--dark-bg-1);
    color: #ffffff;
}

.page-casino__section.page-casino__light-bg {
    background-color: #f5f5f5;
    color: #333333;
}

.page-casino__section.page-casino__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-casino__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFF00;
}

.page-casino__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-casino__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

.page-casino__btn-text-link {
    color: #FFFF00;
    text-decoration: underline;
    padding: 0;
    border: none;
    background: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}

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

.page-casino__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

/* About Us Section */
.page-casino__about-us .page-casino__section-text {
    text-align: left;
}
.page-casino__about-us .page-casino__btn-text-link {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    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 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.page-casino__game-card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px 15px;
    color: #FFFF00;
}

.page-casino__game-card-link {
    color: inherit;
    text-decoration: none;
}

.page-casino__game-card-link:hover {
    text-decoration: underline;
}

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

/* Download Guide */
.page-casino__download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-casino__download-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-casino__download-text .page-casino__section-title,
.page-casino__download-text .page-casino__section-text {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-casino__download-steps {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-casino__download-steps li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-casino__download-steps li:last-child {
    margin-bottom: 0;
}

.page-casino__download-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Promotions */
.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.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    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 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.page-casino__promo-card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px 15px;
    color: #FFFF00;
}

.page-casino__promo-card-link {
    color: inherit;
    text-decoration: none;
}

.page-casino__promo-card-link:hover {
    text-decoration: underline;
}

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

/* Features Section */
.page-casino__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-casino__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-icon {
    width: 200px; /* Minimum 200x200 display size */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-casino__feature-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFF00;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    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;
    color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px 25px;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

/* Final CTA Section */
.page-casino__cta-final {
    padding: 100px 0;
    text-align: center;
}

.page-casino__cta-final .page-casino__section-title {
    font-size: 3em;
    margin-bottom: 30px;
}

.page-casino__cta-final .page-casino__section-text {
    font-size: 1.2em;
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__download-content {
        flex-direction: column;
    }
    .page-casino__download-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .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,
    .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;
        flex-direction: column;
    }

    .page-casino__section {
        padding: 60px 0;
    }
    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-text {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: 180px;
    }
    .page-casino__feature-icon {
        width: 200px !important;
        height: 200px !important;
    }
    .page-casino__feature-item {
        padding: 20px;
    }

    /* All containers with images/videos */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__download-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-casino__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-question h3 {
        font-size: 1.1em;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-casino__cta-final .page-casino__section-title {
        font-size: 2.2em;
    }
}