.page-casino {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #F5F7FA; /* General background color */
    line-height: 1.6;
}

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

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935; /* Main brand color for titles */
    line-height: 1.2;
}

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

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

.page-casino__section-description--white {
    color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    background-color: #E53935; /* Fallback background for hero */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

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

.page-casino__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 15px 60px;
    text-align: center;
    color: #ffffff;
}

.page-casino__main-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 900px; /* Constrain width to prevent overly long lines */
    margin-left: auto;
    margin-right: auto;
}

.page-casino__subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-casino__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* About Section */
.page-casino__about-section {
    background-color: #ffffff;
}

.page-casino__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default for desktop */
}

.page-casino__content-grid--reverse > .page-casino__text-block {
    direction: ltr; /* Reset text direction */
}
.page-casino__content-grid--reverse > .page-casino__image-block {
    direction: ltr; /* Reset image direction */
}

.page-casino__text-block {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.page-casino__text-block p:not(:last-child) {
    margin-bottom: 15px;
}

.page-casino__text-block--white {
    color: #f0f0f0;
}

.page-casino__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-casino__games-section {
    background-color: #E53935; /* Dark background for this section */
    color: #ffffff;
}

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

.page-casino__game-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-casino__game-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 20px 10px;
    color: #E53935; /* Brand color for card titles */
    line-height: 1.3;
}

.page-casino__game-card-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
    margin: 0 auto;
    padding: 10px 25px;
    font-size: 16px;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #F5F7FA;
}

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

.page-casino__promo-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

.page-casino__promo-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: #E53935;
    line-height: 1.3;
}

.page-casino__promo-card-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin: 0 20px 20px;
    padding: 10px 20px;
    font-size: 16px;
    align-self: flex-start;
}

.page-casino__view-all-promos {
    text-align: center;
}

/* Registration Section */
.page-casino__registration-section {
    background-color: #ffffff;
}

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

.page-casino__step-card {
    background: #F5F7FA;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-casino__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-casino__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E53935;
    line-height: 1.3;
}

.page-casino__step-text {
    font-size: 15px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-casino__step-card .page-casino__btn-primary {
    padding: 10px 25px;
    font-size: 16px;
}

/* Payment & Security Section */
.page-casino__payment-security-section {
    background-color: #E53935;
    color: #ffffff;
}

.page-casino__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Reverse content order */
}

/* Safety & Support Section */
.page-casino__safety-support-section {
    background-color: #F5F7FA;
}

.page-casino__safety-flex {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-casino__safety-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__safety-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #E53935;
    line-height: 1.3;
}

.page-casino__safety-card-text {
    font-size: 15px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-casino__safety-card .page-casino__btn-secondary {
    padding: 10px 25px;
    font-size: 16px;
    margin: 0 auto;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #ffffff;
}

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

details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}
details.page-casino__faq-item summary.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
    display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
    background: #f5f5f5;
}
.page-casino__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}
details.page-casino__faq-item .page-casino__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Conclusion Section */
.page-casino__conclusion-section {
    background-color: #E53935;
    color: #ffffff;
    text-align: center;
}

/* ======================================= */
/*             Responsive Styles            */
/* ======================================= */

/* Mobile & Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-casino__section-padding {
        padding: 40px 0;
    }

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

    .page-casino__subtitle {
        font-size: 18px;
    }

    .page-casino__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-casino__content-grid--reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset to default for mobile */
    }

    .page-casino__hero-content {
        padding: 30px 15px 40px;
    }

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

    .page-casino__game-card img,
    .page-casino__promo-card img {
         /* Adjust image height for smaller screens */
    }

    .page-casino__safety-flex {
        gap: 20px;
    }
}


/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-casino {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-casino__section-padding {
        padding: 30px 0;
    }

    .page-casino__container {
        padding: 0 15px;
    }

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

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

    /* Images Mobile Adaptations */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Containers for images and content */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__registration-section,
    .page-casino__payment-security-section,
    .page-casino__safety-support-section,
    .page-casino__faq-section,
    .page-casino__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section Mobile (Banner) */
    .page-casino__hero-section {
        padding-top: 10px; /* Small top padding, not --header-offset */
    }
    .page-casino__hero-image-wrapper {
        padding-bottom: 66.66%; /* 3:2 aspect ratio for mobile hero */
    }
    .page-casino__hero-image {
        object-fit: contain; /* Ensure image fits without cropping too much */
    }
    .page-casino__hero-content {
        padding: 20px 0 30px;
    }
    .page-casino__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-casino__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content Grid Mobile */
    .page-casino__content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__content-grid--reverse {
        grid-template-columns: 1fr;
    }

    /* Game Cards Grid Mobile */
    .page-casino__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__game-card {
        padding-bottom: 20px;
    }
    .page-casino__game-card img {
        
        margin-bottom: 15px;
    }
    .page-casino__game-card-title {
        font-size: 18px;
        margin: 0 15px 8px;
    }
    .page-casino__game-card-text {
        font-size: 14px;
        margin: 0 15px 15px;
    }
    .page-casino__game-card .page-casino__btn-primary {
        font-size: 15px;
        padding: 8px 20px;
    }

    /* Promo Cards Grid Mobile */
    .page-casino__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .page-casino__promo-card img {
        
    }
    .page-casino__promo-card-title {
        font-size: 18px;
        margin: 15px 15px 8px;
    }
    .page-casino__promo-card-text {
        font-size: 14px;
        margin: 0 15px 15px;
    }
    .page-casino__promo-card .page-casino__btn-primary {
        font-size: 15px;
        padding: 8px 15px;
        margin: 0 15px 15px;
    }

    /* Registration Steps Mobile */
    .page-casino__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__step-card {
        padding: 25px;
    }
    .page-casino__step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-casino__step-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-casino__step-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .page-casino__step-card .page-casino__btn-primary {
        font-size: 15px;
        padding: 8px 20px;
    }
}