:root {
  --blue-dark: #0b2e6b;
  --blue: #1a56db;
  --blue-light: #eef3ff;
  --orange: #f7941d;
  --orange-dark: #e07d00;
  --gray-bg: #f6f8fb;
  --text: #14213a;
  --muted: #64748b;
  --white: #ffffff;
  --border: #e6eaf1;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(26, 86, 219, 0.06) 0%, rgba(247, 148, 29, 0.04) 50%, rgba(238, 243, 255, 0.08) 100%),
    linear-gradient(to bottom, #f5f7fc 0%, #faf8ff 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.3px;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; letter-spacing: -0.01em; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  background: var(--blue-dark);
  color: #cfdcff;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar.container.topbar-centered {
  justify-content: center;
  gap: 16px;
}
.topbar span { margin-right: 0; }
.topbar .separator {
  color: #8899cc;
  margin: 0 4px;
}

/* Header */
header.site-header {
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
header.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.logo span { color: var(--orange); }
.logo::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-lg { padding: 16px 36px; font-size: 15px; font-weight: 700; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.btn-outline:hover {
  background: var(--blue-light);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.15);
}
.btn-solid {
  background: linear-gradient(135deg, var(--blue) 0%, #1044c7 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.btn-solid:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a2fb5 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26, 86, 219, 0.4);
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(247, 148, 29, 0.15), transparent 60%),
    linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(247, 148, 29, 0.03) 100%),
    linear-gradient(180deg, rgba(239, 243, 255, 0.9) 0%, rgba(238, 242, 249, 0.7) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 86, 219, 0.1);
  position: relative;
  width: 100%;
  padding: 110px 24px 97px;
  overflow-x: hidden;
}
.hero-grid {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(26, 86, 219, 0.15);
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.08);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 37px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--orange); display: block; }
.hero p {
  margin-bottom: 37px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 0; width: 100%; }
.hero-cta .btn { max-width: 480px; text-align: center; }

/* Sections */
.section {
  padding: 84px 0;
  position: relative;
}
.section:nth-child(even) {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.03) 0%, rgba(247, 148, 29, 0.02) 100%);
}
.section:nth-child(odd) {
  background: linear-gradient(135deg, rgba(247, 148, 29, 0.02) 0%, rgba(147, 112, 219, 0.02) 100%);
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 7px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 29px;
  font-size: 16px;
}

/* Why us */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.15), 0 0 30px rgba(247, 148, 29, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}
.feature-card .icon {
  width: 88px; height: 88px;
  margin: 0 auto 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--blue-light), #dfe9ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  box-shadow: 0 12px 24px rgba(26, 86, 219, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  transform: translateZ(0);
}
.feature-card:hover .icon {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 32px rgba(26, 86, 219, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.feature-card .icon svg { width: 42px; height: 42px; }
.feature-card .icon.illustration {
  width: 160px;
  height: 160px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.feature-card .icon.illustration img { width: 100%; height: 100%; object-fit: contain; }
.feature-card:hover .icon.illustration { transform: translateY(-4px) scale(1.05); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* Stats */
.stats {
  background: linear-gradient(120deg, var(--blue-dark), #123a8a);
  color: var(--white);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}
.stats-grid .num { font-family: "Poppins", sans-serif; font-size: 36px; font-weight: 800; color: var(--orange); }
.stats-grid .label { font-size: 14px; color: #cbd8f5; margin-top: 4px; }

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.course-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(26, 86, 219, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.course-card:hover,
.course-card:focus-within {
  transform: translateY(-12px) rotateX(4deg);
  box-shadow: 0 30px 60px rgba(26, 86, 219, 0.25), 0 0 40px rgba(247, 148, 29, 0.1);
  border-color: rgba(26, 86, 219, 0.2);
}
.course-card .course-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-bg);
  position: relative;
}
.course-card .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card:hover .course-image img {
  transform: scale(1.05);
}
.course-card .course-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-dark);
  background: #fff1de;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.course-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26, 86, 219, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.course-rating .stars { color: #ffc107; letter-spacing: 1px; }
.course-card h4 {
  font-size: 19px;
  margin-bottom: 8px;
  min-height: auto;
  font-weight: 700;
  line-height: 1.4;
}
.course-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.course-price { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; margin-top: auto; }
.course-price > div { display: flex; align-items: baseline; gap: 10px; }
.course-price .price { font-family: "Poppins", sans-serif; font-size: 22px; font-weight: 800; color: var(--blue-dark); }
.course-price .mrp { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.course-price .tag { margin-bottom: 0; }

/* Departments Filter */
.dept-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.dept-tab {
  padding: 11px 24px;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.dept-tab:hover {
  background: rgba(26, 86, 219, 0.05);
}
.dept-tab.active {
  background: linear-gradient(135deg, var(--blue) 0%, #1044c7 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.25);
  transform: translateY(-2px);
}

/* Legacy dept-pill for compatibility */
.dept-pill {
  padding: 11px 24px;
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(26, 86, 219, 0.02) 100%);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dept-pill:hover {
  background: linear-gradient(135deg, var(--blue) 0%, #1044c7 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 86, 219, 0.25);
  transform: translateY(-2px);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.cert-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.15), 0 0 30px rgba(247, 148, 29, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}
.cert-card .icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--blue-light), #dfe9ff);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.cert-card .icon svg { width: 34px; height: 34px; }
.cert-card h3 { font-size: 16px; margin-bottom: 10px; }
.cert-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid rgba(26, 86, 219, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 86, 219, 0.15), 0 0 25px rgba(247, 148, 29, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}
.testimonial-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.testimonial-card .name { font-weight: 700; font-size: 14px; }
.testimonial-card .role { font-size: 12px; color: var(--muted); }

/* Contact */
.contact {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(247, 148, 29, 0.03) 50%, rgba(147, 112, 219, 0.04) 100%);
}
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 86, 219, 0.1);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}
.contact-form:hover {
  box-shadow: 0 20px 48px rgba(26, 86, 219, 0.15), 0 0 40px rgba(247, 148, 29, 0.08);
  transform: translateY(-4px);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .phone-field { display: flex; }
.contact-form .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.contact-form .phone-field input { border-radius: 0 8px 8px 0; }
.contact-form .phone-field:has(input.invalid) .phone-prefix {
  border-color: #d92d20;
  background: #fef3f2;
}
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}
.contact-form .field-error {
  color: #d92d20;
  font-size: 13px;
  line-height: 1.4;
  margin-top: -8px;
}
.contact-form .field-error:empty { display: none; }
.contact-form .form-status { font-size: 14px; min-height: 0; }
.contact-form .form-status:empty { display: none; }
.contact-form .form-status.error { color: #d92d20; }
.contact-form .form-success { text-align: center; padding: 24px 8px; }
.contact-form .form-success h3 { font-size: 22px; margin-bottom: 8px; color: var(--blue-dark); }
.contact-form .form-success p { color: var(--muted); margin-bottom: 18px; }
.contact-form .form-success .btn { justify-self: center; }
.contact-form.sent > :not(.form-success) { display: none; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form button {
  justify-self: start;
}

/* Terms & Conditions Collapsible */
.terms-content-collapsed {
  max-height: 0 !important;
}
.terms-content-expanded {
  max-height: 2000px !important;
}
.terms-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.terms-header:hover {
  opacity: 0.8;
}
.terms-toggle-icon {
  display: inline-block;
  font-size: 20px;
  transition: transform 0.3s ease;
}

/* Footer */
footer {
  background: var(--blue-dark);
  color: #cbd8f5;
  padding: 36px 0;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .topbar .container { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; height: auto; }
  header.site-header { flex-wrap: wrap; gap: 12px; }
  .main-nav { display: none; }
  .nav-actions { width: 100%; }
  .nav-actions .btn { width: 100%; text-align: center; }
}
