/* ── Education Hero ── */
.edu-hero {
  position: relative;
  height: 100vh;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  background: #fafdf3;
  color: var(--text);
  overflow: hidden;
  padding: 0 0 80px;
}
.edu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/media/Group Photo of Students.JPG") center/cover no-repeat;
  opacity: 0.12;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}
.edu-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  align-content: center;
}
.hero-layout {
  display: grid;
  grid-template-columns: 4fr 5fr;
  /* gap: 3.6rem; */
  align-items: center;
}
.edu-hero-content {
  text-align: left;
}
.edu-hero-content {
  text-align: left;
}

.edu-hero-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f0e0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--primary-dark);
}
.edu-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  word-break: keep-all;
  color: var(--primary-dark);
}
.edu-hero .hero-desc {
  color: var(--text);
}
.edu-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.edu-hero-cta .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.edu-hero-cta .btn-white {
  background: #ffffff;
  border: 1px solid #ccc;
  color: var(--text);
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.2s;
}
.edu-hero-cta .btn-white:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.edu-hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 560px;
}
.edu-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.section-number {
  display: block;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  margin-bottom: 16px auto;
}

.section-title {
  text-align: center;
}
.section-subtitle-line {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  color: #9b7828;
}
.section-subtitles {
  text-align: left;
  font-size: 1.2rem;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(74, 111, 60, 0.15);
  padding: 2rem 6rem;
  line-height: 1.8;
  margin: 0 auto 2rem;
  max-width: 1024px;
  border-radius: var(--radius-lg);
}
.order-card-light {
  background: #e3efdd;
  color: var(--primary-dark);
  /* box-shadow: var(--shadow-sm); */
}
.info-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}
.info-badge {
  background: rgba(74, 111, 60, 0.08);
  /* border: 1px solid rgba(74, 111, 60, 0.2); */
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.activity-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: var(--shadow-md);
}
.activity-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.activity-card h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.activity-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0;
  text-align: left;
}
.module-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-light);
}
.module-card h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.module-card .module-sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.module-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.benefit-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
}
.benefit-card h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.info-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}
.info-badge {
  background: rgba(74, 111, 60, 0.12);
  /* border: 1px solid rgba(74, 111, 60, 0.3); */
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
}

/* ── Contact Form ── */
.contact-section {
  background: var(--bg-alt);
}
.contact-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  /* max-width: 720px; */
  margin: 0 auto;
  /* background: var(--bg-card); */
  /* border-radius: var(--radius-lg); */
  padding: 48px;
  /* box-shadow: var(--shadow-sm); */
}
.contact-form-wrap h3 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.contact-form-wrap .form-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .form-group:last-child,
.form-grid .form-group.full {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 160px;
}

.bsdstemeducation {
  margin: 24px auto 32px;
  max-height: 30rem;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* ── Carousel tweaks ── */
.gallery-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 40px 0 16px;
}
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  height: 40rem;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.carousel-btn:hover {
  background: #fff;
}
.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #fff;
}


/* ── Inline styles converted to classes ── */
.activity-grid.three-col {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  gap: 20px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flex-1 {
 width: 100%;
 padding: 3rem 5.4rem;
 background-color: #fff;
 border-radius: 1rem;
   border: 1px solid var(--accent-light);

}
.skill-dev-row {
  /* background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 3rem;
  align-items: center; */
}
.skill-dev-title {
  color: var(--primary-dark);
  margin-bottom: 8px;
  text-align: left;
  font-size: 1.2rem;
}
.skill-dev-desc {
  color: var(--text);
  /* max-width: 700px; */
  text-align: left;
  font-size: 1.2rem;
}
.bsdstemeducation {
  flex: 1;
  margin: 0;
}
.bsdstemeducation img {
  width: 100%;
  display: block;
}
.benefits-section{
/* padding: 40px; */

}

.benefit-list-wrapper {
  background-color: #ffffff;
  border-radius: 1rem;
  font-family: sans-serif;
  border: 1px solid var(--accent-light);

}
.benefit-list {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  gap: 0;
}
.benefit-row {
  display: flex;
  padding: 1.2rem 0.6rem;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
.benefit-label {
  flex: 0 0 12rem;
  padding-right: 20px;
color: var(--primary);
}
.benefit-label h4 {
  margin: 0;
}
.benefit-label .zh {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}
.benefit-label .en {
  display: block;
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: normal;
}
.benefit-desc {
  flex: 1;
}
.benefit-desc p {
  margin: 0;
  line-height: 1.6;
}
.benefit-desc .zh {
  display: block;
  color: #444;
}
.benefit-desc .en {
  display: block;
  color: #666;
  font-size: 0.95rem;
}
.program-cta {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
  text-align: center;
}
.program-cta-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.program-cta-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}
.flex-center {
  display: inline-flex;
  justify-content: center;
}

.section-heading {
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.section-heading-spaced {
  color: var(--primary-dark);
}
@media (max-width: 1024px) {
  .section {
    padding: 3rem 1.8rem;
  }
  .section .container {
    padding: 0;
  }
  .benefit-list-wrapper {
    padding: 3rem 1.2rem;
  }
  .edu-hero {
    min-height: auto;
    padding: 9rem 1.8rem 3rem;
  }
  .edu-hero .container {
    align-content: start;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    /* gap: 40px; */
  }
  .edu-hero-content {
    text-align: LEFT;
    max-width: 100%;
  }
  .edu-hero h1 {
    font-size: 2rem;
    word-break: keep-all;
  }
  .edu-hero p,
  .edu-hero-desc-secondary {
    max-width: 100%;
  }
  .edu-hero-cta {
    justify-content: center;
  }
  .edu-hero-media {
    aspect-ratio: 16/10;
    max-height: 400px;
  }
   .program-button{
width: 100%;
justify-content: center;
  }
  .module-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide img {
    height: 24rem;
  }
  .benefit-row {
    flex-direction: column;
    gap: 8px;
  }
  .benefit-label {
    flex: none;
    width: 100%;
    padding-right: 0;
    padding-bottom: 4px;
  }
  .benefit-desc {
    flex: 1 1 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-wrap {
    padding: 28px 20px;
  }
  .section-subtitles {
    text-align: left;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(74, 111, 60, 0.15);
    padding: 2rem 1.2rem;
    line-height: 1.8;
    margin: 0 auto 2rem;
    max-width: 1024px;
    border-radius: var(--radius-lg);
  }
  .flex-1 {
 width: 100%;
 padding: 3rem 1.2rem;
 background-color: #fff;
 border-radius: 1rem;
  border: 1px solid var(--accent-light);

}
.benefit-list {
  display: flex;
  flex-direction: column;
  padding: 0rem;
  border-radius: 1rem;
  gap: 0;
}
}
@media (max-width: 480px) {
  .section {
    padding: 3rem 1.8rem;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .benefit-list-wrapper {
    padding: 2rem 1rem;
  }
  .benefit-row {
    padding: 16px 0;
  }
  .benefit-label h4 {
    font-size: 1rem;
  }
}
@media (max-width: 1024px) {
  .three-col {
    /* Added the missing "repeat" keyword here */
    grid-template-columns: repeat(1, 1fr); 
  }
}