/* style/doi-tac.css */
.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Main text color for dark body background */
  background-color: #140C0C; /* Background color */
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

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

.page-doi-tac__hero-content {
  padding: 20px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-doi-tac__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  color: #F3C54D; /* Gold for main title */
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF1E8;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  margin: 10px;
}

.page-doi-tac__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
  background: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
  margin: 10px;
}

.page-doi-tac__btn-secondary:hover {
  background: #6A1E1E;
  color: #FFF1E8;
}

.page-doi-tac__section {
  padding: 60px 0;
  overflow: hidden;
}

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

.page-doi-tac__section-title {
  font-size: 2.5em;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-doi-tac__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF1E8;
  text-align: justify;
}

/* Introduction Section */
.page-doi-tac__introduction .page-doi-tac__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-doi-tac__benefits.page-doi-tac__card-bg {
  background-color: #2A1212;
}

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

.page-doi-tac__benefit-item {
  background-color: #140C0C;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-doi-tac__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-doi-tac__benefit-item img {
  width: 100%;
  max-width: 400px; /* Constrain image size within card */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-doi-tac__benefit-title {
  font-size: 1.6em;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-doi-tac__benefit-description {
  font-size: 1em;
  color: #FFF1E8;
}

/* How It Works Section */
.page-doi-tac__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-doi-tac__step-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #F3C54D;
  background-color: #7E0D0D;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 2px solid #F3C54D;
}

.page-doi-tac__step-title {
  font-size: 1.5em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-doi-tac__step-description {
  font-size: 1em;
  color: #FFF1E8;
}

.page-doi-tac__image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-doi-tac__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Products Section */
.page-doi-tac__products.page-doi-tac__card-bg {
  background-color: #2A1212;
}

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

.page-doi-tac__product-item {
  background-color: #140C0C;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__product-name {
  font-size: 1.4em;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-doi-tac__product-description {
  font-size: 0.95em;
  color: #FFF1E8;
}

/* FAQ Section */
.page-doi-tac__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-doi-tac__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF1E8;
  cursor: pointer;
  background-color: #7E0D0D;
  border-bottom: 1px solid #6A1E1E;
  list-style: none;
}

.page-doi-tac__faq-question::-webkit-details-marker {
  display: none;
}

.page-doi-tac__faq-qtext {
  flex-grow: 1;
}

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-doi-tac__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #FFF1E8;
  background-color: #2A1212;
}

.page-doi-tac__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-doi-tac__cta.page-doi-tac__dark-bg {
  background-color: #140C0C;
  text-align: center;
}

.page-doi-tac__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-doi-tac__section-title {
    font-size: 2em;
  }
}

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

  /* HERO 主图区域 */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-doi-tac__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-doi-tac__hero-content {
    padding: 15px;
  }

  /* service 四宫格 - Benefits Grid */
  .page-doi-tac__benefits-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* Single column on mobile */
    gap: 20px;
  }
  .page-doi-tac__benefit-item {
    padding: 20px;
  }
  .page-doi-tac__benefit-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* How It Works Steps */
  .page-doi-tac__steps-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
  }
  .page-doi-tac__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Products List */
  .page-doi-tac__product-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
  }

  /* FAQ */
  .page-doi-tac__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-doi-tac__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* 通用图片与容器 */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .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;
  }
  .page-doi-tac__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-doi-tac__section-title {
    font-size: 1.8em;
  }
  .page-doi-tac__hero-description,
  .page-doi-tac__text-block {
    font-size: 1em;
  }
  .page-doi-tac__benefit-title {
    font-size: 1.4em;
  }
  .page-doi-tac__step-title {
    font-size: 1.3em;
  }
  .page-doi-tac__product-name {
    font-size: 1.2em;
  }
  .page-doi-tac__faq-question {
    font-size: 1em;
  }
}