/* ========================================
   AAROGYA MEDICAL COLLEGE - PREMIUM STYLES
   A modern, clean medical college website
======================================== */

/* ========================================
   CSS VARIABLES & ROOT
======================================== */
:root {
  /* Colors - Light Mode */
  --primary: #0e7490;
  --primary-dark: #0a5e74;
  --primary-light: #22d3ee;
  --secondary: #059669;
  --secondary-dark: #047857;
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Background & Text */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border-color: var(--gray-200);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --container-max: 1280px;
  --section-padding: 100px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-color: #334155;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

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

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section */
.section {
  padding: var(--section-padding) 0;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-header.light .section-label {
  color: var(--primary-light);
}

.section-header.light .section-title,
.section-header.light .section-subtitle {
  color: white;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(14, 116, 144, 0.05);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.95);
}

.header.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(14, 116, 144, 0.08);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Light mode: show moon (to switch to dark) */
.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

/* Dark mode: show sun (to switch to light) */
[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 16px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }
}

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 80px;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14, 116, 144, 0.03) 0%,
    rgba(5, 150, 105, 0.03) 50%,
    rgba(245, 158, 11, 0.02) 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 25% 25%, var(--primary-light) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--secondary) 1px, transparent 1px);
  background-size: 60px 60px;
}

[data-theme="dark"] .hero-pattern {
  opacity: 0.15;
}

.hero .container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(14, 116, 144, 0.1);
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

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

/* Hero Visual */
.hero-visual {
  display: none;
  position: relative;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-card .card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
}

.hero-card .card-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.hero-card span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-card-1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 45%;
  right: 25%;
  animation-delay: 2s;
}

.hero-card-3 {
  top: 70%;
  right: 5%;
  animation-delay: 4s;
}

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

/* Hero Stats */
.hero-stats {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    display: block;
    height: 500px;
  }
}

/* ========================================
   PROGRAMS SECTION
======================================== */
.programs {
  background: var(--bg-secondary);
}

.programs-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.program-card {
  position: relative;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

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

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

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

.program-card.hidden {
  display: none;
}

.program-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.program-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.program-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 116, 144, 0.1);
  border-radius: var(--radius-full);
}

.program-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.program-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.program-highlights li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.program-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.program-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.program-link:hover svg {
  transform: translateX(4px);
}

/* ========================================
   DEPARTMENTS SECTION
======================================== */
.departments-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dept-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.dept-tab svg {
  width: 20px;
  height: 20px;
}

.dept-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dept-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.dept-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dept-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px;
}

.dept-panel.active {
  display: grid;
}

.dept-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.dept-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.dept-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}

.highlight-item svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.dept-faculty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: var(--radius);
}

.faculty-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.faculty-info strong {
  display: block;
  font-size: 16px;
  color: var(--text-primary);
}

.faculty-info span {
  font-size: 14px;
  color: var(--text-secondary);
}

.dept-image {
  display: none;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: var(--radius);
}

.image-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--primary);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .dept-panel {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
  }

  .dept-image {
    display: block;
  }
}

/* ========================================
   ADMISSIONS SECTION
======================================== */
.admissions {
  background: var(--bg-secondary);
}

.admissions-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.timeline-content {
  background: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 116, 144, 0.1);
  border-radius: var(--radius-full);
}

.admissions-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cta-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-card.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: transparent;
}

.cta-card.highlight .cta-icon,
.cta-card.highlight h3,
.cta-card.highlight p {
  color: white;
}

.cta-card.highlight .cta-icon {
  background: rgba(255, 255, 255, 0.2);
}

.cta-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 116, 144, 0.1);
  border-radius: var(--radius);
  margin: 0 auto 20px;
}

.cta-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.cta-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .admissions-cta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .admissions-content {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* ========================================
   RESEARCH SECTION
======================================== */
.research {
  position: relative;
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  overflow: hidden;
}

.research-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 50%, var(--primary-light) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--secondary) 0%, transparent 50%);
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.research-stat {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
}

.research-stat .stat-label {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

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

.research-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.research-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.research-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.research-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.research-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.research-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .research-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   HOSPITAL SECTION
======================================== */
.hospital-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hospital-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hospital-image .image-placeholder {
  height: 300px;
  border-radius: 0;
}

.hospital-info {
  padding: 32px;
}

.hospital-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hospital-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.hospital-features {
  display: flex;
  gap: 32px;
}

.feature {
  text-align: center;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.feature-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

.facility-card {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.facility-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.facility-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.facility-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.facility-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .hospital-main {
    grid-template-columns: 1fr 1fr;
  }

  .hospital-image .image-placeholder {
    height: 100%;
    min-height: 400px;
  }

  .hospital-info {
    padding: 48px;
  }
}

/* ========================================
   CAMPUS SECTION
======================================== */
.campus {
  background: var(--bg-secondary);
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.campus-card {
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}

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

.campus-card.large {
  grid-column: 1 / -1;
}

.campus-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.campus-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.campus-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.campus-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.campus-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tag {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(14, 116, 144, 0.1);
  border-radius: var(--radius-full);
}

@media (min-width: 768px) {
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .campus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .campus-card.large {
    grid-column: span 2;
  }
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 16px;
}

.testimonial-content {
  padding: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-content p {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.author-info strong {
  display: block;
  font-size: 16px;
  color: var(--text-primary);
}

.author-info span {
  font-size: 14px;
  color: var(--text-secondary);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.slider-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: var(--border-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slider-dot:hover {
  background: var(--gray-400);
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ========================================
   NEWS SECTION
======================================== */
.news {
  background: var(--bg-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.news-card.featured {
  grid-column: 1 / -1;
}

.news-image {
  position: relative;
  height: 200px;
}

.news-image .image-placeholder {
  height: 100%;
  border-radius: 0;
}

.news-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.news-badge.upcoming {
  background: var(--accent);
  color: white;
}

.news-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.news-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.news-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.news-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.news-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card.featured {
    flex-direction: row;
  }

  .news-card.featured .news-image {
    width: 45%;
    height: auto;
    min-height: 300px;
  }

  .news-card.featured .news-content {
    width: 55%;
    padding: 32px;
  }

  .news-card.featured h3 {
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card.featured {
    grid-column: span 2;
  }
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-details p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-form-container {
  background: var(--bg-primary);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  font-size: 13px;
  color: var(--error);
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.form-group.error .error-message {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius);
  color: var(--success);
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-success p {
  font-size: 15px;
}

.map-container {
  margin-top: 48px;
}

.map-placeholder {
  height: 300px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(14, 116, 144, 0.05);
}

.map-overlay svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

.map-overlay p {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--gray-900);
  color: white;
}

[data-theme="dark"] .footer {
  background: var(--gray-800);
}

.footer-main {
  padding: 80px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  color: var(--primary-light);
}

.footer-logo .logo-name {
  color: white;
}

.footer-logo .logo-tagline {
  color: var(--gray-400);
}

.footer-brand > p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .footer-social a {
  background: var(--gray-700);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-newsletter h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-newsletter > p {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  color: white;
}

[data-theme="dark"] .newsletter-form input {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

.newsletter-form input::placeholder {
  color: var(--gray-500);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: white;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}

.newsletter-form button svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--gray-800);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: var(--gray-700);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   ANIMATIONS & UTILITIES
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive utilities */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .btn-lg {
    padding: 14px 24px;
  }
}

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

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

/* Staggered animation for grid items */
.reveal-ready:nth-child(1) { transition-delay: 0s; }
.reveal-ready:nth-child(2) { transition-delay: 0.1s; }
.reveal-ready:nth-child(3) { transition-delay: 0.2s; }
.reveal-ready:nth-child(4) { transition-delay: 0.3s; }
.reveal-ready:nth-child(5) { transition-delay: 0.4s; }
.reveal-ready:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   HEADER HIDDEN STATE
======================================== */
.header.header-hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   FORM SUCCESS MESSAGE (inline)
======================================== */
.success-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  animation: fadeInUp 0.3s ease;
}

.success-message.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Input validation states */
input.error,
select.error,
textarea.error {
  border-color: var(--error) !important;
  background-color: rgba(239, 68, 68, 0.05);
}

input.valid,
select.valid,
textarea.valid {
  border-color: var(--success);
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Body when nav is open */
body.nav-open {
  overflow: hidden;
}
