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

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

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-doi-tac__hero-image-wrapper {
  margin-bottom: 40px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-doi-tac__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-doi-tac__main-title {
  font-size: clamp(2em, 4.5vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: #FFD36B; /* Glow color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-doi-tac__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
  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: #FFF6D6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile button adaptation */
  box-sizing: border-box; /* For mobile button adaptation */
  white-space: normal; /* For mobile button adaptation */
  word-wrap: break-word; /* For mobile button adaptation */
}

.page-doi-tac__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-doi-tac__cta-button--center {
  margin: 40px auto 0 auto;
  display: block;
  width: fit-content;
}

/* General Section Styles */
.page-doi-tac__benefits-section,
.page-doi-tac__requirements-section,
.page-doi-tac__registration-section,
.page-doi-tac__faq-section,
.page-doi-tac__contact-section {
  padding: 80px 0;
}

.page-doi-tac__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-doi-tac__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #FFF6D6;
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-doi-tac__section-title--dark {
  color: #F2C14E; /* Main brand color for titles on light-dark backgrounds */
}

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

.page-doi-tac__section-description--dark {
  color: #FFF6D6;
}

/* Card Styles */
.page-doi-tac__card {
  background-color: #111111; /* Card background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #FFF6D6;
}

.page-doi-tac__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-doi-tac__card--light {
  background-color: #222222; /* Slightly lighter card for contrast */
  border-color: #4a3a22;
}

.page-doi-tac__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E; /* Main brand color for card titles */
  text-align: center;
}

.page-doi-tac__card-title--dark {
  color: #FFD36B;
}

.page-doi-tac__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-doi-tac__card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-doi-tac__card li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #FFF6D6;
}

.page-doi-tac__card li::before {
  content: '✔';
  color: #FFD36B;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Benefits Section Specific */
.page-doi-tac__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Requirements Section Specific */
.page-doi-tac__requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-doi-tac__requirement-item ul li::before {
  content: '•';
  color: #F2C14E;
}

/* Registration Section Specific */
.page-doi-tac__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-doi-tac__step-card {
  position: relative;
  padding-top: 50px; /* Space for step number */
}

.page-doi-tac__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #FFD36B;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

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

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Question text color */
  font-weight: 600;
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question::-webkit-details-marker {
  display: none;
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question:hover {
  background: #1a1a1a;
}
.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6; /* Ensure contrast for question text */
}
.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Answer text color */
}
.page-doi-tac__faq-answer p {
  margin: 0;
}

/* Contact Section */
.page-doi-tac__contact-info {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1em;
  color: #FFF6D6;
}

.page-doi-tac__contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-doi-tac__contact-info li {
  margin-bottom: 10px;
}

.page-doi-tac__contact-info a {
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
}

.page-doi-tac__contact-info a:hover {
  text-decoration: underline;
}

/* General image and button styles to ensure responsiveness on mobile */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-section {
    padding-bottom: 40px;
  }
  .page-doi-tac__benefits-section,
  .page-doi-tac__requirements-section,
  .page-doi-tac__registration-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__contact-section {
    padding: 60px 0;
  }
  .page-doi-tac__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-doi-tac__section-title {
    font-size: 2em;
  }
  .page-doi-tac__benefit-grid,
  .page-doi-tac__requirements-grid,
  .page-doi-tac__process-steps {
    gap: 20px;
  }
  .page-doi-tac__card {
    padding: 25px;
  }
  .page-doi-tac__card-title {
    font-size: 1.4em;
  }
  .page-doi-tac__faq-qtext {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Fixed header offset small top padding */
    padding-bottom: 30px;
  }
  .page-doi-tac__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Ensure H1 font size is not too large */
  }
  .page-doi-tac__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-doi-tac__cta-button--center {
    margin-top: 30px;
  }

  .page-doi-tac__benefits-section,
  .page-doi-tac__requirements-section,
  .page-doi-tac__registration-section,
  .page-doi-tac__faq-section,
  .page-doi-tac__contact-section {
    padding: 40px 0;
  }
  .page-doi-tac__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-doi-tac__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-doi-tac__benefit-grid,
  .page-doi-tac__requirements-grid,
  .page-doi-tac__process-steps {
    grid-template-columns: 1fr; /* Single column for all grids */
    gap: 20px;
  }

  .page-doi-tac__card {
    padding: 20px;
  }
  .page-doi-tac__card-title {
    font-size: 1.2em;
  }
  .page-doi-tac__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-doi-tac__card li {
    font-size: 0.95em;
  }
  .page-doi-tac__step-card {
    padding-top: 40px;
  }
  .page-doi-tac__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
    padding: 15px;
  }
  .page-doi-tac__faq-qtext {
    font-size: 0.95em;
  }
  details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
    padding: 0 15px 15px;
  }
  .page-doi-tac__faq-answer p {
    font-size: 0.9em;
  }

  .page-doi-tac__contact-info {
    font-size: 0.95em;
  }
  .page-doi-tac__contact-info ul {
    padding-left: 20px;
  }

  /* General image and button rules for mobile */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac__container,
  .page-doi-tac__benefit-card,
  .page-doi-tac__requirement-item,
  .page-doi-tac__step-card,
  .page-doi-tac__faq-item,
  .page-doi-tac__contact-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-doi-tac__cta-button {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .page-doi-tac__cta-button + .page-doi-tac__cta-button {
    margin-top: 15px;
  }
}