/* ═══════════════════════════════════════════════════════════════════
   IPNET Institute of Technology — Stylesheet
   Aesthetic: Dark Tech + Academic Elegance
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --navy:    #0a1628;
  --navy2:   #0d1f3c;
  --blue:    #1565C0;
  --blue2:   #1976D2;
  --cyan:    #00ACC1;
  --cyan2:   #00BCD4;
  --white:   #ffffff;
  --off:     #f0f4f8;
  --gray:    #607D8B;
  --lgray:   #eceff1;
  --text:    #263238;
  --amber:   #FF8F00;
  --green:   #2E7D32;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;
  --shadow:  0 4px 24px rgba(0,0,0,.15);
  --shadow2: 0 8px 48px rgba(0,0,0,.22);
  --r: 12px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--off); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }
input, select, textarea { outline: none; font-family: var(--font-body); }

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,172,193,.18);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,.4); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 1.5rem; height: 72px;
}
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 48px; width: auto; object-fit: contain; filter: brightness(1.1); }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 8px;
  color: rgba(255,255,255,.75); font-size: .88rem; font-weight: 500;
  transition: all var(--transition); position: relative;
}
.nav-link i { font-size: .8rem; }
.nav-link:hover, .nav-link.active {
  color: var(--cyan); background: rgba(0,172,193,.1);
}
.nav-link.active::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px; background: var(--cyan); border-radius: 2px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; padding: .5rem 1.25rem; border-radius: 8px;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: all var(--transition); margin-left: .5rem;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,172,193,.4); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; background: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }

/* ═══════════════════════════════════════════════════════════════════
   PAGE WRAPPER & TABS
   ═══════════════════════════════════════════════════════════════════ */
.page-wrapper { padding-top: 72px; min-height: 100vh; }
.page { display: block; animation: fadeUp .5s ease both; }
.page.hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 72px);
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,172,193,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,172,193,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
  animation: pulse 6s ease-in-out infinite;
}
.g1 { width: 500px; height: 500px; background: var(--blue); top: -100px; right: 5%; }
.g2 { width: 350px; height: 350px; background: var(--cyan); bottom: 10%; left: 45%; animation-delay: -2s; }
.g3 { width: 250px; height: 250px; background: #4527A0; top: 40%; left: 20%; animation-delay: -4s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50%       { transform: scale(1.1); opacity: .5; }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 4rem 2rem 4rem 4rem; max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,172,193,.15); border: 1px solid rgba(0,172,193,.3);
  color: var(--cyan); padding: .4rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem; font-family: var(--font-mono);
}
.hero-title { font-family: var(--font-display); line-height: 1.1; margin-bottom: 1.25rem; }
.title-line1 { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); color: rgba(255,255,255,.6); font-weight: 400; }
.title-line2 { display: block; font-size: clamp(3rem, 6vw, 5rem); color: white; font-weight: 900; }
.title-line3 { display: block; font-size: clamp(3rem, 6vw, 5rem); color: var(--cyan); font-weight: 900; }
.hero-sub { color: rgba(255,255,255,.65); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; padding: .8rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem;
  transition: all var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,172,193,.45); }
.btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,.3);
  color: white; padding: .8rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .5rem;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,172,193,.08); }

/* ─── Hero Stats ─── */
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; gap: .15rem; }
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--cyan); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }
.stat-sep { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ─── Hero Visual ─── */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  padding: 4rem 4rem 4rem 2rem;
}
.tech-circle {
  position: relative; width: 380px; height: 380px;
}
.tc-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin linear infinite;
}
.r1 {
  inset: 0; border-color: rgba(0,172,193,.3);
  animation-duration: 20s;
}
.r2 {
  inset: 30px; border-color: rgba(21,101,192,.4);
  animation-duration: 30s; animation-direction: reverse;
  border-style: dashed;
}
.r3 {
  inset: 60px; border-color: rgba(0,172,193,.2);
  animation-duration: 15s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tc-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: white;
  box-shadow: 0 0 60px rgba(0,172,193,.5);
}
.tc-icon {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy2); border: 1px solid rgba(0,172,193,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.i1 { top: 10px;  left: 50%; transform: translateX(-50%); }
.i2 { top: 22%;  right: 5%; }
.i3 { bottom: 22%; right: 5%; }
.i4 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.i5 { bottom: 22%; left: 5%; }
.i6 { top: 22%;  left: 5%; }

/* ─── Features Strip ─── */
.features-strip {
  background: var(--navy2);
  border-top: 1px solid rgba(0,172,193,.15);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: rgba(0,172,193,.07); }
.fc-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.fc-text strong { color: white; font-size: .95rem; display: block; margin-bottom: .2rem; }
.fc-text p { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ─── Section block ─── */
.section-block { padding: 5rem 4rem; background: var(--off); }
.section-label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--cyan); }
.section-label.white { color: rgba(255,255,255,.7); }
.section-label.white::before { background: rgba(255,255,255,.5); }
.section-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 2.5rem; }

/* ─── News Grid ─── */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.news-card {
  background: white; border-radius: var(--r); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--lgray);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.news-card.featured { background: var(--navy); color: white; }
.news-cat {
  display: inline-block; background: rgba(0,172,193,.2);
  color: var(--cyan); padding: .2rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1rem; font-family: var(--font-mono);
}
.news-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .75rem; }
.news-card p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.news-card:not(.featured) p { color: var(--gray); }
.news-meta { margin-top: 1.25rem; font-size: .8rem; color: rgba(255,255,255,.4); }
.news-card:not(.featured) .news-meta { color: var(--gray); }

/* ═══════════════════════════════════════════════════════════════════
   MINI HERO (pages internes)
   ═══════════════════════════════════════════════════════════════════ */
.page-hero.mini {
  padding: 4rem 4rem 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero.mini::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.mini-hero-content { position: relative; z-index: 1; }
.mini-hero-content h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  color: white; margin: .5rem 0 .75rem;
}
.mini-hero-content p { color: rgba(255,255,255,.65); font-size: 1.05rem; }

/* ─── Content wrap ─── */
.content-wrap { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

/* ═══════════════════════════════════════════════════════════════════
   À PROPOS
   ═══════════════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 4rem; }
.about-text h2 { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin: .5rem 0 1rem; }
.about-text p { color: var(--gray); margin-bottom: 1rem; line-height: 1.7; }
.about-values { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.value-item { display: flex; align-items: center; gap: .75rem; color: var(--navy); font-weight: 500; font-size: .95rem; }
.value-item i { color: var(--cyan); }
.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.about-card {
  padding: 1.5rem; border-radius: var(--r);
  display: flex; flex-direction: column; gap: .5rem;
}
.about-card i { font-size: 1.4rem; }
.about-card h3 { font-family: var(--font-display); font-size: 1.1rem; }
.about-card p { font-size: .88rem; line-height: 1.6; }
.ac-blue { background: var(--blue); color: white; }
.ac-blue p { color: rgba(255,255,255,.75); }
.ac-dark { background: var(--navy); color: white; }
.ac-dark p { color: rgba(255,255,255,.65); }
.ac-cyan { background: linear-gradient(135deg, #00838F, #00ACC1); color: white; }
.ac-cyan p { color: rgba(255,255,255,.8); }

.stats-row {
  display: flex; justify-content: space-between;
  background: var(--navy); border-radius: var(--r);
  padding: 2.5rem 3rem; margin-bottom: 4rem; gap: 1rem;
  flex-wrap: wrap;
}
.big-stat { text-align: center; }
.big-stat span { display: block; font-family: var(--font-mono); font-size: 2.2rem; color: var(--cyan); font-weight: 700; }
.big-stat label { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.team-card {
  background: white; border-radius: var(--r); padding: 1.75rem 1.25rem;
  text-align: center; box-shadow: var(--shadow); border: 1px solid var(--lgray);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.team-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem; margin: 0 auto 1rem;
}
.team-card h4 { font-family: var(--font-display); font-size: 1rem; color: var(--navy); margin-bottom: .25rem; }
.team-card span { font-size: .78rem; color: var(--cyan); font-weight: 600; display: block; margin-bottom: .5rem; }
.team-card p { font-size: .82rem; color: var(--gray); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════
   FORMATIONS
   ═══════════════════════════════════════════════════════════════════ */
.filter-bar { display: flex; gap: .75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: .5rem 1.25rem; border-radius: 999px;
  background: white; border: 1.5px solid var(--lgray);
  color: var(--gray); font-size: .88rem; font-weight: 600;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue); color: white; border-color: var(--blue);
}
.programs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.prog-card {
  background: white; border-radius: 16px; padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--lgray);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.prog-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow2); }
.prog-badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1rem; font-family: var(--font-mono);
}
.prog-badge.master  { background: #EDE7F6; color: #4527A0; }
.prog-badge.licence { background: #E3F2FD; color: #1565C0; }
.prog-badge.certif  { background: #E8F5E9; color: #2E7D32; }
.prog-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.4rem; margin-bottom: 1rem;
}
.prog-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: .6rem; }
.prog-card p { color: var(--gray); font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.prog-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.prog-tags span {
  background: var(--lgray); color: var(--blue); padding: .2rem .6rem;
  border-radius: 6px; font-size: .75rem; font-weight: 600; font-family: var(--font-mono);
}
.prog-info { display: flex; gap: 1rem; color: var(--gray); font-size: .82rem; margin-bottom: 1.25rem; }
.prog-info span { display: flex; align-items: center; gap: .35rem; }
.prog-btn {
  width: 100%; padding: .65rem; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all var(--transition);
}
.prog-btn:hover { box-shadow: 0 4px 20px rgba(0,172,193,.4); }

/* ═══════════════════════════════════════════════════════════════════
   CAMPUS
   ═══════════════════════════════════════════════════════════════════ */
.campus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-bottom: 4rem; }
.campus-card {
  background: white; border-radius: var(--r); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--lgray);
  transition: all var(--transition);
}
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow2); border-color: var(--cyan); }
.campus-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue2));
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 1.4rem; margin-bottom: 1.25rem;
}
.campus-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem; }
.campus-card p { color: var(--gray); font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.campus-detail {
  font-family: var(--font-mono); font-size: .76rem; color: var(--cyan);
  background: rgba(0,172,193,.08); padding: .4rem .75rem; border-radius: 6px;
  display: inline-block;
}
.location-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.loc-info h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin: .5rem 0 1.5rem; }
.loc-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.loc-detail > i { color: var(--cyan); font-size: 1.1rem; margin-top: .15rem; flex-shrink: 0; width: 20px; }
.loc-detail strong { color: var(--navy); display: block; margin-bottom: .25rem; }
.loc-detail p { color: var(--gray); font-size: .9rem; line-height: 1.5; }
.loc-map { height: 360px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow2); }
.map-placeholder {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: white; gap: .75rem;
}
.map-placeholder i { font-size: 3.5rem; color: var(--cyan); }
.map-placeholder p { font-size: 1.1rem; font-weight: 600; }
.map-placeholder span { font-size: .85rem; opacity: .6; }

/* ═══════════════════════════════════════════════════════════════════
   ADMISSIONS
   ═══════════════════════════════════════════════════════════════════ */
.admission-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; margin-bottom: 4rem; }
.adm-block h2, .adm-form-block h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.adm-block h2 i, .adm-form-block h2 i { color: var(--cyan); }
.adm-item { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; align-items: flex-start; }
.adm-num {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; font-family: var(--font-mono); font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.adm-item strong { color: var(--navy); display: block; margin-bottom: .25rem; }
.adm-item p { color: var(--gray); font-size: .9rem; }

/* Form */
.adm-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--lgray); background: white;
  font-size: .95rem; color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,172,193,.1); }
.form-group textarea { resize: vertical; }
.btn-submit {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; padding: .9rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; gap: .5rem; margin-top: .5rem;
  transition: all var(--transition); width: 100%;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,172,193,.45); }

/* Timeline */
.calendar-block { background: var(--navy); border-radius: 20px; padding: 3rem; }
.calendar-block .section-title { color: white; font-size: 1.4rem; }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 10px; bottom: 10px;
  width: 2px; background: rgba(255,255,255,.1);
}
.tl-item { display: flex; gap: 1.5rem; padding: 1rem 0; position: relative; }
.tl-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy2); border: 2px solid rgba(255,255,255,.2);
  position: relative; z-index: 1; margin-top: .1rem;
}
.tl-item.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-item.active .tl-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.tl-content strong { color: white; font-size: .95rem; display: block; margin-bottom: .2rem; }
.tl-content p { color: rgba(255,255,255,.5); font-size: .88rem; }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h2, .contact-form-block h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-card > i {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-card strong { color: var(--navy); display: block; margin-bottom: .2rem; }
.contact-card p { color: var(--gray); font-size: .9rem; line-height: 1.5; }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; transition: all var(--transition);
}
.social-btn.fb { background: #1877F2; }
.social-btn.li { background: #0A66C2; }
.social-btn.tw { background: #1DA1F2; }
.social-btn.yt { background: #FF0000; }
.social-btn.wa { background: #25D366; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,.25); }

/* ═══════════════════════════════════════════════════════════════════
   TOAST & SCROLL TOP
   ═══════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--green); color: white;
  padding: .9rem 1.75rem; border-radius: 999px;
  display: flex; align-items: center; gap: .5rem;
  font-weight: 600; box-shadow: var(--shadow2);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue); color: white; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow2); opacity: 0; pointer-events: none;
  transition: all var(--transition); z-index: 999;
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--cyan); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════════════
   PARTICLES (canvas-free, CSS only)
   ═══════════════════════════════════════════════════════════════════ */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cyan); opacity: 0;
  animation: floatUp 8s ease-in-out infinite;
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .6; }
  80%  { opacity: .3; }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 3rem 2rem; max-width: 100%; }
  .features-strip { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .campus-grid { grid-template-columns: repeat(2,1fr); }
  .location-block { grid-template-columns: 1fr; }
  .admission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy2);
    padding: 1rem; gap: .25rem; border-bottom: 1px solid rgba(0,172,193,.15); }
  .nav-links.open { display: flex; }
  .nav-link { padding: .75rem 1rem; border-radius: 8px; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .features-strip { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { justify-content: center; gap: 2rem; }
  .section-block { padding: 3rem 1.5rem; }
  .content-wrap { padding: 2.5rem 1.25rem; }
  .page-hero.mini { padding: 2.5rem 1.5rem; }
}
