.page-doi-tac {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 50px;
  overflow: hidden;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop to maintain aspect ratio */
  object-fit: cover;
  display: block;
}

.page-doi-tac__hero-content {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
  border-radius: 10px;
  margin: -100px auto 0; /* Adjust margin to position content below image */
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative; /* Ensure content is above other elements */
  z-index: 1;
}

.page-doi-tac__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

/* Common Section Styles */
.page-doi-tac__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-doi-tac__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF5A4F;
  border-radius: 2px;
}

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

/* Background Colors */
.page-doi-tac__dark-bg {
  background-color: #333333; /* Dark background for sections */
  color: #ffffff; /* Light text for dark background */
}

.page-doi-tac__dark-bg .page-doi-tac__section-description {
  color: #f0f0f0;
}

.page-doi-tac__dark-bg .page-doi-tac__section-title {
  color: #FF5A4F;
}

.page-doi-tac__light-bg {
  background-color: #F5F7FA; /* Light background for sections */
  color: #333333; /* Dark text for light background */
}

/* Buttons */
.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

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

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 5px 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 5px 15px rgba(229, 57, 53, 0.2);
}

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

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

.page-doi-tac__benefit-card {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-doi-tac__benefit-card:hover {
  transform: translateY(-10px);
}

.page-doi-tac__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Limit max width of icon */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-doi-tac__card-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-doi-tac__card-text {
  font-size: 1em;
  color: #555555;
}

/* How It Works Section */
.page-doi-tac__how-it-works-section {
  padding: 80px 0;
}

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

.page-doi-tac__step-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-top: 5px solid #E53935;
}

.page-doi-tac__step-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-doi-tac__cta-buttons-container {
  text-align: center;
  margin-top: 60px;
}

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

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

.page-doi-tac__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: #E53935; /* Brand color for summary */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

.page-doi-tac__faq-question::-webkit-details-marker, 
.page-doi-tac__faq-question::marker {
  display: none;
}

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-doi-tac__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
}

/* Contact Section */
.page-doi-tac__contact-section {
  padding: 80px 0;
}

.page-doi-tac__contact-form {
  max-width: 700px;
  margin: 50px auto 30px;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__form-group {
  margin-bottom: 25px;
}

.page-doi-tac__form-label {
  display: block;
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-doi-tac__form-input,
.page-doi-tac__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
}

.page-doi-tac__form-textarea {
  resize: vertical;
}

.page-doi-tac__contact-form .page-doi-tac__btn-primary {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
}

.page-doi-tac__disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Global image and button responsive styles */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-doi-tac__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-buttons-container,
.page-doi-tac__button-group,
.page-doi-tac__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-doi-tac__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-doi-tac__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-doi-tac__hero-image {
    height: 250px; /* Adjust height for mobile */
  }

  .page-doi-tac__hero-content {
    margin-top: -50px; /* Adjust margin for mobile */
    padding: 20px;
    max-width: 95%;
  }

  .page-doi-tac__main-title {
    font-size: 1.8em;
  }

  .page-doi-tac__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Common Section Styles */
  .page-doi-tac__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  /* Buttons */
  .page-doi-tac__cta-button,
  .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-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-doi-tac__cta-buttons-container,
  .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-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

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

  .page-doi-tac__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-doi-tac__benefit-card {
    padding: 20px;
  }

  .page-doi-tac__benefit-icon {
    max-width: 300px;
  }

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

  /* How It Works Section */
  .page-doi-tac__how-it-works-section {
    padding: 40px 0;
  }

  .page-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .page-doi-tac__step-icon {
    max-width: 250px;
  }

  .page-doi-tac__cta-buttons-container {
    margin-top: 40px;
  }

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

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

  .page-doi-tac__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  /* Contact Section */
  .page-doi-tac__contact-section {
    padding: 40px 0;
  }

  .page-doi-tac__contact-form {
    padding: 20px;
    margin-top: 30px;
  }

  .page-doi-tac__form-label {
    font-size: 1em;
  }

  .page-doi-tac__form-input,
  .page-doi-tac__form-textarea {
    padding: 12px;
  }

  .page-doi-tac__contact-form .page-doi-tac__btn-primary {
    padding: 15px;
    font-size: 1.1em;
  }

  /* Generic image rules for mobile */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* The guide-box, guide-grid, guide-card for `team` images are not used on this 'doi-tac' page. 
     If they were, they would follow the specific mobile rules for 5 vertical team cards. 
     The home_content-box is also not used on this 'doi-tac' page. 
     The blog-grid is not used on this 'doi-tac' page. */
}