.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #F5F7FA;
}

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

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

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

.page-doi-tac__subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
}

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

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-doi-tac__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

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

.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #E53935;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

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

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

.page-doi-tac__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-doi-tac__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop, will change to contain for mobile */
  aspect-ratio: 16/9;
  min-width: 200px; /* Ensure min size */
  min-height: 200px;
}

.page-doi-tac__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-doi-tac__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-doi-tac__description {
  font-size: clamp(16px, 2vw, 20px); /* Responsive font size */
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-doi-tac__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-doi-tac__intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-doi-tac__intro-text {
  flex: 1;
}

.page-doi-tac__intro-text p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #333333;
}

.page-doi-tac__intro-image {
  flex: 1;
  min-width: 300px;
}

.page-doi-tac__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Benefits Section */
.page-doi-tac__benefits-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
}

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

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

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

.page-doi-tac__benefit-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-doi-tac__benefit-card p {
  font-size: 16px;
  color: #555555;
}

/* How To Join Section */
.page-doi-tac__how-to-join {
  padding: 80px 0;
  background-color: #F5F7FA;
}

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

.page-doi-tac__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
  position: relative;
  padding-top: 80px;
}

.page-doi-tac__step-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-doi-tac__step-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-doi-tac__step-card p,
.page-doi-tac__step-card ul {
  font-size: 16px;
  color: #555555;
}

.page-doi-tac__step-card ul {
  list-style: disc;
  padding-left: 20px;
}

.page-doi-tac__step-card li {
  margin-bottom: 10px;
}

.page-doi-tac__cta-area {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 80px 0;
  background-color: #F5F7FA;
}

.page-doi-tac__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: #f5f5f5;
}
.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Bottom CTA Section */
.page-doi-tac__cta-bottom-section {
  padding: 80px 0;
  background-color: #E53935;
  text-align: center;
  color: #ffffff;
}

/* General image styling */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-image {
    max-height: 500px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(26px, 3.5vw, 44px);
  }
  .page-doi-tac__description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-doi-tac__intro-grid {
    flex-direction: column;
  }
  .page-doi-tac__intro-image {
    order: -1; /* Image above text on smaller screens */
  }
  .page-doi-tac__section-title {
    font-size: 28px;
  }
  .page-doi-tac__subtitle {
    font-size: 16px;
  }
  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-doi-tac__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-doi-tac__benefit-card h3 {
    font-size: 20px;
  }
  .page-doi-tac__step-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-doi-tac__container {
    padding: 15px;
  }

  .page-doi-tac__hero-section {
    padding-top: 10px;
  }

  .page-doi-tac__hero-image {
    max-height: unset !important;
    margin-bottom: 15px;
  }
  .page-doi-tac__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__hero-content {
    padding: 15px;
    margin-bottom: 30px;
  }

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

  .page-doi-tac__description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-doi-tac__cta-button,
  .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-area,
  .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__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-doi-tac__subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-doi-tac__intro-section,
  .page-doi-tac__benefits-section,
  .page-doi-tac__how-to-join,
  .page-doi-tac__faq-section,
  .page-doi-tac__cta-bottom-section {
    padding: 40px 0;
  }

  .page-doi-tac__intro-grid {
    gap: 20px;
  }

  .page-doi-tac__intro-text p {
    font-size: 15px;
  }

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

  .page-doi-tac__benefit-card {
    padding: 20px;
  }

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

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

  .page-doi-tac__step-icon {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .page-doi-tac__step-card h3 {
    font-size: 18px;
  }

  .page-doi-tac__step-card p,
  .page-doi-tac__step-card ul {
    font-size: 15px;
  }

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

  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-doi-tac__section,
  .page-doi-tac__card,
  .page-doi-tac__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}