/* =============================================================================
   TERTIARY INSTITUTION LANDING PAGE — PREMIUM STYLESHEET
   Theme: Glassmorphism | Brand: #050C9C #3572EF #3ABEF9 #A7E6FF
   ============================================================================= */

/* ---------------------------------- */
/* CSS VARIABLES / DESIGN TOKENS      */
/* ---------------------------------- */
:root {
  /* Brand Palette */
  --primary:       #050C9C;
  --secondary:     #3572EF;
  --accent-1:      #3ABEF9;
  --accent-2:      #A7E6FF;

  /* Extended Palette */
  --primary-dark:  #030870;
  --primary-light: #0a1bcc;
  --secondary-light: #5b8ef3;

  /* Neutrals */
  --white:         #ffffff;
  --light-bg:      #f7f9ff;
  --surface:       #eef3ff;
  --dark-text:     #0d1128;
  --body-text:     #2d3348;
  --muted-text:    #6b7280;
  --border-color:  #e5eaf5;

  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.82);
  --glass-border:  rgba(255, 255, 255, 0.35);
  --glass-shadow:  0 8px 32px rgba(5, 12, 156, 0.10);
  --glass-blur:    blur(16px);

  /* Shadows */
  --shadow-sm:     0 4px 12px rgba(5, 12, 156, 0.06);
  --shadow-md:     0 10px 30px rgba(5, 12, 156, 0.10);
  --shadow-lg:     0 20px 50px rgba(5, 12, 156, 0.14);
  --shadow-xl:     0 30px 70px rgba(5, 12, 156, 0.18);
  --shadow-hover:  0 20px 45px rgba(53, 114, 239, 0.20);

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-accent:   linear-gradient(135deg, var(--accent-1) 0%, var(--secondary) 100%);
  --grad-hero:     linear-gradient(135deg, #f0f4ff 0%, #ddeeff 60%, #c8e6ff 100%);

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-py:    110px;
  --border-radius: 18px;
  --radius-sm:     10px;
  --radius-pill:   50px;

  /* Transitions */
  --ease:          cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition:    all 0.35s var(--ease);
  --transition-lg: all 0.55s var(--ease);
}

/* ---------------------------------- */
/* RESET & BASE                       */
/* ---------------------------------- */
* {
  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: border-box; }

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body-text);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { transition: var(--transition); }

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Prevent nested row margins from causing horizontal card overflow */
.stats-section .row,
.contact-form-card .row {
  margin-left: 0;
  margin-right: 0;
}

/* ---------------------------------- */
/* SCROLLBAR                          */
/* ---------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* ---------------------------------- */
/* SELECTION                          */
/* ---------------------------------- */
::selection { background: var(--accent-2); color: var(--primary); }

/* ---------------------------------- */
/* UTILITIES                          */
/* ---------------------------------- */
.tracking-wider { letter-spacing: 0.12em; }
.text-primary-custom { color: var(--primary) !important; }
.bg-surface { background-color: var(--surface); }

/* ---------------------------------- */
/* NAVBAR — GLASSMORPHISM             */
/* ---------------------------------- */
.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--body-text) !important;
  transition: var(--transition);
  padding: 6px 4px !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 10px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.dropdown-item {
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--body-text);
  padding: 10px 16px;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--surface);
  color: var(--primary);
  padding-left: 22px;
}

/* ---------------------------------- */
/* BUTTONS                            */
/* ---------------------------------- */
.btn-premium {
  background: var(--grad-primary);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 34px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(53, 114, 239, 0.35);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(53, 114, 239, 0.42);
  color: var(--white);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-outline-premium {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 11px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-outline-premium:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 12, 156, 0.25);
}

/* ---------------------------------- */
/* HERO SECTION                       */
/* ---------------------------------- */
.hero-section {
  position: relative;
  padding: 150px 0 90px;
  background: var(--grad-hero);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Animated floating blobs */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape-blob {
  position: absolute;
  filter: blur(72px);
  opacity: 0.45;
  border-radius: 50%;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-1), transparent 70%);
  top: -160px; right: -100px;
  animation: blobFloat 14s ease-in-out infinite;
}

.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -80px; left: -80px;
  animation: blobFloat 18s ease-in-out infinite reverse;
}

.blob-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(53,114,239,0.4), transparent 70%);
  top: 30%; left: 40%;
  animation: blobFloat 12s ease-in-out infinite 3s;
}

.hero-content { position: relative; z-index: 1; }

/* Typing badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-text);
  max-width: 520px;
  margin-bottom: 42px;
  line-height: 1.8;
}

/* Hero image */
.hero-image-wrapper { position: relative; }

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: var(--shadow-xl);
}

/* Floating cards on hero image */
.floating-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  min-width: 180px;
}

.floating-card h6 { margin: 0; font-weight: 700; font-size: 0.9rem; }
.floating-card small { color: var(--muted-text); font-size: 0.75rem; }

.fc-1 { top: 8%; left: -8%; animation: floatCard 7s ease-in-out infinite; }
.fc-2 { bottom: 8%; right: -6%; animation: floatCard 9s ease-in-out infinite reverse; }

/* ---------------------------------- */
/* STATS SECTION                      */
/* ---------------------------------- */
.stats-section {
  background: var(--grad-primary);
  padding: 64px 48px;
  border-radius: calc(var(--border-radius) * 1.5);
  box-shadow: var(--shadow-xl);
  margin-top: -36px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item { position: relative; z-index: 1; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-1);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.stat-divider {
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* ---------------------------------- */
/* SECTION DEFAULTS                   */
/* ---------------------------------- */
.section-padding { padding: var(--section-py) 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--dark-text);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

/* ---------------------------------- */
/* CARDS — PREMIUM SOFT CARDS         */
/* ---------------------------------- */
.soft-card {
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-lg);
  overflow: hidden;
}

.soft-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

/* Icon wrappers in feature cards */
.icon-wrapper {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(58, 190, 249, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 22px;
  transition: var(--transition);
}

.soft-card:hover .icon-wrapper {
  background: var(--grad-primary);
  color: var(--white);
  transform: scale(1.08) rotate(-5deg);
}

/* Programme cards */
.programme-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: var(--transition-lg);
  height: 100%;
}

.programme-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.programme-card-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.programme-card .btn {
  margin-top: auto;
}

/* ---------------------------------- */
/* WHY-CHOOSE-US FEATURE ITEMS        */
/* ---------------------------------- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(53,114,239,0.28);
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(-8deg);
}

.feature-content h5 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature-content p { font-size: 0.9rem; color: var(--muted-text); margin: 0; }

/* ---------------------------------- */
/* FACULTY CARDS                      */
/* ---------------------------------- */
.faculty-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 320px;
  cursor: pointer;
}

.faculty-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.faculty-card:hover .faculty-img {
  transform: scale(1.08);
}

.faculty-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 12, 156, 0.88) 0%, rgba(5, 12, 156, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: var(--white);
  transition: var(--transition);
}

.faculty-card:hover .faculty-overlay {
  background: linear-gradient(to top, rgba(5, 12, 156, 0.96) 0%, rgba(5, 12, 156, 0.4) 65%, rgba(5,12,156,0.05) 100%);
}

.faculty-overlay h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--white); }

.faculty-explore {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.faculty-card:hover .faculty-explore {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- */
/* ADMISSION TIMELINE                 */
/* ---------------------------------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.3), transparent);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

.timeline-item.left {
  flex-direction: row;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item.right {
  flex-direction: row;
  padding-left: calc(50% + 40px);
}

.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  background: var(--grad-primary);
  border: 3px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.timeline-content {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.timeline-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--muted-text);
  margin: 0;
}

/* ---------------------------------- */
/* RESEARCH STEPS (PG WORKFLOW)       */
/* ---------------------------------- */
.research-step {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.research-step:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.step-badge {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  background: var(--grad-primary);
  margin-top: 2px;
}

/* ---------------------------------- */
/* MASONRY CAMPUS GALLERY             */
/* ---------------------------------- */
.masonry-grid {
  columns: 3 260px;
  column-gap: 18px;
}

.masonry-item {
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  position: relative;
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,12,156,0.55) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.masonry-item:hover::after { opacity: 1; }

.masonry-item img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.masonry-item:hover img {
  transform: scale(1.06);
}

/* ---------------------------------- */
/* NEWS / BLOG CARDS                  */
/* ---------------------------------- */
.news-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-lg);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.news-card:hover img { transform: scale(1.06); }

.news-card-body { padding: 24px; }

.news-read-more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-read-more:hover { color: var(--primary); gap: 10px; }

/* ---------------------------------- */
/* TESTIMONIAL CARDS                  */
/* ---------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-lg);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  color: var(--accent-2);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-2);
}

.testimonial-stars { color: #f59e0b; }

.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--grad-primary);
  color: var(--white);
}

.testimonial-card .d-flex.align-items-center {
  margin-top: auto;
}

/* ---------------------------------- */
/* FAQ ACCORDION                      */
/* ---------------------------------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-accordion .accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--dark-text);
  background: var(--white);
  font-size: 0.95rem;
  padding: 18px 22px;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--surface);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus { box-shadow: none; }

.faq-accordion .accordion-body {
  color: var(--muted-text);
  font-size: 0.95rem;
  padding: 0 22px 20px;
  background: var(--surface);
}

/* ---------------------------------- */
/* CONTACT SECTION                    */
/* ---------------------------------- */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-item:hover .contact-icon-wrap {
  background: var(--grad-primary);
  color: var(--white);
  border-color: transparent;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form-card .form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(53, 114, 239, 0.12);
  background: var(--white);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 500;
  gap: 10px;
}

/* ---------------------------------- */
/* FOOTER                             */
/* ---------------------------------- */
.premium-footer {
  background: linear-gradient(175deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(58,190,249,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 3px;
  background: var(--accent-1);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--accent-1);
  opacity: 0;
  margin-left: -10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-links a:hover::before {
  opacity: 1;
  margin-left: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-newsletter .form-control {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 12px 20px;
  font-size: 0.9rem;
}

.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter .form-control:focus {
  background: rgba(255,255,255,0.16);
  box-shadow: none;
  border-color: var(--accent-1);
}

.footer-newsletter .btn {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--accent-1);
  color: var(--primary);
  font-weight: 700;
  border: none;
  padding: 12px 22px;
}

.footer-bottom {
  background: rgba(0,0,0,0.18);
  padding: 20px 0;
  margin-top: 60px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--accent-1); }

/* ---------------------------------- */
/* BACK-TO-TOP BUTTON                 */
/* ---------------------------------- */
#backToTop {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--grad-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(53,114,239,0.4);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(53,114,239,0.5);
}

/* ---------------------------------- */
/* SCROLL REVEAL ANIMATIONS           */
/* ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ---------------------------------- */
/* KEYFRAME ANIMATIONS                */
/* ---------------------------------- */
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  33%  { transform: translateY(-30px) translateX(15px) scale(1.04); }
  66%  { transform: translateY(15px) translateX(-15px) scale(0.97); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------------------------------- */
/* LOADING SKELETON (optional)        */
/* ---------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0f4ff 25%, #e5eeff 50%, #f0f4ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ---------------------------------- */
/* RESPONSIVE DESIGN SYSTEM           */
/* ---------------------------------- */
:root {
  --section-py: clamp(60px, 8vw, 110px);
}

/* Base Mobile Styles (<576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }
  .stats-section {
    padding: 30px 16px;
  }
  .stat-number {
    font-size: 1.8rem !important; /* Scale down to prevent number wraps */
  }
  .contact-form-card {
    padding: 20px;
  }
  .faq-accordion .accordion-button {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
  .faq-accordion .accordion-body {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }
  /* mobile nav collapse menu drawer */
  .navbar-collapse {
    padding: 16px !important;
    margin-top: 8px !important;
    border-radius: 12px !important;
  }
  /* Admission Advantages mobile card padding scaling */
  section[aria-label="Admission Advantages"] .row > div > div {
    padding: 20px 12px !important;
  }
  section[aria-label="Admission Advantages"] h6 {
    font-size: 0.9rem !important;
  }
  section[aria-label="Admission Advantages"] p {
    font-size: 0.75rem !important;
  }
  /* Campus gallery explicit columns */
  .masonry-grid {
    columns: 1 !important;
  }
}

/* Mobile Landscape (>=576px) */
@media (min-width: 576px) {
  .masonry-grid {
    columns: 2 200px;
  }
}

/* Tablet Portrait (>=768px) */
@media (min-width: 768px) {
  .masonry-grid {
    columns: 2 240px;
  }
}

/* Tablet & Mobile Layouts (max-width: 991.98px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: auto;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image {
    height: 340px;
    margin-top: 40px;
  }
  .fc-1, .fc-2 {
    display: none;
  }
  .stats-section {
    margin-top: 0;
    border-radius: var(--border-radius);
    padding: 40px 24px; /* comfortable tablet padding */
  }

  /* Mobile Navbar Drawer Overlay */
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
    transition: all 0.3s var(--ease);
  }
  .navbar-nav {
    gap: 10px;
    margin-bottom: 20px !important;
  }
  .nav-link {
    font-size: 1.02rem;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm);
  }
  .nav-link:hover, .nav-link.active {
    background: var(--surface);
    color: var(--primary) !important;
    padding-left: 20px !important;
  }
  .nav-link::after {
    display: none;
  }
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    background: rgba(5, 12, 156, 0.03);
    border: 1px solid var(--border-color);
    box-shadow: none;
    margin-top: 8px !important;
    transform: none !important;
    padding: 8px;
    width: 100% !important;
  }
  .navbar-collapse .dropdown-item {
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .navbar-toggler {
    transition: transform 0.3s ease;
  }
  .navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
  }

  /* Mobile timeline layout leaks overrides */
  .timeline::before {
    left: 21px;
  }
  .timeline-item {
    flex-direction: column;
    padding: 0 0 0 60px;
  }
  .timeline-item.left, .timeline-item.right {
    padding-left: 60px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
  }
  .timeline-node {
    left: 0;
    top: 0;
    transform: none;
  }
  .timeline-content {
    max-width: 100%;
  }
}

/* Large Tablet / Desktop (>=992px) */
@media (min-width: 992px) {
  .masonry-grid {
    columns: 3 260px;
  }
  .hero-section {
    padding-top: 160px;
    padding-bottom: 90px;
  }
}

/* Laptop Breakpoint Overlaps (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .hero-image {
    height: 400px;
  }
  .fc-1 {
    left: -2%;
  }
  .fc-2 {
    right: -2%;
  }
}
