/* style/casino.css */

/* Base Styles for the Casino Page */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Use shared body background */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Ensure it's tall enough */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.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.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* General Section Styling */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-casino__dark-section {
    background-color: #017439; /* Main brand color as background */
    color: #ffffff;
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-description {
    color: #ffffff;
}

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

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

.page-casino__content-grid--reverse {
    grid-template-areas: "image text";
}

.page-casino__content-grid--reverse .page-casino__text-block {
    grid-area: text;
}

.page-casino__content-grid--reverse .page-casino__image-wrapper {
    grid-area: image;
}

.page-casino__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-casino__image-wrapper {
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Game Categories Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background for game cards */
    color: #333333; /* Dark text for light background */
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-description {
    color: #333333;
}

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

.page-casino__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text on light card background */
}

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

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-casino__game-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-casino__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
}

.page-casino__game-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #005f2c; /* Slightly darker green on hover */
}

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

.page-casino__btn-text {
    display: inline-flex;
    align-items: center;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-casino__btn-text:hover {
    color: #005f2c;
}

.page-casino__arrow {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-casino__btn-text:hover .page-casino__arrow {
    transform: translateX(5px);
}

.page-casino__more-games-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

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

.page-casino__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
    padding: 0 20px;
}

.page-casino__promo-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #f0f0f0;
    padding: 0 20px;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary,
.page-casino__promo-card .page-casino__btn-secondary {
    margin: 0 auto; /* Center buttons */
}

.page-casino__more-promos-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

.page-casino__why-choose-us .page-casino__section-title,
.page-casino__why-choose-us .page-casino__section-description {
    color: #333333;
}

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

.page-casino__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
    display: flex;
    flex-direction: column;
}

.page-casino__feature-icon {
    object-fit: contain;
    margin: 0 auto 20px auto;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    width: 200px; /* Explicitly set for layout */
    height: 200px; /* Explicitly set for layout */
}

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

.page-casino__feature-text {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 80px 0;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}

.page-casino__faq-section .page-casino__section-title {
    color: #333333;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

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

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 0 10px 0;
}

/* Final CTA Section */
.page-casino__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

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