/* style/casino-table-games-introduction.css */
.page-casino-table-games-introduction {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.page-casino-table-games-introduction__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-casino-table-games-introduction__section {
    padding: 60px 0;
    text-align: center;
}

.page-casino-table-games-introduction__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-casino-table-games-introduction__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino-table-games-introduction__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-casino-table-games-introduction__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino-table-games-introduction__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

.page-casino-table-games-introduction__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: inherit;
}

.page-casino-table-games-introduction__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-casino-table-games-introduction__text-block--padded {
    padding: 0 20px;
}

.page-casino-table-games-introduction__image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 20px auto 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Buttons */
.page-casino-table-games-introduction__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-casino-table-games-introduction__btn-primary,
.page-casino-table-games-introduction__btn-secondary {
    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, 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-introduction__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-casino-table-games-introduction__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-casino-table-games-introduction__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Main brand color */
    border: 2px solid #017439;
}

.page-casino-table-games-introduction__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Grid Cards */
.page-casino-table-games-introduction__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino-table-games-introduction__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-casino-table-games-introduction__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino-table-games-introduction__card-title {
    font-size: 1.8em;
    color: #017439; /* Main brand color */
    margin-bottom: 15px;
}

.page-casino-table-games-introduction__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* List styles */
.page-casino-table-games-introduction__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-casino-table-games-introduction__list-item {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #333333;
}

.page-casino-table-games-introduction__list-item strong {
    color: #017439;
}

.page-casino-table-games-introduction__list--white-text .page-casino-table-games-introduction__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

.page-casino-table-games-introduction__list--white-text .page-casino-table-games-introduction__list-item strong {
    color: #FFFF00;
}

/* Video Section */
.page-casino-table-games-introduction__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino-table-games-introduction__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-casino-table-games-introduction__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-casino-table-games-introduction__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-casino-table-games-introduction__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-casino-table-games-introduction__faq-question:hover {
    background-color: #f0f0f0;
}

.page-casino-table-games-introduction__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #C30808;
}

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

.page-casino-table-games-introduction__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    background-color: #ffffff;
}

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

.page-casino-table-games-introduction__faq-answer p {
    margin-bottom: 1em;
    font-size: 1em;
    text-align: left;
}

/* Call to Action Section */
.page-casino-table-games-introduction__call-to-action {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #017439;
    color: #ffffff;
}

.page-casino-table-games-introduction__call-to-action .page-casino-table-games-introduction__section-title {
    color: #FFFF00;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino-table-games-introduction__hero-title {
        font-size: 2.8em;
    }
    .page-casino-table-games-introduction__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino-table-games-introduction {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino-table-games-introduction__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino-table-games-introduction__hero-title {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .page-casino-table-games-introduction__hero-description {
        font-size: 1em;
        padding: 0 10px;
    }
    .page-casino-table-games-introduction__section {
        padding: 40px 0;
    }
    .page-casino-table-games-introduction__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-casino-table-games-introduction__text-block {
        font-size: 1em;
        padding: 0 15px;
        text-align: justify;
    }
    .page-casino-table-games-introduction__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-casino-table-games-introduction__container {
        padding: 0 15px;
    }

    .page-casino-table-games-introduction__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-casino-table-games-introduction__btn-primary,
    .page-casino-table-games-introduction__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-casino-table-games-introduction__grid-cards {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-casino-table-games-introduction__card {
        padding: 20px;
    }
    .page-casino-table-games-introduction__card-image {
        height: 200px;
    }

    .page-casino-table-games-introduction__list {
        padding: 0 15px;
    }
    .page-casino-table-games-introduction__list-item {
        padding: 15px;
        font-size: 0.95em;
    }

    .page-casino-table-games-introduction__video-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

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

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