.page-casino {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D;
    background-color: #F4F7FB;
    line-height: 1.6;
}

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

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1F2D3D;
}

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

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: #1F2D3D;
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-casino__btn-secondary:hover {
    background: #e0eaff;
    color: #2F6BFF;
    border-color: #2F6BFF;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-casino__btn-tertiary {
    background: #6FA3FF;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    margin-top: 15px;
}

.page-casino__btn-tertiary:hover {
    background: #2F6BFF;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Adjusted to avoid double padding with shared body */
    background-color: #F4F7FB;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

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

.page-casino__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #1F2D3D;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__intro-description {
    font-size: 20px;
    color: #1F2D3D;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* About Section */
.page-casino__content-wrapper {
    display: flex;
    justify-content: center;
}

.page-casino__text-block {
    max-width: 900px;
    font-size: 17px;
    line-height: 1.7;
    color: #1F2D3D;
}

.page-casino__text-block p {
    margin-bottom: 20px;
}

/* Games Section */
.page-casino__dark-section {
    background-color: #2F6BFF;
    color: #ffffff;
}

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

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

.page-casino__game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-casino__game-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2D3D;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-casino__game-category p {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Advantages Section */
.page-casino__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-casino__advantage-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.page-casino__icon-box {
    background-color: #D6E2FF;
    color: #2F6BFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.page-casino__advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-casino__advantage-card p {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

.page-casino__hidden-image {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    counter-increment: step-counter;
}

.page-casino__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #2F6BFF;
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-casino__step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2D3D;
    margin-bottom: 15px;
}

.page-casino__step-item p {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

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

/* Tips Section */
.page-casino__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__tip-card {
    background-color: #6FA3FF;
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-casino__tip-card p {
    color: #f0f0f0;
}

.page-casino__tip-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* FAQ Section */
details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #D6E2FF;
    overflow: hidden;
    background: #ffffff;
}
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: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #1F2D3D;
}
.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF;
    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: #F4F7FB;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

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

/* Conclusion Section */
.page-casino__conclusion-section {
    background-color: #2F6BFF;
    color: #ffffff;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 42px;
    }
    .page-casino__intro-description {
        font-size: 18px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__games-grid,
    .page-casino__advantages-grid,
    .page-casino__guide-steps,
    .page-casino__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-casino__game-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-casino__main-title {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }
    .page-casino__intro-description {
        font-size: 16px !important;
        margin-bottom: 25px !important;
    }
    .page-casino__section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    .page-casino__section-description {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    .page-casino__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
        margin-bottom: 40px !important;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
    }
    .page-casino__hero-content {
        margin-top: 20px !important;
    }
    .page-casino__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    .page-casino__games-grid,
    .page-casino__advantages-grid,
    .page-casino__guide-steps,
    .page-casino__tips-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-casino__section-padding {
        padding: 40px 0 !important;
    }
    .page-casino__game-image {
        height: 160px !important;
    }
    .page-casino__game-title {
        font-size: 20px !important;
    }
    .page-casino__game-category p,
    .page-casino__advantage-card p,
    .page-casino__step-item p {
        font-size: 15px !important;
    }
    .page-casino__advantage-title,
    .page-casino__step-title,
    .page-casino__tip-title {
        font-size: 18px !important;
    }
    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 15px !important;
    }
    .page-casino__faq-qtext {
        font-size: 16px !important;
    }
    .page-casino__faq-toggle {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
    }
    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 15px 15px !important;
    }
    .page-casino img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}