/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff);
}

/* Section styles */
.page-casino__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-casino__section-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

/* Color scheme application */
.page-casino__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__card-title,
.page-casino__dark-bg .page-casino__feature-title {
    color: #ffffff;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 60px 20px;
    padding-bottom: 40px; /* Adjust as needed */
    overflow: hidden;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

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

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

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

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-casino__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

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

.page-casino__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-casino__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
}

/* Video styles */
.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    box-sizing: border-box;
}

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

.page-casino__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #555555;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

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

.page-casino__card-title a.page-casino__card-link {
    color: #017439;
    text-decoration: none;
}

.page-casino__card-title a.page-casino__card-link:hover {
    text-decoration: underline;
}

.page-casino__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
}

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

.page-casino__promotion-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-casino__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
}

.page-casino__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-casino__feature-item p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Mobile Section */
.page-casino__mobile-section {
    padding: 80px 0;
}

.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-casino__mobile-text {
    flex: 1;
}

.page-casino__mobile-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-casino__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
}

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

.page-casino__security-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: #f0f0f0;
}

.page-casino__security-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
}

.page-casino__faq-list {
    margin-top: 40px;
}

.page-casino__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fdfdfd;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-question h3 {
    margin: 0;
    color: #017439;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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-out, padding 0.3s ease-out;
    color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

/* CTA Section */
.page-casino__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__mobile-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-casino__mobile-text,
    .page-casino__mobile-image-wrapper {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-buttons,
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .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__container,
    .page-casino__video-wrapper,
    .page-casino__game-card,
    .page-casino__promotion-card,
    .page-casino__feature-item,
    .page-casino__security-item,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow for containers */
    }
    .page-casino img,
    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__card-title,
    .page-casino__feature-title {
        font-size: 1.3em;
    }
    .page-casino__security-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__game-grid,
    .page-casino__promotion-grid,
    .page-casino__feature-list,
    .page-casino__security-features-grid {
        grid-template-columns: 1fr;
    }
}