/* style/doi-tac.css */

:root {
  --page-doi-tac-primary-color: #26A9E0;
  --page-doi-tac-secondary-color: #FFFFFF;
  --page-doi-tac-text-dark: #333333;
  --page-doi-tac-text-light: #ffffff;
  --page-doi-tac-login-color: #EA7C07;
}

.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-doi-tac-text-dark); /* Default text color for light body background */
  background-color: var(--page-doi-tac-secondary-color); /* Default white background */
}

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

/* Hero Section */
.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #f0f8ff; /* Light background for the hero section */
}

.page-doi-tac__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.page-doi-tac__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--page-doi-tac-text-dark);
}

.page-doi-tac__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-doi-tac-primary-color);
}

.page-doi-tac__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-doi-tac__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

/* CTA Buttons */
.page-doi-tac__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-doi-tac__btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--page-doi-tac-primary-color);
  color: var(--page-doi-tac-text-light);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 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:hover {
  background-color: #1e87b7;
}

/* General Section Styling */
.page-doi-tac__benefits-section,
.page-doi-tac__program-details-section,
.page-doi-tac__how-to-join-section,
.page-doi-tac__faq-section {
  padding: 60px 0;
  background-color: var(--page-doi-tac-secondary-color);
}

.page-doi-tac__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--page-doi-tac-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-doi-tac__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--page-doi-tac-text-dark);
}

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

.page-doi-tac__benefit-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-doi-tac-text-dark);
}

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

.page-doi-tac__benefit-image {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Limit max width for larger screens */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__benefit-title {
  font-size: 1.5rem;
  color: var(--page-doi-tac-primary-color);
  margin-bottom: 15px;
}

.page-doi-tac__benefit-description {
  font-size: 1rem;
}

/* Program Details Section */
.page-doi-tac__program-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.page-doi-tac__program-text {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-doi-tac__program-text h3 {
  font-size: 1.6rem;
  color: var(--page-doi-tac-primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-doi-tac__program-text p {
  margin-bottom: 15px;
}

.page-doi-tac__program-text ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-doi-tac__program-text ul li {
  margin-bottom: 8px;
}

.page-doi-tac__program-image {
  flex: 1 1 35%;
  min-width: 300px;
  text-align: center;
}

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

/* How to Join Section */
.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 {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--page-doi-tac-text-dark);
}

.page-doi-tac__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-doi-tac-primary-color);
  margin-bottom: 15px;
}

.page-doi-tac__step-title {
  font-size: 1.4rem;
  color: var(--page-doi-tac-primary-color);
  margin-bottom: 10px;
}

.page-doi-tac__step-description {
  font-size: 1rem;
}

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

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

.page-doi-tac__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--page-doi-tac-text-dark);
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-doi-tac-primary-color);
  cursor: pointer;
  list-style: none;
}

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

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

.page-doi-tac__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  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 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-doi-tac-text-dark);
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-doi-tac__container {
    padding: 0 15px !important;
  }

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

  .page-doi-tac__hero-container {
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
  }

  .page-doi-tac__hero-content {
    order: 2;
    flex: 1 1 100%;
    text-align: center;
  }

  .page-doi-tac__hero-image {
    order: 1;
    flex: 1 1 100%;
  }

  .page-doi-tac__hero-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }

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

  /* CTA Buttons */
  .page-doi-tac__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-doi-tac__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* General Section Styling */
  .page-doi-tac__benefits-section,
  .page-doi-tac__program-details-section,
  .page-doi-tac__how-to-join-section,
  .page-doi-tac__faq-section {
    padding: 40px 0;
  }

  .page-doi-tac__section-title {
    font-size: 2rem !important;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-doi-tac__benefit-title {
    font-size: 1.3rem;
  }

  /* Program Details Section */
  .page-doi-tac__program-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-doi-tac__program-text {
    flex: 1 1 100%;
  }

  .page-doi-tac__program-image {
    flex: 1 1 100%;
  }

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

  .page-doi-tac__program-text h3 {
    font-size: 1.4rem;
  }

  /* How to Join Section */
  .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: 2rem;
  }

  .page-doi-tac__step-title {
    font-size: 1.3rem;
  }

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

  /* FAQ Section */
  .page-doi-tac__faq-list {
    padding: 0 15px;
  }

  .page-doi-tac__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

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

  /* Universal image and container rules for mobile */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}