:root {
    --main-color: #113B7A;
    --main-color-rgb: 17, 59, 122; /* For rgba usage */
    --accent-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

/* General styles for the page-live-baccarat-guide scope */
.page-live-baccarat-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* #F3F8FF from custom palette */
    background-color: var(--deep-navy); /* #08162B from custom palette */
}

.page-live-baccarat-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-live-baccarat-guide__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E from custom palette */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-live-baccarat-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--glow-color); /* #4FA8FF from custom palette */
    border-radius: 2px;
}

.page-live-baccarat-guide__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main); /* #F3F8FF */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-live-baccarat-guide__mini-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary); /* #AFC4E8 */
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-live-baccarat-guide p {
    margin-bottom: 15px;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-live-baccarat-guide__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-live-baccarat-guide__list li {
    margin-bottom: 8px;
    color: var(--text-secondary); /* #AFC4E8 */
}

/* Hero Section */
.page-live-baccarat-guide__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-live-baccarat-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-live-baccarat-guide__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-live-baccarat-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 15px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-live-baccarat-guide__main-title {
    font-size: 48px;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-live-baccarat-guide__description {
    font-size: 20px;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-live-baccarat-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-live-baccarat-guide__btn-primary,
.page-live-baccarat-guide__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-live-baccarat-guide__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-live-baccarat-guide__btn-primary:hover {
    background: linear-gradient(180deg, var(--main-color) 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-live-baccarat-guide__btn-secondary {
    background: var(--card-bg);
    color: var(--gold-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-live-baccarat-guide__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-live-baccarat-guide__cta-buttons--bottom {
    margin-top: 50px;
}

/* Image wrappers for content images */
.page-live-baccarat-guide__image-wrapper {
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-live-baccarat-guide__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Card styles */
.page-live-baccarat-guide__card {
    background: var(--card-bg); /* #10233F */
    border: 1px solid var(--border-color); /* #244D84 */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary); /* #AFC4E8 */
}

.page-live-baccarat-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-live-baccarat-guide__card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main); /* #F3F8FF */
    margin-bottom: 15px;
}

/* Grid for betting options */
.page-live-baccarat-guide__betting-options-grid,
.page-live-baccarat-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* FAQ Section */
details.page-live-baccarat-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color); /* #244D84 */
  overflow: hidden;
  background: var(--card-bg); /* #10233F */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-live-baccarat-guide__faq-item summary.page-live-baccarat-guide__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;
  color: var(--text-main); /* #F3F8FF */
}
details.page-live-baccarat-guide__faq-item summary.page-live-baccarat-guide__faq-question::-webkit-details-marker {
  display: none;
}
details.page-live-baccarat-guide__faq-item summary.page-live-baccarat-guide__faq-question:hover {
  background: rgba(var(--main-color-rgb), 0.1); /* Slightly lighter hover */
}
.page-live-baccarat-guide__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* #F3F8FF */
}
.page-live-baccarat-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color); /* #F2C14E */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-live-baccarat-guide__faq-item .page-live-baccarat-guide__faq-answer {
  padding: 0 25px 20px;
  background: var(--deep-navy); /* #08162B */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary); /* #AFC4E8 */
}
details.page-live-baccarat-guide__faq-item[open] summary.page-live-baccarat-guide__faq-question {
    background: rgba(var(--main-color-rgb), 0.05);
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-live-baccarat-guide__main-title {
        font-size: 40px;
    }
    .page-live-baccarat-guide__description {
        font-size: 18px;
    }
    .page-live-baccarat-guide__section-title {
        font-size: 28px;
    }
    .page-live-baccarat-guide__sub-title {
        font-size: 22px;
    }
    .page-live-baccarat-guide__hero-content {
        padding: 80px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-live-baccarat-guide__hero-section {
        padding-top: 10px; /* Small top padding */
        margin-bottom: 30px;
    }
    .page-live-baccarat-guide__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important;
        position: relative !important;
    }
    .page-live-baccarat-guide__hero-content {
        padding: 40px 15px;
        background: rgba(0, 0, 0, 0.7); /* Stronger overlay */
        border-radius: 0;
        box-shadow: none;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-live-baccarat-guide__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 */
        margin-bottom: 15px;
    }
    .page-live-baccarat-guide__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-live-baccarat-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-live-baccarat-guide__btn-primary,
    .page-live-baccarat-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 16px;
        padding: 12px 20px;
    }

    /* 通用图片与容器 */
    .page-live-baccarat-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-live-baccarat-guide__image-wrapper {
        margin: 20px auto;
        padding: 0 15px; /* Ensure image wrapper has padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 0;
        box-shadow: none;
    }

    /* 产品展示图区域 (Betting options / Features grid) */
    .page-live-baccarat-guide__betting-options-grid,
    .page-live-baccarat-guide__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 15px; /* Add padding to grid container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-live-baccarat-guide__card {
        padding: 20px;
        border-radius: 5px;
    }
    .page-live-baccarat-guide__card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-live-baccarat-guide__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-live-baccarat-guide__section-title {
        font-size: 24px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .page-live-baccarat-guide__section-title::after {
        width: 60px;
    }
    .page-live-baccarat-guide__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-live-baccarat-guide__mini-title {
        font-size: 18px;
        margin-top: 15px;
    }
    .page-live-baccarat-guide p,
    .page-live-baccarat-guide__list li {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-live-baccarat-guide__faq-item {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    details.page-live-baccarat-guide__faq-item summary.page-live-baccarat-guide__faq-question {
        padding: 15px 20px;
    }
    .page-live-baccarat-guide__faq-qtext {
        font-size: 16px;
    }
    .page-live-baccarat-guide__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-live-baccarat-guide__faq-item .page-live-baccarat-guide__faq-answer {
        padding: 0 20px 15px;
    }
}