@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/*
  ASNHP - OFFICIAL STYLESHEET v2.0
  Axis School of Nursing and Health Professionals
  UHPAB ACCREDITED — Dynamic & Responsive Edition
*/

:root {
  --navy:        #0B2545;
  --navy-dark:   #071a35;
  --teal:        #1A6B72;
  --teal-light:  #22919A;
  --teal-glow:   rgba(26,107,114,0.2);
  --gold:        #C8973A;
  --gold-light:  #E8B35A;
  --gold-pale:   rgba(200,151,58,0.15);
  --cream:       #F8F4EE;
  --white:       #FFFFFF;
  --gray:        #6B7280;
  --light-gray:  #F3F4F6;
  --dark:        #111827;
  --border:      #E5E7EB;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:   0 20px 60px rgba(11,37,69,0.18);
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   30px;
  --transition:  0.35s 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; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--white);
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'DM Sans', sans-serif; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ============================== ANNOUNCEMENT BAR ============================== */
.announce {
  background: linear-gradient(90deg, var(--dark) 0%, #1a2744 50%, var(--dark) 100%);
  background-size: 200% 100%;
  animation: shimmerBg 6s linear infinite;
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.announce::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmerSlide 3s ease-in-out infinite;
}
.announce a { color: var(--gold-light); font-weight: 800; }
.announce a:hover { color: var(--gold); text-decoration: underline; }

@keyframes shimmerBg {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes shimmerSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================== TOPBAR ============================== */
.topbar {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 0;
  border-bottom: 2px solid rgba(11,37,69,0.12);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a {
  color: var(--navy-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
}
.topbar a:hover { color: var(--white); background: rgba(11,37,69,0.15); }
.topbar a i { font-size: 0.8rem; }
.topbar-left, .topbar-right { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============================== HEADER ============================== */
#header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
#header.scrolled {
  padding: 7px 0;
  box-shadow: 0 6px 30px rgba(11,37,69,0.12);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo:hover .logo-img { transform: scale(1.05); }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,107,114,0.3);
}
.logo-text h1 {
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
.logo-text span {
  font-size: 0.68rem;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'DM Sans', sans-serif;
}

nav#desktop-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav#desktop-nav a {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  color: var(--dark);
  position: relative;
}
nav#desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
nav#desktop-nav a:hover::after,
nav#desktop-nav a.active::after { width: 60%; }
nav#desktop-nav a:hover { color: var(--teal); background: var(--teal-glow); }
nav#desktop-nav a.active { color: var(--teal); }

.btn-portal {
  background: linear-gradient(135deg, var(--navy), #1a3a6b) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  padding: 9px 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(11,37,69,0.25) !important;
}
.btn-portal:hover {
  background: linear-gradient(135deg, var(--teal), var(--navy)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(11,37,69,0.3) !important;
}
.btn-portal::after { display: none !important; }

/* ============================== HAMBURGER ============================== */
.hamburger-btn {
  background: none;
  border: 2px solid var(--border);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--dark);
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.hamburger-btn:hover { background: var(--light-gray); border-color: var(--teal); color: var(--teal); }

/* ============================== SIDEBAR — KEEP ORIGINAL STYLE ============================== */
#nav-sidebar {
  position: fixed;
  top: 0; left: -340px;
  width: 300px; height: 100vh;
  background: white;
  z-index: 2000;
  transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 5px 0 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
#nav-sidebar.open { left: 0; }
#sidebar-overlay {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  opacity:0; visibility:hidden;
  transition: opacity 0.4s, visibility 0.4s;
  z-index:1999;
  backdrop-filter: blur(4px);
}
#sidebar-overlay.visible { opacity:1; visibility:visible; }

/* SIDEBAR HEADER — keep dark background */
.sidebar-header {
  padding: 20px 25px;
  display: flex;
  background: var(--dark);
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--teal);
  position: relative;
}
.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 60px; height: 3px;
  background: var(--gold);
}
.sidebar-header a { color: white; font-weight: 700; font-size: 1rem; }
.close-sidebar {
  font-size: 1.8rem;
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer;
  color: white;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.close-sidebar:hover { background: rgba(255,255,255,0.2); }

/* SIDEBAR LABELS — keep teal color */
.sidebar-group-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  padding: 14px 25px 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.sidebar-links {
  padding: 8px 0 20px;
  display: flex; flex-direction: column;
}
.sidebar-links a {
  padding: 10px 25px;
  font-weight: 600;
  display: flex; align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--dark);
  position: relative;
  transition: all 0.25s ease;
}
.sidebar-links a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 36px;
  background: var(--teal-glow);
  border-right: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
  transition: width 0.25s ease;
}
.sidebar-links a:hover::before { width: 100%; }
.sidebar-links a:hover { color: var(--navy); padding-left: 30px; }
.sidebar-links a i { width: 20px; text-align: center; color: var(--teal); flex-shrink: 0; font-size: 0.9rem; }
.sidebar-footer {
  margin-top: auto;
  padding: 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
}
.hero-bg-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.02);
  animation: subtleZoom 20s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes subtleZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11,37,69,0.82) 0%,
    rgba(26,107,114,0.5) 45%,
    rgba(11,37,69,0.85) 100%
  );
  z-index: 1;
}
/* Decorative floating elements */
.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.hero-deco-circle {
  width: 500px; height: 500px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -150px; right: -150px;
  animation: rotateSlow 30s linear infinite;
}
.hero-deco-circle-2 {
  width: 300px; height: 300px;
  border: 1px solid rgba(200,151,58,0.1);
  border-radius: 50%;
  bottom: 80px; left: -80px;
  animation: rotateSlow 20s linear infinite reverse;
}
@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  position: relative; z-index: 2;
  padding: clamp(100px, 15vw, 130px) 0 clamp(60px, 8vw, 90px);
  max-width: 900px;
  width: 100%;
  animation: heroFadeUp 1.1s ease-out both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  background: rgba(200,151,58,0.2);
  border: 1px solid rgba(232,179,90,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: heroFadeUp 1.1s 0.2s ease-out both;
  backdrop-filter: blur(4px);
}
.hero-badge i { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  font-weight: 900;
  text-shadow: 0 3px 24px rgba(0,0,0,0.35);
  animation: heroFadeUp 1.1s 0.3s ease-out both;
}
.hero-title .accent { color: var(--gold-light); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.88);
  max-width: 720px;
  margin: 0 auto 40px;
  animation: heroFadeUp 1.1s 0.45s ease-out both;
}
.hero-subtitle span { color: var(--gold-light); font-weight: 700; }
.hero-buttons {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1.1s 0.55s ease-out both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(200,151,58,0.35);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(200,151,58,0.45);
  filter: brightness(1.05);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.55);
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  display: inline-flex; align-items: center; gap: 10px;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  border-color: white;
  transform: translateY(-4px);
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 56px auto 0;
  animation: heroFadeUp 1.1s 0.7s ease-out both;
}
.quick-link {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 18px 12px;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 10px; align-items: center;
  color: white; font-weight: 600;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: pointer;
}
.quick-link i { font-size: 1.6rem; color: var(--gold-light); transition: transform 0.3s ease; }
.quick-link:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
  border-color: rgba(232,179,90,0.4);
}
.quick-link:hover i { transform: scale(1.15) rotate(-5deg); }

.hero-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
  transition: all 0.3s ease; padding: 0;
}
.hero-dot.active {
  background: var(--gold-light);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(232,179,90,0.6);
}

/* ============================== STATS ============================== */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2f5c 60%, #0B2545 100%);
  padding: 56px 0;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,107,114,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(200,151,58,0.1) 0%, transparent 60%);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.stat-item { text-align: center; color: white; }
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(232,179,90,0.3);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-item + .stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* ============================== SECTION BASICS ============================== */
section { padding: clamp(60px, 8vw, 100px) 0; }
.section-header { margin-bottom: 50px; }
.section-tag {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.section-tag::before {
  content: '';
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  flex-shrink: 0;
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.15;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.75;
}

/* ============================== PROGRAMS ============================== */
.programs { background: var(--cream); }
.program-tabs {
  display: flex; justify-content: center;
  gap: 10px; margin-bottom: 50px;
  flex-wrap: wrap;
}
.program-tab-btn {
  background: white;
  border: 2px solid var(--border);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.program-tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 6px 20px rgba(26,107,114,0.3);
}
.program-tab-btn:hover:not(.active) {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

.program-panel { display: none; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.program-panel.active { display: grid; }

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 0 0 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.program-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.program-card:hover::after { transform: scaleX(1); }
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(26,107,114,0.12);
}
.program-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.program-card:hover .program-card-img { transform: scale(1.04); }
.program-card-body { padding: 18px 20px 0; flex: 1; display: flex; flex-direction: column; }
.program-level-badge {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-cert { background: rgba(26,107,114,0.1); color: var(--teal); }
.badge-dip  { background: var(--gold-pale); color: #8a6020; }
.badge-ext  { background: #EEF2FF; color: #3730A3; }
.program-card h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--navy); flex-grow: 1; }
.program-card p  { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ============================== CLINICAL GALLERY ============================== */
.clinical-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin-top: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-gray);
}
.gallery-large { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
  border-radius: 0;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(11,37,69,0.9), transparent);
  color: white; padding: 30px 16px 14px;
  font-size: 0.82rem; font-weight: 700;
  transform: translateY(4px);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ============================== CONTACT ============================== */
.contact { background: var(--light-gray); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.contact-info h2 {
  color: var(--navy); margin: 14px 0 24px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-info p {
  margin-bottom: 16px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; color: var(--dark);
}
.contact-info p i {
  color: var(--teal); margin-top: 3px;
  flex-shrink: 0; font-size: 1rem;
  width: 20px; text-align: center;
}
.social-links-footer { display: flex; gap: 12px; margin-top: 24px; }
.social-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(11,37,69,0.2);
}
.social-icon:hover {
  background: var(--teal);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(26,107,114,0.35);
}
.contact-form {
  background: white; padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--navy); margin-bottom: 28px; font-size: 1.7rem; }
.form-group { margin-bottom: 18px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem; outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: white; color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,107,114,0.1);
}
.form-group textarea { height: 140px; resize: vertical; }
.btn-submit {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white; width: 100%;
  padding: 15px; border: none;
  border-radius: var(--radius);
  font-weight: 800; font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(26,107,114,0.3);
  letter-spacing: 0.02em;
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11,37,69,0.3);
}

/* ============================== MODAL ============================== */
.modal {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.75);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity:0; visibility:hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 16px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}
.modal.open { opacity:1; visibility:visible; }
.modal-content {
  background: white; width: 100%; max-width: 750px;
  border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px);
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 92svh; overflow-y: auto;
  animation: modalSlideIn 0.35s ease-out both;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.close-modal {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.3rem; cursor: pointer;
  color: var(--gray); width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; border: none;
}
.close-modal:hover { background: #e0e0e0; color: var(--navy); transform: rotate(90deg); }
.app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section-title {
  grid-column: 1/-1;
  margin: 12px 0 4px;
  font-weight: 800; color: var(--teal);
  border-bottom: 2px solid var(--border);
  padding-bottom: 6px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  font-family: 'DM Sans', sans-serif;
}

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity:0; width:0; height:0; }
.slider { position: absolute; cursor: pointer; top:0; left:0; right:0; bottom:0; background:#ccc; transition:.4s; }
.slider:before { position: absolute; content:""; height:18px; width:18px; left:4px; bottom:4px; background:white; transition:.4s; }
input:checked + .slider { background: var(--teal); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
#api-integration-area { transition: 0.3s; }
.btn-test {
  padding: 8px 14px; background: var(--light-gray);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
  transition: 0.2s; display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
}
.btn-test:hover { background: #e0e0e0; }
.btn-test:disabled { opacity: .6; cursor: not-allowed; }
.integration-item label { display: block; margin-bottom: 6px; }

/* ============================== FOOTER ============================== */
footer {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #0d2f5c 100%);
  color: white;
  padding: clamp(60px, 8vw, 90px) 0 30px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
footer::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(26,107,114,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(200,151,58,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}
.logo-footer { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer-logo-img { height: 44px; width: auto; border-radius: 8px; object-fit: contain; }
.icon-f { font-size: 2rem; color: var(--gold-light); }
.logo-footer h4 { font-size: 1.1rem; color: white; }
.logo-footer p { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.75; }
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--gold-light);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.87rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-col a i { color: var(--teal-light); font-size: 0.75rem; width: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  position: relative;
}

/* ============================== SCROLL TOP ============================== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white; border-radius: var(--radius);
  border: none; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 1500;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(26,107,114,0.4);
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(11,37,69,0.4);
}

/* ============================== REVEAL ANIMATIONS ============================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================== RESPONSIVE — BREAKPOINTS ============================== */

/* Large tablets */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Tablets */
@media (max-width: 991px) {
  .hamburger-btn { display: flex; }
  nav#desktop-nav { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item + .stat-item { border-left: none; }
  .stat-item:nth-child(odd) + .stat-item { border-left: 1px solid rgba(255,255,255,0.1); }
  .quick-link-grid { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
  .clinical-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px auto auto; }
  .gallery-large { grid-column: 1 / -1; grid-row: auto; height: 280px; }
  .gallery-item { height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Large phones */
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

/* Phones */
@media (max-width: 767px) {
  .topbar-right { display: none; }
  .topbar-left { flex-wrap: wrap; gap: 8px; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .clinical-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-large { height: 240px; }
  .gallery-item { height: 180px; }
  .app-form-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .logo-text h1 { font-size: 0.85rem; }
  .logo-text span { font-size: 0.62rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons a { width: 100%; max-width: 280px; justify-content: center; }
  .quick-link-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 2rem; }
  .program-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .container { flex-direction: column; gap: 4px; text-align: center; }
  .topbar-left { justify-content: center; }
  .hero-deco-circle, .hero-deco-circle-2 { display: none; }
  #nav-sidebar { width: 280px; }
}

/* Extra small */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .quick-link-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .quick-link { padding: 14px 8px; font-size: 0.76rem; }
  .quick-link i { font-size: 1.3rem; }
}

/* ============================== UTILITIES ============================== */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* Campus section cards */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Guidelines */
.guidelines-box {
  background: white; padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
}
.guidelines-box ol {
  list-style: decimal;
  padding-left: 22px;
  line-height: 2.1;
}
.guidelines-box li { font-size: 0.95rem; color: var(--dark); }
.guidelines-box li strong { color: var(--teal); }
