/* style/ban-ca-doi-thuong.css */

:root {
  --primary-color: #113B7A;
  --secondary-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;
}

.page-ban-ca-doi-thuong {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--deep-navy); /* Assumed body background from shared.css */
  line-height: 1.6;
}

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

.page-ban-ca-doi-thuong__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  text-align: center;
  color: var(--text-main);
  overflow: hidden;
}

.page-ban-ca-doi-thuong__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-ban-ca-doi-thuong__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ban-ca-doi-thuong__hero-content {
  padding: 40px 20px;
  background-color: rgba(17, 59, 122, 0.8);
  margin-top: -5px; /* Slight overlap with image */
  position: relative;
  z-index: 1;
}

.page-ban-ca-doi-thuong__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.7);
}

.page-ban-ca-doi-thuong__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

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

.page-ban-ca-doi-thuong__btn-primary,
.page-ban-ca-doi-thuong__btn-secondary,
.page-ban-ca-doi-thuong__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-ban-ca-doi-thuong__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-ban-ca-doi-thuong__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-color);
}

.page-ban-ca-doi-thuong__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-ban-ca-doi-thuong__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-ban-ca-doi-thuong__btn-text {
  background: none;
  border: none;
  color: var(--glow-color);
  padding: 0;
  text-decoration: underline;
}

.page-ban-ca-doi-thuong__btn-text:hover {
  color: var(--gold-color);
}

.page-ban-ca-doi-thuong__section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca-doi-thuong__introduction-section,
.page-ban-ca-doi-thuong__game-list-section,
.page-ban-ca-doi-thuong__strategy-section,
.page-ban-ca-doi-thuong__features-section,
.page-ban-ca-doi-thuong__faq-section,
.page-ban-ca-doi-thuong__conclusion-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-ban-ca-doi-thuong__dark-section {
  background-color: var(--primary-color);
  color: var(--text-main);
}

.page-ban-ca-doi-thuong__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(79, 168, 255, 0.5);
}

.page-ban-ca-doi-thuong__sub-title {
  font-size: 1.8em;
  color: var(--glow-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-ban-ca-doi-thuong__text-block {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-ban-ca-doi-thuong__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-ban-ca-doi-thuong__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-ban-ca-doi-thuong__list-item::before {
  content: '✔';
  color: var(--gold-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-ban-ca-doi-thuong__guide-steps-section {
  background-color: var(--card-bg);
  color: var(--text-main);
  padding-bottom: 80px;
}

.page-ban-ca-doi-thuong__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-ban-ca-doi-thuong__guide-card {
  flex: 0 0 calc(20% - 16px);
  max-width: calc(20% - 16px);
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-ban-ca-doi-thuong__guide-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca-doi-thuong__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350;
  object-fit: cover;
}

.page-ban-ca-doi-thuong__guide-card--pos-1,
.page-ban-ca-doi-thuong__guide-card--pos-5 {
  padding-top: 50px;
}

.page-ban-ca-doi-thuong__guide-card--pos-2,
.page-ban-ca-doi-thuong__guide-card--pos-4 {
  padding-top: 25px;
}

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

.page-ban-ca-doi-thuong__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca-doi-thuong__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca-doi-thuong__game-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-ban-ca-doi-thuong__game-card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-ban-ca-doi-thuong__game-card-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

.page-ban-ca-doi-thuong__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-ban-ca-doi-thuong__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-ban-ca-doi-thuong__card-description {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-ban-ca-doi-thuong__cta-bottom {
  margin-top: 50px;
}

.page-ban-ca-doi-thuong__features-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-ban-ca-doi-thuong__features-list .page-ban-ca-doi-thuong__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-ban-ca-doi-thuong__features-list .page-ban-ca-doi-thuong__list-item strong {
  color: var(--gold-color);
}

.page-ban-ca-doi-thuong__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-ban-ca-doi-thuong__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca-doi-thuong__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

.page-ban-ca-doi-thuong__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-ban-ca-doi-thuong__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-ban-ca-doi-thuong__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

.page-ban-ca-doi-thuong__faq-item[open] .page-ban-ca-doi-thuong__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca-doi-thuong__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-ban-ca-doi-thuong__faq-answer p {
  margin-bottom: 15px;
}

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

  .page-ban-ca-doi-thuong__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-ban-ca-doi-thuong__section-title {
    font-size: 2em;
  }

  .page-ban-ca-doi-thuong__guide-card {
    flex: 0 0 calc(33.33% - 14px);
    max-width: calc(33.33% - 14px);
  }
  .page-ban-ca-doi-thuong__guide-card--pos-1,
  .page-ban-ca-doi-thuong__guide-card--pos-5 {
    padding-top: 25px;
  }
  .page-ban-ca-doi-thuong__guide-card--pos-2,
  .page-ban-ca-doi-thuong__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-ban-ca-doi-thuong__game-cards-grid,
  .page-ban-ca-doi-thuong__promotion-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ban-ca-doi-thuong {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-ban-ca-doi-thuong__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-ban-ca-doi-thuong__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-ban-ca-doi-thuong__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-ban-ca-doi-thuong__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-ban-ca-doi-thuong__btn-primary,
  .page-ban-ca-doi-thuong__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ban-ca-doi-thuong__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ban-ca-doi-thuong__sub-title {
    font-size: 1.5em;
  }

  /* Guide Steps Section */
  .page-ban-ca-doi-thuong__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

  .page-ban-ca-doi-thuong__guide-card {
    padding-top: 0 !important; /* Reset specific padding-top */
    flex: auto; /* Allow flex to adjust */
    max-width: 100%; /* Ensure it doesn't exceed container */
  }

  .page-ban-ca-doi-thuong__guide-card--pos-1,
  .page-ban-ca-doi-thuong__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-ban-ca-doi-thuong__guide-card--pos-3,
  .page-ban-ca-doi-thuong__guide-card--pos-4,
  .page-ban-ca-doi-thuong__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-ban-ca-doi-thuong__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 250 / 350;
  }

  /* Game Cards Grid */
  .page-ban-ca-doi-thuong__game-cards-grid,
  .page-ban-ca-doi-thuong__promotion-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General Image & Container Responsiveness */
  .page-ban-ca-doi-thuong img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca-doi-thuong__section,
  .page-ban-ca-doi-thuong__card,
  .page-ban-ca-doi-thuong__container,
  .page-ban-ca-doi-thuong__hero-section,
  .page-ban-ca-doi-thuong__cta-buttons,
  .page-ban-ca-doi-thuong__game-cards-grid,
  .page-ban-ca-doi-thuong__promotion-cards-grid,
  .page-ban-ca-doi-thuong__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca-doi-thuong__hero-content {
    padding: 30px 15px;
  }

  .page-ban-ca-doi-thuong__text-block,
  .page-ban-ca-doi-thuong__list,
  .page-ban-ca-doi-thuong__features-list,
  .page-ban-ca-doi-thuong__faq-list {
    text-align: left;
  }

  .page-ban-ca-doi-thuong__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-ban-ca-doi-thuong__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}