.page-doi-tac {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background-color: #F4F7FB;
}

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

.page-doi-tac__hero-section {
  position: relative;
  padding-top: 10px; /* Aligns with common header offset, not var(--header-offset) */
  padding-bottom: 60px;
  background-color: #F4F7FB;
  text-align: center;
}

.page-doi-tac__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-doi-tac__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-doi-tac__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #2F6BFF;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-doi-tac__hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  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__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-doi-tac__section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-doi-tac__section:nth-of-type(even) {
  background-color: #FFFFFF;
}

.page-doi-tac__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #2F6BFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-doi-tac__section-title--light {
  color: #FFFFFF;
}

.page-doi-tac__section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #1F2D3D;
}

.page-doi-tac__section-intro--light {
  color: #E0E0E0;
}

.page-doi-tac__features-grid,
.page-doi-tac__models-grid,
.page-doi-tac__steps-grid,
.page-doi-tac__support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-doi-tac__feature-card,
.page-doi-tac__model-card,
.page-doi-tac__step-card,
.page-doi-tac__support-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-doi-tac__feature-card:hover,
.page-doi-tac__model-card:hover,
.page-doi-tac__support-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.page-doi-tac__feature-card img,
.page-doi-tac__model-card img,
.page-doi-tac__support-item img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-doi-tac__card-title {
  font-size: 1.5rem;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-doi-tac__card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #1F2D3D;
  flex-grow: 1;
}

.page-doi-tac__step-icon {
  width: 60px;
  height: 60px;
  background: #2F6BFF;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-doi-tac__join-now-button {
  margin-top: 40px;
}

.page-doi-tac__dark-section {
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-doi-tac__cta-button--inverted {
  background: #FFFFFF;
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

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

/* FAQ Styles */
details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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;
  font-weight: 600;
  color: #1F2D3D;
}

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

.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-doi-tac__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  background: #F9F9F9;
  border-radius: 0 0 8px 8px;
  color: #1F2D3D;
  line-height: 1.7;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-image img {
    max-height: 450px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-doi-tac__hero-description {
    font-size: 1.05rem;
  }

  .page-doi-tac__section-title {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  }

  .page-doi-tac__section-intro {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .page-doi-tac__feature-card img,
  .page-doi-tac__model-card img,
  .page-doi-tac__support-item img {
    height: 220px;
  }

  .page-doi-tac__card-title {
    font-size: 1.3rem;
  }

  .page-doi-tac__faq-qtext {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__hero-section {
    padding-bottom: 40px;
    padding-top: 10px; /* Ensure 10px top padding for mobile hero */
  }

  .page-doi-tac__hero-image {
    max-height: unset;
    margin-bottom: 20px;
  }

  .page-doi-tac__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-doi-tac__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
    padding: 0 15px;
  }

  .page-doi-tac__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-doi-tac__section {
    padding: 50px 0;
  }

  .page-doi-tac__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
    padding: 0 15px;
  }

  .page-doi-tac__section-intro {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-doi-tac__features-grid,
  .page-doi-tac__models-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__feature-card,
  .page-doi-tac__model-card,
  .page-doi-tac__step-card,
  .page-doi-tac__support-item {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-doi-tac__feature-card img,
  .page-doi-tac__model-card img,
  .page-doi-tac__support-item img {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .page-doi-tac__card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-doi-tac__card-description {
    font-size: 0.9rem;
  }

  .page-doi-tac__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .page-doi-tac__faq-item {
    margin-bottom: 10px;
    border-radius: 5px;
  }

  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
    padding: 15px 20px;
  }

  .page-doi-tac__faq-qtext {
    font-size: 0.95rem;
  }

  .page-doi-tac__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    width: 25px;
  }

  details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
    padding: 0 20px 15px;
  }

  .page-doi-tac__cta-section {
    padding: 50px 0;
  }

  /* Ensure all content images are responsive */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-doi-tac__section,
  .page-doi-tac__card,
  .page-doi-tac__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }

  .page-doi-tac__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }
}