/* 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: #000000; /* Body background from shared.css */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

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

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

.page-casino__hero-section .page-casino__container {
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

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

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

.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-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
}

.page-casino__btn-tertiary:hover {
    background-color: #02944b;
    border-color: #02944b;
}

.page-casino__btn-centered {
    margin-top: 30px;
}

/* Section Backgrounds */
.page-casino__dark-bg {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0;
}

.page-casino__light-bg {
    background-color: #0d0d0d;
    color: #f0f0f0;
    padding: 80px 0;
}

/* About Section */
.page-casino__about-section .page-casino__text-block {
    color: #f0f0f0;
}

/* Video Section */
.page-casino__video-section {
    text-align: center;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* Games Section */
.page-casino__games-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.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    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__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__game-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

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

.page-casino__full-width-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.page-casino__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    object-fit: cover;
    max-width: 800px;
}

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

.page-casino__promotion-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__promotion-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

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

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

.page-casino__guide-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__guide-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* 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.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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px;
}

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

/* Conclusion Section */
.page-casino__conclusion-section .page-casino__text-block {
    color: #f0f0f0;
}

/* Custom Colors */
.page-casino__btn-primary[href*="redirect"],
.page-casino__btn-primary[href*="login"],
.page-casino__btn-primary[href*="register"],
.page-casino__btn-secondary[href*="redirect"],
.page-casino__btn-secondary[href*="login"],
.page-casino__btn-secondary[href*="register"],
.page-casino__btn-tertiary[href*="redirect"],
.page-casino__btn-tertiary[href*="login"],
.page-casino__btn-tertiary[href*="register"] {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-casino__btn-primary[href*="redirect"]:hover,
.page-casino__btn-primary[href*="login"]:hover,
.page-casino__btn-primary[href*="register"]:hover,
.page-casino__btn-secondary[href*="redirect"]:hover,
.page-casino__btn-secondary[href*="login"]:hover,
.page-casino__btn-secondary[href*="register"]:hover,
.page-casino__btn-tertiary[href*="redirect"]:hover,
.page-casino__btn-tertiary[href*="login"]:hover,
.page-casino__btn-tertiary[href*="register"]:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__games-grid,
    .page-casino__promotions-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-casino__full-width-image,
    .page-casino__content-image,
    .page-casino__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__faq-question,
    .page-casino__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
}