/* style/doi-tac.css */
.page-doi-tac {
  background-color: #B71C1C;
  color: #FFF5E1;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #7A0E0E;
}

.page-doi-tac__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-doi-tac__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-doi-tac__hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1;
}

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

.page-doi-tac__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  border: none;
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

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

.page-doi-tac__btn-secondary:hover {
  background-color: #F2B544;
  color: #7A0E0E;
}

.page-doi-tac__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-doi-tac__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-doi-tac__section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F4D34D; /* Gold for main titles */
  position: relative;
}

.page-doi-tac__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A 0%, #E6B800 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-doi-tac__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF5E1;
}

.page-doi-tac__intro-section,
.page-doi-tac__types-section,
.page-doi-tac__process-section,
.page-doi-tac__faq-section,
.page-doi-tac__final-cta-section {
  padding: 60px 0;
  background-color: #B71C1C;
}

.page-doi-tac__benefits-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG color */
}

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

.page-doi-tac__benefit-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #7A0E0E; /* Deep Red for item background */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #FFF5E1;
}

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

.page-doi-tac__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2B544;
  box-shadow: 0 0 0 8px rgba(255, 204, 102, 0.3);
}

.page-doi-tac__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-doi-tac__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow color for benefit titles */
}

.page-doi-tac__benefit-description {
  font-size: 1rem;
  color: #FFF5E1;
}

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

.page-doi-tac__type-item {
  background-color: #D32F2F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-doi-tac__type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-doi-tac__type-item h3,
.page-doi-tac__type-item p {
  padding: 0 25px;
}

.page-doi-tac__type-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #F4D34D;
}

.page-doi-tac__type-description {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-doi-tac__type-item .page-doi-tac__btn-primary {
  margin: 0 25px 25px;
}

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

.page-doi-tac__step-item {
  text-align: center;
  padding: 30px;
  background-color: #D32F2F;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  color: #FFF5E1;
}

.page-doi-tac__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 3px solid #F2B544;
  box-shadow: 0 0 0 5px rgba(255, 204, 102, 0.2);
}

.page-doi-tac__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66;
}

.page-doi-tac__step-description {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-doi-tac__process-cta {
  text-align: center;
  margin-top: 60px;
}

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

.page-doi-tac__faq-item {
  background-color: #D32F2F;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #F4D34D; /* Gold for FAQ questions */
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-doi-tac__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #FFCC66;
  margin-left: 15px;
}

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

.page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF5E1;
}

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

.page-doi-tac__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #7A0E0E;
}

.page-doi-tac__final-cta-section .page-doi-tac__section-title {
  color: #F4D34D;
}

.page-doi-tac__final-cta-section .page-doi-tac__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.page-doi-tac__btn-large {
  padding: 15px 35px;
  font-size: 1.2rem;
  border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-doi-tac__hero-content {
    order: 2;
    text-align: center;
  }

  .page-doi-tac__hero-image {
    order: 1;
    margin-bottom: 30px;
  }
}

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

  .page-doi-tac__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

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

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

  .page-doi-tac__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-doi-tac__hero-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__hero-side-image,
  .page-doi-tac__type-image,
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-doi-tac__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .page-doi-tac__content-area {
    padding: 30px 15px;
  }

  .page-doi-tac__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-doi-tac__intro-section,
  .page-doi-tac__benefits-section,
  .page-doi-tac__types-section,
  .page-doi-tac__process-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__final-cta-section {
    padding: 40px 0;
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__type-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-doi-tac__benefit-item,
  .page-doi-tac__type-item,
  .page-doi-tac__step-item,
  .page-doi-tac__faq-item {
    padding: 25px 20px;
  }

  .page-doi-tac__benefit-title,
  .page-doi-tac__step-title {
    font-size: 1.4rem;
  }

  .page-doi-tac__type-title {
    font-size: 1.5rem;
  }

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

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

  .page-doi-tac__btn-large {
    padding: 12px 25px;
    font-size: 1.1rem;
  }
}