/* style/da-ga-truc-tiep.css */
.page-da-ga-truc-tiep {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* A light background, assuming --background-color is light or unknown */
}

.page-da-ga-truc-tiep__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding to respect shared header */
  padding-bottom: 40px;
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
}

.page-da-ga-truc-tiep__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-da-ga-truc-tiep__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-da-ga-truc-tiep__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
}

.page-da-ga-truc-tiep__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFF5E1; /* Custom text color */
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
}

.page-da-ga-truc-tiep__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF5E1; /* Custom text color */
}

.page-da-ga-truc-tiep__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-da-ga-truc-tiep__btn-primary,
.page-da-ga-truc-tiep__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-da-ga-truc-tiep__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #333333; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-da-ga-truc-tiep__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-da-ga-truc-tiep__btn-secondary {
  background-color: #E53935; /* Auxiliary color */
  color: #ffffff;
  border: 2px solid #E6B800; /* Gold border */
}

.page-da-ga-truc-tiep__btn-secondary:hover {
  background-color: #C91F17;
  transform: translateY(-2px);
}

.page-da-ga-truc-tiep__section {
  padding: 40px 0;
  background-color: #f8f8f8;
}

.page-da-ga-truc-tiep__section:nth-of-type(even) {
  background-color: #f1f1f1;
}

.page-da-ga-truc-tiep__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-da-ga-truc-tiep__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #C91F17; /* Main brand color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-da-ga-truc-tiep__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-da-ga-truc-tiep__text-block .highlight {
  color: #C91F17;
  font-weight: 600;
}

.page-da-ga-truc-tiep__inline-link {
  color: #C91F17;
  text-decoration: underline;
  font-weight: 600;
}

.page-da-ga-truc-tiep__inline-link:hover {
  color: #E53935;
}

.page-da-ga-truc-tiep__figure {
  margin: 30px 0;
  text-align: center;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-da-ga-truc-tiep__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 0 auto;
  object-fit: cover;
}

.page-da-ga-truc-tiep__figcaption {
  font-size: 0.95rem;
  color: #555555;
  margin-top: 10px;
}

/* Types Section */
.page-da-ga-truc-tiep__type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-da-ga-truc-tiep__card {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1; /* Custom Text Main */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-da-ga-truc-tiep__card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFF5E1; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-da-ga-truc-tiep__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-da-ga-truc-tiep__card .page-da-ga-truc-tiep__figure {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin: 20px 0 0;
}

.page-da-ga-truc-tiep__card .page-da-ga-truc-tiep__figcaption {
  color: #FFF5E1;
}

/* Betting Guide Section */
.page-da-ga-truc-tiep__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-da-ga-truc-tiep__step-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-da-ga-truc-tiep__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 15px;
}

.page-da-ga-truc-tiep__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-da-ga-truc-tiep__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-da-ga-truc-tiep__tip-item {
  background-color: #ffffff;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333333;
  border-left: 5px solid #E53935; /* Auxiliary color for accent */
}

.page-da-ga-truc-tiep__tip-item strong {
  color: #C91F17;
}

/* Schedule Section */
.page-da-ga-truc-tiep__schedule-table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-da-ga-truc-tiep__schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is scrollable on small screens */
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.page-da-ga-truc-tiep__schedule-table th,
.page-da-ga-truc-tiep__schedule-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

.page-da-ga-truc-tiep__schedule-table th {
  background-color: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Custom Text Main */
  font-weight: 600;
  font-size: 1.05rem;
}

.page-da-ga-truc-tiep__schedule-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-da-ga-truc-tiep__schedule-table tbody tr:hover {
  background-color: #ffe0b2; /* Light orange on hover */
}

/* FAQ Section */
.page-da-ga-truc-tiep__faq-list {
  margin-top: 30px;
}

.page-da-ga-truc-tiep__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  border: 1px solid #e0e0e0;
}

.page-da-ga-truc-tiep__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #C91F17; /* Main brand color */
  cursor: pointer;
  list-style: none; /* Hide default marker for details/summary */
}

.page-da-ga-truc-tiep__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-da-ga-truc-tiep__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-da-ga-truc-tiep__faq-item[open] .page-da-ga-truc-tiep__faq-toggle {
  transform: rotate(45deg);
}

.page-da-ga-truc-tiep__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

/* Conclusion Section - uses similar styles to hero for CTA */
.page-da-ga-truc-tiep__conclusion-section {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color */
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-da-ga-truc-tiep__conclusion-section .page-da-ga-truc-tiep__section-title,
.page-da-ga-truc-tiep__conclusion-section .page-da-ga-truc-tiep__text-block {
  color: #FFF5E1;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  .page-da-ga-truc-tiep {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. 顶区标题 + 双 CTA */
  .page-da-ga-truc-tiep__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-da-ga-truc-tiep__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-da-ga-truc-tiep__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-da-ga-truc-tiep__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. 按钮与按钮容器 */
  .page-da-ga-truc-tiep__btn-primary,
  .page-da-ga-truc-tiep__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* 2. 单栏长文容器 */
  .page-da-ga-truc-tiep__container,
  .page-da-ga-truc-tiep__section,
  .page-da-ga-truc-tiep__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-da-ga-truc-tiep__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-da-ga-truc-tiep__text-block {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 3. 通用图片与 figure */
  .page-da-ga-truc-tiep img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-da-ga-truc-tiep__figure {
    margin: 20px 0;
    padding: 10px;
  }

  .page-da-ga-truc-tiep__figcaption {
    font-size: 0.85rem;
  }

  .page-da-ga-truc-tiep__type-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga-truc-tiep__card {
    padding: 20px;
  }

  .page-da-ga-truc-tiep__card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .page-da-ga-truc-tiep__card-text {
    font-size: 0.95rem;
  }

  .page-da-ga-truc-tiep__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga-truc-tiep__step-title {
    font-size: 1.25rem;
  }

  .page-da-ga-truc-tiep__step-description {
    font-size: 0.95rem;
  }

  .page-da-ga-truc-tiep__tip-item {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-da-ga-truc-tiep__schedule-table-wrapper {
    margin-bottom: 20px;
  }

  .page-da-ga-truc-tiep__schedule-table th,
  .page-da-ga-truc-tiep__schedule-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-da-ga-truc-tiep__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-da-ga-truc-tiep__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-da-ga-truc-tiep__conclusion-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}