.page-doi-tac {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF; /* Default light background */
  line-height: 1.6;
}

.page-doi-tac__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

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

.page-doi-tac__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-doi-tac__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-doi-tac__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-doi-tac__hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-doi-tac__main-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.page-doi-tac__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-doi-tac__btn-primary {
  background-color: #C30808; /* Registered color for 'Đăng ký' */
  color: #FFFF00; /* Registered color for 'Đăng ký' font */
  border: 2px solid #C30808;
}

.page-doi-tac__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-doi-tac__btn-secondary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-doi-tac__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-doi-tac__btn-tertiary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-doi-tac__btn-tertiary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-doi-tac__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #017439;
}

.page-doi-tac__dark-bg .page-doi-tac__section-title {
  color: #ffffff;
}

.page-doi-tac__section-intro {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Feature Grid */
.page-doi-tac__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__feature-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-doi-tac__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-doi-tac__dark-bg .page-doi-tac__card-title {
  color: #ffffff;
}

/* Partnership Types */
.page-doi-tac__type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__type-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.page-doi-tac__type-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* How to Partner */
.page-doi-tac__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__step-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-doi-tac__step-number {
  font-size: 3em;
  font-weight: 800;
  color: rgba(1, 116, 57, 0.1);
  position: absolute;
  top: 10px;
  left: 10px;
  line-height: 1;
  z-index: 0;
}

.page-doi-tac__step-card .page-doi-tac__card-title,
.page-doi-tac__step-card p {
  position: relative;
  z-index: 1;
}

/* Commitment List */
.page-doi-tac__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-doi-tac__commitment-list li {
  background-color: #f9f9f9;
  padding: 18px 25px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  font-size: 1.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__dark-bg .page-doi-tac__commitment-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #C30808;
  color: #f0f0f0;
}

.page-doi-tac__commitment-list li strong {
  color: #017439;
}

.page-doi-tac__dark-bg .page-doi-tac__commitment-list li strong {
  color: #FFFF00;
}

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

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

.page-doi-tac__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__faq-question {
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-doi-tac__faq-question:hover {
  background-color: #e5e5e5;
}

.page-doi-tac__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-doi-tac__faq-answer p {
  padding-bottom: 20px;
  color: #555555;
}

.page-doi-tac__faq-item.active .page-doi-tac__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 15px;
}

.page-doi-tac__faq-item.active .page-doi-tac__faq-question::after {
  content: '−';
}

.page-doi-tac__faq-question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
}

/* Contact Form */
.page-doi-tac__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__form-group {
  margin-bottom: 20px;
}

.page-doi-tac__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-doi-tac__form-input,
.page-doi-tac__form-textarea,
.page-doi-tac__form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
}

.page-doi-tac__form-textarea {
  resize: vertical;
}

.page-doi-tac__form-input::placeholder,
.page-doi-tac__form-textarea::placeholder {
  color: #999999;
}

.page-doi-tac__contact-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-doi-tac__contact-info strong {
  color: #FFFF00;
}

/* Images */
.page-doi-tac__figure {
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
}

.page-doi-tac__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__figcaption {
  margin-top: 15px;
  font-size: 0.9em;
  color: #777777;
}

.page-doi-tac__dark-bg .page-doi-tac__figcaption {
  color: #cccccc;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__main-title {
    font-size: 2.5em;
  }

  .page-doi-tac__section-title {
    font-size: 2em;
  }

  .page-doi-tac__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* Top Section */
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-doi-tac__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

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

  .page-doi-tac__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;
  }

  /* General Section Content */
  .page-doi-tac__section {
    padding: 30px 15px;
  }

  .page-doi-tac__container {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  /* Feature Grid */
  .page-doi-tac__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__feature-card {
    padding: 25px;
  }

  .page-doi-tac__card-title {
    font-size: 1.2em;
  }

  /* Partnership Types */
  .page-doi-tac__type-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__type-card {
    padding: 25px;
  }

  /* How to Partner */
  .page-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__step-card {
    padding: 25px;
  }

  .page-doi-tac__step-number {
    font-size: 2.5em;
  }

  /* Commitment List */
  .page-doi-tac__commitment-list {
    gap: 10px;
  }

  .page-doi-tac__commitment-list li {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-doi-tac__cta-bottom {
    margin-top: 40px;
  }

  /* FAQ Section */
  .page-doi-tac__faq-item {
    margin-bottom: 10px;
  }

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

  .page-doi-tac__faq-answer p {
    padding-bottom: 15px;
  }

  /* Contact Form */
  .page-doi-tac__contact-form {
    padding: 20px;
    margin-top: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__form-label {
    font-size: 0.95em;
  }

  .page-doi-tac__form-input,
  .page-doi-tac__form-textarea,
  .page-doi-tac__form-select {
    padding: 10px;
    font-size: 0.95em;
  }

  .page-doi-tac__contact-info {
    font-size: 1em;
  }

  /* Images */
  .page-doi-tac__figure {
    margin: 30px auto;
    max-width: 100% !important;
  }

  .page-doi-tac__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__figcaption {
    font-size: 0.85em;
  }
}