/* General styles for the Bắn Cá page */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background: #0A0A0A; /* Background */
    line-height: 1.6;
    padding-top: 10px; /* Small top margin, as body handles header offset */
}

.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-ban-ca__section {
    padding: 40px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-ban-ca__section:last-of-type {
    border-bottom: none;
}

.page-ban-ca__section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #F2C14E; /* Main color */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-ban-ca__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Clamp for H1 */
    font-weight: 800;
    color: #FFD36B; /* Glow color for H1 */
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #FFF6D6; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__text-block {
    font-size: 17px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-ban-ca__highlight {
    color: #FFD36B; /* Glow color for highlights */
    font-weight: bold;
}

/* Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-ban-ca__cta-buttons--center {
    margin-top: 40px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Important for responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text for bright button */
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-ban-ca__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color */
    border: 2px solid #F2C14E; /* Main color border */
}

.page-ban-ca__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #111111; /* Dark text */
    transform: translateY(-2px);
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Space below hero content */
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-ban-ca__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

/* Lists */
.page-ban-ca__feature-list,
.page-ban-ca__step-list,
.page-ban-ca__strategy-list,
.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-ban-ca__list-item {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-ban-ca__list-item strong {
    color: #FFD36B; /* Glow color */
}

.page-ban-ca__list-item::before {
    content: '✓'; /* Checkmark for lists */
    color: #F2C14E; /* Main color */
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Game Cards */
.page-ban-ca__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-ban-ca__game-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-ban-ca__card-title {
    font-size: 22px;
    color: #FFD36B; /* Glow color */
    margin: 0 15px 10px;
}

.page-ban-ca__card-description {
    font-size: 15px;
    color: #FFF6D6; /* Text Main */
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-ban-ca__card-btn {
    margin: 0 15px;
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111;
    border-radius: 6px;
}

.page-ban-ca__card-btn:hover {
    opacity: 0.9;
}

/* Images in content */
.page-ban-ca__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* App Download CTA */
.page-ban-ca__app-download-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.page-ban-ca__qr-code-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff; /* QR code background usually white */
    padding: 10px;
    flex-shrink: 0;
}

.page-ban-ca__app-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.page-ban-ca__app-title {
    font-size: 24px;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
}

.page-ban-ca__app-description {
    font-size: 16px;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 20px;
}


/* FAQ Styles - details solution */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border color */
  overflow: hidden;
  background: #111111; /* Card BG */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Main color */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Subtle hover effect */
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow color for question text */
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly lighter dark background */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main */
}
.page-ban-ca__faq-answer p {
    margin-bottom: 10px;
}
.page-ban-ca__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Links */
.page-ban-ca a {
    color: #F2C14E; /* Main color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-ban-ca a:hover {
    color: #FFD36B; /* Glow color on hover */
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 20px;
    }

    .page-ban-ca__section-title {
        font-size: clamp(26px, 3.5vw, 32px);
    }

    .page-ban-ca__main-title {
        font-size: clamp(30px, 4.5vw, 42px);
    }

    .page-ban-ca__subtitle {
        font-size: clamp(15px, 1.8vw, 18px);
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        padding: 12px 25px;
        font-size: 17px;
    }

    .page-ban-ca__app-download-cta {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__app-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-ban-ca {
        padding-top: 10px; /* Small top margin */
    }
    .page-ban-ca__container {
        padding: 15px;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-bottom: 30px;
    }
    .page-ban-ca__hero-image img {
        object-fit: contain !important; /* Mobile: contain to avoid cropping sides */
        aspect-ratio: unset !important; /* Remove aspect ratio if set, let height auto */
        height: auto !important; /* Ensure height adjusts */
    }
    .page-ban-ca__main-title {
        font-size: clamp(28px, 8vw, 36px);
        padding: 0 10px;
    }
    .page-ban-ca__subtitle {
        font-size: clamp(14px, 4vw, 16px);
        padding: 0 10px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca a[class*="button"],
    .page-ban-ca a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__cta-buttons,
    .page-ban-ca__button-group,
    .page-ban-ca__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-ban-ca__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Content Sections */
    .page-ban-ca__section {
        padding: 30px 0;
    }
    .page-ban-ca__section-title {
        font-size: clamp(24px, 7vw, 28px);
        padding: 0 10px;
    }
    .page-ban-ca__text-block {
        font-size: 15px;
        padding: 0 10px;
    }

    /* Lists */
    .page-ban-ca__list-item {
        padding: 12px 15px;
        font-size: 15px;
    }
    .page-ban-ca__list-item::before {
        font-size: 18px;
    }

    /* Game Grid (Product Display Area) */
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for mobile */
        gap: 15px;
        padding: 0 15px;
        overflow-x: hidden !important;
    }
    .page-ban-ca__game-card {
        padding-bottom: 15px;
    }
    .page-ban-ca__card-image {
        height: 160px;
    }
    .page-ban-ca__card-title {
        font-size: 18px;
        margin: 0 10px 8px;
    }
    .page-ban-ca__card-description {
        font-size: 14px;
        margin: 0 10px 15px;
    }
    .page-ban-ca__card-btn {
        padding: 8px 15px;
        font-size: 15px;
        margin: 0 10px;
    }

    /* Images in Content (Generic) */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-ban-ca__image-content {
        margin: 20px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* App Download CTA */
    .page-ban-ca__app-download-cta {
        padding: 20px;
        gap: 20px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__qr-code-image {
        width: 150px;
        height: 150px;
    }
    .page-ban-ca__app-info {
        text-align: center;
    }
    .page-ban-ca__app-title {
        font-size: 20px;
    }
    .page-ban-ca__app-description {
        font-size: 15px;
    }

    /* FAQ Styles */
    details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
        padding: 15px;
    }
    .page-ban-ca__faq-qtext {
        font-size: 16px;
    }
    .page-ban-ca__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
        padding: 0 15px 15px;
    }
    .page-ban-ca__faq-answer p {
        font-size: 15px;
    }

    /* Generic containers for mobile overflow prevention */
    .page-ban-ca__section,
    .page-ban-ca__about-game,
    .page-ban-ca__why-tj77,
    .page-ban-ca__game-types,
    .page-ban-ca__how-to-play,
    .page-ban-ca__tips-strategies,
    .page-ban-ca__promotions,
    .page-ban-ca__mobile-app,
    .page-ban-ca__faq,
    .page-ban-ca__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}