/* ==========================================================================
   TEAM PIRANHA RACING - Multi-Page Website
   Design System & Master Stylesheet
   Theme: Black, White, Blue (primary accent), Red (subtle secondary)
   ========================================================================== */

:root {
  /* Color Palette - Black White Red Blue */
  --bg-primary: #07080a;
  --bg-secondary: #0d0e12;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(28, 32, 42, 0.9);
  
  --blue-primary: #1a6bff;
  --blue-bright: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.4);
  --blue-dark: #0f3d91;

  --red-primary: #cc0000;
  --red-bright: #ff1e27;
  --red-glow: rgba(230, 0, 0, 0.25);
  --red-dark: #800000;

  --text-main: #f0f2f5;
  --text-muted: #9aa0a6;
  --text-dim: #5f6368;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.5);

  /* Fonts */
  --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
  --font-hero: 'Planet Kosmos', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Carbon Fiber Pattern Overlay */
.carbon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 0),
    linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2)),
    linear-gradient(45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 0.2));
  background-size: 30px 30px, 4px 4px, 4px 4px;
  background-position: 0 0, 0 0, 2px 2px;
  pointer-events: none;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: #252830;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-primary);
  box-shadow: 0 0 10px var(--blue-glow);
}

/* Spin Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
}

/* ==========================================================================
   Scroll Fade-In Animation System
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Anchor Scroll Margin */
#about, #legacy, #departments, #sponsors {
  scroll-margin-top: 90px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0;
  width: 100%; padding: 1.1rem 4%;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  transition: var(--transition-normal);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 10, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  background: rgba(7, 8, 10, 0.94);
  padding: 0.8rem 4%;
  border-bottom-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.college-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.college-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-logo {
  display: flex; align-items: center;
  gap: 12px; text-decoration: none;
}

.brand-logo-img {
  height: 44px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
  transform: scale(1.04);
}

.nav-links {
  display: flex; align-items: center;
  gap: 2.2rem; list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none; font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--red-bright));
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--blue-bright);
}

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

.nav-actions {
  display: flex; align-items: center; gap: 1rem;
}

.btn-header-cta {
  padding: 0.65rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1px; color: #fff;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  border: 1px solid var(--blue-bright);
  border-radius: 4px; text-decoration: none;
  text-transform: uppercase; cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 15px var(--blue-glow);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--blue-bright);
  background: var(--blue-bright);
}

.mobile-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 4% 4rem;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg-container {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0.8) 65%, rgba(0,0,0,0.4) 82%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0.8) 65%, rgba(0,0,0,0.4) 82%, rgba(0,0,0,0) 100%);
}

.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 25% center;
  filter: brightness(0.95) contrast(1.08);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(7,8,10,0.2) 0%, rgba(7,8,10,0.6) 70%, rgba(7,8,10,0.92) 100%);
  z-index: 1; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 960px; text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem; letter-spacing: 2px;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 25px rgba(59, 130, 246, 0.5); }
}

/* Hero Title with Logo Font */
.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.35), 0 0 50px rgba(0,0,0,0.9);
}

.hero-title span {
  color: var(--blue-bright);
  text-shadow: 0 0 25px var(--blue-glow);
}

.hero-tagline {
  font-family: 'Planet Kosmos', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(0, 0, 0, 0.9);
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex; justify-content: center;
  align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Page Hero (Inner Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 38vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 4% 3rem;
  overflow: hidden;
  background: var(--bg-primary);
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(59, 130, 246, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(230, 0, 0, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.page-hero-content {
  position: relative; z-index: 2;
  max-width: 800px;
}

.page-hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  position: relative;
  padding: 1.1rem 2.8rem;
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 800;
  letter-spacing: 2px; color: #ffffff;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
  border: 1px solid var(--blue-bright);
  border-radius: 6px; cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center;
  justify-content: center; gap: 10px;
}

.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px var(--blue-bright), 0 0 15px var(--blue-bright);
  background: var(--blue-bright);
}

.btn-secondary {
  padding: 1.1rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px; cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  text-decoration: none; text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast);
}
.scroll-indicator:hover { color: var(--blue-bright); }

.mouse-icon {
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 4px; height: 8px;
  background: var(--blue-bright);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   Section Layout & Glassmorphism Components
   ========================================================================== */
.section-padding {
  padding: 6rem 4%;
  position: relative; z-index: 2;
}

.container { max-width: 1240px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem; letter-spacing: 3px;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 0.5rem; display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
}

.section-title::after {
  content: ''; display: block;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--blue-bright), var(--red-bright));
  margin: 12px auto 0; border-radius: 2px;
  box-shadow: 0 0 10px var(--blue-glow);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-bottom: 4rem;
}

/* Department Categories & Grid */
.dept-category-section {
  margin-bottom: 4rem;
}

.dept-category-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dept-category-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
}

.badge-primary {
  background: rgba(255, 30, 39, 0.15);
  border: 1px solid var(--red-bright);
  color: #ff525c;
  box-shadow: 0 0 12px rgba(255, 30, 39, 0.25);
}

.badge-secondary {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--blue-bright);
  color: var(--blue-bright);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.badge-tertiary {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.dept-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.dept-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 2.2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}

.glass-card::before {
  content: ''; position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(59, 130, 246, 0.15);
  background: var(--bg-card-hover);
}
.glass-card:hover::before { opacity: 1; }

.card-icon {
  width: 50px; height: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--blue-bright);
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.8rem; color: #fff;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem; line-height: 1.6;
}

/* ==========================================================================
   Horizontal Timeline (Legacy) - Rich Cards with Photos
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
}

.timeline-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(13, 14, 18, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.timeline-nav-btn:hover {
  background: var(--blue-bright);
  box-shadow: 0 0 20px var(--blue-bright);
  transform: translateY(-50%) scale(1.1);
}

.timeline-nav-btn.prev { left: -10px; }
.timeline-nav-btn.next { right: -10px; }

.timeline-horizontal {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2.5rem 1rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-primary) var(--bg-secondary);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.timeline-track {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  position: relative;
  min-width: max-content;
  padding: 0 1.5rem;
}

/* Connecting Line Across Dots */
.timeline-track::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 2.5rem;
  right: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-bright) 70%, var(--red-bright) 100%);
  border-radius: 2px;
  z-index: 0;
  box-shadow: 0 0 8px var(--blue-glow);
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  position: relative;
  z-index: 1;
}

.timeline-dot-h {
  width: 26px;
  height: 26px;
  background: var(--bg-primary);
  border-radius: 50%;
  border: 4px solid var(--blue-bright);
  box-shadow: 0 0 15px var(--blue-bright);
  margin-bottom: 1.8rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot-h::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--blue-bright);
  border-radius: 50%;
}

.timeline-node:hover .timeline-dot-h {
  border-color: #fff;
  background: var(--blue-bright);
  box-shadow: 0 0 25px #fff;
  transform: scale(1.25);
}

.timeline-node:hover .timeline-dot-h::after {
  background: #fff;
}

/* Boxed Timeline Card with Image */
.timeline-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.timeline-node:hover .timeline-card-box {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px rgba(59, 130, 246, 0.2);
  transform: translateY(-8px);
  background: var(--bg-card-hover);
}

.timeline-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.timeline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92);
}

.timeline-node:hover .timeline-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.timeline-year-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 8, 10, 0.85);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.timeline-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.timeline-car-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-award-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.timeline-award-badge.gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.timeline-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.timeline-category-header {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--border-glow);
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.timeline-cat-badge.electric {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.timeline-cat-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* eBAJA Electric Theme Overrides */
.timeline-track.ebaja::before {
  background: linear-gradient(90deg, #007799, #00e5ff 70%, #3b82f6 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.timeline-node.ebaja .timeline-dot-h {
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.timeline-node.ebaja .timeline-dot-h::after {
  background: #00e5ff;
}

.timeline-node.ebaja:hover .timeline-dot-h {
  border-color: #fff;
  background: #00e5ff;
  box-shadow: 0 0 25px #00e5ff;
}

.timeline-node.ebaja:hover .timeline-card-box {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px rgba(0, 229, 255, 0.25);
}

.timeline-award-badge.cyan {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
}

.timeline-scroll-hint {
  text-align: center;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.timeline-scroll-hint i {
  margin-left: 6px;
  animation: hint-bounce 1.5s infinite ease-in-out;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

/* ==========================================================================
   Ferrari F1-Style Media Gallery
   ========================================================================== */
.ferrari-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ferrari-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.ferrari-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 25px rgba(59, 130, 246, 0.2);
  background: var(--bg-card-hover);
}

.ferrari-img-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  background: #000;
}

.ferrari-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: brightness(0.95);
}

.ferrari-card:hover .ferrari-img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.ferrari-event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 8, 10, 0.88);
  border: 1px solid var(--border-glow);
  color: var(--blue-bright);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.ferrari-event-badge.red,
.ferrari-event-badge {
  color: var(--blue-bright);
  border-color: var(--border-glow);
}

.ferrari-expand-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(7, 8, 10, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.ferrari-card:hover .ferrari-expand-btn {
  opacity: 1;
  transform: scale(1);
}

.ferrari-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0d0e12;
}

.ferrari-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.ferrari-meta span i {
  margin-right: 4px;
  color: var(--blue-bright);
}

.ferrari-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

/* Lightbox Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.96);
  backdrop-filter: blur(24px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content-wrap {
  position: relative;
  max-width: 1150px;
  width: 100%;
  background: #0d0e12;
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.95);
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% { transform: scale(0.94) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-img-container {
  width: 100%;
  max-height: 76vh;
  background: #040507;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.modal-img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 4px;
}

.modal-info {
  padding: 1.25rem 1.75rem;
  background: #0d0e12;
  border-top: 1px solid var(--border-subtle);
}

.modal-event {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--blue-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: rotate(90deg);
}

/* ==========================================================================
   Ferrari F1-Style Sponsors Section (Black Background & Regular Colors)
   ========================================================================== */
.sponsors-ferrari-section {
  background: #040507;
  padding: 4rem 4% 3.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sponsors-ferrari-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  cursor: pointer;
  padding: 0;
}

.sponsor-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: none;
}

.sponsor-item .sponsor-img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: none; /* Original Authentic Brand Colors */
}

/* Tier 1 - Top Row (Largest - Klauss Multiparking, Ultra Corpotech) */
.tier-1-row {
  gap: 6rem;
}
.sponsor-item.tier-1 {
  padding: 0;
  min-width: auto;
}
.sponsor-item.tier-1 .sponsor-img {
  height: 95px;
  max-height: 110px;
  max-width: 440px;
}
/* Optically enlarged Klaus Multiparking */
.sponsor-item.tier-1 img[src*="Klauss"] {
  height: 155px;
  max-height: 175px;
  max-width: 540px;
}
/* Proportional Ultra Corpotech */
.sponsor-item.tier-1 img[src*="Ultracorpotech"] {
  height: 90px;
  max-height: 100px;
  max-width: 400px;
}

/* Tier 2 - Middle Row (Medium - SolidWorks, Ansys, iTech Robotics, MAHLE, C2M) */
.tier-2-row {
  gap: 4.5rem;
}
.sponsor-item.tier-2 {
  padding: 0;
  min-width: auto;
}
.sponsor-item.tier-2 .sponsor-img {
  height: 66px;
  max-height: 74px;
  max-width: 250px;
}
/* Optically scaled down MAHLE to match tier-2 visual weight */
.sponsor-item.tier-2 img[src*="MAHLE"] {
  height: 44px;
  max-height: 48px;
  max-width: 190px;
}
.sponsor-item.tier-2 img[src*="C2M"] {
  height: 66px;
  max-height: 72px;
  max-width: 215px;
}
.sponsor-item.tier-2 img[src*="itech"] {
  height: 64px;
  max-height: 70px;
  max-width: 240px;
}
.sponsor-item.tier-2 img[src*="SolidWorks"] {
  height: 56px;
  max-height: 62px;
  max-width: 230px;
}
.sponsor-item.tier-2 img[src*="Ansys"] {
  height: 52px;
  max-height: 58px;
  max-width: 200px;
}

/* Tier 3 - Bottom Row (Smallest - All others) */
.tier-3-row {
  gap: 2.2rem 3.5rem;
  max-width: 1200px;
}
.sponsor-item.tier-3 {
  padding: 0;
  min-width: auto;
}
.sponsor-item.tier-3 .sponsor-img {
  height: 40px;
  max-height: 46px;
  max-width: 160px;
}
.sponsor-item.tier-3 img[src*="Anucool"] {
  height: 32px;
  max-height: 36px;
}
.sponsor-item.tier-3 img[src*="Excellent"] {
  height: 75px;
  max-height: 85px;
  max-width: 220px;
}
.sponsor-item.tier-3 img[src*="ICIL"] {
  height: 58px;
  max-height: 66px;
  max-width: 220px;
}

@media (max-width: 768px) {
  .sponsors-ferrari-section {
    padding: 2.5rem 4%;
  }
  .tier-1-row {
    gap: 2.5rem;
  }
  .sponsor-item.tier-1 .sponsor-img {
    height: 70px;
    max-height: 78px;
    max-width: 280px;
  }
  .sponsor-item.tier-1 img[src*="Klauss"] {
    height: 110px;
    max-height: 125px;
    max-width: 360px;
  }
  .sponsor-item.tier-1 img[src*="Ultracorpotech"] {
    height: 64px;
    max-height: 70px;
    max-width: 260px;
  }
  .tier-2-row {
    gap: 2rem;
  }
  .sponsor-item.tier-2 .sponsor-img {
    height: 48px;
    max-height: 54px;
    max-width: 170px;
  }
  .sponsor-item.tier-2 img[src*="MAHLE"] {
    height: 32px;
    max-height: 36px;
    max-width: 135px;
  }
  .sponsor-item.tier-2 img[src*="SolidWorks"] {
    height: 42px;
    max-height: 46px;
    max-width: 165px;
  }
  .sponsor-item.tier-2 img[src*="Ansys"] {
    height: 36px;
    max-height: 40px;
    max-width: 140px;
  }
  .tier-3-row {
    gap: 1.5rem 2rem;
  }
  .sponsor-item.tier-3 .sponsor-img {
    height: 28px;
    max-height: 32px;
    max-width: 110px;
  }
  .sponsor-item.tier-3 img[src*="Anucool"] {
    height: 22px;
    max-height: 25px;
  }
  .sponsor-item.tier-3 img[src*="Excellent"] {
    height: 55px;
    max-height: 62px;
    max-width: 170px;
  }
  .sponsor-item.tier-3 img[src*="ICIL"] {
    height: 42px;
    max-height: 48px;
    max-width: 160px;
  }
  .brand-group {
    gap: 0.7rem;
  }
  .college-logo-img {
    height: 26px;
  }
  .brand-logo-img {
    height: 34px;
  }
}

/* ==========================================================================
   Recruitment Form Section
   ========================================================================== */
.form-section {
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.form-wrapper { max-width: 950px; margin: 0 auto; }

.form-card {
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  position: relative;
}

.form-card::after {
  content: ''; position: absolute;
  inset: -1px; border-radius: 17px; padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), transparent 50%, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.form-header-badge {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem; margin-bottom: 2.5rem;
}

.form-steps-title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 10px;
}

.form-step-num {
  width: 28px; height: 28px;
  background: var(--blue-primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.form-group-full { grid-column: span 2; }

.form-group {
  position: relative;
  display: flex; flex-direction: column;
}

.form-label {
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.5px; color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex; justify-content: space-between; align-items: center;
}

.form-label span.required { color: var(--red-bright); }

.form-control {
  width: 100%; padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease; outline: none;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue-bright);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.25); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%259aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-control option { background: var(--bg-secondary); color: #fff; }
textarea.form-control { resize: vertical; min-height: 120px; }
.char-counter { font-size: 0.75rem; color: var(--text-dim); }

.conditional-field {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: all 0.4s ease-out; margin-top: 0;
}
.conditional-field.active {
  max-height: 150px; opacity: 1; margin-top: 1.2rem;
}

/* Pill Selectors */
.pill-options { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pill-option { position: relative; cursor: pointer; }
.pill-option input[type="radio"],
.pill-option input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

.pill-label {
  display: inline-block; padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px; font-size: 0.85rem;
  font-weight: 500; color: var(--text-muted);
  transition: all 0.2s ease; user-select: none;
}

.pill-option:hover .pill-label {
  background: rgba(255, 255, 255, 0.08);
  color: #fff; border-color: rgba(255, 255, 255, 0.2);
}

.pill-option input:checked + .pill-label {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--blue-bright); color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Preference Cards */
.pref-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pref-card { position: relative; cursor: pointer; }
.pref-card input { position: absolute; opacity: 0; }
.pref-card-content {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px; text-align: center;
  transition: all 0.3s ease;
}
.pref-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: 0.3rem;
}
.pref-card-sub { font-size: 0.75rem; color: var(--text-muted); }
.pref-card:hover .pref-card-content {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.pref-card input:checked + .pref-card-content {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--blue-bright);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Error & Validation */
.error-msg {
  font-size: 0.78rem; color: var(--red-bright);
  margin-top: 0.4rem; display: none;
}
.form-control.invalid {
  border-color: var(--red-bright);
  background: rgba(255, 30, 39, 0.05);
}
.form-control.invalid ~ .error-msg { display: block; }

/* Submit */
.form-submit-container { margin-top: 3rem; text-align: center; }
.btn-submit { width: 100%; padding: 1.2rem; font-size: 1.1rem; }
.btn-submit .spinner {
  display: none; width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .spinner { display: inline-block; }

/* Alerts */
.form-alert {
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  border-radius: 8px; font-weight: 600;
  display: none; align-items: center;
  justify-content: center; gap: 10px;
  animation: fadeIn 0.4s ease;
}
.form-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
}
.form-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

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

/* ==========================================================================
   Footer (4-Column Grid)
   ========================================================================== */
.site-footer {
  background: #040507;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative; z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  gap: 3rem;
  padding: 3.5rem 1rem 2rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: flex-start;
}

.footer-logo-img:hover {
  transform: scale(1.06);
}

.footer-tagline {
  font-family: 'Planet Kosmos', sans-serif;
  font-size: 1rem; color: #ffffff;
  letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.8rem;
  text-align: center;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-link-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  text-align: center;
}

.footer-contact-item i {
  color: var(--blue-bright);
  font-size: 1.35rem;
}

.footer-contact-name {
  display: block;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.footer-contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--blue-bright);
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.footer-map-link:hover {
  color: var(--blue-bright);
}

.footer-map-link i {
  color: #d30000;
  font-size: 1.1rem;
}

/* Larger Social Icons */
.social-links-large {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.social-icon-lg {
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main); text-decoration: none;
  font-size: 1.3rem; transition: all 0.3s ease;
}

.social-icon-lg:hover {
  background: var(--blue-primary);
  border-color: var(--blue-bright);
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 0 15px var(--blue-glow);
}

/* Legacy smaller social icons (kept for compatibility) */
.social-links { display: flex; gap: 1rem; margin-top: 0.2rem; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-main); text-decoration: none;
  font-size: 1rem; transition: all 0.3s ease;
}
.social-icon:hover {
  background: var(--blue-primary);
  border-color: var(--blue-bright);
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 0 15px var(--blue-glow);
}

.footer-slogan-wrap {
  text-align: center;
  padding: 2.5rem 0 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-slogan {
  font-family: 'Planet Kosmos', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  letter-spacing: 5px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
}

.footer-bottom {
  text-align: center; padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim); font-size: 0.8rem;
}

/* Mobile Logo for phones only */
.college-logo-mobile { display: none; }


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .ferrari-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: span 1; }
  .pref-cards { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile Slide-In Drawer & Apply Now Button (≤ 768px)
   ========================================================================== */

/* Hide mobile-only elements on desktop */
.btn-mobile-apply { display: none; }
.drawer-header { display: none; }
.drawer-cta { display: none; }
.drawer-overlay { display: none; }

@media (max-width: 768px) {

  /* --- Header Layout --- */
  .site-header {
    padding: 0.6rem 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }

  /* Hamburger on the LEFT */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  .mobile-toggle:active {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Brand logos in center */
  .brand-group {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 4px;
    min-width: 0;
  }
  .college-logo-img { display: none !important; }
  .college-logo-mobile {
    display: block !important;
    height: 30px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    flex-shrink: 1;
  }
  .brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
  }
  .brand-logo-img {
    height: 32px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 1;
  }
  .brand-divider {
    height: 18px;
    margin: 0 2px;
    flex-shrink: 0;
  }

  /* Nav actions on the RIGHT */
  .nav-actions {
    order: 3;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  /* Hide desktop CTA, show mobile Apply Now */
  .btn-header-cta { display: none !important; }
  .btn-mobile-apply {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.42rem 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #d30000, #ff1a1a);
    border: 1px solid rgba(255, 50, 50, 0.5);
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(211, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: applyPulse 2.5s infinite ease-in-out;
    flex-shrink: 0;
  }
  .btn-mobile-apply:active {
    transform: scale(0.95);
  }
  .btn-mobile-apply i {
    font-size: 0.65rem;
  }

  @keyframes applyPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(211, 0, 0, 0.4); }
    50% { box-shadow: 0 0 22px rgba(255, 26, 26, 0.7); }
  }

  /* --- Slide-In Drawer from LEFT --- */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(59, 130, 246, 0.15);
    padding: 0;
    margin: 0;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 40px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    list-style: none;
    gap: 0;
  }

  .nav-links.drawer-open {
    transform: translateX(0);
  }

  /* Drawer Header (Logo + Close) */
  .drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.5rem;
    width: 100%;
  }
  .drawer-logo {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    flex-shrink: 1;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
  }
  .drawer-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.2s ease;
  }
  .drawer-close:hover {
    background: rgba(211, 0, 0, 0.2);
    border-color: rgba(211, 0, 0, 0.5);
  }

  /* Drawer Nav Links: Left-Aligned & Full-Width Click Areas */
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 1rem 1.6rem;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--blue-bright);
  }
  .nav-links .nav-link.active {
    color: var(--blue-bright);
  }
  .nav-links .nav-link::after {
    display: none;
  }

  /* Drawer CTA Button */
  .drawer-cta {
    display: block !important;
    padding: 1.2rem 1.4rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    list-style: none;
    width: 100%;
  }
  .btn-drawer-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1.4rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    border: 1px solid var(--blue-bright);
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 18px var(--blue-glow);
  }
  .btn-drawer-apply:active {
    transform: scale(0.97);
    box-shadow: 0 0 28px var(--blue-bright);
  }

  /* Drawer Overlay (dark backdrop) - high z-index & blocks pointer events */
  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .drawer-overlay.active {
    display: block;
    opacity: 1;
  }

  /* --- Hero Adjustments for Phones --- */
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
    min-height: 100vh;
  }
  .hero-bg-image {
    object-position: 60% center;
    filter: brightness(0.85) contrast(1.1);
  }
  .hero-overlay {
    background: radial-gradient(ellipse at 50% 30%, rgba(7,8,10,0.35) 0%, rgba(7,8,10,0.75) 60%, rgba(7,8,10,0.95) 100%);
  }
  .hero-content {
    padding: 0 0.5rem;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 14px;
    letter-spacing: 1.5px;
  }
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: 2px;
  }
  .hero-tagline {
    font-size: clamp(1rem, 5vw, 1.6rem);
    letter-spacing: 2px;
  }
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  /* --- Page Hero for subpages --- */
  .page-hero {
    min-height: 30vh;
    padding-top: 5rem;
  }

  /* --- General mobile fixes --- */
  .form-card { padding: 1.5rem; }
  .ferrari-gallery-grid { grid-template-columns: 1fr; }
  .timeline-node { width: 280px; }
  .timeline-nav-btn {
    display: flex !important;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    background: rgba(13, 14, 18, 0.95);
    border: 1px solid var(--border-glow);
    z-index: 25;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
  }
  .timeline-nav-btn.prev { left: 6px; }
  .timeline-nav-btn.next { right: 6px; }
  .section-padding { padding: 3rem 1rem; }

  /* --- Footer Grid: Stack on Mobile --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 0 1.5rem;
  }
  .footer-col { align-items: center; }
  .footer-logo-img { align-self: center; }
  .footer-contact-item { justify-content: center; }
  .social-links-large { justify-content: center; }

  /* --- Mobile MIT WPU Logo Swap --- */
  .college-logo-img { display: none !important; }
  .college-logo-mobile {
    display: block !important;
    height: 32px;
    width: auto;
    object-fit: contain;
  }

  /* Prevent body scroll when drawer is open */
  body.drawer-is-open {
    overflow: hidden;
  }
}

@media (max-width: 400px) {
  .brand-group { gap: 0.4rem; }
  .college-logo-mobile { height: 26px; }
  .brand-logo-img { height: 28px; }
  .btn-mobile-apply {
    padding: 0.4rem 0.7rem;
    font-size: 0.6rem;
  }
}
