.page-casino {
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #FFFFFF; /* Main background for the entire page, white as specified */
}

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

/* Hero Section */
.page-casino__hero-section {
    background: linear-gradient(135deg, #26A9E0, #100224); /* Darker gradient for hero background */
    padding-top: 10px; /* Small top padding for the first section */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-casino__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-casino__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain hero image width */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-content {
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-description {
    font-size: 1.2em;
    color: #E0E0E0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.page-casino__btn--primary {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-casino__btn--primary:hover {
    background-color: #1a8cc4;
    transform: translateY(-2px);
}

.page-casino__btn--secondary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
}

.page-casino__btn--secondary:hover {
    background-color: #c46406;
    transform: translateY(-2px);
}

.page-casino__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* About Section */
.page-casino__about-section {
    background-color: #F8F8F8; /* Light background for contrast */
    padding: 60px 0;
    color: #333333;
}

.page-casino__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-casino__about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-casino__about-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333; /* Dark text for light background */
}

.page-casino__about-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-casino__about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn--learn-more {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 10px 20px;
}

.page-casino__btn--learn-more:hover {
    background-color: #1a8cc4;
}

/* Game Categories Section */
.page-casino__game-categories {
    background-color: #FFFFFF; /* White background */
    padding: 60px 0;
    color: #333333;
}

.page-casino__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-casino__category-card {
    background-color: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-casino__category-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino__category-title {
    font-size: 1.5em;
    color: #26A9E0; /* Primary color */
    margin: 20px 0 10px;
}

.page-casino__category-title .page-casino__link {
    color: #26A9E0;
    text-decoration: none;
}

.page-casino__category-title .page-casino__link:hover {
    text-decoration: underline;
}

.page-casino__category-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #F0F8FF; /* Light blue background */
    padding: 60px 0;
    color: #333333;
}

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

.page-casino__promotion-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-casino__promotion-image {
    width: 100%;
    height: 281px; /* Maintain aspect ratio for 800x450, e.g., 16:9 */
    object-fit: cover;
    display: block;
}

.page-casino__promotion-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}

.page-casino__promotion-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

.page-casino__btn--view-details {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 10px 20px;
}

.page-casino__btn--view-details:hover {
    background-color: #1a8cc4;
}

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

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

.page-casino__feature-item {
    background-color: #F8F8F8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-casino__feature-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-casino__feature-description {
    font-size: 0.95em;
    color: #555555;
}

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

.page-casino__faq-list {
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.page-casino__faq-question {
    width: 100%;
    background-color: #26A9E0; /* Primary color */
    color: #FFFFFF;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-casino__faq-question::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

.page-casino__faq-answer {
    padding: 0 20px;
    background-color: #F8F8F8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-casino__faq-answer p {
    padding: 15px 0;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
}

.page-casino__faq-answer.active {
    max-height: 200px; /* Adjust based on expected content height */
    padding: 0 20px 15px;
}

.page-casino__btn--view-all-faq {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 12px 25px;
    margin-top: 20px;
}

.page-casino__btn--view-all-faq:hover {
    background-color: #1a8cc4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__about-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__about-text, .page-casino__about-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-casino__promotion-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__promotion-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-casino__main-title {
        font-size: 1.8em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-casino__btn {
        width: 80%;
        margin: 0 auto;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
    .page-casino__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    /* Ensure all images in content area are responsive and do not overflow */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
    .page-casino__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-casino__about-image {
        max-width: 100%;
        height: auto;
    }
    .page-casino__category-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure minimum height for card images */
    }
    .page-casino__promotion-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure minimum height for promotion images */
    }
    .page-casino__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 1.5em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__btn {
        width: 90%;
    }
    .page-casino__section-title {
        font-size: 1.3em;
    }
}

/* Color Contrast Check */
/* Ensure text on colored backgrounds has sufficient contrast */
.page-casino__main-title,
.page-casino__hero-description,
.page-casino__btn--primary,
.page-casino__btn--secondary,
.page-casino__faq-question {
    color: #FFFFFF; /* White on primary blue/orange/gradient */
}

.page-casino__about-text p,
.page-casino__category-description,
.page-casino__promotion-description,
.page-casino__feature-description,
.page-casino__faq-answer p {
    color: #333333; /* Dark gray on light backgrounds */
}

.page-casino__section-title,
.page-casino__category-title,
.page-casino__promotion-title,
.page-casino__feature-title {
    color: #26A9E0; /* Primary blue on light backgrounds */
}

.page-casino__category-title .page-casino__link {
    color: #26A9E0;
}

/* Specific color overrides based on rules */
.page-casino__btn--secondary { /* Login button */
    background-color: #EA7C07; /* Login color */
}

.page-casino__faq-question {
    background-color: #26A9E0; /* Primary color */
}