/* style/doi-tac.css */
.page-doi-tac {
  font-family: Arial, sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* From shared.css, which is #08162B */
  line-height: 1.6;
  font-size: 15px;
}

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

.page-doi-tac__container--narrow {
  max-width: 800px;
}

/* Sections */
.page-doi-tac__section {
  padding: 60px 0;
  text-align: center;
}

.page-doi-tac__section-title {
  font-size: 36px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-doi-tac__section-intro {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Top Section (Hero-like, but not a hero image) */
.page-doi-tac__top-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 60px;
  text-align: center;
}

.page-doi-tac__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 */
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__description {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* CTA Group */
.page-doi-tac__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 30px;
}

/* Buttons */
.page-doi-tac__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-doi-tac__btn--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__btn--secondary {
  background: transparent;
  color: #1D5FD1; /* Auxiliary color */
  border: 2px solid #1D5FD1; /* Auxiliary color */
}

.page-doi-tac__btn--secondary:hover {
  background: rgba(29, 95, 209, 0.1); /* Slightly lighter auxiliary color */
  color: #F3F8FF;
}

/* Feature Grid */
.page-doi-tac__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__feature-card {
  text-align: left;
}

/* Cards */
.page-doi-tac__card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.page-doi-tac__card-title {
  font-size: 22px;
  color: #F3F8FF; /* Text Main */
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-doi-tac__card-text {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  flex-grow: 1; /* Make text fill available space */
}

.page-doi-tac__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure it behaves as a block element */
}

/* Process Steps */
.page-doi-tac__section--process {
  background-color: #113B7A; /* Main color */
}

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

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

.page-doi-tac__step-number {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-doi-tac__faq-list {
  text-align: left;
  margin-top: 40px;
}

.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border: 1px solid #244D84; /* Border color */
  padding: 0; /* Remove default padding for details */
  border-radius: 12px;
}

.page-doi-tac__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F3F8FF; /* Text Main */
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  list-style: none; /* Remove default marker */
}

.page-doi-tac__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-doi-tac__faq-item summary:hover {
  background-color: rgba(17, 59, 122, 0.8); /* Slightly lighter main color */
}

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

.page-doi-tac__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: #1D5FD1; /* Auxiliary color */
  transition: transform 0.3s ease;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become an X or similar */
}

.page-doi-tac__faq-answer {
  padding: 20px 25px;
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  background-color: #08162B; /* Deep Navy */
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top: 1px solid #244D84; /* Border color */
}

.page-doi-tac__faq-answer p {
  margin: 0;
  color: #AFC4E8; /* Text Secondary */
}

/* Contact Us Section - using main color for distinction */
.page-doi-tac__section--contact-us {
  background-color: #113B7A; /* Main color */
}

/* Image styling - general */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure block-level for max-width/height auto */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__container {
    padding: 0 15px;
  }
  .page-doi-tac__section-title {
    font-size: 32px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(26px, 3.5vw, 42px);
  }
  .page-doi-tac__description,
  .page-doi-tac__section-intro {
    font-size: 17px;
  }
  .page-doi-tac__feature-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-doi-tac__top-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-doi-tac__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-doi-tac__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-doi-tac__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* 2. 单栏长文容器 */
  .page-doi-tac__section {
    padding: 40px 0;
  }
  .page-doi-tac__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-doi-tac__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-doi-tac__container,
  .page-doi-tac__container--narrow {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. 通用图片与 figure */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__feature-image {
    height: 160px;
  }

  /* 4. 按钮与按钮容器 */
  .page-doi-tac__cta-bottom {
    display: flex;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-doi-tac__cta-bottom .page-doi-tac__btn {
    width: 100% !important;
  }

  /* 5. FAQ 区块 */
  .page-doi-tac__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-doi-tac__faq-answer {
    font-size: 14px;
    padding: 15px 20px;
  }
  .page-doi-tac__faq-toggle {
    font-size: 20px;
  }

  /* Card specific adjustments */
  .page-doi-tac__card {
    padding: 20px;
  }
  .page-doi-tac__card-title {
    font-size: 19px;
  }
  .page-doi-tac__card-text {
    font-size: 14px;
  }
  .page-doi-tac__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }
}