/* style/casino.css */

/* Base styling for the casino page content */
.page-casino {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
}

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

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-casino__hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General button styling */
.page-casino__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.page-casino__button--primary {
    background-color: #FFD700; /* Gold */
    color: #1E90FF; /* Deep Blue */
    border: 2px solid #FFD700;
}

.page-casino__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-casino__button--secondary {
    background-color: #1E90FF; /* Deep Blue */
    color: #FFD700; /* Gold */
    border: 2px solid #1E90FF;
}

.page-casino__button--secondary:hover {
    background-color: #1565b3;
    transform: translateY(-2px);
}

.page-casino__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 30px;
}

.page-casino__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 60px;
}

.page-casino__button--link {
    background: none;
    border: none;
    color: #1E90FF;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

.page-casino__button--link:hover {
    color: #FFD700;
    transform: none;
}

/* General section styling */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Deep Blue */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-casino__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-casino__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #444444;
}

.page-casino__image {
    display: block;
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: none;
}

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

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

.page-casino__about-content p {
    flex: 1;
    min-width: 300px;
}

.page-casino__about-content .page-casino__image {
    flex: 1;
    min-width: 300px;
    order: 2; /* Image on right by default */
}

/* Game Categories Section */
.page-casino__categories-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1E90FF, #007bff); /* Blue gradient */
    color: #ffffff;
}

.page-casino__categories-section .page-casino__section-title {
    color: #FFD700; /* Gold */
}

.page-casino__categories-section .page-casino__section-description {
    color: #e0e0e0;
}

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

.page-casino__category-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__category-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.25);
}

.page-casino__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    filter: none;
}

.page-casino__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700; /* Gold */
}

.page-casino__card-title a {
    color: #FFD700; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: #ffffff;
}

.page-casino__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-casino__feature-item {
    text-align: center;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

.page-casino__feature-icon {
    width: 400px; /* HTML width="400" height="300" */
    height: 300px; /* HTML width="400" height="300" */
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none;
}

.page-casino__feature-title {
    font-size: 1.8em;
    color: #1E90FF; /* Deep Blue */
    margin-bottom: 15px;
}

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

.page-casino__feature-description a {
    color: #1E90FF;
    text-decoration: none;
    font-weight: bold;
}

.page-casino__feature-description a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.page-casino__call-to-action {
    text-align: center;
    margin-top: 70px;
    background-color: #fffacd; /* Light gold background */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__call-to-action .page-casino__paragraph {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Getting Started Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

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

.page-casino__guide-step {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__guide-step:hover {
    transform: translateY(-8px);
}

.page-casino__step-title {
    font-size: 1.6em;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 25px;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 60px 0;
    background-color: #1E90FF; /* Deep Blue */
    color: #ffffff;
    text-align: center;
}

.page-casino__responsible-gaming-section .page-casino__section-title {
    color: #FFD700; /* Gold */
    padding-top: 0;
}

.page-casino__responsible-gaming-section .page-casino__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

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

.page-casino__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
    font-size: 1.4em;
    color: #1E90FF; /* Deep Blue */
    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(0deg);
}

.page-casino__faq-answer {
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding-top: 0;
}

.page-casino__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* Animation for scroll */
.page-casino__section-title,
.page-casino__category-card,
.page-casino__feature-item,
.page-casino__guide-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.page-casino__section-title.is-visible,
.page-casino__category-card.is-visible,
.page-casino__feature-item.is-visible,
.page-casino__guide-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-casino {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }

    .page-casino__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }

    .page-casino__hero-title {
        font-size: 2.2em;
    }

    .page-casino__hero-description {
        font-size: 1.1em;
    }

    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-casino__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    .page-casino__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .page-casino__about-content {
        flex-direction: column;
    }
    .page-casino__about-content .page-casino__image {
        order: 1; /* Image on top for mobile */
    }

    .page-casino__category-grid,
    .page-casino__features-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-casino__feature-icon {
        width: 250px; /* Adjusted to be within 200px min for mobile while being responsive */
        height: 187px;
    }

    .page-casino__call-to-action {
        padding: 30px;
    }

    .page-casino__call-to-action .page-casino__paragraph {
        font-size: 1.2em;
    }

    /* Mobile image overflow prevention */
    .page-casino img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images in content area are not too small */
/* This rule applies to any img within .page-casino, ensuring they meet the minimum size requirement */
.page-casino img {
    min-width: 200px;
    min- /* Adjust height for aspect ratio, but ensure it's not tiny */
    object-fit: cover; /* Maintain aspect ratio and cover space */
    filter: none; /* Ensure no filter changes image color */
}

/* Override for specific elements if their HTML attributes are larger than general min-width */
.page-casino__feature-icon {
    width: 400px;
    height: 300px;
}

.page-casino__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
}

/* Mobile specific adjustments to ensure images are not too small but still responsive */
@media (max-width: 768px) {
    .page-casino__feature-icon {
        width: 100%; /* Make responsive */
        height: auto;
        min-width: 200px;
        min-height: 150px;
    }
    .page-casino__category-image {
        width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 150px;
    }
    .page-casino__hero-image {
        min-width: 200px;
        min-height: 150px;
    }
}