/* style/casino-table-games.css */
.page-casino-table-games {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-casino-table-games__hero-section {
    position: relative;
    overflow: hidden;
    color: #FFFFFF; /* White text for hero content over dark image */
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-casino-table-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Image behind overlay */
}

.page-casino-table-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent overlay */
    z-index: -1; /* Overlay between image and content */
}

.page-casino-table-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-casino-table-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FCBC45; /* Gold accent for title */
}

.page-casino-table-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.page-casino-table-games__hero-buttons,
.page-casino-table-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino-table-games__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.page-casino-table-games__button--register {
    background-color: #FFFFFF; /* Register button background */
    color: #000000; /* Register button text */
    border: 2px solid #FFFFFF;
}

.page-casino-table-games__button--register:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
}

.page-casino-table-games__button--login,
.page-casino-table-games__button--play,
.page-casino-table-games__button--join {
    background-color: #FCBC45; /* Login, Play, Join button background */
    color: #000000; /* Login, Play, Join button text */
    border: 2px solid #FCBC45;
}

.page-casino-table-games__button--login:hover,
.page-casino-table-games__button--play:hover,
.page-casino-table-games__button--join:hover {
    background-color: #E0A83A;
    transform: translateY(-2px);
}

.page-casino-table-games__button--explore {
    background-color: #000000; /* Explore button background */
    color: #FFFFFF; /* Explore button text */
    border: 2px solid #000000;
}

.page-casino-table-games__button--explore:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-casino-table-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
    font-weight: bold;
}

.page-casino-table-games__section-paragraph {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-table-games__introduction-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__why-choose-section,
.page-casino-table-games__getting-started-section,
.page-casino-table-games__faq-section,
.page-casino-table-games__final-cta-section {
    padding: 60px 0;
}

.page-casino-table-games__featured-games-section {
    background-color: #F8F8F8; /* Light grey background for contrast */
    padding: 60px 0;
}

.page-casino-table-games__game-grid,
.page-casino-table-games__advantages-grid,
.page-casino-table-games__steps-grid,
.page-casino-table-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-table-games__game-card,
.page-casino-table-games__advantage-card,
.page-casino-table-games__step-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino-table-games__game-card:hover,
.page-casino-table-games__advantage-card:hover,
.page-casino-table-games__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__game-image,
.page-casino-table-games__strategy-image,
.page-casino-table-games__why-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum image size */
    min-width: 200px; /* Enforce minimum image size */
}

.page-casino-table-games__game-title,
.page-casino-table-games__advantage-title,
.page-casino-table-games__step-title,
.page-casino-table-games__strategy-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #000000;
    font-weight: bold;
}

.page-casino-table-games__game-description,
.page-casino-table-games__advantage-text,
.page-casino-table-games__step-text,
.page-casino-table-games__strategy-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-casino-table-games__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
}

.page-casino-table-games__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.page-casino-table-games__faq-question::after {
    content: '+';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

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

.page-casino-table-games__faq-answer {
    font-size: 1em;
    color: #555555;
    padding-top: 10px;
    border-top: 1px solid #EEEEEE;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-casino-table-games__faq-answer.open {
    max-height: 200px; /* Arbitrary max-height for smooth transition */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-casino-table-games__hero-title {
        font-size: 2.5em;
    }

    .page-casino-table-games__hero-description {
        font-size: 1em;
    }

    .page-casino-table-games__hero-buttons,
    .page-casino-table-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino-table-games__button {
        width: 100%;
        padding: 12px 20px;
    }

    .page-casino-table-games__section-title {
        font-size: 2em;
    }

    .page-casino-table-games__game-grid,
    .page-casino-table-games__advantages-grid,
    .page-casino-table-games__steps-grid,
    .page-casino-table-games__strategy-grid {
        grid-template-columns: 1fr;
    }

    /* Enforce max-width: 100% for all images in content area to prevent overflow */
    .page-casino-table-games img {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure min size on mobile as well */
        min-height: 200px;
    }

    .page-casino-table-games__game-card,
    .page-casino-table-games__advantage-card,
    .page-casino-table-games__step-card {
        padding: 20px;
    }
}