.page-game-guides-baccarat-strategy {
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-game-guides-baccarat-strategy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-game-guides-baccarat-strategy__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    color: #ffffff;
}

.page-game-guides-baccarat-strategy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-game-guides-baccarat-strategy__hero-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
}

.page-game-guides-baccarat-strategy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffc107; /* Accent color for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides-baccarat-strategy__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.page-game-guides-baccarat-strategy__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-game-guides-baccarat-strategy__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
}

.page-game-guides-baccarat-strategy__hero-button--primary {
    background-color: #007bff; /* Primary color */
    color: #ffffff;
}

.page-game-guides-baccarat-strategy__hero-button--primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.page-game-guides-baccarat-strategy__hero-button--secondary {
    background-color: #ffc107; /* Accent color */
    color: #333333;
}

.page-game-guides-baccarat-strategy__hero-button--secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-game-guides-baccarat-strategy__introduction,
.page-game-guides-baccarat-strategy__basic-rules,
.page-game-guides-baccarat-strategy__betting-strategies,
.page-game-guides-baccarat-strategy__card-path-analysis,
.page-game-guides-baccarat-strategy__risk-management,
.page-game-guides-baccarat-strategy__cta-section {
    padding: 60px 0;
}

.page-game-guides-baccarat-strategy__introduction {
    background-color: #f9f9f9;
}

.page-game-guides-baccarat-strategy__section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-game-guides-baccarat-strategy__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-guides-baccarat-strategy__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-guides-baccarat-strategy__rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides-baccarat-strategy__rule-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-game-guides-baccarat-strategy__rule-card:hover {
    transform: translateY(-5px);
}

.page-game-guides-baccarat-strategy__card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-game-guides-baccarat-strategy__card-list {
    list-style: disc inside;
    margin-left: 20px;
}

.page-game-guides-baccarat-strategy__card-list li {
    margin-bottom: 8px;
}

.page-game-guides-baccarat-strategy__read-more-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 25px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-game-guides-baccarat-strategy__read-more-button:hover {
    background-color: #0056b3;
}

.page-game-guides-baccarat-strategy__betting-strategies,
.page-game-guides-baccarat-strategy__card-path-analysis {
    background-color: #f0f8ff;
}

.page-game-guides-baccarat-strategy__strategy-card,
.page-game-guides-baccarat-strategy__road-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 25px;
}

.page-game-guides-baccarat-strategy__strategy-card:nth-child(even),
.page-game-guides-baccarat-strategy__road-card:nth-child(even) {
    flex-direction: row-reverse;
}

.page-game-guides-baccarat-strategy__strategy-image,
.page-game-guides-baccarat-strategy__road-image {
    flex: 0 0 40%;
    border-radius: 4px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
    width: 100%;
    height: auto;
}

.page-game-guides-baccarat-strategy__strategy-content,
.page-game-guides-baccarat-strategy__road-content {
    flex: 1;
}

.page-game-guides-baccarat-strategy__strategy-content .page-game-guides-baccarat-strategy__card-title,
.page-game-guides-baccarat-strategy__road-content .page-game-guides-baccarat-strategy__card-title {
    color: #ffc107;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-game-guides-baccarat-strategy__management-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides-baccarat-strategy__list-item {
    background-color: #ffffff;
    border-left: 5px solid #007bff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-guides-baccarat-strategy__list-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-game-guides-baccarat-strategy__cta-section {
    background-color: #007bff; /* Primary color background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-game-guides-baccarat-strategy__cta-section .page-game-guides-baccarat-strategy__section-title {
    color: #ffc107;
}

.page-game-guides-baccarat-strategy__cta-section .page-game-guides-baccarat-strategy__section-title::after {
    background-color: #ffffff;
}

.page-game-guides-baccarat-strategy__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-game-guides-baccarat-strategy__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    border: 2px solid transparent;
}

.page-game-guides-baccarat-strategy__cta-button--primary {
    background-color: #ffc107; /* Accent color */
    color: #333333;
}

.page-game-guides-baccarat-strategy__cta-button--primary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

.page-game-guides-baccarat-strategy__cta-button--secondary {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.page-game-guides-baccarat-strategy__cta-button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-game-guides-baccarat-strategy__cta-button--tertiary {
    background-color: transparent;
    border-color: #ffc107;
    color: #ffc107;
}

.page-game-guides-baccarat-strategy__cta-button--tertiary:hover {
    background-color: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.page-game-guides-baccarat-strategy__cta-image {
    max-width: 80%;
    height: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides-baccarat-strategy__hero-title {
        font-size: 2.8em;
    }
    .page-game-guides-baccarat-strategy__hero-description {
        font-size: 1.2em;
    }
    .page-game-guides-baccarat-strategy__section-title {
        font-size: 2em;
    }
    .page-game-guides-baccarat-strategy__strategy-card,
    .page-game-guides-baccarat-strategy__road-card {
        flex-direction: column;
        text-align: center;
    }
    .page-game-guides-baccarat-strategy__strategy-card:nth-child(even),
    .page-game-guides-baccarat-strategy__road-card:nth-child(even) {
        flex-direction: column;
    }
    .page-game-guides-baccarat-strategy__strategy-image,
    .page-game-guides-baccarat-strategy__road-image {
        flex: none;
        width: 80%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-game-guides-baccarat-strategy__hero-section {
        min-height: 400px;
    }
    .page-game-guides-baccarat-strategy__hero-overlay {
        padding: 30px;
    }
    .page-game-guides-baccarat-strategy__hero-title {
        font-size: 2em;
    }
    .page-game-guides-baccarat-strategy__hero-description {
        font-size: 1em;
    }
    .page-game-guides-baccarat-strategy__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides-baccarat-strategy__hero-button {
        width: 100%;
        padding: 12px 20px;
    }
    .page-game-guides-baccarat-strategy__introduction,
    .page-game-guides-baccarat-strategy__basic-rules,
    .page-game-guides-baccarat-strategy__betting-strategies,
    .page-game-guides-baccarat-strategy__card-path-analysis,
    .page-game-guides-baccarat-strategy__risk-management,
    .page-game-guides-baccarat-strategy__cta-section {
        padding: 40px 0;
    }
    .page-game-guides-baccarat-strategy__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides-baccarat-strategy__rules-grid,
    .page-game-guides-baccarat-strategy__management-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides-baccarat-strategy__strategy-image,
    .page-game-guides-baccarat-strategy__road-image,
    .page-game-guides-baccarat-strategy__cta-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }
    .page-game-guides-baccarat-strategy__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides-baccarat-strategy__cta-button {
        width: 100%;
    }
    /* Ensure content images do not display smaller than 200px */
    .page-game-guides-baccarat-strategy img {
        min-width: 200px;
        min-height: 200px;
        width: auto; /* Allow auto width to scale with max-width */
    }
    .page-game-guides-baccarat-strategy__strategy-image,
    .page-game-guides-baccarat-strategy__road-image,
    .page-game-guides-baccarat-strategy__cta-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-game-guides-baccarat-strategy__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides-baccarat-strategy__hero-description {
        font-size: 0.9em;
    }
    .page-game-guides-baccarat-strategy__hero-overlay {
        padding: 20px;
    }
    .page-game-guides-baccarat-strategy__section-title {
        font-size: 1.5em;
    }
    .page-game-guides-baccarat-strategy__section-text {
        font-size: 0.95em;
    }
    .page-game-guides-baccarat-strategy__card-title {
        font-size: 1.3em;
    }
    .page-game-guides-baccarat-strategy__strategy-content .page-game-guides-baccarat-strategy__card-title,
    .page-game-guides-baccarat-strategy__road-content .page-game-guides-baccarat-strategy__card-title {
        font-size: 1.5em;
    }
}