/* style/doi-tac.css */
.page-doi-tac {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Matches body background */
}

.page-doi-tac__section-padding {
  padding: 60px 20px;
}

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

.page-doi-tac__container--narrow {
  max-width: 800px;
}

.page-doi-tac__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-doi-tac__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__section-description--light {
  color: #f0f0f0;
}

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

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  height: 375px; /* Adjust height for desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop to fill space */
  display: block;
}

.page-doi-tac__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-doi-tac__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__lead-text {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-button--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-doi-tac__cta-button--primary:hover {
  opacity: 0.9;
}

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

.page-doi-tac__benefit-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-doi-tac__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-doi-tac__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 200px; /* Constrain icon size */
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-doi-tac__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-doi-tac__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* How To Join Section */
.page-doi-tac__dark-section {
  background-color: #E53935;
  color: #ffffff;
}

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

.page-doi-tac__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-doi-tac__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FF5A4F;
  margin-bottom: 15px;
  line-height: 1;
}

.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

/* Terms Section */
.page-doi-tac__terms-content {
  margin-top: 40px;
  display: grid;
  gap: 25px;
}

.page-doi-tac__term-item {
  background: #FFFFFF;
  border-left: 5px solid #E53935;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__term-heading {
  font-size: 20px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-doi-tac__term-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  margin-top: 40px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary:hover {
  opacity: 0.9;
}

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

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

.page-doi-tac__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #E53935;
  cursor: pointer;
  outline: none;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-doi-tac__faq-item summary:hover {
  background-color: #f9f9f9;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-doi-tac__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: #FF5A4F;
}

.page-doi-tac__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.page-doi-tac__faq-answer p {
  margin: 0;
}

/* Contact Section */
.page-doi-tac__contact-form {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-doi-tac__form-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-doi-tac__form-input,
.page-doi-tac__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-doi-tac__form-input::placeholder,
.page-doi-tac__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-doi-tac__form-input:focus,
.page-doi-tac__form-textarea:focus {
  border-color: #FF5A4F;
  outline: none;
}

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

.page-doi-tac__contact-info {
  text-align: center;
  margin-top: 30px;
}

.page-doi-tac__contact-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.page-doi-tac__contact-text--light {
  color: #f0f0f0;
}

.page-doi-tac__contact-link {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-doi-tac__contact-link:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-doi-tac__section-title {
    font-size: 32px;
  }

  .page-doi-tac__lead-text {
    font-size: 18px;
  }

  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-doi-tac__section-padding {
    padding: 50px 15px;
  }
}

@media (max-width: 768px) {
  .page-doi-tac {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-doi-tac__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-image-wrapper {
    height: 250px;
  }

  .page-doi-tac__hero-image {
    object-fit: contain; /* Contain for mobile to prevent cropping */
    aspect-ratio: unset; /* Reset aspect ratio */
    max-height: none; /* Ensure no max-height limitation */
  }

  .page-doi-tac__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-doi-tac__lead-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-doi-tac__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* General Images and Containers */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__section-padding,
  .page-doi-tac__container,
  .page-doi-tac__benefit-card,
  .page-doi-tac__step-card,
  .page-doi-tac__term-item,
  .page-doi-tac__faq-item,
  .page-doi-tac__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and Button Containers */
  .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-button,
  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary {
    margin-top: 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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-doi-tac__benefits-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__terms-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__benefit-icon {
    max-width: 150px;
    max-height: 100px;
  }

  .page-doi-tac__card-title {
    font-size: 20px;
  }

  .page-doi-tac__step-number {
    font-size: 40px;
  }

  .page-doi-tac__term-heading {
    font-size: 18px;
  }

  .page-doi-tac__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-doi-tac__contact-form {
    padding: 25px;
  }

  .page-doi-tac__form-label {
    font-size: 15px;
  }

  .page-doi-tac__form-input,
  .page-doi-tac__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-doi-tac__contact-text {
    font-size: 16px;
  }
}