/* ============================================================
   Kothiwal College of Nursing — Master Stylesheet
   Premium Medical-Educational Design System
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Colors */
  --primary:        #1A2432; /* Deep Navy Blue from Bhalchandra */
  --primary-dark:   #0E141C;
  --primary-light:  #2A3A4E;
  --secondary:      #8F1D2C; /* Institutional Maroon from Bhalchandra */
  --secondary-light:#A83241;
  --accent:         #FFB81C; /* Institutional Gold from Bhalchandra */
  --accent-light:   #FFD166;
  --accent-dark:    #D49500;
  --accent-bg:      #FFF9EB;
  --light-bg:       #F8FAFC;
  --section-bg:     #F1F5F9;
  --white:          #ffffff;
  --text:           #1A2432;
  --text-secondary: #475569;
  --muted:          #64748B;
  --border:         #E2E8F0;
  --success:        #10B981;
  --danger:         #EF4444;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #1A2432 0%, #2A3A4E 100%);
  --gradient-secondary: linear-gradient(135deg, #8F1D2C 0%, #A83241 100%);
  --gradient-accent:    linear-gradient(135deg, #FFB81C 0%, #FFD166 100%);
  --gradient-theme:     linear-gradient(90deg, #1A2432 0%, #8F1D2C 100%); /* New Bhalchandra Gradient */
  --gradient-hero:      linear-gradient(135deg, rgba(14,20,28,0.95) 0%, rgba(26,36,50,0.90) 50%, rgba(143,29,44,0.85) 100%);
  --gradient-card:      linear-gradient(160deg, #ffffff 0%, #F8FAFC 100%);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(26,36,50,0.06);
  --shadow-md:  0 8px 30px rgba(26,36,50,0.10);
  --shadow-lg:  0 15px 50px rgba(26,36,50,0.15);
  --shadow-xl:  0 25px 70px rgba(26,36,50,0.20);
  --shadow-gold:0 8px 30px rgba(255,184,28,0.35);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-py: clamp(40px, 8vw, 80px);
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; }

a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ============================================================
   UTILITIES
   ============================================================ */
.section-py   { padding: var(--section-py) 0; }
.bg-light-blue { background: var(--light-bg); }
.bg-section   { background: var(--section-bg); }
.bg-theme-blue {
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.bg-theme-blue .section-heading h2,
.bg-theme-blue .about-preview-content h2,
.bg-theme-blue .recognition-text-panel .panel-title {
  color: var(--white) !important;
}

.bg-theme-blue .section-heading p,
.bg-theme-blue .about-preview-content div p {
  color: rgba(255,255,255,0.8) !important;
}

.bg-theme-blue .section-divider {
  background: var(--gradient-accent);
}

.text-accent  { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.text-muted-custom   { color: var(--muted); }

.badge-accent {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ============================================================
   SECTION HEADING STYLE
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}

.section-heading .badge-accent { margin-bottom: 14px; }

.section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--secondary); /* Switched to Institutional Maroon */
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 4px;
  margin: 16px auto 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(13,59,94,0.3);
  text-decoration: none;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,59,94,0.4);
  color: var(--white);
}

.btn-accent-custom {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
}
.btn-accent-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.45);
  color: var(--primary-dark);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 11px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--gradient-theme); /* Navy to Maroon Gradient */
  padding: 14px 0; /* Increased vertical padding */
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1060;
}

.top-bar a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-right span {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.main-header {
  background: var(--white);
  transition: var(--transition-slow);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

#mainNavbar {
  background: transparent;
  padding: 0;
  height: 90px;
  display: flex;
  align-items: center;
  transition: var(--transition-slow);
  position: relative;
}

/* On scroll, we just shrink the navbar height */
.main-header.scrolled #mainNavbar {
  height: 80px;
}

.main-header.scrolled .top-bar {
  display: none !important;
}

#mainNavbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  height: 100%;
}

.navbar-logo {
  width: 290px; 
  height: auto;
  margin-top: 15px; /* Centered for new size */
  transition: var(--transition-slow);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  flex-shrink: 0;
}

#mainNavbar.scrolled .navbar-logo {
  width: 240px; 
  margin-top: 10px; 
}

/* Responsive Logo Scaling */
@media (max-width: 991px) {
  .navbar-logo { width: 190px; margin: 0; }
  #mainNavbar.scrolled .navbar-logo { width: 160px; margin: 0; }
  #mainNavbar { height: 100px !important; }
  #mainNavbar.scrolled { height: 85px !important; }
}

@media (max-width: 576px) {
  .navbar-logo { width: 160px; margin: 0; }
  #mainNavbar.scrolled .navbar-logo { width: 140px; margin: 0; }
}

.brand-text-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.brand-text-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

#mainNavbar .nav-link {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
  color: var(--secondary) !important;
  background: rgba(143, 29, 44, 0.05);
}

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

.nav-cta {
  background: var(--gradient-accent);
  color: var(--primary-dark) !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.5) !important;
  color: var(--primary-dark) !important;
}

.navbar-toggler {
  border: 1.5px solid var(--border) !important;
  padding: 6px 10px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826,36,50,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slider img {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,107,138,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(8,31,51,0.35) 0%, rgba(13,59,94,0.25) 45%, rgba(22,77,122,0.35) 100%);
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 36px 36px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 80px;
}

/* --- Hero Text Animations --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

#heroTextSlider .carousel-item.active .hero-eyebrow {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#heroTextSlider .carousel-item.active .hero-title {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
  opacity: 0;
}

#heroTextSlider .carousel-item.active .hero-subtitle {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
  opacity: 0;
}

#heroTextSlider .carousel-item.active .hero-actions {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
  opacity: 0;
}

/* Ensure outgoing text disappears quickly to prevent overlap */
#heroTextSlider .carousel-item-next.carousel-item-start *,
#heroTextSlider .carousel-item-prev.carousel-item-end *,
#heroTextSlider .carousel-item.active.carousel-item-start *,
#heroTextSlider .carousel-item.active.carousel-item-end * {
  opacity: 0 !important;
  transition: opacity 0.3s ease-out;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent-light);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

/* Hero Stats Pills */
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat-pill {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 22px;
  text-align: center;
}

.hero-stat-pill .num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-light);
  display: block;
  line-height: 1;
}

.hero-stat-pill .label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: block;
}

/* Hero Image Panel */
.hero-image-panel {
  position: relative;
  z-index: 2;
}

.hero-card-float {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  text-align: center;
}

.hero-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-icon-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
}

.hero-icon-item:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-3px);
}

.hero-icon-item .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.hero-icon-item .name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.hero-badge-floating {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--primary-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   HERO QUICK QUERY FORM
   ============================================================ */
.hero-query-panel {
  position: relative;
  z-index: 2;
}

.hero-query-form-wrap {
  background: rgba(255, 255, 255, 0.05); /* Minimal tint */
  backdrop-filter: blur(2px); /* Much lower blur to show the slider */
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 32px 30px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none; /* Remove default focus ring since we use custom styling */
}

.hero-query-form-wrap:hover,
.hero-query-form-wrap:focus,
.hero-query-form-wrap:focus-within {
  background: rgba(13, 59, 94, 0.55); /* Darker on any interaction/click */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.hero-query-header {
  margin-bottom: 22px;
  text-align: center;
}

.hero-query-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.hero-query-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 6px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Enhanced visibility */
}

.hero-query-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9); /* Brighter */
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-query-success {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
}

.hero-query-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 576px) {
  .hero-query-row { grid-template-columns: 1fr; gap: 0; }
}

.hero-query-field {
  margin-bottom: 14px;
}

.hero-query-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9); /* Brighter */
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-query-field label span {
  color: var(--accent-light);
}

.hero-query-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-query-input-wrap i {
  position: absolute;
  left: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  pointer-events: none;
  z-index: 1;
}

.hero-query-input-wrap input,
.hero-query-input-wrap select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.hero-query-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hero-query-input-wrap input:focus,
.hero-query-input-wrap select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(201, 168, 76, 0.6);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.hero-query-input-wrap select option {
  background: #0d3b5e;
  color: var(--white);
}

.hero-query-submit {
  width: 100%;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  margin-top: 4px;
}

.hero-query-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.5);
}

.hero-query-note {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 12px 0 0;
}

.hero-query-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  opacity: 0.85;
}

.hero-query-footer i {
  margin-right: 6px;
  color: var(--accent);
}

@media (max-width: 576px) {
  .hero-query-footer { flex-direction: column; gap: 8px; align-items: center; }
}

@media (max-width: 576px) {
  .hero-query-row { grid-template-columns: 1fr; }
  .hero-query-form-wrap { padding: 24px 18px; }
}


.stats-section {
  background: var(--light-bg);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.stat-item {
  text-align: center;
  padding: 16px;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-item:last-child::after { display: none; }

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ============================================================
   COURSES SECTION
   ============================================================ */
.course-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
  z-index: 5;
}

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

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

.course-card-header {
  background: var(--gradient-primary);
  padding: 35px 30px 25px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.course-card-header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.course-icon {
  width: 55px;
  height: 55px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.course-card:hover .course-icon {
  background: var(--gradient-accent);
  color: var(--primary-dark) !important;
  border-color: transparent;
  transform: rotate(10deg);
}

.course-card-header h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.course-card-header .sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 400;
}

.course-card-body { 
  padding: 25px 30px 30px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(26, 36, 50, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.05);
}

.course-meta-item i { color: var(--secondary); font-size: 0.7rem; }

.course-card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.course-features li:last-child { border: none; }
.course-features .check { color: var(--success); font-size: 0.85rem; }

/* ============================================================
   ABOUT PREVIEW SECTION
   ============================================================ */
.about-preview {
  background: var(--white);
}

.about-preview-content { padding: 40px 0; }

.about-achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.achieve-item {
  background: var(--light-bg);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: var(--transition);
}

.achieve-item:hover {
  background: var(--accent-bg);
  box-shadow: var(--shadow-sm);
}

.achieve-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.achieve-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.about-image-wrapper {
  position: relative;
  padding: 32px;
}

.about-img-card {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Decorative circles removed so raw image can be seen without color distortion */

.about-main-icon {
  font-size: 6rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.about-img-card h4 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.about-img-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.accreditation-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--gradient-accent);
  padding: 12px 18px;
  border-radius: var(--border-radius);
  z-index: 3;
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.accreditation-badge .abb { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.accreditation-badge .abb-label { font-size: 0.65rem; color: var(--primary); font-weight: 600; letter-spacing: 0.5px; display: block; }

/* ============================================================
   FACILITIES SECTION
   ============================================================ */
.facility-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition-slow);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.facility-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-card-link:hover .facility-img-wrap img {
  transform: scale(1.1);
}

.facility-card-content {
  padding: 24px 20px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facility-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.3);
}

.facility-card-link:hover .facility-title {
  color: var(--secondary);
}

.facility-card-link:hover .facility-icon {
  transform: scale(1.1);
  transition: var(--transition);
}

.facility-card:hover::after { transform: scaleX(1); }

.facility-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.facility-card:hover .facility-icon-wrap {
  background: var(--gradient-accent);
  transform: rotate(5deg) scale(1.05);
}

.facility-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.facility-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   ADMISSION CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--gradient-accent);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--primary-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(8,31,51,0.72);
  font-size: 1rem;
  margin-bottom: 0;
}

.btn-cta-dark {
  background: var(--primary-dark);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(8,31,51,0.35);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.btn-cta-dark:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8,31,51,0.45);
  color: var(--white);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

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

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-light);
  font-family: Georgia, serif;
  margin-bottom: -10px;
  display: block;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.author-role { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--primary-dark);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.footer-brand { margin-bottom: 0; }
.footer-brand .brand-text-main { font-size: 1.1rem; }

.footer-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: -20px; /* Pull text even closer to logo */
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  margin-right: 8px;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}
.footer-links a .arrow { font-size: 0.7rem; color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-contact-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
}

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

.footer-bottom a { color: var(--accent); font-weight: 500; }

/* ============================================================
   INNER PAGE HERO (common for all inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, rgba(8,31,51,0.4) 0%, rgba(13,59,94,0.3) 100%),
              url('../images/campus/kothiwal_home.jpg') center/cover no-repeat;
  padding: 180px 0 100px; /* Increased padding for more height and visibility */
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 36px 36px;
}

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

.page-hero h1 {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.breadcrumb-custom li { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.breadcrumb-custom li a { color: var(--accent-light); }
.breadcrumb-custom li.active { color: var(--accent); }
.breadcrumb-custom .sep { color: rgba(255,255,255,0.35); }

/* ============================================================
   ABOUT PAGE SPECIFIC
   ============================================================ */
.mission-vision-card {
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: #0ea5e9; /* Skyblue */
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.vision-card {
  background: #14532d; /* Dark Green */
  box-shadow: 0 10px 30px rgba(20, 83, 45, 0.2);
}

.mission-vision-card h4 {
  color: var(--white) !important;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.mission-vision-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
  line-height: 1.8;
}

.mv-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.85;
}

.about-detail-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%;
}

.about-detail-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bg);
}

.affiliation-badge {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.affiliation-badge .aff-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.affiliation-badge h6 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.affiliation-badge p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Impact Cards */
.impact-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}

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

.impact-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.impact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-card:hover .impact-img img {
  transform: scale(1.1);
}

.impact-content {
  padding: 25px;
}

.impact-content h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.impact-content p {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   COURSES PAGE SPECIFIC
   ============================================================ */
.course-tab-btn {
  background: transparent;
  border: 2px solid var(--border);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.course-tab-btn.active,
.course-tab-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-md);
}



.fee-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fee-table th {
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 14px 20px;
  letter-spacing: 0.5px;
}

.fee-table td {
  padding: 12px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:nth-child(even) td { background: var(--light-bg); }
.fee-table tbody tr:hover td { background: var(--accent-bg); }

/* ============================================================
   FACILITIES PAGE SPECIFIC
   ============================================================ */
.facility-detail-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--transition-slow);
}

.facility-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.facility-detail-header {
  background: var(--gradient-primary);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.facility-detail-header::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.facility-detail-header .big-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.facility-detail-header h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.facility-detail-body { padding: 24px 28px; }

.facility-detail-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.facility-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facility-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.facility-features-list li:last-child { border: none; }
.facility-features-list .tick { color: var(--secondary); font-size: 0.9rem; }

/* ============================================================
   ADMISSIONS PAGE SPECIFIC
   ============================================================ */
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 48px;
  bottom: -20px;
  width: 2px;
  background: var(--border);
}

.step-item:last-child::before { display: none; }

.step-num {
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.step-content h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  margin-top: 10px;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Admission Form */
.admission-form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.form-card-header {
  background: var(--gradient-primary);
  padding: 28px 32px;
}

.form-card-header h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.form-card-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin: 6px 0 0;
}

.form-card-body { padding: 32px; }

.form-label-custom {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(26,107,138,0.12);
}

.form-control-custom::placeholder { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   CONTACT PAGE SPECIFIC
   ============================================================ */
.contact-info-card {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-info-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-info-text h6 {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--white);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  height: 100%;
}

.map-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 350px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
  background: #f0f4f8;
  font-family: var(--font-body);
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--primary-dark);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition);
}

.admin-sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-header h6 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.admin-nav-section {
  padding: 20px 16px 0;
}

.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 8px;
  margin-bottom: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  text-decoration: none;
}

.admin-nav-link .icon { font-size: 1rem; opacity: 0.85; }

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(201,168,76,0.15);
  color: var(--accent-light);
}

.admin-nav-link.active {
  background: rgba(201,168,76,0.2);
  color: var(--accent);
}

.admin-main {
  margin-left: 260px;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  padding: 16px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.admin-topbar h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.admin-content { padding: 28px; }

.admin-stat-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.admin-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.admin-stat-icon.blue   { background: #dbeafe; color: #1e40af; }
.admin-stat-icon.green  { background: #dcfce7; color: #15803d; }
.admin-stat-icon.gold   { background: var(--accent-bg); color: var(--accent-dark); }
.admin-stat-icon.red    { background: #fee2e2; color: #b91c1c; }

.admin-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.admin-table-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table-header h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-data-table th {
  background: var(--light-bg);
  padding: 12px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

.admin-data-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-data-table tr:last-child td { border-bottom: none; }
.admin-data-table tbody tr:hover td { background: var(--light-bg); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.status-badge.pending   { background:#fef3c7; color:#92400e; }
.status-badge.reviewing { background:#dbeafe; color:#1e40af; }
.status-badge.accepted  { background:#dcfce7; color:#15803d; }
.status-badge.rejected  { background:#fee2e2; color:#b91c1c; }
.status-badge.unread    { background:#fef3c7; color:#92400e; }
.status-badge.read      { background:#dcfce7; color:#15803d; }

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.admin-login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 36px 36px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px 40px 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

/* ============================================================
   ALERTS & NOTIFICATIONS
   ============================================================ */
.alert-custom {
  border-radius: var(--border-radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border: none;
}

.alert-success-custom { background: #dcfce7; color: #15803d; }
.alert-error-custom   { background: #fee2e2; color: #b91c1c; }
.alert-info-custom    { background: #dbeafe; color: #1e40af; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.animate-float { animation: float 3s ease-in-out infinite; }

/* AOS fallback: elements hidden before AOS inits */
[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gradient-accent);
  border: none;
  border-radius: 12px;
  color: var(--primary-dark);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-gold);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#scrollTopBtn.visible { display: flex; }
#scrollTopBtn:hover   { transform: translateY(-3px); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-inner { text-align: center; }

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  :root { --section-py: 60px; }

  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  .hero-image-panel { margin-top: 40px; }
  .about-achievements { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; width: 100%; }
  .admin-content { padding: 15px; }
  .admin-topbar { padding: 12px 15px; }
  .admin-stat-card { padding: 15px; gap: 12px; }
  .admin-stat-icon { width: 45px; height: 45px; font-size: 1.2rem; }
  .admin-stat-num { font-size: 1.4rem; }
  .admin-table-header { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-data-table th, .admin-data-table td { padding: 10px; font-size: 0.8rem; }
}

@media (max-width: 767.98px) {
  :root { --section-py: 48px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-outline-custom { width: 100%; justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .hero-stat-pill { flex: 0 0 calc(50% - 10px); }
  .about-image-wrapper { padding: 0; margin-bottom: 32px; }
  
  /* Institutional Profile Responsive Stacking */
  .about-preview .row { flex-direction: column-reverse; }
  .about-preview .col-lg-6 { width: 100%; }
  .about-img-card { height: 300px !important; margin-bottom: 30px; }
  .contact-form-card,
  .contact-info-card { border-radius: var(--border-radius); }
  .admin-login-card { padding: 32px 24px; }
  .form-card-body { padding: 20px; }
  .contact-form-card { padding: 24px 20px; }
  
  /* Admin Tables Mobile */
  .admin-data-table thead { display: none; }
  .admin-data-table tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .admin-data-table td { display: flex; justify-content: space-between; padding: 5px 15px; border: none; text-align: right; }
  .admin-data-table td::before { content: attr(data-label); font-weight: 700; color: var(--primary); margin-right: 15px; text-align: left; }
}

/* ============================================================
   NAVBAR DROPDOWN MENUS — Premium Multi-Level
   ============================================================ */

/* ── Toggle button: caret indicator ─────────────────────── */
.nav-dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted);
  pointer-events: none;
}

.nav-dropdown .nav-dropdown-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
  color: var(--accent-light);
}

/* ── Dropdown Menu Panel ─────────────────────────────────── */
.nav-dropdown-menu {
  /* Reset Bootstrap defaults */
  border: none !important;
  border-radius: var(--border-radius-lg) !important;
  padding: 10px !important;
  min-width: 240px;
  background: var(--white) !important;

  /* Premium shadow */
  box-shadow:
    0 20px 60px rgba(13, 59, 94, 0.18),
    0 4px 16px rgba(13, 59, 94, 0.10),
    0 0 0 1px rgba(13, 59, 94, 0.06) !important;

  /* Fade + slide animation */
  transform-origin: top center;
  animation: ddFadeSlide 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  margin-top: 5px !important; /* Reduced gap slightly for better reliability */
}

/* Hover Bridge: Transparent element to fill the gap so menu doesn't close */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
  display: block;
}

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

/* Top accent bar */
.nav-dropdown-menu::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px 3px 0 0;
  margin: -10px -10px 10px;
}

/* ── Section Labels (non-clickable headers) ──────────────── */
.dropdown-header-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 6px 12px 4px;
  pointer-events: none;
  user-select: none;
}

/* ── Dividers ────────────────────────────────────────────── */
.dropdown-divider-custom {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* ── Individual Dropdown Items (text-only) ───────────────── */
.nav-dd-item {
  display: block !important;
  padding: 9px 14px !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  color: var(--text) !important;
  background: transparent !important;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.nav-dd-item:last-child { margin-bottom: 0; }

.nav-dd-item:hover,
.nav-dd-item:focus {
  background: var(--light-bg) !important;
  color: var(--primary) !important;
  padding-left: 18px !important;
}

.nav-dd-item.active {
  background: linear-gradient(135deg, rgba(13,59,94,0.08) 0%, rgba(26,107,138,0.08) 100%) !important;
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

.nav-dd-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 0 3px 3px 0;
}

/* ── Hover-triggered opening on Desktop ──────────────────── */
@media (min-width: 992px) {

  /* Show on hover */
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown-menu:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: ddFadeSlide 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  /* Rotate caret on hover too */
  .nav-dropdown:hover > .nav-dropdown-toggle .nav-caret {
    transform: rotate(180deg);
    color: var(--accent-light);
  }

  /* Keep menu open while hovering over it */
  .nav-dropdown-menu {
    pointer-events: auto;
  }
}

/* ── Mobile Collapse Background Fix ──────────────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    margin-top: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
  }
  
  .nav-link {
    color: var(--primary) !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(143, 29, 44, 0.05) !important;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
}

/* ── Mobile Collapse Styles ──────────────────────────────── */
@media (max-width: 991.98px) {

  /* Reset panel styles for mobile accordion */
  .nav-dropdown-menu {
    border-radius: var(--border-radius) !important;
    box-shadow: 0 4px 20px rgba(13,59,94,0.15) !important;
    min-width: unset;
    width: 100%;
    margin-top: 6px !important;
    background: rgba(255,255,255,0.96) !important;
    animation: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .dropdown-header-label {
    padding: 8px 14px 4px;
  }

  .nav-dd-item {
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 0.85rem;
  }

  /* Arrow icon always visible on mobile to indicate dropdown */
  .nav-caret { color: var(--muted); }
}


/* ============================================================
   CAMPUS LIFE PAGE LAYOUT
   ============================================================ */
.campus-cover{width:100%;height:450px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding-top:150px;} /* Increased desktop height and padding to clear fixed header */
.campus-cover img{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;inset:0;}
.campus-cover::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgba(8,31,51,0.2) 0%,rgba(8,31,51,0.7) 100%);z-index: 1;}

.campus-hero-content{position:relative;z-index:2;color:var(--white);padding-top: 20px; padding-bottom: 20px;}
.campus-hero-title{font-size:clamp(2rem,6vw,3.5rem);font-weight:800;text-transform:uppercase;letter-spacing:2px;margin-bottom:12px;text-shadow:0 2px 10px rgba(0,0,0,0.3);color:var(--accent);}
.campus-hero-breadcrumb{display:flex;align-items:center;justify-content:center;gap:10px;list-style:none;padding:0;margin:0;font-size:0.9rem;font-weight:600;color:rgba(255,255,255,0.8);}
.campus-hero-breadcrumb a{color:var(--accent-light);text-decoration:none;transition:color 0.3s;}
.campus-hero-breadcrumb a:hover{color:var(--white);}
.campus-hero-breadcrumb .sep{color:rgba(255,255,255,0.4);font-size:0.7rem;}
.campus-dark-section{background:#0d1e2e;background-image:radial-gradient(ellipse at 20% 50%,rgba(26,107,138,0.12) 0%,transparent 60%),radial-gradient(ellipse at 80% 20%,rgba(201,168,76,0.07) 0%,transparent 50%);padding:60px 0 10px;}
.campus-sec-title{text-align:center;color:#fff;font-family:var(--font-heading);font-size:clamp(1.4rem,3vw,2rem);font-weight:800;letter-spacing:5px;text-transform:uppercase;margin-bottom:40px;position:relative;}
.campus-sec-title::after{content:'';display:block;width:60px;height:3px;background:var(--gradient-accent);border-radius:3px;margin:14px auto 0;}
.campus-overview-img{width:100%;height:100%;min-height:340px;object-fit:cover;border-radius:var(--border-radius-lg);display:block;}
.campus-text-card{background:#fff;border-radius:var(--border-radius-lg);padding:32px 34px;height:100%;box-shadow:0 8px 32px rgba(0,0,0,0.25);}
.campus-text-card h3{font-family:var(--font-heading);font-size:1.35rem;font-weight:800;color:var(--secondary);margin-bottom:18px;}
.campus-text-card p{font-size:0.92rem;line-height:1.9;color:var(--text-secondary);margin-bottom:14px;}
.campus-text-card p:last-child{margin-bottom:0;}
.campus-slider-wrap{display:flex;align-items:center;gap:14px;margin-top:48px;}
.campus-slider-track{flex:1;display:flex;gap:12px;overflow:hidden;scroll-behavior:smooth;}
.campus-slide{flex:0 0 calc(25% - 9px);height:160px;border-radius:10px;overflow:hidden;flex-shrink:0;}
.campus-slide img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.45s ease;}
.campus-slide:hover img{transform:scale(1.06);}
.campus-slider-btn{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.12);border:1.5px solid rgba(255,255,255,0.25);color:#fff;font-size:1.5rem;cursor:pointer;flex-shrink:0;transition:all 0.25s ease;display:flex;align-items:center;justify-content:center;}
.campus-slider-btn:hover{background:var(--gradient-accent);border-color:transparent;color:var(--primary-dark);}
@media(max-width:767px){
  .campus-cover{height:360px; padding-top: 140px; } 
  .campus-dark-section{padding:40px 0 50px;}
  .campus-overview-img{min-height:220px;}
  .campus-slide{flex:0 0 calc(50% - 6px) !important;}
}

/* -- Campus Infinite Auto-Scroll Slider (override) -- */
.campus-slider-wrap {
  overflow: hidden;
  gap: 0;
  position: relative;
}
.campus-slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}
.campus-slider-track::-webkit-scrollbar {
  display: none;
}
.campus-slider-track:hover {
  /* animation paused in case we keep it, but removing it for manual control */
}
.campus-slide {
  flex: 0 0 calc((100% - 36px) / 4);
  height: 200px; /* Slightly taller for 4-column layout */
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.campus-slider-btn {
  display: flex; /* Show buttons */
}
@keyframes campusScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@media (max-width: 991px) {
  .campus-cover { height: 320px; padding-left: 20px; padding-right: 20px; }
  .about-img-card { height: 350px !important; margin-bottom: 40px; }
  .about-preview .row { flex-direction: column-reverse; }
}

@media (max-width: 767px) {
  .campus-cover { height: 300px; padding-top: 130px; padding-left: 15px; padding-right: 15px; }
  .campus-dark-section { padding: 40px 0 50px; }
  .campus-overview-img { min-height: 220px; }
  .campus-slide { flex: 0 0 160px; }
  .about-img-card { height: 280px !important; }
  
  /* Table Responsiveness Enhancements */
  .table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
  }
}

@media (max-width: 576px) {
  .hero-stat-pill { flex: 1 0 100%; }
}

/* ============================================================
   MESSAGE PAGE PREMIUM LAYOUT
   ============================================================ */

.msg-page-section {
  background: #121212 url('../images/bg/dark_texture.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
}

.msg-page-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(30, 30, 30, 0.4), rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.msg-container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.msg-page-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
}

.msg-image-wrap {
  text-align: center;
  padding: 20px;
}

.msg-photo-frame {
  width: clamp(240px, 30vw, 280px);
  height: auto;
  border: 12px solid #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  margin: 0 auto 20px;
  background: #f0f0f0;
}

.msg-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.msg-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.msg-title {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.msg-card-red {
  background: #4d0b0b;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}

.msg-text {
  color: rgba(255,255,255,0.95);
  line-height: 1.9;
  font-size: 1.05rem;
  font-weight: 400;
  text-align: justify;
}

.msg-text p {
  margin-bottom: 25px;
}

@media (max-width: 991px) {
  .msg-page-section { padding: 60px 0; }
  .msg-image-wrap { margin-bottom: 40px; }
  .msg-card-red { padding: 30px; }
}

/* --- Message Page Light Theme --- */
.msg-section-light {
  background: var(--light-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.msg-section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(13, 59, 94, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.msg-card-light {
  background: var(--white);
  padding: clamp(30px, 5vw, 50px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.msg-card-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.msg-section-light .msg-page-title {
  color: var(--primary);
}

.msg-section-light .msg-name {
  color: var(--primary);
  margin-top: 20px;
}

.msg-section-light .msg-title {
  color: var(--secondary);
  font-weight: 600;
}

.msg-section-light .msg-text {
  color: var(--text-secondary);
}

.msg-section-light .msg-photo-frame {
  border: 8px solid var(--white);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   RECOGNITION / AFFILIATION SECTION
   ============================================================ */
.recognition-wrapper {
  background: linear-gradient(135deg, #1A2432 0%, #2A3A4E 50%, #8F1D2C 100%);
  padding: 80px 40px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: 60px;
}

.recognition-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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.05'%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");
  opacity: 0.1;
}

.recognition-wrapper .section-heading h2 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.recognition-wrapper .section-heading p {
  color: rgba(255,255,255,0.8) !important;
}

.recognition-wrapper .section-divider {
  background: var(--accent);
}

.recognition-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  z-index: 1;
}

.recognition-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.recognition-card.dark-theme {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.recognition-card.dark-theme .recognition-text-panel {
  background: transparent;
}

.recognition-text-panel {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to bottom right, #ffffff, #f8fafc);
}

.recognition-text-panel .panel-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.recognition-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.recognition-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.recognition-list li i {
  margin-top: 4px;
  font-size: 1.1rem;
}

#recognitionSlider {
  min-height: 450px;
  background: #fff;
}

#recognitionSlider .carousel-item img {
  padding: 20px;
}

@media (max-width: 991px) {
  .recognition-text-panel {
    padding: 30px;
  }
  #recognitionSlider {
    min-height: 350px;
  }
}

@media (max-width: 576px) {
  .recognition-text-panel .panel-title {
    font-size: 1.5rem;
  }
  #recognitionSlider {
    min-height: 300px;
  }
}

/* ========================================
   HOME CONTACT / QUERY SECTION
   ======================================== */
.bg-dark-navy {
  background: #081f33;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.method-icon {
  width: 55px;
  height: 55px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.method-item:hover .method-icon {
  background: var(--accent);
  color: var(--primary-dark);
  transform: rotate(-10deg);
}

.method-text h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.method-text p {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.query-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.form-floating-custom {
  position: relative;
}

.form-control-custom,
.form-select-custom {
  width: 100%;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--primary-dark);
  transition: var(--transition);
}

.form-control-custom:focus,
.form-select-custom:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
  outline: none;
}

.form-floating-custom label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #fff;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

@media (max-width: 991px) {
  .query-form-card { padding: 30px 20px; }
}

/* ========================================
   HERO QUERY PANEL STYLES
   ======================================== */
.btn-query-submit {
  width: 100%;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-query-submit:hover {
  background: #e5bf5e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(201,168,76,0.3);
}

.form-status-msg {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: flex-start;
  gap: 10px;
}

.form-status-msg.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  display: flex;
}

.form-status-msg.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  display: flex;
}

/* ============================================================
   GENERAL RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767px) {
  .page-hero { padding: 130px 15px 40px !important; text-align: center; }
  .page-hero h1 { font-size: 1.8rem !important; }
  .breadcrumb-custom { justify-content: center; }
  
  .section-py { padding: 50px 0 !important; }
  
  /* Facility Sidebar on Mobile */
  .facility-sidebar { margin-top: 40px; }
}

@media (max-width: 576px) {
  .section-heading h2 { font-size: 1.6rem !important; }
}

/* ============================================================
   HOW TO REACH SECTION (ADMISSIONS)
   ============================================================ */
.reach-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.reach-img {
  height: 220px;
  overflow: hidden;
}

.reach-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.reach-card:hover .reach-img img {
  transform: scale(1.05);
}

.reach-content {
  padding: 30px;
  text-align: center;
}

.reach-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.reach-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .reach-img { height: 180px; }
  .reach-content { padding: 20px; }
}

/* ============================================================
   GLOBAL LIGHTBOX STYLES (SweetAlert2)
   ============================================================ */
img:not(.main-header img):not(footer img):not(.nav-link img):not(.hero-bg-slider img):not(.hero-section img) {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

img:not(.main-header img):not(footer img):not(.nav-link img):not(.hero-bg-slider img):not(.hero-section img):hover {
  opacity: 0.85;
}

.swal2-lightbox-popup {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 95vw !important;
}

.swal2-lightbox-image {
  max-height: 90vh !important;
  max-width: 100% !important;
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.swal2-lightbox-close {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 2.5rem !important;
  top: 10px !important;
  right: 10px !important;
  transition: color 0.2s ease !important;
}

.swal2-lightbox-close:hover {
  color: #fff !important;
}

