/* Base Styles for page-doi-tac */
.page-doi-tac {
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-doi-tac__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-doi-tac__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8;
}

.page-doi-tac__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-doi-tac__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-doi-tac__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -150px; /* Adjust to pull content up over image */
  background: rgba(20, 12, 12, 0.8); /* Background color with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid #6A1E1E;
}

.page-doi-tac__main-title {
  font-size: 48px;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-doi-tac__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Dark Section */
.page-doi-tac__dark-section {
  background-color: #2A1212; /* Card B G */
  padding: 60px 0;
  border-top: 1px solid #6A1E1E;
  border-bottom: 1px solid #6A1E1E;
}

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

.page-doi-tac__benefits-grid,
.page-doi-tac__types-grid,
.page-doi-tac__steps-grid,
.page-doi-tac__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__benefit-card,
.page-doi-tac__type-card,
.page-doi-tac__step-card,
.page-doi-tac__support-item {
  background-color: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
}

.page-doi-tac__benefit-card:hover,
.page-doi-tac__type-card:hover,
.page-doi-tac__step-card:hover,
.page-doi-tac__support-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-doi-tac__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

.page-doi-tac__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-doi-tac__faq-list {
  margin-top: 40px;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212; /* Card B G */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

details.page-doi-tac__faq-item summary.page-doi-tac__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;
  color: #F3C54D; /* Gold */
  font-weight: bold;
}

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: #3A1A1A;
}

.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}

.page-doi-tac__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04A; /* Gold gradient start */
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
}

details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 25px 25px;
  background: #1F0F0F;
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
}

.page-doi-tac__faq-answer p {
  margin: 0;
  font-size: 16px;
}

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

.page-doi-tac__cta-button--large {
  padding: 18px 40px;
  font-size: 24px;
  border-radius: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-content {
    margin-top: -100px;
  }

  .page-doi-tac__main-title {
    font-size: 40px;
  }

  .page-doi-tac__hero-description {
    font-size: 18px;
  }

  .page-doi-tac__cta-button--large {
    font-size: 20px;
    padding: 15px 30px;
  }

  .page-doi-tac__section-title {
    font-size: 32px;
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__types-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__support-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  
  .page-doi-tac__hero-image-wrapper {
    max-height: 400px;
  }

  .page-doi-tac__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__hero-content {
    margin-top: -80px; /* Adjust to pull content up over image */
    padding: 20px 15px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 */
    margin-bottom: 15px;
  }

  .page-doi-tac__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-doi-tac__cta-button {
    font-size: 18px !important;
    padding: 12px 25px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General content sections and containers */
  .page-doi-tac__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-doi-tac__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-doi-tac__text-block {
    font-size: 15px;
  }

  /* General images */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Product/Service/Benefit/Step grids (2 columns) */
  .page-doi-tac__benefits-grid,
  .page-doi-tac__types-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__support-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 20px;
  }

  /* Ensure no overflow for product/service/benefit cards */
  .page-doi-tac__benefit-card,
  .page-doi-tac__type-card,
  .page-doi-tac__step-card,
  .page-doi-tac__support-item {
    padding: 20px;
  }

  .page-doi-tac__card-title {
    font-size: 20px;
  }

  .page-doi-tac__card-image {
    margin-bottom: 15px;
  }

  .page-doi-tac__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  /* Buttons within content */
  .page-doi-tac__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
  }

  /* Button containers */
  .page-doi-tac__cta-buttons,
  .page-doi-tac__button-group,
  .page-doi-tac__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* FAQ specific */
  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
    padding: 15px;
  }
  .page-doi-tac__faq-qtext {
    font-size: 16px;
  }
  .page-doi-tac__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 28px;
  }
  details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA bottom section */
  .page-doi-tac__cta-bottom-section {
    padding: 40px 0;
  }

  .page-doi-tac__cta-button--large {
    font-size: 18px !important;
    padding: 15px 30px !important;
  }
}

@media (max-width: 480px) {
  .page-doi-tac__benefits-grid,
  .page-doi-tac__types-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__support-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }

  .page-doi-tac__hero-content {
    margin-top: -60px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }
}