/* General styles for the Đối Tác page */
.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Default body background is light */
}

/* Custom colors from requirements */
.page-doi-tac__dark-section {
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6; /* Text Main */
}

.page-doi-tac__card {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-doi-tac__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-doi-tac__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FF8C1A; /* Brand primary color */
}

.page-doi-tac__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-doi-tac__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  background-color: #0D0E12; /* Match body background for consistency */
}

.page-doi-tac__hero-image {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-doi-tac__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-doi-tac__hero-content {
  text-align: center;
  padding: 40px 15px 60px;
  max-width: 900px;
  margin: 0 auto;
  color: #FFF3E6; /* Text Main for dark background */
}

.page-doi-tac__main-title {
  font-size: clamp(32px, 5vw, 50px); /* Use clamp for H1 */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFA53A; /* Auxiliary color for highlight */
}

.page-doi-tac__description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin: 10px;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-doi-tac__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #FFF3E6; /* Text Main */
  border: none;
}

.page-doi-tac__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-doi-tac__cta-button--secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Primary color */
  border: 2px solid #FF8C1A;
}

.page-doi-tac__cta-button--secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

/* Intro Section */
.page-doi-tac__intro-section {
  padding: 60px 0;
}

/* Benefits Section */
.page-doi-tac__benefits-section {
  padding: 80px 0;
}

.page-doi-tac__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-doi-tac__benefit-card {
  text-align: center;
}

.page-doi-tac__benefit-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-doi-tac__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-doi-tac__card-text {
  font-size: 15px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Process Section */
.page-doi-tac__process-section {
  padding: 80px 0;
}

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

.page-doi-tac__step-card {
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-doi-tac__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF8C1A; /* Primary color */
  color: #FFF3E6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  border: 4px solid #0D0E12; /* Background color */
  box-shadow: 0 0 0 5px #FFB04D; /* Glow color */
}

.page-doi-tac__center-button-group {
  text-align: center;
  margin-top: 50px;
}

/* Why Choose Section */
.page-doi-tac__why-choose-section {
  padding: 80px 0;
}

.page-doi-tac__why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-doi-tac__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-doi-tac__content-wrapper p {
  color: #FFF3E6;
}

/* CTA Section */
.page-doi-tac__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-doi-tac__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__cta-container img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-doi-tac__cta-content {
  max-width: 800px;
  color: #FFF3E6;
}

.page-doi-tac__cta-content .page-doi-tac__section-title {
  color: #FFA53A;
  margin-bottom: 20px;
}

.page-doi-tac__cta-content .page-doi-tac__text-block {
  font-size: 17px;
  margin-bottom: 30px;
}

.page-doi-tac__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  overflow: hidden; /* For mobile responsiveness */
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 80px 0;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-doi-tac__faq-item summary.page-doi-tac__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;
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question::-webkit-details-marker {
  display: none;
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question:hover {
  background: #f5f5f5;
}
.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text for light background */
}
.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Dark text for light background */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-image {
    height: 500px;
  }
  .page-doi-tac__why-choose-grid {
    grid-template-columns: 1fr;
  }
  .page-doi-tac__image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-doi-tac__hero-image {
    height: 300px; /* Smaller height for mobile */
  }
  .page-doi-tac__hero-image img {
    object-fit: contain !important; /* Mobile: contain, not cover */
    aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
  }
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-doi-tac__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-doi-tac__description {
    font-size: clamp(16px, 4vw, 18px);
  }

  /* 通用图片与容器 */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__container,
  .page-doi-tac__section,
  .page-doi-tac__card,
  .page-doi-tac__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-doi-tac__text-block {
    max-width: 100% !important; /* Ensure text blocks don't overflow */
    text-align: left;
  }

  /* 按钮与按钮容器 */
  .page-doi-tac__cta-button,
  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary,
  .page-doi-tac a[class*="button"],
  .page-doi-tac a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }
  .page-doi-tac__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 产品展示图区域 (No gameshow for non-homepage, so grid for benefits and process) */
  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-doi-tac__section-title {
    font-size: clamp(24px, 6vw, 32px);
    text-align: center;
    margin-bottom: 30px;
  }
  .page-doi-tac__sub-title {
    font-size: clamp(20px, 5vw, 24px);
    text-align: left;
  }
  .page-doi-tac__article-body, /* General text content area */
  .page-doi-tac__article-figure { /* If any figure is used */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* FAQ */
  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question { padding: 15px; }
  .page-doi-tac__faq-qtext { font-size: 15px; }
  details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
    padding: 0 15px 15px;
  }
}