/* style/casino.css */
.page-casino {
    /* Fixed header offset for both desktop and mobile */
    padding-top: var(--header-offset, 120px);
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for default light body background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text on dark hero overlay */
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Place behind content */
}

.page-casino__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 71, 171, 0.9)); /* Dark blue overlay */
    z-index: -1;
}

.page-casino__hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

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

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

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

/* General Section Styling */
.page-casino__section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.page-casino__section:nth-of-type(even) {
    background-color: #ffffff;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #0047AB; /* Deep blue for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-casino__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-casino__section-text {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-casino__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 180px;
}

.page-casino__button--primary {
    background-color: #FFD700; /* Gold button */
    color: #0047AB; /* Deep blue text */
    border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__button--secondary {
    background-color: transparent;
    color: #0047AB; /* Deep blue text */
    border: 2px solid #0047AB;
}

.page-casino__button--secondary:hover {
    background-color: #0047AB;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__button--small {
    padding: 10px 20px;
    font-size: 0.95em;
    min-width: 120px;
}

.page-casino__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 220px;
}

.page-casino__button--center {
    display: block;
    margin: 40px auto 0;
}

/* Image Grid */
.page-casino__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-casino__grid-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* 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 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be object-fit: cover */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__game-title {
    font-size: 1.6em;
    color: #0047AB;
    margin-bottom: 15px;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Live Casino Features */
.page-casino__live-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-casino__live-feature-item {
    background-color: #eaf3ff; /* Lighter blue background */
    border-left: 5px solid #0047AB;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__live-feature-title {
    font-size: 1.4em;
    color: #0047AB;
    margin-bottom: 10px;
}

.page-casino__live-feature-description {
    font-size: 1em;
    color: #444444;
}

.page-casino__full-width-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 40px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-casino__promo-item {
    background-color: #fff9e6; /* Light gold background */
    border-right: 5px solid #FFD700;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__promo-title {
    font-size: 1.4em;
    color: #0047AB;
    margin-bottom: 10px;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #444444;
}

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

.page-casino__strategy-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
}

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

.page-casino__strategy-title {
    font-size: 1.5em;
    color: #0047AB;
    margin-bottom: 15px;
}

.page-casino__strategy-description {
    font-size: 1em;
    color: #555555;
}

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

.page-casino__advantage-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
}

.page-casino__advantage-title {
    font-size: 1.5em;
    color: #0047AB;
    margin-bottom: 15px;
}

.page-casino__advantage-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ */
.page-casino__faq-item {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
    font-size: 1.3em;
    color: #0047AB;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-casino__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-casino__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-casino__faq-answer {
    font-size: 1em;
    color: #555555;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    margin-top: 10px;
    display: none; /* Hidden by default, toggled by JS */
}

.page-casino__faq-answer a {
    color: #0047AB;
    text-decoration: underline;
}

.page-casino__faq-answer a:hover {
    color: #FFD700;
}

/* Call to Action */
.page-casino__section--cta {
    background-color: #0047AB; /* Deep blue background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-casino__section--cta .page-casino__section-title {
    color: #FFD700; /* Gold title on dark background */
}

.page-casino__section--cta .page-casino__section-title::after {
    background-color: #ffffff; /* White underline */
}

.page-casino__section--cta .page-casino__section-text {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-casino__section--cta .page-casino__button {
    margin: 10px;
}

.page-casino__section--cta .page-casino__button--primary {
    background-color: #FFD700;
    color: #0047AB;
    border-color: #FFD700;
}

.page-casino__section--cta .page-casino__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-casino__section--cta .page-casino__button--secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-casino__section--cta .page-casino__button--secondary:hover {
    background-color: #ffffff;
    color: #0047AB;
}


/* 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;
    }
    .page-casino__game-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-casino__section {
        padding: 40px 0;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-text {
        font-size: 0.95em;
    }
    .page-casino__game-grid,
    .page-casino__live-features,
    .page-casino__promo-list,
    .page-casino__strategy-grid,
    .page-casino__advantage-list {
        grid-template-columns: 1fr;
    }
    .page-casino__game-image {
        height: 200px; /* Maintain minimum height for mobile */
    }
    .page-casino__full-width-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-casino__grid-image {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-section {
        padding: 40px 0;
        min-height: 350px;
    }
    .page-casino__hero-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__button {
        width: 90%;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__section-text {
        font-size: 0.9em;
    }
    .page-casino__game-image {
        height: 180px;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
    }
}

/* Ensure all content area images are at least 200px */
.page-casino img {
    min-width: 200px;
    min-height: 200px;
}
/* Overriding specific smaller elements if any, to ensure they are at least 200px */
/* This is a general rule that applies to all images within .page-casino */
.page-casino img[width][height] {
    /* If width/height attributes are set, respect them but ensure min-width/min-height */
    /* This rule ensures that no image within the content area is smaller than 200px */
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
}