/* ============================================================
   SafeGuard Safety Training Institute — Stylesheet
   Sections:
     0. Design tokens (variables)
     1. Reset & base
     2. Utilities (container, buttons, section heads)
     3. Header / Navbar
     4. Hero slider
     5. Courses
     6. About + stats
     7. Gallery (image + video)
     8. Contact
     9. Footer + back-to-top
    10. Reveal animations
    11. Responsive (992 / 768 / 480)
   Brand colours are all in :root below — change them once, here.
============================================================ */

/* ---------- 0. Design tokens ---------- */
:root {
  /* EDIT: brand palette */
  --navy:       #0d2a4a;
  --navy-2:     #123a63;
  --navy-deep:  #081d34;
  --orange:     #ff7a18;
  --orange-2:   #ff9633;
  --yellow:     #ffc20e;

  --white:      #ffffff;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fb;
  --bg-soft-2:  #eef3f9;
  --text:       #1f2d3d;
  --muted:      #5b6b7c;
  --border:     #e3e9f0;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(13, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 42, 74, 0.16);
  --transition: 0.3s ease;
  --header-h: 76px;
  --maxw: 1200px;
}

/* ---------- 1. Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* offset anchor jumps so sticky header doesn't cover titles */
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;          /* no horizontal scroll on mobile */
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

/* lock scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* keyboard focus visibility (accessibility) */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 2. Utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); background: rgba(255, 122, 24, 0.1);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 4px;
}
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 24, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 122, 24, 0.45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }

/* ---------- 3. Header / Navbar ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;        /* transparent over hero… */
}
.header.scrolled { background: #fff; box-shadow: var(--shadow); }  /* …solid on scroll */

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 44px; height: 44px; }
.logo-block { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; transition: color var(--transition); }
.logo-block { align-items: center; }
.logo-sub {
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: 0.08em; transition: color var(--transition);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.logo-sub::before, .logo-sub::after {
  content: ""; display: inline-block; width: 18px; border-top: 1.5px solid rgba(255,255,255,0.45);
}
.header.scrolled .logo-sub::before, .header.scrolled .logo-sub::after {
  border-top-color: rgba(10,30,60,0.3);
}
.logo-accent { color: var(--orange); }
.header.scrolled .logo-text { color: var(--navy); }
.header.scrolled .logo-sub { color: rgba(10,30,60,0.65); }
.header.scrolled .logo img {
  outline: 2px solid rgba(0,0,0,0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92); padding: 6px 0; transition: color var(--transition);
}
.header.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--orange); border-radius: 3px; transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active, .nav-link:hover { color: var(--orange); }
.header.scrolled .nav-link.active { color: var(--orange); }

.nav-cta { padding: 10px 22px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer;
  position: relative; z-index: 1001;   /* stay above the open drawer so the X is clickable */
}
.hamburger span {
  width: 26px; height: 3px; border-radius: 3px; background: #fff;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.header.scrolled .hamburger span { background: var(--navy); }
/* when the navy drawer is open, keep the X white & visible regardless of scroll */
body.menu-open .hamburger span { background: #fff; }
/* X animation when open */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* backdrop behind mobile drawer */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(8, 29, 52, 0.55); z-index: 998;
  opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- 4. Hero slider ---------- */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.slider { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transform: scale(1.06);
  transition: opacity 0.9s ease, transform 6s ease, visibility 0.9s ease;
}
.slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }

/* Background photos (Unsplash) with navy gradient FALLBACK so a failed
   image never breaks the design. EDIT: swap the url() for your own photos. */
.slide-1 {
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=70"),
                    linear-gradient(135deg, var(--navy-deep), var(--navy-2));
}
.slide-2 {
  background-image: url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1600&q=70"),
                    linear-gradient(135deg, var(--navy-2), var(--navy-deep));
}
.slide-3 {
  background-image: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1600&q=70"),
                    linear-gradient(135deg, var(--navy-deep), #0a2f57);
}
/* dark tint for text contrast */
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 29, 52, 0.9) 0%, rgba(8, 29, 52, 0.65) 45%, rgba(8, 29, 52, 0.35) 100%);
}
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding-top: var(--header-h); }
.slide-eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: 1px;
  font-size: 0.85rem; text-transform: uppercase; color: var(--yellow);
  border-left: 3px solid var(--orange); padding-left: 12px; margin-bottom: 18px;
}
.slide-title { color: #fff; font-size: clamp(1.5rem, 5.2vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.slide-text { font-size: clamp(0.9rem, 2vw, 1.2rem); color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; max-width: 560px; }
.slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Prev / next */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.2rem;
  backdrop-filter: blur(4px); transition: background var(--transition), transform var(--transition);
}
.slider-btn:hover { background: var(--orange); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }

/* Dots */
.slider-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; transition: var(--transition);
}
.slider-dots button.active { background: var(--orange); border-color: var(--orange); width: 30px; border-radius: 8px; }

/* ---------- 5. Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.course-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover .course-icon { background: linear-gradient(135deg, rgba(255,122,24,0.22), rgba(255,194,14,0.22)); transform: scale(1.06); }
.course-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.9rem; background: linear-gradient(135deg, rgba(255,122,24,0.12), rgba(255,194,14,0.12));
  margin-bottom: 18px; transition: background var(--transition), transform var(--transition);
}
.course-title { font-size: clamp(1.05rem, 3vw, 1.25rem); margin-bottom: 8px; }
.course-desc { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin-bottom: 16px; }
.course-modes { display: flex; gap: 8px; margin-bottom: 16px; }
.course-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 0.9rem; }
.course-meta span:first-child { color: var(--navy); font-weight: 600; }
.course-level { background: var(--bg-soft-2); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.course-btn { width: 100%; margin-top: auto; }

/* Featured card highlight */
.course-card.featured {
  background: linear-gradient(160deg, #ffffff 0%, #fff9f5 100%);
  border: 2px solid var(--orange);
  box-shadow: 0 16px 42px rgba(255, 122, 24, 0.14);
}
.course-card.featured:hover { box-shadow: 0 28px 64px rgba(255, 122, 24, 0.28); }
.featured-label {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  color: #fff; font-size: 0.75rem; font-weight: 700;
  font-family: var(--font-head); padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: 0.04em;
}
.featured-perks { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.featured-perks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; color: var(--text); font-weight: 500;
}
.perk-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255, 122, 24, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.perk-dot::after { content: "✓"; color: var(--orange); font-size: 0.72rem; font-weight: 700; }

/* ---------- Placement strip (below course grid) ---------- */
.placement-strip {
  margin-top: 48px; padding: 36px 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  text-align: center; box-shadow: var(--shadow-lg);
}
.placement-title { color: var(--yellow); font-size: 1.4rem; margin-bottom: 22px; }
.placement-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.role-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 13px 24px; border-radius: var(--radius-sm); font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; transition: background var(--transition), transform var(--transition);
}
.role-item span { font-size: 1.4rem; }
.role-item:hover { background: var(--orange); transform: translateY(-4px); }

/* ---------- 6. About + stats ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin-bottom: 70px; }
.about-media {
  min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background-size: cover; background-position: center; position: relative;
  /* photo + navy fallback */
  background-image: linear-gradient(180deg, rgba(13,42,74,0.1), rgba(13,42,74,0.35)),
                    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=900&q=70"),
                    linear-gradient(135deg, var(--navy-2), var(--navy));
}
.about-media::after {
  content: "Islampur, Dist-Nalanda, Bihar"; position: absolute; left: 20px; bottom: 20px;
  background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 600;
  padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow);
}
.about-text > p { color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; }

.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.mv-icon { font-size: 1.8rem; margin-bottom: 8px; }
.mv-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mv-card p { color: var(--muted); font-size: 0.95rem; }

/* why choose us */
.why-title { text-align: center; font-size: 1.6rem; margin-bottom: 34px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform var(--transition); }
.why-item:hover { transform: translateY(-6px); }
.why-ico { font-size: 1.6rem; }
.why-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 0.9rem; }

/* stats */
.stats {
  margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: var(--radius);
  padding: 46px 30px; box-shadow: var(--shadow-lg);
}
.stat { text-align: center; color: #fff; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--yellow); line-height: 1; }
.stat-label { margin-top: 8px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- 7. Gallery ---------- */
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; height: 230px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px;
  font-family: var(--font-head); font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(8,29,52,0.85), transparent);
  transform: translateY(8px); opacity: 0.92; transition: var(--transition);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: rgba(13, 42, 74, 0.15); transition: var(--transition);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item:hover::after { background: rgba(255, 122, 24, 0.28); }
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* gallery photos (Unsplash) + gradient fallbacks. EDIT urls as needed. */
.g-1 { background-image: url("https://images.unsplash.com/photo-1582139329536-e7284fece509?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#b23a00,#ff7a18); }
.g-2 { background-image: url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,var(--navy-2),var(--navy)); }
.g-3 { background-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#0a3a66,#0d2a4a); }
.g-4 { background-image: url("https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#7a0010,#c81d25); }
.g-5 { background-image: url("https://images.unsplash.com/photo-1572981779307-38b8cabb2407?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#b26a00,#ffc20e); }
.g-6 { background-image: url("https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,var(--navy),var(--navy-2)); }

/* video gallery */
.gallery-subtitle { text-align: center; margin: 56px 0 28px; font-size: 1.5rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  position: relative; height: 220px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform var(--transition);
}
.video-card::after { content: ""; position: absolute; inset: 0; background: rgba(8, 29, 52, 0.55); transition: var(--transition); }
.video-card:hover { transform: translateY(-4px); }
.video-card:hover::after { background: rgba(8, 29, 52, 0.35); }
.video-play {
  position: relative; z-index: 2; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: var(--orange); box-shadow: 0 8px 22px rgba(255, 122, 24, 0.5);
  padding-left: 4px; transition: transform var(--transition);
}
.video-card:hover .video-play { transform: scale(1.12); }
.video-label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-family: var(--font-head); font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(8,29,52,0.9), transparent);
}
/* video thumbnails: YouTube thumb + gradient fallback */
.v-1 { background-image: url("https://images.unsplash.com/photo-1582139329536-e7284fece509?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#b23a00,#ff7a18); }
.v-2 { background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,var(--navy-2),var(--navy)); }
.v-3 { background-image: url("https://images.unsplash.com/photo-1531545514256-b1400bc00f31?auto=format&fit=crop&w=700&q=70"), linear-gradient(135deg,#0a3a66,#0d2a4a); }
/* iframe injected by JS when a video is played */
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- 8. Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 420px 1fr;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,0.14);
  min-height: 500px;
}

/* --- left dark panel --- */
.contact-info-panel {
  background: linear-gradient(160deg, #0d2a4a 0%, #1a3f72 60%, #0f2440 100%);
  padding: 48px 40px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; color: #fff;
}
.ci-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.ci-blob-1 {
  width: 260px; height: 260px; top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(255,122,24,0.22) 0%, transparent 70%);
}
.ci-blob-2 {
  width: 200px; height: 200px; bottom: -60px; left: -60px;
  background: radial-gradient(circle, rgba(255,194,14,0.15) 0%, transparent 70%);
}
.ci-heading {
  font-family: var(--font-head); font-size: 1.5rem; color: #fff;
  margin-bottom: 8px; position: relative;
}
.ci-tagline { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-bottom: 36px; position: relative; }

.ci-list { display: grid; gap: 22px; margin-bottom: 36px; position: relative; }
.ci-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.1); display: grid; place-items: center;
  font-size: 1.2rem; backdrop-filter: blur(4px);
}
.ci-list strong { font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); display: block; margin-bottom: 3px; }
.ci-list p { color: rgba(255,255,255,0.9); font-size: 0.94rem; line-height: 1.5; margin: 0; }
.ci-list a { color: rgba(255,255,255,0.9); }
.ci-list a:hover { color: var(--orange); }

.ci-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; position: relative; }
.ci-btn-primary {
  width: 100%; padding: 14px 20px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  transition: var(--transition); letter-spacing: 0.02em;
}
.ci-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,24,0.4); }
.ci-btn-wa {
  width: 100%; padding: 13px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: var(--transition); text-decoration: none;
}
.ci-btn-wa:hover { background: #25d366; border-color: #25d366; transform: translateY(-2px); }

/* --- right map panel --- */
.contact-map-panel { position: relative; min-height: 460px; }
.contact-map-panel iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- course key-topics highlights ---------- */
.course-highlights {
  list-style: none; display: grid; gap: 7px;
  margin: -4px 0 16px;
}
.course-highlights li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.87rem; color: var(--muted); font-weight: 500;
}
.course-highlights li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; opacity: 0.75;
}
.course-card:hover .course-highlights li::before { opacity: 1; }

/* ---------- course mode badges ---------- */
.course-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.mode-badge {
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.mode-online  { background: #e7f5ff; color: #1971c2; }
.mode-offline { background: #fff4e6; color: #d9480f; }

/* ---------- modal popup ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(8, 20, 40, 0.7); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative; display: flex; flex-direction: row;
  width: 100%; max-width: 820px;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.4);
  animation: slideUp 0.3s cubic-bezier(0.34,1.46,0.64,1);
}

/* close button — positioned inside the right (white) panel */
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px;
  border: 1.5px solid rgba(0,0,0,0.15); background: #fff; border-radius: 50%;
  font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--navy);
  display: grid; place-items: center; transition: background var(--transition), color var(--transition); z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.modal-close:hover { background: #ff4d4d; color: #fff; border-color: #ff4d4d; }

/* ---- left info panel ---- */
.modal-info {
  flex: 0 0 260px;
  background: linear-gradient(160deg, #0d2a4a 0%, #1a3f72 55%, #0f2440 100%);
  padding: 24px 20px 20px; display: flex; flex-direction: column; color: #fff;
  position: relative; overflow: hidden;
}
.modal-info::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,122,24,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.modal-info-logo { margin-bottom: 8px; }
.modal-info-logo img { width: 44px; height: 44px; border-radius: 10px; }
.modal-info-title { font-family: var(--font-head); font-size: 1.1rem; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.modal-info-title span { color: var(--orange); }
.modal-info-sub { font-size: 0.68rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

.modal-info-highlight { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.modal-highlight-item { display: flex; gap: 8px; align-items: flex-start; }
.mhi-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.modal-highlight-item strong { display: block; font-size: 0.84rem; color: #fff; margin-bottom: 1px; }
.modal-highlight-item p { font-size: 0.74rem; color: rgba(255,255,255,0.62); margin: 0; line-height: 1.3; }

.modal-placement { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.modal-placement-title { font-family: var(--font-head); font-size: 0.8rem; color: var(--orange); margin-bottom: 7px; font-weight: 700; }
.modal-placement ul { list-style: none; display: grid; gap: 5px; }
.modal-placement li { font-size: 0.8rem; color: rgba(255,255,255,0.88); display: flex; gap: 7px; align-items: center; }
.modal-placement li span { color: #4ade80; font-size: 0.8rem; }

.modal-info-tag {
  margin-top: auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--orange); text-align: center; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ---- right form panel ---- */
.modal-right { flex: 1; background: #fff; display: flex; flex-direction: column; }
.modal-form-head {
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
  padding: 16px 24px 12px; border-bottom: 1px solid var(--border); text-align: center;
}
.modal-head-icon { font-size: 1.6rem; margin-bottom: 4px; }
.modal-form-head h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 3px; }
.modal-form-head p  { color: var(--muted); font-size: 0.82rem; }
.modal-form { padding: 14px 20px 18px; }
.modal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.modal-fields .field { margin-bottom: 10px; }
.modal-fields .field-full { grid-column: 1 / -1; }
/* compact inputs inside modal */
.modal-form .field input,
.modal-form .field select,
.modal-form .field textarea { padding: 9px 11px; font-size: 0.88rem; }
.modal-form .field label { font-size: 0.82rem; margin-bottom: 4px; }
.modal-form .field textarea { min-height: 52px; }

/* field styles (shared) */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; margin-bottom: 5px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--text); font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); background: #fff; outline: none; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e23b3b; background: #fff7f7; }
.error { display: block; color: #e23b3b; font-size: 0.8rem; margin-top: 4px; min-height: 1em; }
.form-success {
  margin-top: 14px; background: #e8f7ee; color: #157a45; border: 1px solid #b6e3c7;
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem;
}
body.modal-open { overflow: hidden; }

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(36px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 9. Footer + back-to-top ---------- */
.footer {
  background: linear-gradient(180deg, #0a1f38 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.75);
}

/* ── CTA band ── */
.footer-cta {
  background: linear-gradient(135deg, var(--navy-2) 0%, #0f3060 100%);
  border-top: 3px solid var(--orange);
  padding: 38px 0;
}
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-cta-text h3 {
  color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px;
}
.footer-cta-text p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin: 0; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.footer-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 2px solid rgba(255,255,255,0.25);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.96rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-wa-btn:hover { background: #25d366; border-color: #25d366; transform: translateY(-2px); }

/* ── Main grid ── */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 60px 0 50px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-text { color: #fff; }
.footer-about { font-size: 0.93rem; line-height: 1.65; margin-bottom: 16px; }

.footer-badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-badge {
  font-size: 0.75rem; font-weight: 600; font-family: var(--font-head);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
}

.footer-col h4 {
  color: #fff; font-size: 1rem; font-weight: 700; font-family: var(--font-head);
  margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 3px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a {
  font-size: 0.93rem; color: rgba(255,255,255,0.65);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul a::before { content: "›"; color: var(--orange); opacity: 0; transition: opacity var(--transition); }
.footer-col ul a:hover { color: #fff; padding-left: 6px; }
.footer-col ul a:hover::before { opacity: 1; }

/* ── Reach Us contact items ── */
.footer-contact { display: grid; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.fci-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center; font-size: 1rem;
}
.footer-contact-item span:last-child { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.55; }
.footer-contact-item a { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.55; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--orange); }

/* ── Social icons ── */
.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; transition: var(--transition);
}
.social svg { display: block; }
.social:hover { transform: translateY(-3px); border-color: transparent; }
.social-fb:hover { background: #1877f2; }
.social-ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-yt:hover { background: #ff0000; }
.social-in:hover { background: #0a66c2; }
.social-wa:hover { background: #25d366; }

/* ── Footer bottom ── */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 20px 0; font-size: 0.88rem; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; color: rgba(255,255,255,0.4); }
.footer-bottom-right { color: rgba(255,255,255,0.3) !important; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(255, 122, 24, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- 10. Reveal animations ----------
   Scoped to .js so that without JavaScript everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
/* stagger cards inside a grid a little */
.course-grid .reveal.visible { transition-delay: 0.05s; }

/* respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .slide { transform: none; }
}

/* ============================================================
   11. RESPONSIVE
============================================================ */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 320px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-cta-text h3 { font-size: 1.15rem; }
}

/* Mobile nav + layout (≤ 900px) */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  /* off-canvas drawer */
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px;
    background: var(--navy); padding: calc(var(--header-h) + 16px) 28px 28px;
    transform: translateX(100%); transition: transform var(--transition); z-index: 999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3); overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-link { display: block; color: #fff; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .header.scrolled .nav-link { color: #fff; }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; margin-top: 16px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { min-height: 560px; }
  .slide-content { text-align: left; }
  .slide-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-info-panel { padding: 32px 24px; }
  .contact-map-panel { min-height: 300px; }
  .contact-map-panel iframe { min-height: 300px; }
  .placement-strip { padding: 28px 22px; }
  .role-item { padding: 10px 16px; font-size: 0.9rem; }
  .gallery-item { height: 200px; }
  .video-card { height: 190px; }
  /* On phones the arrows overlap hero text — rely on swipe + dots instead. */
  .slider-btn { display: none; }

  /* Footer CTA — stack buttons vertically on all phones */
  .footer-cta { padding: 28px 0 36px; }
  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .footer-cta-actions .btn { text-align: center; justify-content: center; }
  .footer-wa-btn { display: flex; justify-content: center; }
  /* Space between CTA band and footer logo */
  .footer-grid { padding-top: 40px; }

  /* ---------- Modal: full-screen + scrollable on mobile ---------- */
  .modal-overlay {
    padding: 0;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: visible;   /* let the overlay handle scrolling */
    flex-direction: column;
    animation: none;
  }
  .modal-info { display: none; }
  /* Pin close button so it stays visible while the user scrolls */
  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1300;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1.5px solid var(--border);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
    color: var(--navy);
    font-size: 1.3rem;
  }
  .modal-right { flex: 1; }
  .modal-form-head { padding: 20px 54px 16px 20px; } /* right padding avoids overlap with fixed close btn */
  .modal-fields { grid-template-columns: 1fr; gap: 0; }
  .modal-form { padding: 16px 20px 32px; }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  /* General */
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }

  /* Navbar */
  .logo-text { font-size: clamp(1rem, 5vw, 1.25rem); }
  .logo-sub { font-size: 0.58rem; }
  .logo-sub::before, .logo-sub::after { width: 12px; }
  .nav { padding: calc(var(--header-h) + 12px) 20px 20px; }

  /* Hero */
  .hero { min-height: 480px; }
  .slide-actions { width: 100%; }
  .slide-actions .btn { width: 100%; text-align: center; }
  .slide-eyebrow { font-size: 0.75rem; padding-left: 10px; }

  /* Courses */
  .course-grid { grid-template-columns: 1fr; }
  .course-card { padding: 24px 18px; }
  .placement-strip { padding: 22px 18px; }
  .role-item { padding: 9px 14px; font-size: 0.85rem; }

  /* About */
  .why-grid { grid-template-columns: 1fr; }
  .mv-cards { grid-template-columns: 1fr; }
  .mv-card { padding: 16px; }
  .why-item { padding: 16px; }
  .why-grid { gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .stats { padding: 32px 16px; }

  /* Gallery */
  .image-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 180px; }
  .gallery-item figcaption { padding: 10px 12px; font-size: 0.85rem; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card { height: 180px; }
  .video-play { width: 52px; height: 52px; font-size: 1.1rem; }

  /* Contact */
  .contact-info-panel { padding: 24px 16px; }
  .ci-ico { width: 38px; height: 38px; font-size: 1rem; }
  .ci-btn-primary, .ci-btn-wa { padding: 12px 14px; font-size: 0.88rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .footer-about { font-size: 0.88rem; }
  .footer-cta-actions .btn, .footer-wa-btn { width: 100%; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }

  /* Modal — small phones */
  .modal-form-head { padding: 18px 54px 14px 16px; }
  .modal-form { padding: 14px 16px 28px; }
  .modal-head-icon { font-size: 1.4rem; }
  .modal-form-head h3 { font-size: 1rem; }
  .modal-form-head p { font-size: 0.8rem; }

  /* Buttons */
  .btn { padding: 12px 18px; }
}
