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

.page-casino-table-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    background-color: #f0f0f0; /* Light background for hero section */
    overflow: hidden;
    padding-bottom: 40px;
}

.page-casino-table-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}

.page-casino-table-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-casino-table-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-casino-table-games__hero-title {
    font-size: 3.2em;
    color: #B80000; /* Primary brand color */
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

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

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

.page-casino-table-games__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-casino-table-games__hero-button--primary {
    background-color: #B80000; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #B80000;
}

.page-casino-table-games__hero-button--primary:hover {
    background-color: #8c0000;
    border-color: #8c0000;
    transform: translateY(-3px);
}

.page-casino-table-games__hero-button--secondary {
    background-color: #FFD700; /* Secondary brand color */
    color: #B80000; /* Primary text color */
    border: 2px solid #FFD700;
}

.page-casino-table-games__hero-button--secondary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
}

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

.page-casino-table-games__introduction,
.page-casino-table-games__featured-games,
.page-casino-table-games__why-choose-us,
.page-casino-table-games__getting-started,
.page-casino-table-games__responsible-gaming {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-casino-table-games__featured-games,
.page-casino-table-games__getting-started {
    background-color: #f9f9f9;
}

.page-casino-table-games__section-title {
    font-size: 2.5em;
    color: #B80000; /* Primary brand color */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.page-casino-table-games__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-casino-table-games__games-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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino-table-games__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino-table-games__game-card-title {
    font-size: 1.6em;
    color: #B80000; /* Primary brand color */
    margin: 0 15px 10px 15px;
    font-weight: 600;
}

.page-casino-table-games__game-card-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-casino-table-games__game-card-button {
    display: inline-block;
    background-color: #FFD700; /* Secondary brand color */
    color: #B80000; /* Primary text color */
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-casino-table-games__feature-item {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-casino-table-games__feature-title {
    font-size: 1.4em;
    color: #B80000; /* Primary brand color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-casino-table-games__feature-description {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
}

.page-casino-table-games__why-choose-us-image-wrapper {
    margin-top: 50px;
    text-align: center;
}

.page-casino-table-games__why-choose-us-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-casino-table-games__step-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-casino-table-games__step-number {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #B80000; /* Primary brand color */
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    padding: 10px 20px;
    border-bottom-right-radius: 12px;
}

.page-casino-table-games__step-title {
    font-size: 1.5em;
    color: #B80000; /* Primary brand color */
    margin-top: 50px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-casino-table-games__step-description {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-casino-table-games__step-button {
    display: inline-block;
    background-color: #FFD700; /* Secondary brand color */
    color: #B80000; /* Primary text color */
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-casino-table-games__cta-bottom {
    text-align: center;
    margin-top: 60px;
    background-color: #B80000;
    padding: 40px;
    border-radius: 12px;
    color: #ffffff;
}

.page-casino-table-games__cta-text {
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 600;
    color: #FFD700;
}

.page-casino-table-games__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Secondary brand color */
    color: #B80000; /* Primary text color */
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games__responsible-gaming {
    background-color: #f0f0f0;
    padding: 80px 0;
}

.page-casino-table-games__responsible-gaming-link {
    display: inline-block;
    margin-top: 30px;
    color: #B80000; /* Primary brand color */
    text-decoration: underline;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-casino-table-games__responsible-gaming-link:hover {
    color: #FFD700; /* Secondary brand color */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-table-games__hero-title {
        font-size: 2.8em;
    }
    .page-casino-table-games__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-casino-table-games__hero-section {
        padding-top: var(--header-offset, 120px);
        min-height: auto;
        padding-bottom: 30px;
    }
    .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__hero-button {
        width: 100%;
        max-width: 300px;
    }

    .page-casino-table-games__introduction,
    .page-casino-table-games__featured-games,
    .page-casino-table-games__why-choose-us,
    .page-casino-table-games__getting-started,
    .page-casino-table-games__responsible-gaming {
        padding: 40px 0;
    }

    .page-casino-table-games__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-casino-table-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-casino-table-games__games-grid,
    .page-casino-table-games__features-grid,
    .page-casino-table-games__steps-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-casino-table-games__game-card-image {
        height: 200px;
    }

    .page-casino-table-games__cta-text {
        font-size: 1.4em;
    }
    .page-casino-table-games__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    /* Ensure all content area images are responsive and do not overflow */
    .page-casino-table-games img {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__hero-section .page-casino-table-games__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__game-card .page-casino-table-games__game-card-image {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__why-choose-us-image-wrapper .page-casino-table-games__why-choose-us-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-casino-table-games__hero-title {
        font-size: 1.8em;
    }
    .page-casino-table-games__section-title {
        font-size: 1.6em;
    }
    .page-casino-table-games__cta-text {
        font-size: 1.2em;
    }
    .page-casino-table-games__cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .page-casino-table-games__hero-content {
        padding: 15px;
    }
    .page-casino-table-games__container {
        padding: 0 15px;
    }
}