/* style/doi-tac.css */
.page-doi-tac {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Primary color for titles */
  line-height: 1.2;
}

.page-doi-tac__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-doi-tac__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-doi-tac__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color */
  text-decoration: none;
  border: 2px solid #F2C14E;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-doi-tac__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top spacing as body padding handles header offset */
  margin-bottom: 60px;
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-doi-tac__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -100px auto 0 auto; /* Pull content up slightly over the image for visual flow, but not overlapping */
  padding: 40px;
  background: rgba(17, 17, 17, 0.9); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #3A2A12; /* Border */
}

.page-doi-tac__main-title {
  font-size: 3.2em;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
}

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

/* Benefits Section - (Five Guide Cards) */
.page-doi-tac__benefits-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-doi-tac__benefits-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-doi-tac__benefit-card {
  flex: 0 0 calc(20% - 16px);
  max-width: calc(20% - 16px);
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease;
}

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

.page-doi-tac__benefit-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350;
  object-fit: cover;
}

/* Program Details Section (Home Content Box) */
.page-doi-tac__program-details-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-doi-tac__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #F2C14E; /* Primary color border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5); /* Glow effect */
  height: 700px;
  box-sizing: border-box;
  background: #111111; /* Card BG */
}

.page-doi-tac__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar space */
  box-sizing: border-box;
}

.page-doi-tac__home-content-inner h3 {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-doi-tac__home-content-inner p,
.page-doi-tac__home-content-inner ol,
.page-doi-tac__home-content-inner ul {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-doi-tac__home-content-inner ol li,
.page-doi-tac__home-content-inner ul li {
  margin-bottom: 10px;
  padding-left: 10px;
}

.page-doi-tac__home-content-inner strong {
  color: #FFD36B;
}

.page-doi-tac__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* FAQ List */
.page-doi-tac__faq-list {
  margin-top: 30px;
}

.page-doi-tac__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  cursor: pointer;
  list-style: none; /* For details tag */
}

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

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

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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: 0 25px 20px;
  font-size: 1.1em;
  color: #FFF6D6;
  line-height: 1.6;
}

/* Partner News Section (Blog Card Section) */
.page-doi-tac__partner-news-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-doi-tac__news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-doi-tac__news-card {
  background: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease;
}

.page-doi-tac__news-card:hover {
  transform: translateY(-5px);
}

.page-doi-tac__news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-doi-tac__news-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-doi-tac__news-title {
  font-size: 1.3em;
  font-weight: bold;
  padding: 15px;
  color: #F2C14E; /* Primary color */
}

.page-doi-tac__news-date {
  font-size: 0.9em;
  color: #FFD36B; /* Glow color */
  padding: 0 15px 15px;
}

.page-doi-tac__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* CTA Section */
.page-doi-tac__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A0A0A 0%, #3A2A12 100%); /* Mix background and border color */
  border-top: 2px solid #F2C14E;
  border-bottom: 2px solid #F2C14E;
  margin-bottom: 60px;
}

.page-doi-tac__section-title--cta {
  color: #FFD36B; /* Glow color */
  margin-bottom: 25px;
}

.page-doi-tac__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF6D6;
}

.page-doi-tac__cta-button--large {
  padding: 18px 40px;
  font-size: 1.25em;
}

/* General image and button responsiveness */
.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,
.page-doi-tac__button-group,
.page-doi-tac__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__main-title {
    font-size: 2.8em;
  }
  .page-doi-tac__hero-content {
    margin-top: -80px;
    padding: 30px;
  }
  .page-doi-tac__benefits-grid {
    gap: 15px;
  }
  .page-doi-tac__benefit-card {
    flex: 0 0 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
  }
  .page-doi-tac__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-doi-tac__home-content-box {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__hero-section {
    padding-top: 10px !important;
    margin-bottom: 40px;
  }
  .page-doi-tac__hero-content {
    margin-top: -60px;
    padding: 25px;
    border-radius: 10px;
  }
  .page-doi-tac__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-doi-tac__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
  }

  .page-doi-tac__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-doi-tac__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  /* Five Guide Cards - Mobile specific */
  .page-doi-tac__benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Use a 6-column base for flexible spanning */
    gap: 10px;
    padding: 0 10px;
  }
  .page-doi-tac__benefit-card {
    padding-top: 0 !important; /* Reset any desktop padding-top */
    flex: auto; /* Allow grid to manage sizing */
    max-width: 100%;
    border-radius: 8px;
  }
  /* Top two cards span 3 columns each (2 cards per row) */
  .page-doi-tac__benefits-grid .page-doi-tac__benefit-card:nth-child(1),
  .page-doi-tac__benefits-grid .page-doi-tac__benefit-card:nth-child(2) {
    grid-column: span 3;
  }
  /* Bottom three cards span 2 columns each (3 cards per row) */
  .page-doi-tac__benefits-grid .page-doi-tac__benefit-card:nth-child(3),
  .page-doi-tac__benefits-grid .page-doi-tac__benefit-card:nth-child(4),
  .page-doi-tac__benefits-grid .page-doi-tac__benefit-card:nth-child(5) {
    grid-column: span 2;
  }

  /* Home Content Box - Mobile specific */
  .page-doi-tac__home-content-box {
    max-width: 100%;
    height: auto; /* Full content visible */
    padding: 10px;
    border-radius: 10px;
    border-width: 3px;
  }
  .page-doi-tac__home-content-inner {
    height: auto; /* Full content visible */
    overflow: visible; /* No scrollbar */
    padding-right: 0;
  }
  .page-doi-tac__home-content-inner h3 {
    font-size: 1.5em;
  }
  .page-doi-tac__home-content-inner p,
  .page-doi-tac__home-content-inner ol,
  .page-doi-tac__home-content-inner ul {
    font-size: 1em;
  }

  /* Blog Card Section - Mobile specific */
  .page-doi-tac__news-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .page-doi-tac__news-card {
    border-radius: 8px;
  }
  .page-doi-tac__news-title {
    font-size: 1.1em;
    padding: 10px;
  }
  .page-doi-tac__news-date {
    padding: 0 10px 10px;
  }

  /* CTA Section */
  .page-doi-tac__cta-section {
    padding: 50px 0;
  }
  .page-doi-tac__section-title--cta {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .page-doi-tac__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-doi-tac__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
    width: calc(100% - 30px);
    margin: 0 15px;
  }

  /* General image and button mobile adaptation */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
  .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;
  }
  .page-doi-tac__container {
    padding: 0 15px;
  }
}