.page-doi-tac {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main color for light body background */
  background-color: #F4F7FB; /* Background color from custom palette */
}

.page-doi-tac__section {
  padding: 60px 0;
  position: relative;
}

.page-doi-tac__section:nth-of-type(odd) {
  background-color: #F4F7FB; /* Background color from custom palette */
}

.page-doi-tac__section:nth-of-type(even) {
  background-color: #FFFFFF; /* Card BG color from custom palette */
}

.page-doi-tac__dark-section {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient for dark sections */
  color: #ffffff;
}

.page-doi-tac__light-bg {
  background-color: #FFFFFF;
  color: #1F2D3D;
}

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

.page-doi-tac__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-doi-tac__dark-section .page-doi-tac__section-title {
  color: #ffffff;
}

.page-doi-tac__text-block {
  font-size: 17px;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main color */
  margin-bottom: 20px;
  text-align: center;
}

.page-doi-tac__dark-section .page-doi-tac__text-block {
  color: #f0f0f0;
}

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background-color: #F4F7FB;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

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

.page-doi-tac__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  z-index: 1;
}

.page-doi-tac__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* H1 font-size clamp */
  font-weight: 800;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 19px;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-doi-tac__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Benefits Grid */
.page-doi-tac__benefits-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__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border color */
  color: #1F2D3D; /* Text Main */
  overflow: hidden;
}

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

.page-doi-tac__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__benefit-card .page-doi-tac__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-doi-tac__benefit-card .page-doi-tac__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

/* Requirements List */
.page-doi-tac__requirements-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-doi-tac__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

.page-doi-tac__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #2F6BFF; /* Main color */
  font-weight: bold;
  font-size: 20px;
}

/* Process Section */
.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.page-doi-tac__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border color */
  color: #1F2D3D; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-doi-tac__step-icon {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__step-card .page-doi-tac__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 10px;
}

.page-doi-tac__step-card .page-doi-tac__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

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

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}
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: #1F2D3D; /* Text Main */
}
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: #F4F7FB; /* Background color */
}
.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-doi-tac__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB; /* Background color */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
  line-height: 1.6;
}
.page-doi-tac__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__section {
    padding: 50px 0;
  }
  .page-doi-tac__section-title {
    font-size: 32px;
    margin-bottom: 35px;
  }
  .page-doi-tac__hero-image-wrapper {
    max-height: 400px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(26px, 4vw, 42px);
  }
  .page-doi-tac__hero-description {
    font-size: 18px;
  }
  .page-doi-tac__btn-primary {
    padding: 14px 28px;
    font-size: 17px;
  }
  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-steps {
    gap: 25px;
  }
  .page-doi-tac__benefit-card .page-doi-tac__card-title,
  .page-doi-tac__step-card .page-doi-tac__card-title {
    font-size: 20px;
  }
  .page-doi-tac__faq-qtext {
    font-size: 17px;
  }
  .page-doi-tac__faq-toggle {
    font-size: 24px;
  }
}

@media (max-width: 849px) {
  .page-doi-tac__hero-image-wrapper {
    max-height: unset; /* Remove max-height for mobile to allow contain */
  }
  .page-doi-tac__hero-image {
    object-fit: contain !important; /* Force contain for mobile hero image */
    aspect-ratio: 16/9; /* Maintain aspect ratio if contain */
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__section {
    padding: 40px 0;
  }
  .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: 28px;
    margin-bottom: 30px;
    padding: 0 10px;
    text-align: center;
  }
  .page-doi-tac__text-block {
    font-size: 16px;
    padding: 0 10px;
    text-align: left; /* Align text left for better readability on mobile */
  }
  
  /* Hero Section Mobile */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-doi-tac__main-title {
    font-size: 28px;
    padding: 0 10px;
  }
  .page-doi-tac__hero-description {
    font-size: 16px;
    padding: 0 10px;
  }
  .page-doi-tac__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset;
  }

  /* Buttons Mobile */
  .page-doi-tac__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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: 12px 20px;
    font-size: 16px;
  }

  /* Cards and Grids Mobile */
  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
    padding: 0 15px;
  }
  .page-doi-tac__benefit-card.page-doi-tac__card,
  .page-doi-tac__step-card.page-doi-tac__card {
    padding: 25px;
  }
  .page-doi-tac__benefit-icon,
  .page-doi-tac__step-icon {
    max-width: 150px;
  }
  .page-doi-tac__benefit-card .page-doi-tac__card-title,
  .page-doi-tac__step-card .page-doi-tac__card-title {
    font-size: 20px;
  }
  .page-doi-tac__benefit-card .page-doi-tac__card-description,
  .page-doi-tac__step-card .page-doi-tac__card-description {
    font-size: 15px;
  }

  /* Requirements List Mobile */
  .page-doi-tac__requirements-list {
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-doi-tac__list-item {
    font-size: 16px;
    padding-left: 25px;
    margin-bottom: 10px;
  }
  .page-doi-tac__list-item::before {
    font-size: 18px;
  }

  /* FAQ Mobile */
  .page-doi-tac__faq-list {
    padding: 0 15px;
  }
  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
    padding: 15px 20px;
  }
  .page-doi-tac__faq-qtext {
    font-size: 16px;
  }
  .page-doi-tac__faq-toggle {
    font-size: 22px;
    margin-left: 15px;
  }
  details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

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