/* style/ban-ca.css */

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

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--main-bg);
    line-height: 1.6;
}

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

.page-ban-ca__section {
    padding: 60px 0;
}

.page-ban-ca__dark-bg {
    background-color: var(--main-bg);
    color: var(--text-main);
}

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

.page-ban-ca__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-color);
    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: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-ban-ca__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

.page-ban-ca__text-secondary {
    color: var(--text-secondary);
}

/* HERO Section */
.page-ban-ca__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Fixed top padding, not var(--header-offset) */
    overflow: hidden;
    padding-bottom: 60px;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px 15px;
    margin-top: -150px; /* Overlap slightly for design, but text is below image */
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.page-ban-ca__main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-ban-ca__hero-description {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-ban-ca__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-ban-ca__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-ban-ca__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

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

/* Game Types Section */
.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: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ban-ca__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-ban-ca__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-ban-ca__card-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.page-ban-ca__btn-card {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-ban-ca__btn-card:hover {
    opacity: 0.9;
}

/* Guide Section */
.page-ban-ca__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-ban-ca__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__guide-item h3 {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-ban-ca__guide-item p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-ban-ca__guide-item a {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-ban-ca__guide-item a:hover {
    color: var(--glow-color);
}

/* Tips Section */
.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ban-ca__tips-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__tip-heading {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-ban-ca__tips-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Promotions Section */
.page-ban-ca__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-ban-ca__promotion-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__promotion-item h3 {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-ban-ca__promotion-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-ban-ca__promotion-item a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Why Choose Section */
.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__feature-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5));
}

.page-ban-ca__feature-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-ban-ca__feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-ban-ca__feature-description a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-ban-ca__faq-item summary.page-ban-ca__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;
}
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: var(--deep-green);
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green);
  border-radius: 0 0 10px 10px;
}
.page-ban-ca__faq-answer p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-ban-ca__faq-answer a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section .page-ban-ca__text-block {
    text-align: center;
}

.page-ban-ca__conclusion-section a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* General Image Styling (for content area) */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-content {
        margin-top: -100px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(28px, 4.5vw, 42px);
    }
    .page-ban-ca__hero-description {
        font-size: 17px;
    }
    .page-ban-ca__section-title {
        font-size: 32px;
    }
    .page-ban-ca__game-grid,
    .page-ban-ca__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .page-ban-ca__tips-list,
    .page-ban-ca__promotion-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-ban-ca__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-ban-ca__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-image-wrapper {
        max-height: 400px;
    }
    .page-ban-ca__hero-image {
        object-fit: contain !important; /* HERO main image mobile contain */
        aspect-ratio: unset !important;
    }
    .page-ban-ca__hero-content {
        margin-top: -80px;
        padding: 15px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(26px, 7vw, 38px);
    }
    .page-ban-ca__hero-description {
        font-size: 16px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    .page-ban-ca__section {
        padding: 40px 0;
    }
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-ban-ca__text-block {
        font-size: 16px;
    }
    /* Product/Game Grid (mobile 2x3) */
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns */
        gap: 20px;
        overflow-x: hidden;
    }
    .page-ban-ca__game-card {
        padding: 15px;
    }
    .page-ban-ca__card-image {
        height: 150px;
    }
    .page-ban-ca__card-title {
        font-size: 20px;
    }
    .page-ban-ca__guide-item {
        padding: 20px;
    }
    .page-ban-ca__guide-item h3 {
        font-size: 22px;
    }
    .page-ban-ca__tips-list,
    .page-ban-ca__promotion-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .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: 24px; }
    .page-ban-ca__faq-answer { padding: 0 15px 15px; }

    /* General image and container responsiveness */
    .page-ban-ca img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-ban-ca__container,
    .page-ban-ca__section,
    .page-ban-ca__game-grid,
    .page-ban-ca__features-grid,
    .page-ban-ca__tips-list,
    .page-ban-ca__promotion-list,
    .page-ban-ca__faq-list,
    .page-ban-ca__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden;
    }
    .page-ban-ca__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}