:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --bg-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-bac-bo {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color); /* Body background from shared.css, but this ensures fallback */
    line-height: 1.6;
}

.page-bac-bo__section {
    padding: 60px 0;
    position: relative;
}

.page-bac-bo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-bac-bo__container--center {
    text-align: center;
}

.page-bac-bo__dark-bg {
    background-color: var(--bg-color);
    color: var(--text-main-color);
}

.page-bac-bo__light-bg {
    background-color: #0A1B13; /* Slightly lighter dark green for contrast */
    color: var(--text-main-color);
}

.page-bac-bo__card-bg {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

.page-bac-bo__section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-bac-bo__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
    text-align: justify;
}

.page-bac-bo__text-block .text-main {
    color: var(--text-main-color);
    font-weight: bold;
}

.page-bac-bo__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-bac-bo__text-block a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-bac-bo__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* HERO Section */
.page-bac-bo__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-bac-bo__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-bac-bo__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-bac-bo__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-bac-bo__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-bac-bo__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
    color: var(--text-main-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-bac-bo__hero-description {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-bac-bo__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-bac-bo__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.page-bac-bo__cta-button--large {
    font-size: 22px;
    padding: 18px 50px;
}

/* How to Play Grid */
.page-bac-bo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-bac-bo__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-bac-bo__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-bac-bo__card-title {
    font-size: 24px;
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-bac-bo__card-text {
    font-size: 16px;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

.page-bac-bo__card-text .text-main {
    color: var(--gold-color);
    font-weight: bold;
}

.page-bac-bo__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-bac-bo__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-bac-bo__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Strategies List */
.page-bac-bo__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-bac-bo__list li {
    background-color: var(--card-bg-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: var(--text-secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-bac-bo__list li:hover {
    transform: translateX(5px);
}

.page-bac-bo__list li .text-main {
    color: var(--text-main-color);
}

/* Why iwc777 Features */
.page-bac-bo__feature-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-bac-bo__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-bac-bo__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.page-bac-bo__feature-title {
    font-size: 22px;
    color: var(--text-main-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-bac-bo__feature-text {
    font-size: 16px;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

.page-bac-bo__feature-text .text-main {
    color: var(--gold-color);
    font-weight: bold;
}

.page-bac-bo__feature-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-bac-bo__feature-text a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Other Games Grid */
.page-bac-bo__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-bac-bo__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-bac-bo__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 12px var(--glow-color);
}

.page-bac-bo__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-bac-bo__game-title {
    font-size: 20px;
    margin: 15px 10px;
    font-weight: bold;
    color: var(--text-main-color);
}

/* FAQ Section */
details.page-bac-bo__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

details.page-bac-bo__faq-item summary.page-bac-bo__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main-color);
}

details.page-bac-bo__faq-item summary.page-bac-bo__faq-question::-webkit-details-marker {
    display: none;
}

details.page-bac-bo__faq-item summary.page-bac-bo__faq-question:hover {
    background: var(--deep-green-color);
}

.page-bac-bo__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-bac-bo__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-bac-bo__faq-item .page-bac-bo__faq-answer {
    padding: 0 25px 20px;
    background: var(--bg-color);
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary-color);
    font-size: 16px;
}

details.page-bac-bo__faq-item .page-bac-bo__faq-answer p {
    margin-bottom: 10px;
}

details.page-bac-bo__faq-item .page-bac-bo__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
}

details.page-bac-bo__faq-item .page-bac-bo__faq-answer a:hover {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-bac-bo__container {
        padding: 0 15px;
    }
    .page-bac-bo__grid, .page-bac-bo__games-grid {
        gap: 20px;
    }
    .page-bac-bo__section-title {
        font-size: clamp(26px, 4vw, 38px);
    }
    .page-bac-bo__main-title {
        font-size: clamp(30px, 5vw, 48px);
    }
    .page-bac-bo__hero-description {
        font-size: clamp(16px, 2.2vw, 20px);
    }
}

@media (max-width: 768px) {
    .page-bac-bo__section {
        padding: 40px 0;
    }
    .page-bac-bo__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-bac-bo__hero-image img {
        border-radius: 4px;
    }
    .page-bac-bo__hero-content {
        padding: 0;
    }
    .page-bac-bo__cta-button, .page-bac-bo__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-bac-bo__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-bac-bo__text-block, .page-bac-bo__card-text, .page-bac-bo__feature-text, .page-bac-bo__list li, details.page-bac-bo__faq-item .page-bac-bo__faq-answer p {
        font-size: 15px;
    }
    .page-bac-bo__grid {
        grid-template-columns: 1fr;
    }
    .page-bac-bo__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .page-bac-bo__game-image {
        height: 150px;
    }
    .page-bac-bo__game-title {
        font-size: 18px;
    }
    details.page-bac-bo__faq-item summary.page-bac-bo__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-bac-bo__faq-qtext {
        font-size: 16px;
    }
    .page-bac-bo__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-bac-bo__faq-item .page-bac-bo__faq-answer {
        padding: 0 20px 15px;
    }
    .page-bac-bo img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-bac-bo__section, .page-bac-bo__card, .page-bac-bo__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-bac-bo__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-bac-bo__feature-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-bac-bo__games-grid {
        grid-template-columns: 1fr;
    }
    .page-bac-bo__game-image {
        height: 200px;
    }
    .page-bac-bo__section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    .page-bac-bo__main-title {
        font-size: clamp(28px, 7vw, 40px);
    }
    .page-bac-bo__hero-description {
        font-size: clamp(15px, 3.5vw, 18px);
    }
}