/* style/doi-tac.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

.page-doi-tac {
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--card-bg-color); /* Body background is dark, so text is light */
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 60px;
  background-color: var(--deep-navy-color);
  position: relative;
  overflow: hidden;
}

.page-doi-tac__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.page-doi-tac__hero-content {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
  color: var(--text-main-color);
}

.page-doi-tac__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-doi-tac__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

.page-doi-tac__hero-image {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: center;
}

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

.page-doi-tac__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  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: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-doi-tac__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
}

.page-doi-tac__section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

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

.page-doi-tac__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.3;
}

.page-doi-tac__section-description {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary-color);
}

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

.page-doi-tac__benefit-item {
  background-color: var(--deep-navy-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-doi-tac__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-doi-tac__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-doi-tac__benefit-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-doi-tac__types-section {
  background-color: var(--card-bg-color);
}

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

.page-doi-tac__type-item {
  background-color: var(--deep-navy-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-doi-tac__type-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-doi-tac__type-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-doi-tac__process-section {
  background-color: var(--deep-navy-color);
}

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

.page-doi-tac__step-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  position: relative;
  padding-top: 70px; /* Space for number */
}

.page-doi-tac__step-number {
  counter-increment: step-counter;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-doi-tac__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-doi-tac__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-doi-tac__faq-section {
  background-color: var(--card-bg-color);
}

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

.page-doi-tac__faq-item {
  background-color: var(--deep-navy-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  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: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--deep-navy-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-doi-tac__faq-qtext {
  flex-grow: 1;
}

.page-doi-tac__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

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

.page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  transition: max-height 0.5s ease-in;
}

.page-doi-tac__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--text-secondary-color);
}

.page-doi-tac__cta-final-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
}

.page-doi-tac__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-doi-tac__cta-final-section .page-doi-tac__section-title,
.page-doi-tac__cta-final-section .page-doi-tac__section-description {
  color: var(--text-main-color);
}

/* General image responsiveness */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-doi-tac {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-container {
    flex-direction: column-reverse; /* Image above content */
    padding: 20px 15px;
    gap: 30px;
  }

  .page-doi-tac__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-doi-tac__main-title {
    font-size: 2rem;
  }

  .page-doi-tac__intro-text {
    font-size: 1rem;
  }

  .page-doi-tac__hero-image {
    flex: 1 1 100%;
    max-width: 400px;
    order: -1; /* Ensure image is above text in DOM order for mobile as well */
  }

  .page-doi-tac__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .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: 1.8rem;
    margin-bottom: 15px;
  }

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

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

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

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

  .page-doi-tac__benefit-text,
  .page-doi-tac__type-text,
  .page-doi-tac__step-text {
    font-size: 0.9rem;
  }

  .page-doi-tac__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    top: 15px;
  }

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

  .page-doi-tac__faq-toggle {
    font-size: 1.3rem;
  }

  .page-doi-tac__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

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

  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-doi-tac__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}