/* style/game-strategy-guides-baccarat.css */

/* Base styles for the page content */
.page-game-strategy-guides-baccarat {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure text color is appropriate for dark backgrounds */
.page-game-strategy-guides-baccarat__dark-bg {
    background-color: #26A9E0; /* Main brand color for dark sections */
    color: #ffffff; /* White text on dark background */
}

.page-game-strategy-guides-baccarat__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text on light background */
}

.page-game-strategy-guides-baccarat__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Section styling */
.page-game-strategy-guides-baccarat__section {
    padding: 60px 20px;
    text-align: center;
}

.page-game-strategy-guides-baccarat__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding for content */
    box-sizing: border-box;
}

.page-game-strategy-guides-baccarat__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.page-game-strategy-guides-baccarat__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    background-color: #ffffff; /* Default light background */
}

.page-game-strategy-guides-baccarat__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 30px; /* Space between image and content */
}

.page-game-strategy-guides-baccarat__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-strategy-guides-baccarat__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    color: #333333;
}

.page-game-strategy-guides-baccarat__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
}

.page-game-strategy-guides-baccarat__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #555555;
}

/* Titles */
.page-game-strategy-guides-baccarat__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 30px;
}

.page-game-strategy-guides-baccarat__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    color: #333333;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-game-strategy-guides-baccarat__dark-bg .page-game-strategy-guides-baccarat__section-title,
.page-game-strategy-guides-baccarat__dark-bg .page-game-strategy-guides-baccarat__sub-title {
    color: #ffffff;
}

/* Text block */
.page-game-strategy-guides-baccarat__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555555;
    text-align: left;
}

.page-game-strategy-guides-baccarat__dark-bg .page-game-strategy-guides-baccarat__text-block {
    color: #f0f0f0;
}

/* Lists */
.page-game-strategy-guides-baccarat__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.page-game-strategy-guides-baccarat__list-item {
    margin-bottom: 10px;
    color: #555555;
}

.page-game-strategy-guides-baccarat__dark-bg .page-game-strategy-guides-baccarat__list-item {
    color: #f0f0f0;
}

/* Images */
.page-game-strategy-guides-baccarat__image-wrapper {
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-game-strategy-guides-baccarat__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-game-strategy-guides-baccarat__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-strategy-guides-baccarat__btn-primary,
.page-game-strategy-guides-baccarat__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    text-align: center;
}

.page-game-strategy-guides-baccarat__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-game-strategy-guides-baccarat__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-game-strategy-guides-baccarat__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-game-strategy-guides-baccarat__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* FAQ Section */
.page-game-strategy-guides-baccarat__faq {
    padding-bottom: 80px;
}

.page-game-strategy-guides-baccarat__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-strategy-guides-baccarat__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    text-align: left;
}

.page-game-strategy-guides-baccarat__faq-item details {
    list-style: none;
}

.page-game-strategy-guides-baccarat__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-game-strategy-guides-baccarat__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-game-strategy-guides-baccarat__faq-item[open] .page-game-strategy-guides-baccarat__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-game-strategy-guides-baccarat__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-game-strategy-guides-baccarat__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-game-strategy-guides-baccarat__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-game-strategy-guides-baccarat__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #f0f0f0;
    max-height: 0; /* For JS-controlled collapse */
    overflow: hidden; /* For JS-controlled collapse */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-game-strategy-guides-baccarat__faq-item[open] .page-game-strategy-guides-baccarat__faq-answer {
    max-height: 2000px; /* Ample height for content */
    padding-top: 15px;
}

/* Final CTA Section */
.page-game-strategy-guides-baccarat__final-cta {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-game-strategy-guides-baccarat__final-cta .page-game-strategy-guides-baccarat__section-title {
    color: #ffffff;
}

.page-game-strategy-guides-baccarat__final-cta .page-game-strategy-guides-baccarat__text-block {
    color: #f0f0f0;
    max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-game-strategy-guides-baccarat {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-strategy-guides-baccarat__section {
        padding: 40px 10px;
    }

    .page-game-strategy-guides-baccarat__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-game-strategy-guides-baccarat__hero-content,
    .page-game-strategy-guides-baccarat__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-strategy-guides-baccarat__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-game-strategy-guides-baccarat__description {
        font-size: 1rem;
    }

    .page-game-strategy-guides-baccarat__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-game-strategy-guides-baccarat__sub-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }

    .page-game-strategy-guides-baccarat__text-block,
    .page-game-strategy-guides-baccarat__list-item,
    .page-game-strategy-guides-baccarat__faq-qtext,
    .page-game-strategy-guides-baccarat__faq-answer p {
        font-size: 0.95rem;
    }

    /* Images responsive */
    .page-game-strategy-guides-baccarat img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-game-strategy-guides-baccarat__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px; /* Add padding to prevent image touching edges */
    }

    /* Buttons responsive */
    .page-game-strategy-guides-baccarat__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding: 0 15px; /* Add padding to prevent buttons touching edges */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-strategy-guides-baccarat__btn-primary,
    .page-game-strategy-guides-baccarat__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ responsive */
    .page-game-strategy-guides-baccarat__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-game-strategy-guides-baccarat__faq-answer {
        padding: 0 20px 15px 20px;
    }
}