/* style/casino.css */
.page-casino {
    font-family: Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

.page-casino__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #8B0000;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.page-casino__section-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 40px;
}

.page-casino__text-block {
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.05em;
    color: #444444;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px);
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

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

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

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-casino__btn-primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #8B0000;
    transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-casino__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-casino__cta-center {
    margin-top: 50px;
}

/* Image Styling */
.page-casino__image-full {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Dark Background Section */
.page-casino__dark-bg {
    background-color: #8B0000;
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title {
    color: #FFD700;
}

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

.page-casino__dark-bg .page-casino__text-block {
    color: #f5f5f5;
}

/* Light Background Section */
.page-casino__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-casino__light-bg .page-casino__section-title {
    color: #8B0000;
}

.page-casino__light-bg .page-casino__section-description {
    color: #555555;
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-casino__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-casino__card-title a {
    text-decoration: none;
    color: inherit;
}

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

.page-casino__card-text {
    color: #555555;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-casino__game-card .page-casino__btn-secondary {
    margin-top: auto; /* Aligns button at the bottom */
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
}

/* Live Casino Video Section */
.page-casino__live-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-casino__live-section .page-casino__section-title,
.page-casino__live-section .page-casino__section-description {
    color: #FFD700;
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

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

.page-casino__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Promotions Section */
.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
}

.page-casino__promo-card .page-casino__card-image {
    height: 250px;
}

.page-casino__promo-card .page-casino__card-title {
    color: #8B0000;
}

.page-casino__promo-card .page-casino__card-text {
    color: #555555;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin-top: auto;
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
}

/* 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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-casino__guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__guide-heading {
    font-size: 1.6em;
    color: #8B0000;
    margin-bottom: 15px;
}

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

.page-casino__guide-item .page-casino__btn-secondary {
    margin-top: auto;
    width: 100%;
}

/* Mobile App Section */
.page-casino__app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

.page-casino__app-text {
    flex: 1;
    color: #f0f0f0;
}

.page-casino__app-text h2,
.page-casino__app-text h3 {
    color: #FFD700;
}

.page-casino__app-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-casino__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-casino__app-features li {
    margin-bottom: 10px;
    font-size: 1.05em;
    position: relative;
    padding-left: 25px;
    color: #f5f5f5;
}

.page-casino__app-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700;
}

.page-casino__app-image-wrapper {
    flex: 0 0 400px;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-casino__app-image {
    width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.page-casino__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-casino__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #8B0000;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-question {
    background-color: #FFD700;
    color: #8B0000;
    border-bottom: none;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: #8B0000;
    transform: rotate(0deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
}

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

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

/* Conclusion Section */
.page-casino__conclusion-section {
    padding: 80px 20px;
}

.page-casino__conclusion-section .page-casino__section-title {
    color: #FFD700;
}

.page-casino__conclusion-section .page-casino__section-description {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__app-image-wrapper {
        flex: none;
        max-width: 80%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__section-description {
        font-size: 1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-casino__card-image {
        height: 180px;
    }
    .page-casino__app-image-wrapper {
        max-width: 95%;
    }
    .page-casino__app-features li {
        padding-left: 20px;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-casino__faq-answer {
        padding: 15px 20px;
    }
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section,
    .page-casino__container,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__guide-item,
    .page-casino__app-content,
    .page-casino__app-image-wrapper,
    .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__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-section {
        height: 400px;
    }
    .page-casino__hero-title {
        font-size: 2em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}