.page-casino-table-games {
    color: #333333; /* Dark text for light body background */
}

.page-casino-table-games__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-casino-table-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.page-casino-table-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-casino-table-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-casino-table-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #F0F0F0;
}

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

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

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

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

.page-casino-table-games__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

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

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

.page-casino-table-games__intro-section,
.page-casino-table-games__games-showcase,
.page-casino-table-games__live-dealer-promo,
.page-casino-table-games__strategy-section,
.page-casino-table-games__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-casino-table-games__intro-section {
    background-color: #F8F8F8;
}

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

.page-casino-table-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
}

.page-casino-table-games__text-content {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333333;
}

.page-casino-table-games__text-content a {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

.page-casino-table-games__text-content a:hover {
    color: #FCBC45;
}

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

.page-casino-table-games__game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-casino-table-games__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block; /* Ensure image is block-level */
}

.page-casino-table-games__game-title {
    font-size: 1.5em;
    color: #000000;
    margin: 25px 15px 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-casino-table-games__game-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino-table-games__game-title a:hover {
    color: #FCBC45;
}

.page-casino-table-games__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino-table-games__card-button {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-casino-table-games__live-dealer-promo {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
}

.page-casino-table-games__live-dealer-promo .page-casino-table-games__section-title {
    color: #FFFFFF;
}

.page-casino-table-games__live-dealer-promo .page-casino-table-games__section-title::after {
    background-color: #FCBC45;
}

.page-casino-table-games__live-dealer-promo .page-casino-table-games__text-content {
    color: #E0E0E0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-casino-table-games__live-dealer-promo .page-casino-table-games__text-content a {
    color: #FCBC45;
}

.page-casino-table-games__live-dealer-promo .page-casino-table-games__text-content a:hover {
    color: #FFFFFF;
}

.page-casino-table-games__button--live {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 15px 40px;
}

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

.page-casino-table-games__button--strategy {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 15px 40px;
    display: block;
    width: fit-content;
    margin: 40px auto 0;
}

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

.page-casino-table-games__cta-section {
    background-color: #F0F0F0;
    text-align: center;
}

.page-casino-table-games__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-casino-table-games__button--register-large {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 18px 45px;
    font-size: 1.2em;
}

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

.page-casino-table-games__button--login-large {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
    padding: 18px 45px;
    font-size: 1.2em;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-table-games__hero-title {
        font-size: 2.8em;
    }
    .page-casino-table-games__hero-description {
        font-size: 1.15em;
    }
    .page-casino-table-games__section-title {
        font-size: 2em;
    }
    .page-casino-table-games__game-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-casino-table-games__hero-section {
        padding-top: var(--header-offset, 100px); /* Adjust for mobile header offset */
        padding-bottom: 40px;
    }
    .page-casino-table-games__hero-title {
        font-size: 2.2em;
    }
    .page-casino-table-games__hero-description {
        font-size: 1em;
    }
    .page-casino-table-games__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino-table-games__button {
        width: 80%;
        max-width: 300px;
    }
    .page-casino-table-games__intro-section,
    .page-casino-table-games__games-showcase,
    .page-casino-table-games__live-dealer-promo,
    .page-casino-table-games__strategy-section,
    .page-casino-table-games__cta-section {
        padding: 40px 0;
    }
    .page-casino-table-games__section-title {
        font-size: 1.8em;
    }
    .page-casino-table-games__text-content {
        font-size: 0.95em;
    }
    .page-casino-table-games__game-grid {
        grid-template-columns: 1fr;
    }
    .page-casino-table-games__game-image {
        max-width: 100%;
        height: auto; /* Responsive image */
        min-height: 200px; /* Ensure min height for content images */
    }
    .page-casino-table-games__game-card {
        margin: 0 10px;
    }
    .page-casino-table-games__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino-table-games__button--register-large,
    .page-casino-table-games__button--login-large {
        width: 80%;
        max-width: 350px;
    }
    /* Ensure content area images do not cause horizontal scroll */
    .page-casino-table-games img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-casino-table-games__hero-title {
        font-size: 1.8em;
    }
    .page-casino-table-games__hero-description {
        font-size: 0.9em;
    }
    .page-casino-table-games__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-casino-table-games__section-title {
        font-size: 1.5em;
    }
    .page-casino-table-games__game-title {
        font-size: 1.3em;
    }
    .page-casino-table-games__card-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-casino-table-games__button--register-large,
    .page-casino-table-games__button--login-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}