/* ============================================================
   TPA — COMPONENTS
   ============================================================ */

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75em 1.75em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-500);
  color: #fff;
  border-color: var(--accent-500);
}
.btn--primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }

.btn--secondary {
  background: transparent;
  color: var(--brand-500);
  border-color: var(--brand-500);
}
.btn--secondary:hover { background: var(--brand-500); color: #fff; }

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); color: #fff; }

.btn--sm { padding: 0.5em 1.25em; font-size: 0.875rem; }
.btn--lg { padding: 0.9em 2.25em; font-size: 1rem; }

/* ── CARD ── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__img img { transform: scale(1.06); }

.card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-500);
  margin-bottom: var(--sp-2);
}
.card__title { font-size: 1.0625rem; font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-2); line-height: 1.3; }
.card__desc { font-size: 0.9rem; color: var(--slate-500); flex: 1; margin-bottom: var(--sp-4); }
.card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); }
.card__meta { font-size: 0.8125rem; color: var(--slate-300); }
.card__price { font-weight: 700; color: var(--accent-500); }

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  overflow: hidden;
  height: min(90vh, 680px);
  background: var(--brand-700);
}

.hero__slides { position: relative; width: 100%; height: 100%; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}
.hero__slide.active { opacity: 1; z-index: 1; }
.hero__slide.prev { z-index: 0; }

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,61,110,.75) 0%, rgba(15,61,110,.35) 60%, rgba(15,61,110,.1) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #fff;
}
.hero__eyebrow { color: var(--gold-500); margin-bottom: var(--sp-3); }
.hero__title { color: #fff; margin-bottom: var(--sp-4); }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.slider-dots { display: flex; gap: var(--sp-2); }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: width var(--ease), background var(--ease);
  padding: 0;
}
.slider-dot.active { width: 24px; border-radius: 4px; background: #fff; }
.slider-prev, .slider-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--ease);
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.35); }

@media (max-width: 639px) {
  .hero { height: min(75vh, 560px); }
  .hero__content { max-width: 100%; }
  .hero__chips { display: none; }
}

/* ── COUNTER ── */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  text-align: center;
}
.counter-item__num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--brand-700);
  line-height: 1;
  display: block;
}
.counter-item__label { font-size: 0.9375rem; color: var(--slate-500); }

@media (max-width: 639px) {
  .counter-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ── VALUE CARDS ── */
.value-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  text-align: center;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  background: var(--brand-100);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-500);
}
.value-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-2); }
.value-card__desc { font-size: 0.9rem; color: var(--slate-500); }

/* ── TESTIMONIAL SLIDER ── */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide { min-width: 100%; }
.testimonial-card {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.testimonial-card__quote {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-700);
  font-style: italic;
  margin-bottom: var(--sp-6);
  position: relative;
}
.testimonial-card__quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0;
  color: var(--brand-100);
  position: absolute;
  top: 20px;
  left: -10px;
  font-style: normal;
}
.testimonial-card__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--sp-3);
  border: 3px solid var(--brand-100);
}
.testimonial-card__name { font-weight: 700; color: var(--brand-700); }
.testimonial-card__course { font-size: 0.875rem; color: var(--slate-500); }

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

/* ── INSTRUCTOR CARD ── */
.instructor-card {
  text-align: center;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease);
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.instructor-card__photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--sp-3);
  border: 4px solid var(--bg-soft);
}
.instructor-card__name { font-size: 1rem; font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-1); }
.instructor-card__title { font-size: 0.8125rem; color: var(--accent-500); font-weight: 600; margin-bottom: var(--sp-2); }
.instructor-card__field { font-size: 0.875rem; color: var(--slate-500); }

/* ── JOB CARD ── */
.job-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  transition: box-shadow var(--ease);
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-card__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-500);
}
.job-card__body { flex: 1; }
.job-card__title { font-weight: 700; color: var(--brand-700); margin-bottom: var(--sp-1); }
.job-card__location { font-size: 0.875rem; color: var(--slate-500); margin-bottom: var(--sp-2); }
.job-card__tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.job-tag {
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--slate-500);
  font-weight: 600;
}

/* ── NEWS CARD ── */
.news-card__date { font-size: 0.8125rem; color: var(--slate-300); margin-bottom: var(--sp-1); }
.news-card__title { font-weight: 700; color: var(--brand-700); font-size: 1rem; margin-bottom: var(--sp-2); line-height: 1.4; }
.news-card__excerpt { font-size: 0.9rem; color: var(--slate-500); }

/* ── TAB / ACCORDION ── */
.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--sp-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-500);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease);
}
.tab-btn.active { color: var(--brand-500); border-bottom-color: var(--brand-500); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.accordion-item { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: var(--sp-2); overflow: hidden; }
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: var(--sp-4) var(--sp-6);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  transition: background var(--ease);
}
.accordion-btn:hover { background: var(--bg-soft); }
.accordion-btn svg { flex-shrink: 0; transition: transform var(--ease); }
.accordion-item.open .accordion-btn svg { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--ease);
}
.accordion-item.open .accordion-body { max-height: 2000px; }
.accordion-content { padding: 0 var(--sp-6) var(--sp-6); }

/* ── FORM FIELDS ── */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: var(--sp-2);
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.65em 1em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(30,111,184,.15); }
.form-control.error { border-color: #e53e3e; }
.form-error { font-size: 0.8125rem; color: #e53e3e; margin-top: var(--sp-1); display: none; }
.form-error.visible { display: block; }

select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6675' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

.form-status {
  display: none;
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  margin-top: var(--sp-4);
}
.form-status.success { display: block; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-status.error-msg { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── LOGO WALL ── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-6);
  align-items: center;
}
.logo-wall img {
  filter: grayscale(1) opacity(.5);
  transition: filter var(--ease);
  max-height: 48px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}
.logo-wall img:hover { filter: grayscale(0) opacity(1); }

/* ── QUIZ ── */
.quiz-wrap {
  max-width: 720px;
  margin-inline: auto;
}
.quiz-progress {
  height: 6px;
  background: var(--line);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-8);
  overflow: hidden;
}
.quiz-progress__bar {
  height: 100%;
  background: var(--brand-500);
  border-radius: var(--r-pill);
  transition: width 0.3s ease;
}
.quiz-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: var(--sp-6);
}
.quiz-options { display: flex; flex-direction: column; gap: var(--sp-3); }
.quiz-option {
  padding: var(--sp-4) var(--sp-6);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
  font-size: 0.9375rem;
  color: var(--ink-700);
  background: var(--bg);
  text-align: left;
  font-family: var(--font-body);
  width: 100%;
}
.quiz-option:hover { border-color: var(--brand-500); background: var(--bg-soft); }
.quiz-option.selected { border-color: var(--brand-500); background: var(--brand-100); color: var(--brand-700); font-weight: 600; }

.quiz-lead-form { background: var(--bg-soft); padding: var(--sp-8); border-radius: var(--r-lg); }
.quiz-result { background: var(--bg-soft); padding: var(--sp-8); border-radius: var(--r-lg); text-align: center; }
.quiz-result__type { font-size: 1.5rem; font-weight: 800; color: var(--brand-700); margin-bottom: var(--sp-2); }
.quiz-result__desc { color: var(--slate-500); margin-bottom: var(--sp-6); }
.quiz-result__courses { list-style: disc inside; text-align: left; margin-bottom: var(--sp-6); }
.quiz-result__courses li { color: var(--brand-500); font-weight: 600; margin-bottom: var(--sp-1); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--brand-700);
  padding: clamp(3rem,6vw,5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); margin-bottom: var(--sp-3); }
.page-hero p { color: rgba(255,255,255,.75); max-width: 560px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
  padding: clamp(3rem,6vw,5rem) 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin-inline: auto; margin-bottom: var(--sp-6); }

/* ── VIDEO SECTION ── */
.video-section .video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-section iframe, .video-section video {
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: relative;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder__label {
  position: absolute;
  font-size: 0.875rem;
  color: var(--slate-500);
  text-align: center;
  padding: var(--sp-8);
}

/* ── ENROLLING CAROUSEL ── */
.enrolling-carousel { position: relative; overflow: hidden; }
.enrolling-track { display: flex; gap: var(--sp-4); transition: transform 0.4s ease; }
.enrolling-track .card { min-width: 280px; }

@media (max-width: 639px) {
  .enrolling-track .card { min-width: 240px; }
}

/* ── NEWS FEATURED ── */
.news-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-6);
}
.news-featured__main .card__img { aspect-ratio: 16/9; }
.news-featured__list { display: flex; flex-direction: column; gap: var(--sp-4); }

.news-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}
@media (max-width: 639px) {
  .news-secondary { grid-template-columns: 1fr; }
}

/* 3-column equal news grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.news-grid .card { height: 100%; display: flex; flex-direction: column; }
.news-grid .card__body { flex: 1; display: flex; flex-direction: column; }
.news-grid .card__body .btn { margin-top: auto; }
@media (max-width: 1023px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-small {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  transition: background var(--ease);
  text-decoration: none;
}
.news-small:hover { background: var(--bg-soft); }
.news-small__img {
  width: 100px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.news-small__img img { width: 100%; height: 100%; object-fit: cover; }
.news-small__body { flex: 1; }

@media (max-width: 767px) {
  .news-featured { grid-template-columns: 1fr; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── COURSE DETAIL ── */
.course-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  color: var(--slate-500);
}
.course-meta-item strong { color: var(--ink-900); }
.course-sidebar {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.course-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-500); margin-bottom: var(--sp-4); }
.course-schedule { font-size: 0.9rem; color: var(--slate-500); margin-bottom: var(--sp-4); }

/* ── CHECKS LIST ── */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 1rem;
  color: var(--ink-700);
}
.check-list li::before {
  content: '';
  display: block;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--brand-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%231E6FB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
