.page-casino-table-games {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-casino-table-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* White text for dark background */
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.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;
    font-weight: bold;
    color: #FCBC45; /* Login button color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

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

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

.page-casino-table-games__btn--register {
    background-color: #FFFFFF;
    color: #000000;
}

.page-casino-table-games__btn--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.page-casino-table-games__btn--login {
    background-color: #FCBC45;
    color: #000000;
}

.page-casino-table-games__btn--login:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

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

.page-casino-table-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-casino-table-games__about-section,
.page-casino-table-games__games-section,
.page-casino-table-games__strategy-section,
.page-casino-table-games__bonuses-section,
.page-casino-table-games__security-section,
.page-casino-table-games__faq-section,
.page-casino-table-games__cta-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Default light background */
}

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

.page-casino-table-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    border-radius: 2px;
}

.page-casino-table-games__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-casino-table-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-casino-table-games__game-title {
    font-size: 1.8em;
    color: #000000;
    margin: 20px 0 10px;
    padding: 0 15px;
}

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

.page-casino-table-games__btn--play {
    background-color: #FCBC45;
    color: #000000;
    padding: 12px 25px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95em;
}

.page-casino-table-games__btn--play:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-casino-table-games__strategy-content,
.page-casino-table-games__security-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino-table-games__strategy-text,
.page-casino-table-games__security-text {
    flex: 1;
}

.page-casino-table-games__strategy-image,
.page-casino-table-games__security-image {
    flex: 0 0 500px; /* Fixed width for larger screens */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino-table-games__strategy-image img,
.page-casino-table-games__security-image img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-casino-table-games__btn--learn-more,
.page-casino-table-games__btn--view-promo,
.page-casino-table-games__btn--view-all-faq {
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.95em;
    margin-top: 20px;
    display: inline-block;
}

.page-casino-table-games__btn--learn-more:hover,
.page-casino-table-games__btn--view-promo:hover,
.page-casino-table-games__btn--view-all-faq:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-casino-table-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino-table-games__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-casino-table-games__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
}

.page-casino-table-games__faq-answer {
    font-size: 1em;
    color: #555555;
}

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

.page-casino-table-games__cta-section .page-casino-table-games__section-title {
    color: #FCBC45;
}

.page-casino-table-games__cta-section .page-casino-table-games__text-content {
    color: #FFFFFF;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino-table-games__btn--register-large {
    background-color: #FFFFFF;
    color: #000000;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-casino-table-games__btn--register-large:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.page-casino-table-games__btn--download {
    background-color: #FCBC45;
    color: #000000;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-casino-table-games__btn--download:hover {
    background-color: #e0a53b;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-table-games__hero-title {
        font-size: 2.8em;
    }
    .page-casino-table-games__section-title {
        font-size: 2em;
    }
    .page-casino-table-games__strategy-content,
    .page-casino-table-games__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino-table-games__strategy-image,
    .page-casino-table-games__security-image {
        flex: none;
        width: 100%;
        max-width: 600px;
    }
    .page-casino-table-games__strategy-image img,
    .page-casino-table-games__security-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .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__btn {
        width: 80%;
        max-width: 300px;
    }
    .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 {
        height: 200px;
    }
    .page-casino-table-games__btn--register-large,
    .page-casino-table-games__btn--download {
        width: 80%;
        max-width: 300px;
        font-size: 1.1em;
    }
    /* Ensure content area images do not overflow */
    .page-casino-table-games img {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__strategy-image,
    .page-casino-table-games__security-image {
        max-width: 100%;
    }
    .page-casino-table-games__game-card 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__section-title {
        font-size: 1.5em;
    }
    .page-casino-table-games__btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-casino-table-games__game-title {
        font-size: 1.5em;
    }
    .page-casino-table-games__faq-question {
        font-size: 1.1em;
    }
    .page-casino-table-games__faq-answer {
        font-size: 0.9em;
    }
    .page-casino-table-games__btn--register-large,
    .page-casino-table-games__btn--download {
        padding: 15px 25px;
        font-size: 1em;
    }
}