/* style/casino-table-games.css */

/* Base Styles for the page */
.page-casino-table-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for content sections */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-casino-table-games__section-title {
    font-size: 2.5em;
    color: #0A2342; /* Main brand color */
    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: #F2C94C; /* Accent color */
    border-radius: 2px;
}

.page-casino-table-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino-table-games__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px; /* Ensure buttons are not too small */
}

.page-casino-table-games__button--primary {
    background-color: #F2C94C; /* Accent color */
    color: #0A2342; /* Main brand color */
    border: 2px solid #F2C94C;
}

.page-casino-table-games__button--primary:hover {
    background-color: #e0b83e;
    color: #0A2342;
    transform: translateY(-2px);
}

.page-casino-table-games__button--secondary {
    background-color: transparent;
    color: #0A2342; /* Main brand color */
    border: 2px solid #0A2342;
}

.page-casino-table-games__button--secondary:hover {
    background-color: #0A2342;
    color: #F2C94C;
    transform: translateY(-2px);
}

/* Hero Section */
.page-casino-table-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-casino-table-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability, NO COLOR CHANGE */
}

.page-casino-table-games__hero-container {
    position: relative;
    width: 100%;
    height: auto; /* Allow image to define height */
}

.page-casino-table-games__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

.page-casino-table-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #F2C94C; /* Accent color for title */
}

.page-casino-table-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Popular Games Section */
.page-casino-table-games__popular-games {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

.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: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 25px; /* Added padding for text */
    min-height: 350px; /* Ensure cards have enough height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-casino-table-games__game-card:hover {
    transform: translateY(-10px);
}

.page-casino-table-games__game-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
    object-fit: cover;
}

.page-casino-table-games__game-title {
    font-size: 1.8em;
    color: #0A2342;
    margin-bottom: 15px;
    text-align: center;
}

.page-casino-table-games__game-title a {
    color: #0A2342;
    text-decoration: none;
}

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

.page-casino-table-games__game-description {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* Strategy Section */
.page-casino-table-games__strategy-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #e6eef7; /* Lighter shade of main color */
}

.page-casino-table-games__strategy-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-casino-table-games__strategy-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
    object-fit: cover;
}

.page-casino-table-games__strategy-content {
    flex: 1;
}

.page-casino-table-games__strategy-subtitle {
    font-size: 1.6em;
    color: #0A2342;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Bonuses Section */
.page-casino-table-games__bonuses-section {
    background-color: #0A2342; /* Main brand color */
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-casino-table-games__bonuses-section .page-casino-table-games__section-title {
    color: #F2C94C; /* Accent color for title on dark background */
}

.page-casino-table-games__bonuses-section .page-casino-table-games__text-block {
    color: #f0f0f0;
}

.page-casino-table-games__bonuses-section .page-casino-table-games__bonuses-subtitle {
    color: #F2C94C; /* Accent color for subtitles */
}

.page-casino-table-games__bonuses-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-casino-table-games__bonuses-content {
    flex: 1;
}

.page-casino-table-games__bonuses-subtitle {
    font-size: 1.6em;
    color: #F2C94C;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-casino-table-games__bonuses-section .page-casino-table-games__button {
    margin-top: 30px;
}

.page-casino-table-games__bonuses-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
    object-fit: cover;
}

/* Why Choose Us Section */
.page-casino-table-games__why-choose-us {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-casino-table-games__advantage-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-casino-table-games__advantage-item:hover {
    transform: translateY(-5px);
}

.page-casino-table-games__advantage-title {
    font-size: 1.5em;
    color: #0A2342;
    margin-bottom: 10px;
}

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

/* Get Started Section */
.page-casino-table-games__get-started-section {
    background-color: #e6eef7; /* Lighter shade of main color */
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-casino-table-games__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 280px; /* Ensure cards have enough height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino-table-games__step-title {
    font-size: 1.7em;
    color: #0A2342;
    margin-bottom: 15px;
}

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

.page-casino-table-games__cta-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-casino-table-games__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Ensure image meets min size */
    min-height: 200px; /* Ensure image meets min size */
    object-fit: cover;
}


/* Conclusion Section */
.page-casino-table-games__conclusion-section {
    background-color: #0A2342; /* Main brand color */
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-casino-table-games__conclusion-section .page-casino-table-games__section-title {
    color: #F2C94C;
}

.page-casino-table-games__conclusion-section .page-casino-table-games__text-block {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

/* Links within content */
.page-casino-table-games a {
    color: #0A2342; /* Default link color */
    text-decoration: underline;
}

.page-casino-table-games a:hover {
    color: #F2C94C;
    text-decoration: none;
}

.page-casino-table-games__bonuses-section a {
    color: #F2C94C; /* Links on dark background */
}

.page-casino-table-games__bonuses-section a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-table-games__hero-title {
        font-size: 3em;
    }
    .page-casino-table-games__hero-description {
        font-size: 1.2em;
    }
    .page-casino-table-games__section-title {
        font-size: 2em;
    }
    .page-casino-table-games__strategy-container,
    .page-casino-table-games__bonuses-container {
        flex-direction: column;
        align-items: center;
    }
    .page-casino-table-games__strategy-image,
    .page-casino-table-games__bonuses-image {
        max-width: 80%;
    }
}

@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-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino-table-games__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-casino-table-games__section-title {
        font-size: 1.8em;
    }
    .page-casino-table-games__game-card,
    .page-casino-table-games__advantage-item,
    .page-casino-table-games__step-card {
        padding: 20px;
    }
    .page-casino-table-games__text-block {
        font-size: 0.95em;
    }
    .page-casino-table-games__strategy-image,
    .page-casino-table-games__bonuses-image,
    .page-casino-table-games__cta-image,
    .page-casino-table-games__game-image {
        max-width: 100%;
        min-width: 200px; /* Enforce min size for mobile */
        min-height: 200px; /* Enforce min size for mobile */
        width: 100%; /* Ensure mobile images don't overflow */
        height: auto;
    }
    .page-casino-table-games__games-grid,
    .page-casino-table-games__advantage-grid,
    .page-casino-table-games__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-casino-table-games__conclusion-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@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: 10px 20px;
        min-width: unset;
    }
    .page-casino-table-games__section-title {
        font-size: 1.5em;
    }
}

/* Ensure images within content areas are always at least 200px wide/high */
.page-casino-table-games__game-image,
.page-casino-table-games__strategy-image,
.page-casino-table-games__bonuses-image,
.page-casino-table-games__cta-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Added for consistent image display */
}