.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background-color: var(--bg-color, #F5F7FA);
}

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

.page-doi-tac__hero-section {
  padding-top: 10px;
  text-align: center;
  background-color: var(--card-bg, #FFFFFF);
  overflow: hidden;
  position: relative;
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken for text contrast */
}

.page-doi-tac__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image for visual effect */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-doi-tac__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-doi-tac__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.2);
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.3;
}

.page-doi-tac__section-description {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-doi-tac__benefits-section,
.page-doi-tac__models-section,
.page-doi-tac__process-section,
.page-doi-tac__faq-section,
.page-doi-tac__cta-section {
  padding: 80px 0;
}

.page-doi-tac__light-bg {
  background-color: var(--card-bg, #FFFFFF);
}

.page-doi-tac__background {
  background-color: var(--bg-color, #F5F7FA);
}

.page-doi-tac__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-doi-tac__section-title--white,
.page-doi-tac__section-description--white {
  color: #ffffff;
}

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

.page-doi-tac__benefit-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #E0E0E0);
}

.page-doi-tac__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-doi-tac__model-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-doi-tac__model-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #E0E0E0);
}

.page-doi-tac__model-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-doi-tac__card-title {
  font-size: 1.5em;
  color: var(--main-color, #E53935);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-doi-tac__card-text {
  font-size: 1em;
  color: var(--text-main, #333333);
  line-height: 1.7;
}

.page-doi-tac__btn-text-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--main-color, #E53935);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-doi-tac__btn-text-link:hover {
  color: var(--secondary-color, #FF5A4F);
  text-decoration: underline;
}

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

.page-doi-tac__step-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #E0E0E0);
}

.page-doi-tac__step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-doi-tac__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--main-color, #E53935);
  margin-bottom: 15px;
  background-color: rgba(229, 57, 53, 0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

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

.page-doi-tac__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border, #E0E0E0);
}

.page-doi-tac__faq-question {
  font-size: 1.2em;
  color: var(--text-main, #333333);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin: 0; /* Reset default margin for h3 */
}

.page-doi-tac__faq-answer {
  font-size: 1em;
  color: var(--text-main, #333333);
  padding: 0 20px 20px 20px;
  line-height: 1.7;
}

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

.page-doi-tac__faq-item details > summary {
  list-style: none;
}

.page-doi-tac__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-doi-tac__faq-item details[open] .page-doi-tac__faq-question .page-doi-tac__faq-toggle::before {
  content: '-';
}

.page-doi-tac__faq-question .page-doi-tac__faq-toggle::before {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 10px;
  color: var(--main-color, #E53935);
}

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

.page-doi-tac__faq-item details > summary {
  display: block;
}

.page-doi-tac__btn-primary--white-text {
  background: #ffffff;
  color: var(--main-color, #E53935);
}

.page-doi-tac__btn-primary--white-text:hover {
  background: #f0f0f0;
  color: var(--main-color, #E53935);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.page-doi-tac__btn-secondary--white-border {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-doi-tac__btn-secondary--white-border:hover {
  background: #ffffff;
  color: var(--main-color, #E53935);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.page-doi-tac__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

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

.page-doi-tac__image-caption {
  font-size: 0.9em;
  color: var(--text-main, #333333);
  margin-top: 10px;
}

.page-doi-tac__image-caption--white {
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-doi-tac__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }

  .page-doi-tac__section-title {
    font-size: 2em;
  }

  .page-doi-tac__benefits-section,
  .page-doi-tac__models-section,
  .page-doi-tac__process-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__cta-section {
    padding: 60px 0;
  }
}

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

  /* 1. Top section title + CTA */
  .page-doi-tac__hero-section {
    padding-top: 10px !important;
  }
  .page-doi-tac__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }
  .page-doi-tac__main-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-doi-tac__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-doi-tac__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 2. Single column long text container */
  .page-doi-tac__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-doi-tac__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
  }
  .page-doi-tac__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* 3. General images and figure */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-doi-tac__image-wrapper {
    margin: 30px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-doi-tac__content-image {
    border-radius: 6px;
  }
  .page-doi-tac__image-caption {
    font-size: 0.85em;
  }

  /* 4. Buttons and button containers */
  .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: 12px 20px !important;
  }
  .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;
    flex-direction: column;
  }

  /* 5. FAQ Block */
  .page-doi-tac__faq-item {
    margin-bottom: 10px;
  }
  .page-doi-tac__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-doi-tac__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.95em;
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__model-cards,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-doi-tac__benefits-section,
  .page-doi-tac__models-section,
  .page-doi-tac__process-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__cta-section {
    padding: 40px 0;
  }

  .page-doi-tac__step-card {
    padding: 25px;
  }
  .page-doi-tac__step-number {
    font-size: 2em;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
}