/* ============================================================
   ProCoders Medical Coding Institute - Global Stylesheet
   Premium Healthcare + Education Theme
   ============================================================ */

:root {
  /* Color Palette */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --accent: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --bg: #FFFFFF;
  --section-bg: #F8FAFC;
  --text: #1F2937;
  --footer: #1E3A8A;
  --muted: #6B7280;
  --border: #E5E7EB;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --grad-dark: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%);
  --grad-hero: linear-gradient(135deg, rgba(29,78,216,0.92) 0%, rgba(14,165,233,0.88) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 16px 48px rgba(37, 99, 235, 0.18);
  --shadow-glow: 0 0 32px rgba(14, 165, 233, 0.35);

  /* Radius */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Typography */
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0F172A;
  --section-bg: #1E293B;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --border: #334155;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
}

/* Reset & Base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { text-decoration: none; color: var(--primary); transition: color 0.25s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

section { position: relative; }

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ---------- Loading Screen ---------- */
#loader-screen {
  position: fixed;
  inset: 0;
  background: var(--grad-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader-screen.hidden { opacity: 0; visibility: hidden; }
.loader-pulse {
  width: 70px; height: 70px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-text {
  position: absolute;
  margin-top: 110px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.navbar {
  transition: all 0.4s ease;
  padding: 14px 0;
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}
.navbar-transparent { background: transparent; }
.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .brand-icon {
  width: 38px; height: 38px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 4px;
  position: relative;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: all 0.25s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { filter: invert(1); }

.btn-enroll-nav {
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: 8px 22px !important;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 10px;
  transition: all 0.3s;
}
.btn-enroll-nav:hover {
  background: #0284C7;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

/* Dark mode toggle */
.theme-toggle {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 8px;
}
.theme-toggle:hover { background: rgba(255,255,255,0.3); transform: rotate(20deg); }

/* ---------- Buttons ---------- */
.btn-primary-grad {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}
.btn-primary-grad:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.btn-outline-light-grad {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline-light-grad:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-3px);
}
.btn-ghost {
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Section Helpers ---------- */
.section-pad { padding: 80px 0; }
.section-light { background: var(--section-bg); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title .badge-sub {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.section-title h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}
[data-theme="dark"] .section-title h2 { color: #fff; }

.text-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}
[data-theme="dark"] .glass-card {
  background: rgba(30,41,59,0.7);
  border-color: rgba(148,163,184,0.2);
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(29,78,216,0.85), rgba(14,165,233,0.8)), url('https://images.pexels.com/photos/263402/pexels-photo-263402.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover fixed;
  color: #fff;
  padding-top: 80px;
  overflow: hidden;
}
.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  font-weight: 400;
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.92);
}
.typed-wrap { font-weight: 700; color: #FCD34D; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}

/* Floating icons */
.float-icon {
  position: absolute;
  color: rgba(255,255,255,0.15);
  font-size: 2.5rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-icon:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 25%; right: 10%; animation-delay: 1.5s; font-size: 3rem; }
.float-icon:nth-child(3) { bottom: 20%; left: 12%; animation-delay: 3s; }
.float-icon:nth-child(4) { bottom: 30%; right: 15%; animation-delay: 2s; font-size: 2rem; }
.float-icon:nth-child(5) { top: 50%; left: 45%; animation-delay: 4s; font-size: 2.2rem; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.feature-card .icon-circle {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.4s;
}
.feature-card:hover .icon-circle { transform: rotate(360deg) scale(1.1); }
.feature-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Course Cards ---------- */
.course-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.course-card .course-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.course-card .course-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.course-card:hover .course-img img { transform: scale(1.1); }
.course-card .course-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,78,216,0.5), transparent);
}
.course-card .course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card .course-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.course-card .course-meta span i { color: var(--primary); margin-right: 4px; }
.course-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.course-card .course-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.course-card .course-career {
  font-size: 0.82rem;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 14px;
}
.course-card .btn-learn {
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s;
  align-self: flex-start;
}
.course-card .btn-learn:hover { background: var(--primary); color: #fff; }

/* ---------- Learning Journey Timeline ---------- */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-item .tl-dot {
  position: absolute;
  top: 28px;
  width: 22px; height: 22px;
  background: var(--primary);
  border: 4px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.2);
  z-index: 2;
}
.timeline-item:nth-child(odd) .tl-dot { right: -11px; }
.timeline-item:nth-child(even) .tl-dot { left: -11px; }
.timeline-item .tl-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.timeline-item .tl-content:hover { box-shadow: var(--shadow-md); transform: scale(1.02); }
.timeline-item .tl-num {
  display: inline-block;
  background: var(--grad-primary);
  color: #fff;
  width: 30px; height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.timeline-item h5 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.timeline-item p { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }

@media (max-width: 768px) {
  .timeline::before { left: 22px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 10px; }
  .timeline-item .tl-dot { left: 12px !important; right: auto !important; }
}

/* ---------- Why Choose Cards ---------- */
.why-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.why-card .why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: rgba(14,165,233,0.1);
  color: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: all 0.4s;
}
.why-card:hover .why-icon { background: var(--accent); color: #fff; transform: scale(1.1); }
.why-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Placement Stats ---------- */
.placement-stat {
  text-align: center;
  padding: 26px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.placement-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.placement-stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.placement-stat .label { color: var(--muted); font-weight: 500; }

/* ---------- Recruiters Slider ---------- */
.recruiter-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  transition: all 0.3s;
}
.recruiter-logo:hover { box-shadow: var(--shadow-md); transform: scale(1.05); color: var(--primary); }
.recruiter-logo i { font-size: 1.8rem; margin-right: 8px; color: var(--accent); }

/* ---------- Faculty Cards ---------- */
.faculty-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  text-align: center;
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.faculty-card .fac-img {
  height: 260px;
  overflow: hidden;
}
.faculty-card .fac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.faculty-card:hover .fac-img img { transform: scale(1.08); }
.faculty-card .fac-body { padding: 22px; }
.faculty-card h5 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.faculty-card .fac-qual { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.faculty-card .fac-exp { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.faculty-card .fac-spec { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.faculty-card .btn-linkedin {
  background: #0A66C2;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}
.faculty-card .btn-linkedin:hover { background: #004182; transform: translateY(-2px); color: #fff; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border);
  height: 100%;
}
.testimonial-card .stars { color: var(--warning); margin-bottom: 14px; font-size: 1.1rem; }
.testimonial-card .review-text { font-size: 0.95rem; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial-card .stu-img {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--primary);
}
.testimonial-card .stu-name { font-weight: 700; margin-bottom: 2px; }
.testimonial-card .stu-place { font-size: 0.85rem; color: var(--success); font-weight: 600; }
.testimonial-card .stu-pkg { font-size: 0.82rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item .gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,78,216,0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover .gal-overlay { opacity: 1; }
.gallery-item .gal-overlay span { color: #fff; font-weight: 600; font-size: 0.95rem; }
.gallery-filter .btn { border-radius: 50px; font-size: 0.85rem; font-weight: 600; padding: 7px 20px; margin: 4px; }

/* ---------- FAQ ---------- */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg);
}
.accordion-button {
  font-weight: 600;
  color: var(--text) !important;
  font-size: 1rem;
}
.accordion-button:not(.collapsed) {
  background: rgba(37,99,235,0.08);
  color: var(--primary) !important;
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--primary); }
.accordion-body { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.contact-info-card .ci-icon {
  width: 48px; height: 48px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card .ci-text h6 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.contact-info-card .ci-text p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.contact-info-card .ci-text a { font-size: 0.88rem; color: var(--muted); }

.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  background: var(--bg);
  color: var(--text);
}
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

/* ---------- Page Hero Banner ---------- */
.page-hero {
  background: var(--grad-dark);
  color: #fff;
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.breadcrumb-custom {
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 8px 20px;
  display: inline-flex;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 18px;
}
.breadcrumb-custom a { color: rgba(255,255,255,0.85); }
.breadcrumb-custom a:hover { color: #fff; }
.breadcrumb-custom span { color: rgba(255,255,255,0.5); }

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--grad-primary);
  color: #fff;
  text-align: center;
  padding: 60px 0;
  border-radius: 0;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; font-weight: 800; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 26px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}
.footer h5 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.75); font-size: 0.9rem; display: block; margin-bottom: 8px; transition: all 0.25s; }
.footer a:hover { color: #fff; padding-left: 5px; }
.footer .footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer .footer-brand .brand-icon {
  width: 40px; height: 40px;
  background: #fff;
  color: var(--footer);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}
.footer .social-icons a:hover { background: var(--accent); transform: translateY(-3px); color: #fff; padding-left: 0; }
.footer .newsletter input {
  border-radius: 50px;
  border: none;
  padding: 10px 18px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.footer .newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.footer .newsletter input:focus { outline: none; background: rgba(255,255,255,0.2); }
.footer .newsletter .btn-sub {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.footer .newsletter .btn-sub:hover { background: #0284C7; transform: translateY(-2px); }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
}
.footer .footer-bottom a { display: inline; margin: 0 8px; }

/* ---------- Floating Buttons ---------- */
.floating-wa, .floating-call {
  position: fixed;
  right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  z-index: 1500;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}
.floating-wa { bottom: 90px; background: #25D366; }
.floating-wa:hover { transform: scale(1.1); color: #fff; }
.floating-call { bottom: 24px; background: var(--primary); }
.floating-call:hover { transform: scale(1.1); color: #fff; }
.floating-wa::after, .floating-call::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: ripple 2s ease-out infinite;
  opacity: 0;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Sticky enroll (mobile) */
.sticky-enroll {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  padding: 12px 20px;
  text-align: center;
  z-index: 1400;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-enroll a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
@media (max-width: 768px) {
  .sticky-enroll { display: block; }
  body { padding-bottom: 56px; }
}

/* Back to top */
#back-to-top {
  position: fixed;
  left: 22px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
  box-shadow: var(--shadow-md);
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- Enquiry Popup ---------- */
.enquiry-popup {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 340px;
  max-width: calc(100vw - 44px);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 1600;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--border);
}
.enquiry-popup.show { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.enquiry-popup .ep-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
}
.enquiry-popup h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.enquiry-popup p { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.enquiry-popup .form-control { padding: 9px 14px; font-size: 0.88rem; margin-bottom: 10px; }

/* ---------- Salary Calculator ---------- */
.salary-calc {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.salary-calc .result-box {
  background: var(--grad-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  margin-top: 20px;
}
.salary-calc .result-box .amount { font-size: 2.2rem; font-weight: 800; }
.salary-calc .result-box .label { font-size: 0.9rem; opacity: 0.9; }

/* ---------- Animations ---------- */
[data-aos] { transition-property: transform, opacity; }

.fade-in-up { animation: fadeInUp 0.8s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.4rem; }
  .section-title h2 { font-size: 1.9rem; }
  .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-stats { gap: 18px; }
  .hero-stat .num { font-size: 1.8rem; }
  .section-pad { padding: 50px 0; }
  .section-title h2 { font-size: 1.6rem; }
  .enquiry-popup { bottom: 20px; }
}

/* Utility */
.muted { color: var(--muted); }
.fw-600 { font-weight: 600; }
.rounded-16 { border-radius: var(--radius); }
.shadow-soft { box-shadow: var(--shadow-md); }




/* Course Materials */
/* =========================================
   COURSE MATERIALS PAGE
========================================= */

/* Stats Section */

.stats{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.stat-box{
    background:#fff;
    border-radius:18px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.4s;
}

.stat-box:hover{
    transform:translateY(-10px);
}

.stat-box h2{
    font-size:42px;
    font-weight:700;
    color:#2563EB;
}

.stat-box p{
    margin-top:10px;
    color:#6b7280;
    font-weight:500;
}

/* Materials */

.materials{
    max-width:1250px;
    margin:auto;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:30px;
}

/* Card */

.materials .card{
    border:none;
    border-radius:20px;
    padding:35px 30px;
    text-align:center;
    background:#fff;
    position:relative;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    transition:.35s;
}

.materials .card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(37,99,235,.18);
}

.materials .card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,#2563EB,#0EA5E9);
}

.materials .card i.fa-file-pdf{
    font-size:72px;
    color:#dc2626;
    margin-bottom:20px;
}

.materials .card h3{
    font-size:22px;
    font-weight:700;
    margin:15px 0;
    color:#1f2937;
}

.materials .card p{
    color:#6b7280;
    margin-bottom:25px;
    line-height:1.6;
}

/* Badge */

.badge{
    display:inline-block;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    margin-bottom:20px;
}

.badge{
    background:#DBEAFE;
    color:#1D4ED8;
}

.badge.intermediate{
    background:#FEF3C7;
    color:#B45309;
}

.badge.advanced{
    background:#FEE2E2;
    color:#B91C1C;
}

/* Buttons */

.btns{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

.btns a{
    text-decoration:none;
    padding:11px 22px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btns a:first-child{
    background:#EFF6FF;
    color:#2563EB;
}

.btns a:last-child{
    background:#2563EB;
    color:#fff;
}

.btns a:hover{
    transform:translateY(-3px);
}

.btns a:first-child:hover{
    background:#DBEAFE;
}

.btns a:last-child:hover{
    background:#1D4ED8;
}

/* Scroll Animation */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:.7s;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Toast */

#toast{
    position:fixed;
    bottom:25px;
    right:25px;
    background:#2563EB;
    color:white;
    padding:15px 25px;
    border-radius:10px;
    font-weight:600;
    opacity:0;
    pointer-events:none;
    transition:.4s;
    z-index:9999;
}

#toast.show{
    opacity:1;
}

/* Back To Top */

#topBtn{
    position:fixed;
    right:25px;
    bottom:25px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#2563EB;
    color:#fff;
    font-size:20px;
    display:none;
    cursor:pointer;
    z-index:999;
    transition:.3s;
    box-shadow:0 10px 20px rgba(0,0,0,.2);
}

#topBtn:hover{
    background:#1D4ED8;
    transform:translateY(-5px);
}

/* Responsive */

@media(max-width:768px){

    .materials{
        grid-template-columns:1fr;
    }

    .btns{
        flex-direction:column;
    }

    .btns a{
        width:100%;
    }

}