/* style/doi-tac.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg-color: #D32F2F;
  --section-bg-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --border-color: #F2B544;
  --deep-red-color: #7A0E0E;
  --text-dark: #333333;
  --text-light: #ffffff;
}

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

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

/* Hero Section */
.page-doi-tac__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: var(--section-bg-color);
  color: var(--text-light);
  text-align: center;
}

.page-doi-tac__hero-content-wrapper {
  flex: 1 1 500px;
  max-width: 600px;
  padding: 20px;
  text-align: left;
}

.page-doi-tac__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-doi-tac__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-doi-tac__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-doi-tac__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--text-main-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  background: var(--primary-color);
}

.page-doi-tac__hero-image-wrapper {
  flex: 1 1 500px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Benefits Section */
.page-doi-tac__benefits-section {
  background: var(--text-light);
  padding: 60px 0;
  color: var(--text-dark);
}

.page-doi-tac__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

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

.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: var(--card-bg-color);
  color: var(--text-light);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-doi-tac__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__benefit-icon {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--gold-color);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-doi-tac__benefit-description {
  font-size: 1rem;
  color: var(--text-main-color);
}

/* Programs Section */
.page-doi-tac__programs-section {
  background: var(--section-bg-color);
  padding: 60px 0;
  color: var(--text-light);
}

.page-doi-tac__programs-section .page-doi-tac__section-title {
  color: var(--gold-color);
}

.page-doi-tac__programs-section .page-doi-tac__section-intro {
  color: var(--text-main-color);
}

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

.page-doi-tac__program-card {
  background: var(--deep-red-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-doi-tac__program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__program-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-doi-tac__program-card-content {
  padding: 25px;
  flex-grow: 1;
}

.page-doi-tac__program-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-doi-tac__program-description {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-doi-tac__program-btn {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--deep-red-color);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid var(--gold-color);
  margin-top: auto;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-doi-tac__program-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* How To Join Section */
.page-doi-tac__how-to-join-section {
  background: var(--text-light);
  padding: 60px 0;
  color: var(--text-dark);
}

.page-doi-tac__how-to-join-section .page-doi-tac__section-title {
  color: var(--primary-color);
}

.page-doi-tac__how-to-join-section .page-doi-tac__section-intro {
  color: var(--text-dark);
}

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

.page-doi-tac__step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-doi-tac__step-icon {
  width: 150px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-doi-tac__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 3px solid var(--gold-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-doi-tac__step-description {
  font-size: 0.95rem;
  color: var(--text-dark);
}

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

/* FAQ Section */
.page-doi-tac__faq-section {
  background: var(--section-bg-color);
  padding: 60px 0;
  color: var(--text-light);
}

.page-doi-tac__faq-section .page-doi-tac__section-title {
  color: var(--gold-color);
}

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

.page-doi-tac__faq-item {
  background: var(--deep-red-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-doi-tac__faq-item[open] > .page-doi-tac__faq-question {
  background-color: var(--primary-color);
}

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

.page-doi-tac__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-doi-tac__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--text-main-color);
  background: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-content-wrapper {
    padding: 15px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
  }
  .page-doi-tac__description {
    font-size: 1rem;
  }
  .page-doi-tac__section-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
  }
  .page-doi-tac__section-intro {
    font-size: 1rem;
  }
  .page-doi-tac__benefit-card, .page-doi-tac__program-card, .page-doi-tac__step-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-doi-tac__container,
  .page-doi-tac__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }

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

  .page-doi-tac__hero-content-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    order: 2; /* Content after image */
  }
  
  .page-doi-tac__hero-image-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
    order: 1; /* Image first */
    padding-top: 20px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-align: center;
  }

  .page-doi-tac__description {
    font-size: 0.95rem;
    text-align: center;
  }

  .page-doi-tac__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Images */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__benefit-icon {
    width: 100px;
    height: 100px;
    border: 3px solid var(--gold-color);
  }

  /* Sections */
  .page-doi-tac__benefits-section,
  .page-doi-tac__programs-section,
  .page-doi-tac__how-to-join-section,
  .page-doi-tac__faq-section {
    padding: 40px 0;
  }

  .page-doi-tac__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .page-doi-tac__section-intro {
    font-size: 0.95rem;
  }

  /* Grids - Stacked layout */
  .page-doi-tac__benefits-grid,
  .page-doi-tac__program-grid,
  .page-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-doi-tac__program-image {
    height: 180px;
  }

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

  .page-doi-tac__faq-answer {
    font-size: 0.9rem;
    padding: 10px 20px 15px;
  }
}