/* General styles for the Bắn Cá page */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the page */
}

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

.page-ban-ca__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-ban-ca__text-block {
    font-size: 17px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per rules */
    overflow: hidden;
    background-color: #000; /* Dark background for hero text readability */
    color: #ffffff;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    position: relative;
}

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

.page-ban-ca__hero-content {
    position: relative; /* Ensure content is above image if positioned */
    z-index: 1;
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-ban-ca__main-title {
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Example clamp */
}

.page-ban-ca__hero-description {
    font-size: 19px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-link,
.page-ban-ca__btn-view-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-ban-ca__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc7;
    transform: translateY(-2px);
}

/* Overview Section */
.page-ban-ca__overview-section {
    padding: 60px 0;
}

.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-ban-ca__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Min image size */
    min-width: 200px;
}

.page-ban-ca__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-ban-ca__feature-description {
    font-size: 16px;
    color: #555555;
}

/* Game List Section */
.page-ban-ca__game-list-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-ban-ca__game-list-section .page-ban-ca__section-title {
    color: #FFFFFF; /* White title for dark background */
}

.page-ban-ca__game-list-section .page-ban-ca__section-title::after {
    background-color: #FFFFFF; /* White underline */
}

.page-ban-ca__game-list-section .page-ban-ca__text-block {
    color: #f0f0f0;
}

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

.page-ban-ca__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for game card images */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Min image size */
    min-width: 200px;
}

.page-ban-ca__game-card h3 {
    margin: 20px 20px 10px;
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
}
.page-ban-ca__game-card h3 a {
    color: inherit;
    text-decoration: none;
}
.page-ban-ca__game-card h3 a:hover {
    text-decoration: underline;
}

.page-ban-ca__game-description {
    font-size: 15px;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-ban-ca__btn-play {
    background-color: #EA7C07; /* Login color for play button */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    margin: 0 20px 20px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
}

.page-ban-ca__btn-play:hover {
    background-color: #d66f06;
    border-color: #d66f06;
}

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

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
}

.page-ban-ca__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Min image size */
    min-width: 200px;
}

.page-ban-ca__step-title {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-ban-ca__step-description {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

.page-ban-ca__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

.page-ban-ca__btn-link:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
    color: #FFFFFF;
}

.page-ban-ca__tips-section .page-ban-ca__section-title::after {
    background-color: #FFFFFF;
}

.page-ban-ca__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__tip-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-ban-ca__tip-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__tip-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-ban-ca__tip-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Promotion Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
}

.page-ban-ca__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for promo card images */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Min image size */
    min-width: 200px;
}

.page-ban-ca__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin: 20px 20px 10px;
}

.page-ban-ca__promo-description {
    font-size: 15px;
    color: #555555;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-view-promo {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 0 20px 20px;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
}

.page-ban-ca__btn-view-promo:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-ban-ca__why-choose-section .page-ban-ca__section-title {
    color: #FFFFFF;
}

.page-ban-ca__why-choose-section .page-ban-ca__section-title::after {
    background-color: #FFFFFF;
}

.page-ban-ca__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__reason-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-ban-ca__reason-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__reason-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-ban-ca__reason-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 60px 0;
}

.page-ban-ca__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #333333; /* Dark text for light background */
}
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: #f5f5f5;
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }
    .page-ban-ca__hero-description {
        font-size: 18px;
    }
    .page-ban-ca__section-title {
        font-size: 32px;
    }
    .page-ban-ca__container {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-ban-ca__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-ban-ca__hero-image {
        height: 300px; /* Adjust height for mobile */
    }
    .page-ban-ca__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible, no cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__hero-content {
        padding: 40px 15px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller clamp for mobile H1 */
        margin-bottom: 15px;
    }
    .page-ban-ca__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play,
    .page-ban-ca__btn-link,
    .page-ban-ca__btn-view-promo {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Sections */
    .page-ban-ca__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll for the container */
    }
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .page-ban-ca__text-block {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    /* Image Specifics for Mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block; /* Ensure no extra space below image */
        min- /* Adjust min height for mobile if needed */
        object-fit: cover; /* Default to cover for content images */
    }
    .page-ban-ca__feature-item img,
    .page-ban-ca__game-card img,
    .page-ban-ca__step-item img,
    .page-ban-ca__promo-card img {
         /* Adjust card image height for mobile */
    }
}