/* style/doi-tac.css */

.page-doi-tac {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column; /* Default column for mobile-first, desktop will override */
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.page-doi-tac__hero-image {
  order: 1; /* Image first */
  width: 100%;
  text-align: center;
}

.page-doi-tac__hero-main-img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min- /* For 16:9 aspect ratio */
}

.page-doi-tac__hero-content {
  order: 2; /* Content second */
  text-align: center;
  max-width: 800px;
}

.page-doi-tac__hero-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Clamp for responsive H1 */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-doi-tac__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-doi-tac__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color for text */
  border: 2px solid #57E38D; /* Glow color for border */
}

.page-doi-tac__btn-secondary:hover {
  background: #57E38D; /* Glow color */
  color: #08160F; /* Background color for text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.3);
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-doi-tac__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Section */
.page-doi-tac__benefits-section {
  padding: 80px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-doi-tac__dark-section {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 60px 20px;
  margin-bottom: 40px;
}

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

.page-doi-tac__benefit-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-doi-tac__icon-box-media {
  width: 200px; /* Adjusted to meet minimum display size */
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #57E38D; /* Glow */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

.page-doi-tac__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image itself is circular within the container */
}

.page-doi-tac__benefit-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-doi-tac__benefit-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Process Section */
.page-doi-tac__process-section {
  padding: 80px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-doi-tac__process-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-doi-tac__process-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure images are not too small */
  min- /* For 600x400 aspect ratio */
}

.page-doi-tac__process-step-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-doi-tac__process-step-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 60px 15px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-doi-tac__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-doi-tac__faq-item[open] {
  background-color: #11271B; /* Card BG */
  border-color: #57E38D; /* Glow */
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

.page-doi-tac__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* CTA Section */
.page-doi-tac__cta-section {
  padding: 60px 15px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-doi-tac__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
}

.page-doi-tac__footer-copyright {
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
  margin-top: 40px;
}

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

  .page-doi-tac__hero-image {
    order: 1;
  }

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

  .page-doi-tac__hero-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__process-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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


/* @media (max-width: 768px) - MUST include all required sections */
@media (max-width: 768px) {
  .page-doi-tac {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section (Must have small top padding) */
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
    flex-direction: column;
    gap: 30px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__hero-image {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__hero-main-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min- /* Maintain aspect ratio */
  }

  .page-doi-tac__hero-content {
    order: 2;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__hero-title {
    font-size: 2em; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

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

  .page-doi-tac__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons mobile adaptation */
  .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 !important;
    padding-right: 15px !important;
  }

  /* Section Titles and Descriptions */
  .page-doi-tac__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  /* Benefits Section (Module 1 equivalent, 3-column circular images) */
  .page-doi-tac__benefits-section {
    padding: 40px 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__dark-section {
    padding: 40px 15px;
    margin-bottom: 30px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__benefits-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-doi-tac__icon-box-media {
    width: 200px !important; /* Still square and at least 200px */
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    margin-bottom: 15px;
  }

  /* Process Section (General content module, images + text) */
  .page-doi-tac__process-section {
    padding: 40px 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__process-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-doi-tac__process-item {
    padding: 25px;
  }

  .page-doi-tac__process-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min- /* Maintain aspect ratio for 600x400 */
  }

  /* FAQ Section */
  .page-doi-tac__faq-section {
    padding: 40px 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* General Images (for all content area images) */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min- /* Example for 4:3 aspect ratio, adjust as needed */
  }

  /* Exception for circular images, they need height:100% to fill */
  .page-doi-tac__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* CTA Section */
  .page-doi-tac__cta-section {
    padding: 40px 15px 60px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__footer-copyright {
    padding: 20px 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .page-doi-tac__hero-section {
    flex-direction: row;
    text-align: left;
    padding-top: 40px;
  }

  .page-doi-tac__hero-image {
    flex: 1 1 50%;
    order: 2;
  }

  .page-doi-tac__hero-content {
    flex: 1 1 50%;
    order: 1;
    text-align: left;
  }

  .page-doi-tac__hero-cta-buttons {
    justify-content: flex-start;
  }
}