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

/* Base styles for the page content, ensuring contrast with default light body background */
.page-casino-table-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default light background */
}

/* Hero Section */
.page-casino-table-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    overflow: hidden;
    gap: 40px;
}

.page-casino-table-games__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

.page-casino-table-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

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

.page-casino-table-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    filter: none; /* No color filter */
}

/* General Container */
.page-casino-table-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Styling */
.page-casino-table-games__introduction-section,
.page-casino-table-games__strategies-section,
.page-casino-table-games__cta-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-casino-table-games__game-guides-section,
.page-casino-table-games__why-choose-us-section,
.page-casino-table-games__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
}

.page-casino-table-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from section */
}

.page-casino-table-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Call to Action Buttons */
.page-casino-table-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-casino-table-games__btn-primary,
.page-casino-table-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino-table-games__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-casino-table-games__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-casino-table-games__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-casino-table-games__btn-secondary:hover {
    background-color: #e0f4ff;
    color: #1e87b7;
    border-color: #1e87b7;
}

/* Image Styling */
.page-casino-table-games__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 8px;
    filter: none; /* No color filter */
}

.page-casino-table-games__image-centered {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    max-width: 800px; /* Constrain width for centered images */
    filter: none; /* No color filter */
}

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

.page-casino-table-games__game-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino-table-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    filter: none; /* No color filter */
}

.page-casino-table-games__card-title {
    font-size: 1.5em;
    margin: 0 20px 15px 20px;
    color: #26A9E0; /* Brand primary for title */
}

.page-casino-table-games__card-title a {
    color: #26A9E0; /* Link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino-table-games__card-title a:hover {
    color: #1e87b7;
}

.page-casino-table-games__card-description {
    font-size: 1em;
    margin: 0 20px 25px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-casino-table-games__game-card .page-casino-table-games__btn-primary {
    margin: 0 20px;
    width: calc(100% - 40px); /* Adjust button width within card */
}

/* Strategy Section */
.page-casino-table-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino-table-games__strategy-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-casino-table-games__strategy-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Why Choose Us Section */
.page-casino-table-games__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-casino-table-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
}

.page-casino-table-games__feature-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

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

/* CTA Section specific */
.page-casino-table-games__cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
    padding: 60px 20px;
}

.page-casino-table-games__cta-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.page-casino-table-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-casino-table-games__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-casino-table-games__cta-image-wrapper {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__cta-image {
    width: 100%;
    height: auto;
    display: block;
    filter: none; /* No color filter */
}

/* FAQ Section */
.page-casino-table-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-casino-table-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-casino-table-games__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino-table-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
}

.page-casino-table-games__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1em; /* Adjust to fit parent font size */
}

.page-casino-table-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-toggle {
    transform: rotate(45deg);
}

.page-casino-table-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-casino-table-games__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-casino-table-games__faq-answer a {
    color: #ffffff;
    text-decoration: underline;
}

.page-casino-table-games__faq-answer a:hover {
    color: #e0f4ff;
}

/* 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__cta-section {
        flex-direction: column;
        text-align: center;
    }
    .page-casino-table-games__cta-image-wrapper {
        margin-top: 40px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-casino-table-games__hero-section {
        flex-direction: column;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        text-align: center;
    }
    .page-casino-table-games__hero-title {
        font-size: 2.2em;
    }
    .page-casino-table-games__hero-description {
        font-size: 1em;
    }
    .page-casino-table-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino-table-games__btn-primary,
    .page-casino-table-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness for mobile */
    .page-casino-table-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* No color filter */
    }
    .page-casino-table-games__hero-image {
        opacity: 0.15 !important; /* Make background image more subtle on mobile */
    }
    .page-casino-table-games__game-card .page-casino-table-games__card-image {
        height: 180px;
    }

    /* Section padding for mobile */
    .page-casino-table-games__introduction-section,
    .page-casino-table-games__game-guides-section,
    .page-casino-table-games__strategies-section,
    .page-casino-table-games__why-choose-us-section,
    .page-casino-table-games__cta-section,
    .page-casino-table-games__faq-section {
        padding: 40px 0;
    }
    .page-casino-table-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-casino-table-games__cta-content,
    .page-casino-table-games__faq-list {
        padding: 0 15px;
    }

    .page-casino-table-games__text-block {
        margin-bottom: 30px;
    }

    .page-casino-table-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino-table-games__faq-answer {
        padding: 0 20px;
    }
    .page-casino-table-games__faq-item.active .page-casino-table-games__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino-table-games__hero-title {
        font-size: 1.8em;
    }
}