/* ============ RESET & VARIABLES ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b1a3a;
  --navy-light: #12234f;
  --gold: #f3b13a;
  --gold-dark: #d99a1e;
  --text-dark: #1a1a2e;
  --text-muted: #5a5f73;
  --bg-light: #f7f8fb;
  --white: #ffffff;
  --blue: #0d2b6b;
  --green: #1e8f5a;
  --purple: #5a3fa0;
  --success: #1e8f5a;
  --error: #d9463c;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(11, 26, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 26, 58, 0.18);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow-light { color: var(--gold); }
.center-block { display: block; text-align: center; }

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}
.section-title.center { text-align: center; margin-bottom: 12px; }
.section-title.light-title { color: var(--white); }

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}
.section-sub.center { text-align: center; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-outline.btn-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline.btn-dark:hover { background: var(--bg-light); }

.btn-card { background: rgba(255,255,255,0.15); color: var(--white); font-size: 13px; padding: 10px 18px; margin-top: 16px; }
.btn-card:hover { background: rgba(255,255,255,0.28); }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand-sub { color: rgba(255,255,255,0.6); font-size: 12px; }

.nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--gold); border-color: var(--gold); }

.header-cta { flex-shrink: 0; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform 0.2s ease, opacity 0.2s ease; }

/* ============ NAV DROPDOWNS ============ */
.nav-dropdown { position: relative; }

.chevron { font-size: 10px; transition: transform 0.2s ease; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 110;
}
.nav-dropdown.open .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.15s ease;
}
.nav-drop-panel a:hover { background: var(--bg-light); color: var(--navy); }

.drop-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-style: normal;
}

.drop-divider { height: 1px; background: #ececf2; margin: 6px 4px; }

/* ============ HERO ============ */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 64px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy h1 { color: var(--white); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.15; margin-bottom: 20px; }
.hero-copy .highlight { color: var(--gold); }
.hero-copy p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-badge { width: 240px; height: 240px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(243, 177, 58, 0.08); padding: 16px; }
.hero-badge-img { width: 100%; height: 100%; object-fit: contain; }

.floating-icon { position: absolute; background: var(--white); color: var(--navy); font-weight: 700; font-family: var(--font-display); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); font-size: 14px; }
.icon-code { width: 52px; height: 40px; top: 10%; left: 5%; }
.icon-ai { width: 44px; height: 40px; top: 65%; left: 2%; background: var(--blue); color: var(--white); }
.icon-cart { width: 44px; height: 44px; bottom: 5%; left: 30%; font-size: 18px; }
.icon-mic { width: 44px; height: 44px; top: 20%; right: 2%; font-size: 18px; }

/* ============ ABOUT ============ */
.about { padding: 80px 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-image-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-copy p { color: var(--text-muted); margin-bottom: 28px; max-width: 520px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--bg-light); border-radius: var(--radius); padding: 18px 12px; text-align: center; border: 1px solid #edeef4; }
.stat-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ============ COURSES ============ */
.courses { padding: 80px 0; background: var(--bg-light); }
.course-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.course-grid > .course-card { flex: 0 1 calc((100% - 40px) / 3); }
.course-card { border-radius: var(--radius); padding: 28px 22px; color: var(--white); box-shadow: var(--shadow); transition: transform 0.2s ease; }
.course-card:hover { transform: translateY(-6px); }
.course-blue { background: linear-gradient(160deg, #123a7a, #0b1a3a); }
.course-green { background: linear-gradient(160deg, #1e8f5a, #0e5c39); }
.course-purple { background: linear-gradient(160deg, #6a4bc4, #40297a); }
.course-navy { background: linear-gradient(160deg, #0b1a3a, #030a1c); }
.course-orange { background: linear-gradient(160deg, #e8892b, #a8540a); }
.course-teal { background: linear-gradient(160deg, #11909c, #0a5560); }
.course-emerald { background: linear-gradient(160deg, #0f7b4f, #0a4d33); }
.course-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.course-card h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.course-card p { font-size: 13px; color: rgba(255,255,255,0.75); }

/* ============ WHY CHOOSE US ============ */
.why { background: var(--navy); padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 8px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.why-item h4 { color: var(--white); font-size: 14px; margin-bottom: 4px; }
.why-item p { color: rgba(255,255,255,0.6); font-size: 12px; }

/* ============ TEAM ============ */
.team { padding: 80px 0; background: var(--white); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team-grid .team-card { flex: 0 0 calc((100% - 96px) / 5); min-width: 0; }

.team-card {
  display: block;
  text-align: center;
  background: var(--bg-light);
  border-radius: 16px;
  padding: 32px 20px 28px;
  border: 1px solid #edeef4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

.view-profile {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
}
.team-card:hover .view-profile { color: var(--gold-dark); }

.team-photo-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold), var(--navy));
}

.team-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-light);
  background: var(--navy);
}

.team-name { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.badge-ceo { background: #fde3c1; color: #93590a; }
.badge-principal { background: #d6e0ff; color: #263e9e; }
.badge-trainer { background: #d3f2e2; color: #0e6b41; }
.badge-admin { background: #e6dcfa; color: #4b2a9a; }

.team-bio { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; min-height: 40px; }

.team-socials { display: flex; justify-content: center; gap: 8px; }
.team-socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e3e5ee;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.team-socials a svg { width: 14px; height: 14px; }
.team-socials a:hover { background: var(--navy); color: var(--white); }

/* ============ LEARNING PROCESS ============ */
.process { background: var(--navy); padding: 72px 0; }
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; position: relative; }
.process-track::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: rgba(255,255,255,0.15); }
.process-step { position: relative; text-align: center; padding-top: 8px; }
.process-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 2;
  box-shadow: 0 0 0 6px var(--navy);
}
.process-step h4 { color: var(--white); font-size: 15px; margin-bottom: 8px; }
.process-step p { color: rgba(255,255,255,0.6); font-size: 13px; max-width: 220px; margin: 0 auto; }

/* ============ STUDENT ACTIVITIES ============ */
.activities { padding: 80px 0; background: var(--bg-light); }

.activity-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.activity-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid #edeef4;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.activity-card:hover { transform: translateY(-4px); }

.activity-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.activity-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.activity-name { display: block; font-weight: 600; font-size: 14px; }
.activity-meta { display: block; font-size: 12px; color: var(--text-muted); }
.activity-text { font-size: 14px; color: var(--text-dark); margin-bottom: 14px; line-height: 1.55; }
.activity-footer { display: flex; gap: 20px; font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---- Media attachments (photos / video) ---- */
.activity-media {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-light);
}

/* Single photo */
.activity-media-single img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.activity-card:hover .activity-media-single img { transform: scale(1.02); }

/* Photo grid (2+ images side by side) */
.activity-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.activity-media-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Video thumbnail with play button */
.activity-media-video {
  position: relative;
  cursor: pointer;
  background: var(--navy);
}
.activity-media-video .video-poster {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.activity-media-video:hover .video-poster { opacity: 0.7; }

.activity-media-video video {
  width: 100%;
  max-height: 260px;
  display: block;
  background: #000;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.activity-media-video:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Like button interaction */
.like-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; user-select: none; transition: color 0.15s ease; }
.like-btn:hover { color: var(--navy); }
.like-btn.liked { color: var(--gold-dark); }

.activities-more { text-align: center; margin-top: 36px; }

/* ============ TESTIMONIALS + CTA ============ */
.testimonials { padding: 80px 0; background: var(--white); }
.testimonials-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; }

.testimonial-card { background: var(--bg-light); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 20px; min-height: 180px; }
.testimonial-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.testimonial-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: var(--shadow); }
.stars { color: var(--gold); font-size: 16px; }
.testimonial-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.testimonial-name { display: block; font-weight: 700; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

.dots { display: flex; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d6d9e4; border: none; cursor: pointer; padding: 0; }
.dot.active { background: var(--navy); }

.cta-col { background: var(--navy); border-radius: var(--radius); padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.cta-col h2 { color: var(--white); margin-bottom: 12px; font-size: 24px; }
.cta-col p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cta-col .btn { align-self: flex-start; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); padding-top: 0; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.1); padding-top: 40px; padding-bottom: 40px; }
.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-newsletter h3 { color: var(--white); font-size: 18px; margin-bottom: 6px; }
.footer-newsletter p { color: rgba(255,255,255,0.6); font-size: 13px; }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { padding: 12px 16px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: var(--white); font-size: 14px; min-width: 220px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--gold); }

.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 13px; margin: 16px 0 20px; max-width: 260px; }

.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease; }
.socials a svg { width: 16px; height: 16px; }
.socials a:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold); }
.footer-icon { font-size: 13px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 18px; color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--gold); }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); border: none; font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; z-index: 90; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============ COURSE DETAIL PAGE ============ */
.course-hero { padding: 56px 0 64px; color: var(--white); background: linear-gradient(160deg, #123a7a, #0b1a3a); }
.course-hero.course-green { background: linear-gradient(160deg, #1e8f5a, #0e5c39); }
.course-hero.course-purple { background: linear-gradient(160deg, #6a4bc4, #40297a); }
.course-hero.course-navy { background: linear-gradient(160deg, #0b1a3a, #030a1c); }
.course-hero.course-orange { background: linear-gradient(160deg, #e8892b, #a8540a); }
.course-hero.course-teal { background: linear-gradient(160deg, #11909c, #0a5560); }
.course-hero.course-emerald { background: linear-gradient(160deg, #0f7b4f, #0a4d33); }

.back-link { color: rgba(255,255,255,0.7); font-size: 13px; display: inline-block; margin-bottom: 20px; }
.back-link:hover { color: var(--gold); }

.course-hero-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
  margin-bottom: 20px;
}
.course-hero-inner h1 { color: var(--white); font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.course-hero-inner p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 560px; margin-bottom: 28px; }

.course-body { padding: 64px 0 80px; background: var(--white); }
.course-body-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }

.course-main h2 { font-size: 22px; margin-bottom: 16px; margin-top: 40px; }
.course-main h2:first-child { margin-top: 0; }
.course-description { color: var(--text-muted); font-size: 15px; max-width: 640px; }

.outcome-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.outcome-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dark); }
.outcome-check { color: var(--success); font-weight: 700; flex-shrink: 0; }

.accordion-item { border: 1px solid #edeef4; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.accordion-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--bg-light); border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--navy); text-align: left;
}
.accordion-arrow { transition: transform 0.2s ease; font-size: 11px; }
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: var(--white); }
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body ul { padding: 14px 18px 16px 34px; }
.accordion-body li { font-size: 13px; color: var(--text-muted); list-style: disc; margin-bottom: 8px; }

.course-cta-inline {
  margin-top: 48px;
  background: var(--bg-light);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}
.course-cta-inline h3 { font-size: 18px; margin-bottom: 8px; }
.course-cta-inline p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

.course-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--bg-light); border-radius: 14px; padding: 24px; border: 1px solid #edeef4; }
.sidebar-card h4 { font-size: 15px; margin-bottom: 16px; }

.fact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; }
.fact-icon { font-size: 18px; flex-shrink: 0; }
.fact-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.fact-value { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); }

.sidebar-btn { width: 100%; }

/* ============ TEAM MEMBER DETAIL PAGE ============ */
.member-hero { padding: 48px 0 60px; background: var(--bg-light); }
.back-link-dark { color: var(--text-muted); }
.back-link-dark:hover { color: var(--navy); }

.member-hero-inner { display: flex; align-items: center; gap: 32px; margin-top: 20px; }
.member-photo-large {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.member-hero-inner h1 { font-size: clamp(24px, 3.5vw, 32px); margin: 8px 0 4px; }
.member-role { color: var(--text-muted); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.member-tagline { color: var(--text-muted); font-size: 15px; max-width: 480px; margin-bottom: 16px; }

.member-socials { display: flex; gap: 10px; }
.member-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid #e3e5ee; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.member-socials a svg { width: 15px; height: 15px; }
.member-socials a:hover { background: var(--navy); color: var(--white); }

.member-quote {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--bg-light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-dark);
  font-size: 15px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  background: var(--white);
  border: 1px solid #e3e5ee;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}
.enroll-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); padding: 56px 0 60px; text-align: center; }
.enroll-hero h1 { color: var(--white); font-size: clamp(26px, 4vw, 36px); margin: 10px 0 12px; }
.enroll-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; font-size: 15px; }

.enroll-section { padding: 56px 0 80px; background: var(--bg-light); }
.enroll-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }

.enroll-form-card {
  background: var(--white);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.enroll-form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }

.enroll-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.sidebar-note .sidebar-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.sidebar-steps li { font-size: 13px; color: var(--text-muted); padding-left: 26px; position: relative; }
.sidebar-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ============ SHARED FORM FIELDS (enroll page) ============ */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.field-icon { font-style: normal; font-size: 13px; }

.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid #dfe1ea;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--white); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--error); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5f73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

.batch-fieldset { border: none; margin-bottom: 16px; }
.batch-fieldset legend { font-size: 13px; font-weight: 600; margin-bottom: 10px; padding: 0; }

.radio-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: 1.5px solid #dfe1ea; border-radius: 24px;
  font-size: 13px; cursor: pointer; margin-right: 10px; margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill:has(input:checked), .radio-pill.is-checked {
  border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 600;
}
.radio-pill:hover { transform: translateY(-1px); }

.modal-submit { width: 100%; padding: 14px 26px; font-size: 15px; margin-top: 8px; }

.modal-error { color: var(--error); font-size: 13px; text-align: center; margin-top: 12px; }

.modal-success { text-align: center; padding: 30px 10px; }
.modal-success-icon { width: 60px; height: 60px; border-radius: 50%; background: #e4f5ec; color: var(--success); font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.modal-success h3 { margin-bottom: 10px; }
.modal-success p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ============ LEGAL PAGES ============ */
.legal-page { padding: 64px 0 80px; background: var(--white); }
.legal-container { max-width: 760px; margin: 0 auto; }
.legal-container h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.legal-container h2 { font-size: 18px; margin: 28px 0 10px; }
.legal-container p { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .course-body-grid, .enroll-grid { grid-template-columns: 1fr; }
  .course-sidebar, .enroll-side { position: static; }
}

@media (max-width: 992px) {
  .hero-inner, .about-inner, .testimonials-inner { grid-template-columns: 1fr; }
  .about-image-placeholder { height: 240px; }
  .course-grid > .course-card { flex-basis: calc((100% - 20px) / 2); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 220px; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-track::before { display: none; }
  .activity-feed { grid-template-columns: 1fr; }
  .outcome-list { grid-template-columns: 1fr; }
  .member-hero-inner { flex-direction: column; text-align: center; }
  .member-socials { justify-content: center; }
  .member-tagline { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 73px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-link { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; justify-content: space-between; }
  .nav-drop-toggle { width: 100%; }

  /* On mobile, dropdown opens as an inline accordion, not a floating panel.
     Both selectors below are needed to beat the desktop .open rule's specificity,
     which otherwise still shifts the panel via transform on small screens. */
  .nav-drop-panel,
  .nav-dropdown.open .nav-drop-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    min-width: 0;
    max-height: 0;
    padding: 0 10px;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    border-radius: 8px;
  }
  .nav-dropdown.open .nav-drop-panel {
    max-height: 400px;
    padding: 10px;
  }
  .nav-drop-panel a { color: rgba(255,255,255,0.85); }
  .nav-drop-panel a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
  .drop-divider { background: rgba(255,255,255,0.1); }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .field-row { grid-template-columns: 1fr; }
  .enroll-form-card { padding: 26px 22px; }

  .activity-media-grid img { height: 130px; }
}

@media (max-width: 560px) {
  .why-grid, .stat-grid { grid-template-columns: 1fr; }
  .course-grid > .course-card { flex-basis: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cta-col .btn { align-self: stretch; }
  .process-track { grid-template-columns: 1fr; gap: 28px; }
  .radio-pill { width: 100%; margin-right: 0; justify-content: center; }
  .batch-fieldset { display: flex; flex-direction: column; }
  body { font-size: 14px; }
  .testimonial-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .member-photo-large { width: 120px; height: 120px; }
}

@media (max-width: 400px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 11px; }
  .hero { padding: 48px 0 60px; }
  .enroll-form-card { padding: 20px 16px; border-radius: 14px; }
} 

/* ============ RESPONSIVE ENHANCEMENTS ============ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, video, svg { max-width: 100%; }
video { height: auto; }
.team-name { overflow-wrap: anywhere; }
.btn, .menu-toggle, .dot { -webkit-tap-highlight-color: transparent; }

/* Large screens */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* Team grid: 5 -> 3+2 -> 2 -> 1 */
@media (max-width: 1100px) {
  .team-grid .team-card { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 768px) {
  .team-grid { gap: 16px; }
  .team-grid .team-card { flex-basis: calc((100% - 16px) / 2); padding: 26px 16px 22px; }
}
@media (max-width: 480px) {
  .team-grid .team-card { flex-basis: 100%; }
}

/* Tablet: header would overflow between 769px and 1024px, so tighten it */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner { gap: 10px; }
  .nav { gap: 2px; }
  .nav-link { padding: 8px 8px; font-size: 13px; }
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 11px; }
  .header-cta { padding: 9px 14px; font-size: 13px; }
}

/* Phones and tablets: comfortable touch targets, no horizontal scroll */
@media (max-width: 768px) {
  .about, .courses, .team, .activities, .testimonials { padding: 56px 0; }
  .process { padding: 56px 0; }
  .menu-toggle { padding: 12px; margin-right: -8px; }
  .nav { top: var(--header-h, 73px); max-height: calc(100vh - var(--header-h, 73px)); max-height: calc(100dvh - var(--header-h, 73px)); }
  .nav-drop-panel a { padding: 12px 10px; }
  .btn { min-height: 44px; }
  .section-sub { margin-bottom: 28px; }
  .hero { padding: 48px 0 56px; }
  .hero-visual { height: 240px; }
  .hero-badge { width: 190px; height: 190px; }
  .about-image-photo { height: 240px; }
  .cta-col { padding: 32px 24px; }
  .footer-newsletter { gap: 16px; }
}

@media (max-width: 560px) {
  .brand-logo { width: 38px; height: 38px; }
  .hero-copy p { font-size: 15px; margin-bottom: 24px; }
  .hero-actions { gap: 12px; }
  .stat-card { padding: 14px 10px; }
  .activity-card { padding: 16px; }
  .testimonial-card { padding: 22px 18px; }
  .member-hero-inner { gap: 20px; }
  .accordion-header { padding: 14px 16px; text-align: left; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 360px) {
  .brand-text { max-width: 150px; }
  .brand-name { font-size: 13px; white-space: normal; }
  .container { padding-left: 14px; padding-right: 14px; }
  .hero-badge { width: 160px; height: 160px; }
}

/* Landscape phones: keep the open menu scrollable */
@media (max-width: 900px) and (max-height: 500px) {
  .nav { max-height: calc(100vh - var(--header-h, 60px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.nav-enroll-mobile { display: none; }
@media (max-width: 768px) {
  .nav-enroll-mobile { display: inline-flex; justify-content: center; margin-top: 12px; width: 100%; }
}


/* ============ WHATSAPP FLOATING BUTTON ============ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 95;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; opacity: 0.6;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }
/* sit the back-to-top button just above WhatsApp */
.back-to-top { right: 26px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.btn-whatsapp { background: #25d366; color: #ffffff; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); }
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .back-to-top { right: 22px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }

/* ============ MOBILE POLISH (phones) ============ */
.dot { position: relative; }
.dot::after { content: ''; position: absolute; inset: -12px -6px; }

@media (max-width: 768px) {
  /* 16px inputs stop iOS Safari zooming the page on focus */
  .field input, .field select, .field textarea, .newsletter-form input { font-size: 16px; }
  .field-row { gap: 0; }
  .batch-fieldset { margin-bottom: 18px; }
  .footer-top { padding-top: 32px; padding-bottom: 32px; }
  .footer-inner { padding-top: 36px; padding-bottom: 28px; gap: 28px 20px; }
  .footer-bottom-inner { padding-bottom: calc(18px + 70px); }
  .legal-container { padding-top: 32px; padding-bottom: 48px; }
}

@media (max-width: 560px) {
  .hero-visual { height: 200px; }
  .hero-badge { width: 160px; height: 160px; padding: 12px; }
  .icon-code { top: 6%; left: 8%; }
  .icon-ai { top: 62%; left: 6%; }
  .icon-cart { bottom: 4%; left: 34%; }
  .icon-mic { top: 14%; right: 8%; }

  /* stats 2 x 2 instead of four long rows */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 22px; }

  .why-grid { gap: 18px; }

  /* process steps 2 x 2 */
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .process-step p { font-size: 12px; }

  /* footer: link columns side by side */
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .newsletter-form { flex-wrap: nowrap; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .newsletter-form .btn { padding-left: 16px; padding-right: 16px; }
}

/* Team cards become compact horizontal rows on small phones */
@media (max-width: 480px) {
  .team-grid { gap: 12px; }
  .team-grid .team-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-areas: "photo name" "photo badge" "photo bio" "photo view";
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    text-align: left;
    padding: 16px;
  }
  .team-grid .team-card:hover { transform: none; }
  .team-grid .team-photo-wrap { grid-area: photo; width: 72px; height: 72px; margin: 0; }
  .team-grid .team-name { grid-area: name; margin-bottom: 6px; }
  .team-grid .badge { grid-area: badge; justify-self: start; margin-bottom: 8px; }
  .team-grid .team-bio { grid-area: bio; min-height: 0; margin-bottom: 8px; font-size: 12.5px; }
  .team-grid .view-profile { grid-area: view; justify-self: start; margin-top: 0; }
}

@media (max-width: 380px) {
  .newsletter-form { flex-wrap: wrap; }
  .newsletter-form .btn { width: 100%; }
  .stat-label { font-size: 11px; }
}

/* About image with info chip */
.about-image { position: relative; }
.about-image-photo { height: 360px; }
.about-chip {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(11, 26, 58, 0.88); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-size: 13px;
  backdrop-filter: blur(4px);
}
.about-chip strong { color: var(--gold); font-family: var(--font-display); }
@media (max-width: 992px) { .about-image-photo { height: 300px; } }
@media (max-width: 560px) { .about-image-photo { height: 240px; } .about-chip { left: 10px; right: 10px; bottom: 10px; font-size: 12px; padding: 8px 12px; } }

/* Course dropdown now has 6 items: keep labels on one line */
@media (min-width: 769px) {
  .nav-drop-panel { min-width: 260px; }
  .nav-drop-panel a { white-space: nowrap; }
}

/* ---- Facebook activities ---- */
.fb-wrap { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 40px; align-items: start; margin-top: 32px; }
.fb-embed { background: var(--white, #fff); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); max-width: 100%; }
.fb-embed iframe { display: block; width: 100%; max-width: 500px; height: 700px; margin: 0 auto; }
.fb-side h3 { font-size: 24px; margin-bottom: 12px; }
.fb-side p { margin-bottom: 22px; color: var(--text-muted); line-height: 1.6; }
.fb-side .btn { margin: 0 10px 10px 0; }
@media (max-width: 860px) { .fb-wrap { grid-template-columns: 1fr; } }

/* ---- Facebook video cards ---- */
.fb-videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 32px 0 48px; justify-items: center; }
.fb-video-card { width: 100%; max-width: 267px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); text-align: center; }
.fb-video-frame { width: 100%; aspect-ratio: 267 / 476; background: #000; }
.fb-video-frame iframe { width: 100%; height: 100%; display: block; }
.fb-video-link { display: block; padding: 12px; font-weight: 600; font-size: 14px; color: var(--primary, #1d4ed8); text-decoration: none; }
.fb-video-link:hover { text-decoration: underline; }
@media (max-width: 1100px) { .fb-videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fb-videos { grid-template-columns: 1fr; } }
