/* =====================================================
   SANJEEVNI INSTITUTE — INSTITUTIONAL DESIGN SYSTEM
   ===================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #002D62;
  --primary-light: #004B93;
  --primary-dark: #001A3B;
  --secondary: #0EA5E9;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #A38020;
  --accent: #16A34A;
  --accent-light: #22c55e;
  --bg: #F8FAFC;
  --bg-warm: #FAF8F5;
  --white: #FFFFFF;
  --dark: #0F172A;
  --gray: #64748B;
  --light-border: #E2E8F0;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 24px rgba(0, 45, 98, 0.07);
  --shadow-lg: 0 20px 50px rgba(0, 45, 98, 0.12);
  --shadow-xl: 0 35px 90px rgba(0, 45, 98, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --font-academic: 'Playfair Display', 'Outfit', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* --- Loader --- */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: white;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo span {
  color: #7dd3fc;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar-inner {
  height: 100%;
  background: white;
  border-radius: 99px;
  animation: load 1.8s ease-in-out infinite;
}

@keyframes load {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Navbar --- */
#navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 0.75rem 0;
  background: rgba(0, 45, 98, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 87, 184, 0.15);
  padding: 0.5rem 0;
}

#navbar.scrolled .nav-link {
  color: var(--dark) !important;
}

#navbar.scrolled .nav-logo-text {
  color: var(--primary) !important;
}

#navbar.scrolled .nav-logo-sub {
  color: var(--gray) !important;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 87, 184, 0.15);
}

.nav-logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 87, 184, 0.4);
}

.nav-logo-icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.nav-logo-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.3px;
  transition: var(--transition);
}

.nav-logo-sub {
  font-size: 0.76rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

#navbar.scrolled .nav-link:hover, #navbar.scrolled .nav-link.active {
  background: rgba(0, 87, 184, 0.08);
  color: var(--primary);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  border: 1px solid var(--light-border);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  display: block;
  animation: dropDown 0.2s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: rgba(0, 87, 184, 0.06);
  color: var(--primary);
  padding-left: 1.25rem;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(0, 87, 184, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 87, 184, 0.4) !important;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary)) !important;
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

#navbar.scrolled .nav-mobile-btn span {
  background: var(--dark);
}

/* Mobile Nav */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile-menu a {
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--light-border);
  display: block;
}

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--light-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}

.btn:active::before {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 87, 184, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 87, 184, 0.45);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 87, 184, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(22, 163, 74, 0.45);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* --- Section Layout --- */
.section {
  padding: 3.5rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 87, 184, 0.08);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid var(--light-border);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 87, 184, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

/* --- Feature Card --- */
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--light-border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 87, 184, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* --- Course Card --- */
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 87, 184, 0.2);
}

.course-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.course-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-card-body {
  padding: 1.5rem;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.course-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray);
}

.course-card-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--light-border);
}

/* --- Stats --- */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 3px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.2);
  z-index: 1;
}

.timeline-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  max-width: 400px;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Accordion --- */
.accordion-item {
  background: white;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.accordion-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.accordion-icon {
  width: 28px;
  height: 28px;
  background: rgba(0, 87, 184, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--primary);
}

.accordion-item.active .accordion-icon {
  background: var(--primary);
  color: white;
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
  max-height: 500px;
}

.accordion-content {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: calc(100vh - 116px);
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero {
    height: calc(100vh - 100px);
    min-height: 500px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 75, 0.82) 0%, rgba(0, 87, 184, 0.5) 45%, rgba(15, 23, 42, 0.92) 100%), url('../images/main hero pic.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: white;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Float Labels --- */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--dark);
  background: white;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 87, 184, 0.1);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, #001f5c 0%, #0057B8 60%, #0ea5e9 100%);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-header-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.breadcrumb a, .breadcrumb span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

.page-header-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-header-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.75rem;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(135deg, #030f2e 0%, #0a1f4e 50%, #0d2b6b 100%);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1.25fr 1.25fr 1.25fr 1.75fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.25rem 0;
  color: rgba(255,255,255,0.6);
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}

.footer-links a svg {
  color: var(--secondary);
  opacity: 0.8;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.footer-social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: white;
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
  border-color: var(--secondary);
  background: rgba(255,255,255,0.1);
}

.newsletter-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 87, 184, 0.4);
}

/* --- WhatsApp Float --- */
#whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  z-index: 990;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

#whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: white;
}

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

/* --- Back To Top --- */
#back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 87, 184, 0.4);
  z-index: 990;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  color: white;
}

#back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 87, 184, 0.5);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: #f59e0b;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

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

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.2;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Swiper Customization --- */
.swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.3;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 44px !important;
  height: 44px !important;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--primary) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.875rem !important;
  font-weight: 700;
}

/* --- Gallery --- */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,87,184,0.8) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* --- Lightbox --- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* --- AOS Override --- */
[data-aos] {
  transition-property: opacity, transform !important;
}

/* --- Tag / Badge --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-primary { background: rgba(0, 87, 184, 0.1); color: var(--primary); }
.tag-green { background: rgba(22, 163, 74, 0.1); color: var(--accent); }
.tag-orange { background: rgba(234, 88, 12, 0.1); color: #ea580c; }

/* --- Table --- */
.table-premium {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-premium th {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

.table-premium td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  color: var(--dark);
  border-bottom: 1px solid var(--light-border);
}

.table-premium tr:last-child td {
  border-bottom: none;
}

.table-premium tr:hover td {
  background: rgba(0, 87, 184, 0.03);
}

.table-premium tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.8);
}

/* --- Dividers --- */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --- Map Wrapper --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

/* --- Responsive Grid Utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.hero-grid-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 800px; margin: 0 auto; padding: 1.5rem; width: 100%; height: 100%; }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }
.text-white { color: white; }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }

/* --- Spacing Utilities --- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-container {
    padding: 0 1rem;
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  .nav-logo-text {
    font-size: 1.2rem;
  }
  .nav-logo-sub {
    font-size: 0.65rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-mobile-menu { display: flex; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid-container { padding: 1.5rem; }

  /* Allow grid items to shrink below min-content width */
  .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > *, .grid-1-2 > *, .grid-2-1 > *, .hero-grid-container > * {
    min-width: 0;
  }

  /* Prevent long email addresses from causing overflow */
  .contact-info-text p {
    word-break: break-all;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline::before { left: 1.5rem; }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 4.5rem;
    padding-right: 0;
  }
  .timeline-dot {
    left: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .grid-2, .grid-3, .grid-4, .grid-5, .grid-1-2, .grid-2-1, .hero-grid-container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
  }
  .footer-grid > div:nth-child(2) {
    grid-column: 1 / 2;
  }
  .footer-grid > div:nth-child(3) {
    grid-column: 2 / 3;
  }
  .footer-grid > div:nth-child(4) {
    grid-column: 1 / 2;
  }
  .footer-grid > div:nth-child(5) {
    grid-column: 2 / 3;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .timeline-card { max-width: 100%; }

  .newsletter-form {
    display: flex;
    flex-direction: row;
    max-width: 360px;
    gap: 0.5rem;
  }
  .newsletter-input {
    padding: 0.6rem 0.875rem;
    font-size: 0.8rem;
  }
  .newsletter-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.8rem;
  }

  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.9rem 1.75rem; font-size: 0.9rem; }
  .page-header { padding: 7rem 0 3.5rem; }

  .nav-logo-img {
    height: 48px;
    padding: 3px;
    border-radius: 8px;
  }

  .nav-logo-text {
    font-size: 1.28rem;
  }

  .nav-logo-sub {
    max-width: 190px;
    white-space: normal;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  /* Phone Footer Premium Layout Styles */
  .footer {
    padding: 3.5rem 0 1.5rem !important;
    text-align: center !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  /* Brand column: Centered, full width */
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    border: none !important;
    padding-bottom: 0.5rem !important;
  }
  
  .footer-grid > div:first-child .nav-logo {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin: 0 auto 1.25rem !important;
  }
  
  .footer-grid > div:first-child .nav-logo .nav-logo-img {
    margin-right: 0 !important;
    margin-bottom: 0.25rem !important;
  }

  .footer-grid > div:first-child .nav-logo-text {
    text-align: center !important;
    font-size: 1.35rem !important;
  }

  .footer-grid > div:first-child .nav-logo-sub {
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 240px !important;
  }
  
  .footer-grid > div:first-child .footer-brand-desc {
    text-align: center !important;
    margin: 0 auto 1.5rem !important;
    max-width: 320px;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }
  
  .footer-grid > div:first-child .newsletter-form {
    flex-direction: column !important;
    margin: 0.75rem auto 0 !important;
    max-width: 320px !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .footer-grid > div:first-child .newsletter-input {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
  }

  .footer-grid > div:first-child .newsletter-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
  }
  
  /* All card columns in mobile view */
  .footer-card {
    grid-column: 1 / -1 !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px;
    padding: 1.5rem 1.25rem !important;
    margin-top: 0 !important;
  }
  
  .footer-card .footer-col-title {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }
  
  .footer-card .footer-col-title::after {
    left: 0 !important;
    transform: none !important;
  }
  
  .footer-card .footer-links a,
  .footer-card .footer-contact-item {
    font-size: 0.85rem !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 0.875rem !important;
  }
  
  .footer-card .footer-links a:last-child,
  .footer-card .footer-contact-item:last-child {
    margin-bottom: 0 !important;
  }
  
  .footer-bottom {
    padding: 1.5rem 0 !important;
    gap: 0.875rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  
  .footer-bottom p {
    font-size: 0.78rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    line-height: 1.4 !important;
  }
  
  .footer-bottom div, .footer-bottom div[style] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.4rem 1rem !important;
    margin-top: 0.2rem !important;
  }
  
  .footer-bottom a {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
  }
}

/* ====== MOBILE FLOATING ACTION TOOLBAR ====== */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.6rem 0.75rem;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .mobile-floating-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0.5rem;
  }
  #whatsapp-float {
    display: none !important;
  }
  #back-top {
    bottom: 5rem !important;
  }
  body {
    padding-bottom: 60px;
  }
}

.mobile-float-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: #E2E8F0;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-float-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-float-btn.apply-highlight {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #0A192F !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.mobile-float-btn.apply-highlight svg {
  color: #0A192F;
}

/* Institutional Badge Header Styling */
.academic-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #D4AF37;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.heading-academic {
  font-family: var(--font-academic);
  letter-spacing: -0.5px;
}

/* =====================================================
   LIGHTWEIGHT 60FPS SCROLL MOTION & ENTRANCE SYSTEM
   ===================================================== */

/* Smooth Native Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Top Scroll Reading Progress Indicator */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--gold) 50%, var(--accent) 100%);
  z-index: 100000;
  transform-origin: 0% 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* Base Frame Element State Before Entering Viewport */
.scroll-frame {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Lightweight Entrance Direction Variants */
.scroll-frame-fade-up {
  transform: translate3d(0, 32px, 0);
}

.scroll-frame-fade-down {
  transform: translate3d(0, -32px, 0);
}

.scroll-frame-fade-left {
  transform: translate3d(-35px, 0, 0);
}

.scroll-frame-fade-right {
  transform: translate3d(35px, 0, 0);
}

.scroll-frame-zoom-in {
  transform: scale3d(0.95, 0.95, 1) translate3d(0, 20px, 0);
}

.scroll-frame-zoom-out {
  transform: scale3d(1.04, 1.04, 1) translate3d(0, 20px, 0);
}

.scroll-frame-flip-x {
  transform: translate3d(0, 30px, 0);
}

/* Active State When Frame Crosses Viewport Threshold */
.scroll-frame.in-view {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1) !important;
}

/* Stagger Delay Rules for Multi-Element Grids */
.stagger-parent > .scroll-frame:nth-child(1), .scroll-frame.stagger-1 { transition-delay: 0.04s; }
.stagger-parent > .scroll-frame:nth-child(2), .scroll-frame.stagger-2 { transition-delay: 0.09s; }
.stagger-parent > .scroll-frame:nth-child(3), .scroll-frame.stagger-3 { transition-delay: 0.14s; }
.stagger-parent > .scroll-frame:nth-child(4), .scroll-frame.stagger-4 { transition-delay: 0.19s; }
.stagger-parent > .scroll-frame:nth-child(5), .scroll-frame.stagger-5 { transition-delay: 0.24s; }
.stagger-parent > .scroll-frame:nth-child(6), .scroll-frame.stagger-6 { transition-delay: 0.29s; }
.stagger-parent > .scroll-frame:nth-child(7), .scroll-frame.stagger-7 { transition-delay: 0.34s; }
.stagger-parent > .scroll-frame:nth-child(8), .scroll-frame.stagger-8 { transition-delay: 0.39s; }

/* Dynamic Floating Motion */
.scroll-float-slow {
  animation: floatSlow 6s ease-in-out infinite alternate;
}

.scroll-float-fast {
  animation: floatFast 4s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -12px, 0); }
}

@keyframes floatFast {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -6px, 0); }
}

/* Card Motion Elevation on Hover after Revealed */
.scroll-frame.in-view.card-interactive {
  transition: opacity 0.6s ease-out, transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.scroll-frame.in-view.card-interactive:hover {
  transform: translate3d(0, -6px, 0) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Reduced Motion Accessibility Overrides */
@media (prefers-reduced-motion: reduce) {
  #scroll-progress-bar {
    display: none !important;
  }
  .scroll-frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =====================================================
   3D PHOTO CAROUSEL FEATURE
   ===================================================== */
.td-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.96) 75%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 3.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 45, 98, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.td-carousel-stage {

  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}

.td-carousel-cylinder {
  position: relative;
  width: 220px;
  height: 290px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  cursor: grab;
  will-change: transform;
}

.td-carousel-cylinder:active, .td-carousel-cylinder.is-dragging {
  cursor: grabbing;
}

.td-carousel-card {
  position: absolute;
  inset: 0;
  width: 220px;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  background: #0F172A;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.td-carousel-card:hover {
  border-color: #0EA5E9;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.7);
}

.td-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.td-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 0.75rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {

  .td-carousel-wrapper {
    height: 440px;
    border-radius: 20px;
  }
  .td-carousel-stage {
    height: 310px;
  }
  .td-carousel-cylinder, .td-carousel-card {
    width: 160px;
    height: 220px;
  }
}

/* =====================================================
   HOW IT WORKS / ADMISSION PROCESS PIN CARDS SYSTEM
   ===================================================== */
.hiw-section {
  position: relative;
  background: white;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hiw-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(#000 1px, transparent 1px);
  background-size: 100% 32px;
  margin-top: 4px;
}

.hiw-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 1130px;
}

.hiw-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hiw-dashed-line {
  stroke: #94A3B8;
  stroke-width: 2.5px;
  stroke-dasharray: 8 6;
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: hiwDashLoop 4s linear infinite;
}

@keyframes hiwDashLoop {
  to {
    stroke-dashoffset: -140px;
  }
}

.hiw-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  z-index: 10;
}

.hiw-card-wrapper:hover {
  z-index: 30 !important;
  transform: scale(1.06) !important;
}

.hiw-card-outer {
  background: #FFFFFF;
  padding: 0.6rem;
  border-radius: 25px;
  box-shadow: 0px 10px 25px 0px rgba(211, 211, 211, 0.75);
  border: 1px solid #F1F5F9;
}

.hiw-card-inner {
  border-radius: 15px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid;
}

/* Color Themes */
.hiw-theme-orange .hiw-card-inner {
  background-color: #FFF7ED;
  border-color: #FFEDD5;
}
.hiw-theme-orange .hiw-card-number {
  color: #F97316;
}

.hiw-theme-blue .hiw-card-inner {
  background-color: #EFF6FF;
  border-color: #DBEAFE;
}
.hiw-theme-blue .hiw-card-number {
  color: #2563EB;
}

.hiw-theme-purple .hiw-card-inner {
  background-color: #FAF5FF;
  border-color: #F3E8FF;
}
.hiw-theme-purple .hiw-card-number {
  color: #9333EA;
}


.hiw-card-number {
  font-family: 'Outfit', 'Comic Sans MS', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.hiw-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.hiw-card-desc {
  color: #64748B;
  font-size: 0.875rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* Desktop Positions & Rotations */
@media (min-width: 768px) {
  .hiw-pos-1 { position: absolute; top: 0; left: 15%; transform: rotate(8deg); }
  .hiw-pos-2 { position: absolute; top: 120px; right: 15%; transform: rotate(-8deg); }
  .hiw-pos-3 { position: absolute; top: 450px; left: 15%; transform: rotate(8deg); }
  .hiw-pos-4 { position: absolute; top: 570px; right: 10%; transform: rotate(-8deg); }
  .hiw-pos-5 { position: absolute; top: 850px; left: 15%; transform: rotate(8deg); }
}

/* Mobile Responsive Adjustments (<767px) */
@media (max-width: 767px) {
  .hiw-section {
    padding: 3.5rem 1rem;
  }
  
  .hiw-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    align-items: center;
    position: relative;
    padding: 1rem 0;
  }

  /* Vertical Dashed Line Down Center on Mobile */
  .hiw-stage::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 50%;
    width: 2.5px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(to bottom, #94A3B8 0px, #94A3B8 8px, transparent 8px, transparent 14px);
    z-index: 1;
    opacity: 0.7;
  }

  .hiw-path-svg {
    display: none;
  }

  .hiw-card-wrapper {
    max-width: 290px;
    width: 90%;
    z-index: 5;
    transition: transform 0.3s ease;
  }

  /* Alternating Playful Card Rotations & Offsets on Phone View */
  .hiw-pos-1 { transform: rotate(4.5deg) translateX(-8px); }
  .hiw-pos-2 { transform: rotate(-4.5deg) translateX(8px); }
  .hiw-pos-3 { transform: rotate(4deg) translateX(-6px); }
  .hiw-pos-4 { transform: rotate(-4deg) translateX(8px); }
  .hiw-pos-5 { transform: rotate(4.5deg) translateX(-6px); }

  .hiw-card-outer {
    box-shadow: 0px 8px 22px 0px rgba(15, 23, 42, 0.12);
  }

  .hiw-card-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hiw-card-title {
    font-size: 1.22rem;
  }

  .hiw-card-desc {
    font-size: 0.825rem;
    line-height: 1.4;
  }
}







