/* ============================================
   SmartB Academy - Homepage (v2 Fresh)
   Mobile-first
   ============================================ */

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #091e30, #150028, #0a1525, #091e30, #150028);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  padding: 56px 0 64px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Particles rendered via canvas in particles.js */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  max-width: 560px;
}

.hero .accent {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust-sep { display: none; color: rgba(255,255,255,0.25); }

@media (min-width: 768px) {
  .hero { padding: 80px 0 88px; }
  .hero-sub { font-size: 17px; }
  .hero-trust-sep { display: inline; }
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0 104px; }
}

@media (max-width: 479px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }
}

/* === CREDENTIALS STRIP === */
.creds {
  padding: 28px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.creds-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.creds-list {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 2;
}
.creds-dot {
  display: inline-block;
  margin: 0 10px;
  color: var(--border);
}
@media (min-width: 768px) {
  .creds { padding: 32px 0; }
  .creds-list { font-size: 16px; }
  .creds-dot { margin: 0 14px; }
}

/* === 3 STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 17px; max-width: 520px; color: var(--muted); line-height: 1.8; }

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
  .step {
    padding: 0;
    border-bottom: none;
    border-top: 2px solid var(--border);
    padding-top: 28px;
  }
  .step:last-child { padding-bottom: 0; }
}

/* === COURSES === */
.courses-scroll-wrap {
  position: relative;
  margin-top: 40px;
}
.courses-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
/* When scrollable (JS adds this class for 3+ cards) */
.courses-grid.scrollable {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  justify-content: flex-start;
}
.courses-grid.scrollable::-webkit-scrollbar { display: none; }
.courses-grid.scrollable .course-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
}
.courses-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.2s;
}
.courses-scroll-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.courses-scroll-btn.prev { left: -20px; }
.courses-scroll-btn.next { right: -20px; }
.courses-scroll-wrap.has-scroll .courses-scroll-btn { display: flex; }

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.course-card[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(23, 66, 99, 0.12);
  transform: translateY(-4px);
}

.course-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.course-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}

.course-card h3 { margin-bottom: 8px; }
.course-card > p { font-size: 14px; margin-bottom: 14px; }

.course-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.course-toggle svg {
  transition: transform 0.3s ease;
}
.course-card[aria-expanded="true"] .course-toggle svg {
  transform: rotate(180deg);
}

/* === COURSE DRAWER === */
.course-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.course-drawer.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 24px;
}

.drawer-inner {
  background: var(--pure-white, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  text-align: left;
}

.drawer-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
  margin-bottom: 6px;
}
.drawer-header p {
  font-size: 15px;
  max-width: 560px;
}

.drawer-programmes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.programme-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.programme-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--sh);
}

.programme-dur {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.programme-card h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.programme-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.programme-audience {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-style: italic;
}

@media (min-width: 768px) {
  .courses-grid .course-card { max-width: 400px; }
  .drawer-programmes { grid-template-columns: repeat(2, 1fr); }
  .drawer-inner { padding: 32px; }
}

/* === STATS === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }

@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .stat {
    border-radius: 0;
    border-right: 1px solid var(--border);
    border-left: none;
    padding: 28px 16px;
  }
  .stat:first-child { border-left: 1px solid var(--border); border-radius: var(--radius) 0 0 var(--radius); }
  .stat:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
}

/* === TRAINER === */
.trainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 40px;
}
.trainer-photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.trainer-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.trainer-cred {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (max-width: 767px) {
  .trainer-creds { gap: 6px; }
  .trainer-cred { font-size: 11px; padding: 4px 10px; }
}
.trainer-bio { font-size: 17px; line-height: 1.8; margin-bottom: 20px; }

@media (min-width: 1024px) {
  .trainer-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .trainer-photo { margin: 0; }
}

/* === TESTIMONIALS === */
.testi-swiper {
  margin-top: 40px;
  padding-bottom: 48px;
  overflow: visible;
}
.testi-swiper .swiper-wrapper {
  justify-content: center;
}
.testi-swiper .swiper-slide {
  height: auto;
}
.testi-swiper .swiper-pagination-bullet {
  background: var(--blue);
  opacity: 0.25;
  width: 10px;
  height: 10px;
}
.testi-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--blue);
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.testi-stars { color: var(--amber); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text {
  font-family: var(--font-s);
  font-style: italic;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--blue);
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testi-role { font-size: 13px; color: var(--muted); }

/* Swiper handles responsive layout for testimonials */

/* CTA band styles are in global.css - no overrides needed here */
