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

/* Base Styles for the page */
.page-casino-table-games {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for default (white) body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop and mobile */
}

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

/* Hero Section */
.page-casino-table-games__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #0056b3; /* Darker blue fallback */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-casino-table-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

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

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

.page-casino-table-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107; /* Gold for main title */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games__description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-casino-table-games__btn {
    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;
    min-width: 200px;
    text-align: center;
}

.page-casino-table-games__btn--primary {
    background-color: #ffc107; /* Gold primary button */
    color: #000000;
    border: 2px solid #ffc107;
}

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

.page-casino-table-games__btn--secondary {
    background-color: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

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

.page-casino-table-games__btn--small {
    padding: 10px 20px;
    font-size: 1em;
    min-width: unset;
}

/* Section Titles */
.page-casino-table-games__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary blue for section titles */
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
    position: relative;
}

.page-casino-table-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107; /* Gold underline */
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-casino-table-games__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555;
}

/* Features Section */
.page-casino-table-games__features-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-casino-table-games__feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-casino-table-games__feature-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px;
    object-fit: cover;
}

.page-casino-table-games__card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-casino-table-games__card-text {
    font-size: 1em;
    color: #666666;
}

.page-casino-table-games__card-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.page-casino-table-games__card-text a:hover {
    text-decoration: underline;
}

/* Games Showcase Section */
.page-casino-table-games__games-showcase {
    padding: 60px 0;
}

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

.page-casino-table-games__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-casino-table-games__game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    min-height: 200px;
}

.page-casino-table-games__game-title {
    font-size: 1.4em;
    color: #007bff;
    padding: 15px 20px 10px;
}

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

.page-casino-table-games__game-card .page-casino-table-games__btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Strategy Guide Section */
.page-casino-table-games__strategy-guide {
    padding: 60px 0;
    background-color: #f0f8ff;
}

.page-casino-table-games__subsection-title {
    font-size: 2em;
    color: #007bff;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 10px;
}

.page-casino-table-games__text-content {
    margin-bottom: 20px;
    color: #444444;
}

.page-casino-table-games__text-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.page-casino-table-games__text-content a:hover {
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-casino-table-games__cta-bottom {
    padding: 80px 0;
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

.page-casino-table-games__cta-bottom-content .page-casino-table-games__section-title {
    color: #ffc107;
}
.page-casino-table-games__cta-bottom-content .page-casino-table-games__section-title::after {
    background-color: #ffffff;
}

.page-casino-table-games__cta-bottom-content .page-casino-table-games__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-casino-table-games__faq-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-casino-table-games__faq-list {
    margin-top: 40px;
}

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

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

.page-casino-table-games__faq-answer {
    font-size: 1em;
    color: #555555;
    display: none; /* Hidden by default, toggled by JS */
}

.page-casino-table-games__faq-answer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.page-casino-table-games__faq-answer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .page-casino-table-games {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
    }
    .page-casino-table-games__hero-section {
        padding: 60px 15px;
        min-height: 400px;
    }
    .page-casino-table-games__main-title {
        font-size: 2.5em;
    }
    .page-casino-table-games__description {
        font-size: 1.1em;
    }
    .page-casino-table-games__cta-group {
        flex-direction: column;
    }
    .page-casino-table-games__btn {
        width: 100%;
        max-width: 300px;
    }
    .page-casino-table-games__section-title {
        font-size: 1.8em;
    }
    .page-casino-table-games__subsection-title {
        font-size: 1.5em;
    }
    .page-casino-table-games__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-casino-table-games__feature-card img,
    .page-casino-table-games__game-card img {
        max-width: 100%;
        height: auto;
        min-height: 200px;
        width: 100%;
    }
    /* Enforce max-width: 100%; height: auto; for all images in content area */
    .page-casino-table-games img {
        max-width: 100%;
        height: auto;
    }
    .page-casino-table-games__game-card .page-casino-table-games__btn {
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .page-casino-table-games__main-title {
        font-size: 2em;
    }
    .page-casino-table-games__description {
        font-size: 0.95em;
    }
    .page-casino-table-games__section-title {
        font-size: 1.5em;
    }
    .page-casino-table-games__subsection-title {
        font-size: 1.3em;
    }
    .page-casino-table-games__faq-question {
        font-size: 1.1em;
    }
}

/* Ensure content area does not cause horizontal scroll */
.page-casino-table-games {
    overflow-x: hidden;
}