/* casino-table-games.css */

/* General styles for the page */
.page-casino-table-games {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    font-family: Arial, sans-serif; /* Roboto气质 */
}

/* Hero Section */
.page-casino-table-games__hero-section {
    padding-top: 10px; /* Small top padding, not header-offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Main colors */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-casino-table-games__hero-content {
    display: flex;
    flex-direction: column; /* Ensure image is above text on mobile */
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.page-casino-table-games__hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px; /* Space between image and text */
}

.page-casino-table-games__text-wrapper {
    max-width: 800px;
    text-align: center;
    color: #FFFFFF; /* White text on blue background */
}

.page-casino-table-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-casino-table-games__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-table-games__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
    min-height: 44px; /* Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto; /* Default width */
    max-width: 300px; /* Max width for button */
    margin: 0 auto;
}

.page-casino-table-games__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

/* Section Titles */
.page-casino-table-games__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

.page-casino-table-games__section-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #1F2D3D; /* Text Main */
}

/* Games Showcase Section */
.page-casino-table-games__games-showcase {
    padding: 60px 20px;
    background-color: #FFFFFF; /* Card BG */
}

.page-casino-table-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-casino-table-games__game-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* No underline */
}

.page-casino-table-games__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
    object-fit: cover;
}

.page-casino-table-games__view-all {
    text-align: center;
    margin-top: 40px;
}

.page-casino-table-games__secondary-button {
    display: inline-block;
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Auxiliary color */
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    min-height: 44px; /* Touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 280px;
    margin: 0 auto;
}

.page-casino-table-games__secondary-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
}


/* Advantages Section */
.page-casino-table-games__advantages-section {
    padding: 60px 20px;
    background-color: #F4F7FB; /* Background */
}

.page-casino-table-games__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.page-casino-table-games__advantage-card {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2F6BFF; /* Main color */
}

.page-casino-table-games__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-casino-table-games__faq-section {
    padding: 60px 20px;
    background-color: #FFFFFF; /* Card BG */
}

.page-casino-table-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-casino-table-games__faq-item {
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.page-casino-table-games__faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    min-height: 44px; /* Touch target */
}

.page-casino-table-games__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-casino-table-games__faq-question.active {
    background-color: #E6EEFF; /* Lighter blue for active state */
    color: #2F6BFF; /* Main color for active question */
}

.page-casino-table-games__faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.page-casino-table-games__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #FFFFFF;
}

.page-casino-table-games__faq-answer.active {
    max-height: 200px; /* Adjust based on content */
    padding: 15px 25px;
}

.page-casino-table-games__faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-casino-table-games__hero-section {
        padding-bottom: 40px;
    }
    .page-casino-table-games__hero-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino-table-games__hero-image {
        margin-bottom: 20px;
    }
    .page-casino-table-games__main-title {
        font-size: clamp(2rem, 6vw, 2.5rem); /* Adjust H1 for smaller screens */
    }
    .page-casino-table-games__games-showcase,
    .page-casino-table-games__advantages-section,
    .page-casino-table-games__faq-section {
        padding: 40px 15px;
    }
    .page-casino-table-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller minmax for tablets */
    }
    .page-casino-table-games__game-tile img {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-casino-table-games__cta-button,
    .page-casino-table-games__secondary-button {
        width: 100%;
        max-width: 300px; /* Maintain max-width for smaller screens */
    }
}

@media (max-width: 549px) {
    .page-casino-table-games__hero-section {
        padding-bottom: 30px;
    }
    .page-casino-table-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem); /* Further adjust H1 for mobile */
    }
    .page-casino-table-games__description {
        font-size: 1rem;
    }
    .page-casino-table-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-casino-table-games__game-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
    .page-casino-table-games__game-tile img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    /* Ensure content images are not smaller than 200px even on mobile */
    .page-casino-table-games__games-showcase img,
    .page-casino-table-games__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-casino-table-games__hero-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

/* Ensure all images within .page-casino-table-games are responsive and meet min size */
.page-casino-table-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area images CSS size lower bound (applied to any img within .page-casino-table-games) */
.page-casino-table-games img:not(.page-casino-table-games__hero-image) { /* Exclude hero if it has different min-size needs, but here it's similar */
    min-width: 200px;
    min-height: 200px;
}

/* Mobile image overflow prevention */
@media (max-width: 768px) {
    .page-casino-table-games img {
        max-width: 100%;
        height: auto;
        /* !important added as per instruction to ensure it overrides any other width */
    }
    .page-casino-table-games {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}