/* ============================================================
   ASME-VIT WEBSITE — MASTER STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-navy:      #163969;
  --color-steel:     #2E86C1;
  --color-bg:        #F9F9F9;
  --color-text:      #222222;
  --color-white:     #FFFFFF;
  --color-overlay:   rgba(10, 20, 40, 0.62);
  --color-navy-light:#1a4478;
  --color-navy-dark: #102b52;

  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-height: 110px;
  --radius: 12px;
  --transition-fast: 0.25s ease;
  --transition-slow: 0.6s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }

.heading-xl { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; letter-spacing: 4px; text-transform: uppercase; }
.heading-lg { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.heading-md { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.subheading  { font-size: clamp(1rem, 1.5vw, 1.25rem); font-family: var(--font-body); opacity: 0.92; }

.steel-line { width: 60px; height: 3px; background: var(--color-steel); margin: 16px 0 24px; border-radius: 2px; }
.steel-line.center { margin-left: auto; margin-right: auto; }

.section-heading-wrapper { margin-bottom: 48px; }
.section-heading-wrapper .heading-lg { color: var(--color-navy); }
.section-heading-wrapper.white-text .heading-lg { color: var(--color-white); }
.section-heading-wrapper.white-text p { color: rgba(255,255,255,0.85); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 6px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9375rem;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px; line-height: 1.2;
}
.btn:focus-visible { outline: 3px solid var(--color-steel); outline-offset: 3px; }
.btn:active { transform: scale(0.98); }

.btn-hero {
  border-color: var(--color-white); color: var(--color-white); background: transparent;
  animation: pulse-border 2.4s infinite;
}
.btn-hero:hover { background: var(--color-steel); border-color: var(--color-steel); animation: none; }

.btn-primary { background: var(--color-steel); color: var(--color-white); border-color: var(--color-steel); }
.btn-primary:hover { background: #236fa1; border-color: #236fa1; }

.btn-outline-white { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline-white:hover { background: var(--color-white); color: var(--color-navy); }

.btn-link { color: var(--color-steel); font-weight: 600; font-family: var(--font-body); font-size: 0.9375rem; transition: color var(--transition-fast); }
.btn-link:hover { color: var(--color-navy); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-height); display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; margin-left: -48px; }
.nav-logo img { height: 100px; width: auto; max-width: 300px; object-fit: contain; display: block; }

.nav-links { display: flex; gap: 32px; align-items: center; margin-right: -24px; align-self: flex-start; padding-top: 24px; }
.nav-links a {
  color: var(--color-white); font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem;
  position: relative; padding-bottom: 4px; transition: color var(--transition-fast);
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-steel); transition: width var(--transition-fast); }
.nav-links a:hover, .nav-links a.active { color: var(--color-steel); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:focus-visible { outline: 2px solid var(--color-steel); outline-offset: 4px; border-radius: 2px; }

.nav-toggle {
  display: none; background: none; border: none; color: var(--color-white);
  font-size: 1.75rem; cursor: pointer;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  border-radius: 4px; transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-steel); }

.nav-drawer {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; width: min(320px, 85vw); height: 100vh;
  background: var(--color-navy); z-index: 1100;
  padding: 80px 32px 48px; gap: 4px;
  transform: translateX(100%); transition: transform 0.35s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  color: var(--color-white); font-family: var(--font-body); font-weight: 500; font-size: 1.125rem;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--color-steel); padding-left: 8px; }

.nav-close {
  position: absolute; top: 20px; right: 20px; background: none; border: none;
  color: var(--color-white); font-size: 1.75rem; cursor: pointer;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1050; }
.nav-overlay.active { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--color-navy); color: var(--color-white); }
.footer-main { padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }

.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--color-steel); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-tagline { font-size: 0.875rem; font-weight: 500; font-family: var(--font-heading); margin-bottom: 20px; line-height: 1.5; letter-spacing: 0.3px; }

.social-icons { display: flex; gap: 12px; margin-top: 4px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition-fast);
  color: var(--color-white);
}
.social-icon:hover { background: var(--color-steel); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.social-icon:focus-visible { outline: 2px solid var(--color-steel); outline-offset: 2px; border-radius: 50%; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 0.9375rem; transition: color var(--transition-fast), padding-left var(--transition-fast); display: inline-block; }
.footer-links a:hover { color: var(--color-white); padding-left: 6px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.9375rem; opacity: 0.85; line-height: 1.55; }
.footer-contact-item .fi-icon { flex-shrink: 0; margin-top: 2px; font-size: 1rem; }

.footer-bottom { background: var(--color-navy-dark); padding: 18px 0; }
.footer-bottom p { font-size: 0.875rem; opacity: 0.65; text-align: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: var(--nav-height);
  min-height: 100vh;
}
.hero.hero-sm { min-height: 60vh; }
.hero.hero-xs { min-height: 50vh; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: var(--color-overlay); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--color-white); padding: 0 24px; max-width: 900px; }
.hero-content .heading-xl { font-size: clamp(1.75rem, 3.5vw, 3.25rem); margin-bottom: 24px; letter-spacing: 2px; }
.hero-word { display: inline-block; margin-right: 0.22em; }
.hero-content .subheading { max-width: 640px; margin: 0 auto 36px; opacity: 0.9; line-height: 1.7; }

/* ============================================================
   SECTION: VISION & MOTTO
   ============================================================ */
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.vision-left .heading-lg { color: var(--color-navy); }
.vision-right p { font-size: 1.0625rem; line-height: 1.8; color: var(--color-text); margin-bottom: 28px; }
.pull-quote {
  border-left: 4px solid var(--color-steel); padding-left: 24px;
  font-family: var(--font-heading); font-style: italic; font-size: 1.1875rem; font-weight: 700;
  color: var(--color-steel); line-height: 1.45;
}

.hashtag-stamp {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--color-navy);
  margin-top: 20px;
  padding-left: 28px;
  opacity: 0.35;
  text-transform: uppercase;
}

/* ============================================================
   DARK SECTION
   ============================================================ */
.section-navy { background: var(--color-navy); }

/* ============================================================
   AWARDS INTERACTIVE TIMELINE
   ============================================================ */
.awards-section {
  background-color: #0d1f3c;
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(46,134,193,0.18) 0%, transparent 65%),
    radial-gradient(circle, rgba(46,134,193,0.14) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  position: relative;
}

/* ── Side-by-side layout ───────────────────────────────── */
.awards-layout {
  display: flex;
  align-items: stretch;
  min-height: 360px;
}

/* ── Left header panel ─────────────────────────────────── */
.awards-header {
  width: 300px;
  flex-shrink: 0;
  padding: 64px 40px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(46,134,193,0.25);
  text-align: left;
}
.awards-title {
  color: #fff; font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
  line-height: 1.2;
}
.awards-rule { width: 50px; height: 3px; background: var(--color-steel); margin: 0 0 20px; border-radius: 2px; }
.awards-intro {
  font-family: var(--font-body); font-size: 0.9375rem;
  color: rgba(255,255,255,0.72); line-height: 1.7;
}

/* ── Right timeline container ──────────────────────────── */
.awards-timeline-container {
  flex: 1;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 12px;
}

/* ── Scroll wrapper ────────────────────────────────────── */
/*
   Horizontal padding only — vertical breathing room lives on the
   track so cards stay inside the scroll container and aren't clipped.
   (browsers convert overflow-x:auto + overflow-y:visible → auto,
    so any card that escaped the wrapper vertically would be clipped)
*/
.timeline-scroll-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  padding: 0 80px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
}
.timeline-scroll-wrapper::-webkit-scrollbar { display: none; }

/* ── Track (horizontal flex) ───────────────────────────── */
/*
   Symmetric padding is critical: axis uses top:50% of the padding box,
   while flexbox centres items in the content box. Equal top/bottom
   padding means both resolve to the same pixel, so connectors meet
   the axis exactly.
   width:100% + justify-content:space-between spreads months across the
   full available width; min-width:max-content ensures scrolling kicks
   in on narrow screens.
*/
.timeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  min-width: max-content;
  padding: 80px 0;
  min-height: 60px;
}

/* ── Centre axis line ──────────────────────────────────── */
.timeline-axis {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #5ab4e8 6%,
    #2E86C1 40%,
    #5ab4e8 60%,
    #2E86C1 94%,
    transparent 100%
  );
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(46,134,193,0.7), 0 0 24px rgba(46,134,193,0.3);
}

/* ── Axis intersection dot ─────────────────────────────── */
.axis-intersection {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5ab4e8;
  box-shadow: 0 0 6px rgba(90,180,232,0.9), 0 0 14px rgba(46,134,193,0.5);
  pointer-events: none;
  z-index: 2;
}

/* ── Year markers ──────────────────────────────────────── */
.timeline-year-marker {
  font-family: var(--font-heading); font-size: 0.72rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(46,134,193,0.5);
  position: relative; top: -82px;
  margin: 0 16px 0 48px; white-space: nowrap;
  pointer-events: none; user-select: none;
}

/* ── Month group ───────────────────────────────────────── */
/*
   Each month is a fixed-height container that sits centered in the track.
   Nodes are absolutely positioned at top:50% so every node's centre is
   pinned to the axis before the transform offset is applied — this keeps
   connector maths identical whether the month has 1 or 2 nodes.
*/
.timeline-month {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;           /* matches dot width so space-between has real items to distribute */
  height: 60px;
  flex-shrink: 0;
}
.timeline-month-label {
  position: absolute; bottom: -72px;
  left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(90,180,232,0.6); white-space: nowrap;
  pointer-events: none;
}

/* ── Node ──────────────────────────────────────────────── */
/*
   GEOMETRY: each node is absolutely centred at top:50% (the axis).
   The transform then shifts it exactly 65px above/below the axis.
   transform creates a stacking context; explicit z-index on every
   node ranks them globally so the active card covers sibling dots.
*/
.timeline-node {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline-node.active { z-index: 500; }

/* Shift node centre exactly 65px from axis */
.timeline-node.position-above { transform: translateY(calc(-50% - 65px)); }
.timeline-node.position-below { transform: translateY(calc(-50% + 65px)); }

/* ── Dotted connector — steel blue, meets axis exactly ─── */
.timeline-node.position-above::after,
.timeline-node.position-below::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 54px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(90,180,232,0.85) 0px,
    rgba(90,180,232,0.85) 4px,
    transparent 4px,
    transparent 9px
  );
  pointer-events: none;
  z-index: 0;
}
.timeline-node.position-above::after { top: 100%; }
.timeline-node.position-below::after { bottom: 100%; }

/* ── Dot ───────────────────────────────────────────────── */
.node-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #5ab4e8, #1e72a8);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 10px rgba(46,134,193,0.7), 0 0 0 3px rgba(46,134,193,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}
.node-dot:hover, .timeline-node.active .node-dot {
  transform: scale(1.8);
  background: linear-gradient(135deg, #fff, #d4ecfa);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 6px rgba(90,180,232,0.25), 0 0 28px rgba(90,180,232,0.7);
}
.node-icon {
  font-size: 11px; line-height: 1;
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}

/* ── Pulse ring — steel blue ───────────────────────────── */
@keyframes node-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}
.node-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(90,180,232,0.75);
  animation: node-pulse 2.4s ease-out infinite; pointer-events: none;
}
.timeline-node.active .node-pulse { animation: none; opacity: 0; }

/* ── Card (base styles shared by portal) ───────────────── */
.node-card {
  position: absolute;
  width: 340px;
  background: linear-gradient(160deg, #0d2550, #091a38);
  border: 1px solid rgba(90,180,232,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 16px 48px rgba(0,0,0,0.8), 0 0 0 1px rgba(46,134,193,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}

/*
   Portal card — lives directly in .awards-section (position:relative),
   completely outside the scroll wrapper, so overflow-x:auto can never
   clip it. Position is set by JS via getBoundingClientRect().
*/
#cardPortal {
  z-index: 2000;
}

.node-card-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(46,134,193,0.2); padding-bottom: 8px;
  flex-wrap: wrap;
}
.node-award-name  { font-family: var(--font-body); font-weight: 700; font-size: 0.875rem; color: #fff; line-height: 1.3; flex: 1; }
.node-issuer      { font-size: 0.68rem; color: var(--color-steel); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.node-recipient   { font-size: 0.68rem; color: rgba(255,255,255,0.5); width: 100%; }
.node-desc        { font-family: var(--font-body); font-size: 0.76rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }


/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .awards-layout { flex-direction: column; }
  .awards-header { width: 100%; border-right: none; border-bottom: 1px solid rgba(46,134,193,0.25); padding: 48px 24px 32px; }
  .timeline-scroll-wrapper { padding: 0 40px; }
  .timeline-month { width: 22px; }
  .node-card { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .node-pulse { animation: none; }
}

/* ============================================================
   THE TEAM (ROLLING MARQUEE)
   ============================================================ */
.team-section {
  background: var(--color-bg);
  overflow: hidden;
}

.team-heading-wrap {
  padding: 72px 0 40px;
  text-align: center;
}

.team-intro {
  max-width: 560px; margin: 0 auto;
  font-size: 1.0625rem; color: #555; line-height: 1.75;
}

/* ── Shared roll card (faculty + marquee board) ──── */
.team-roll-card {
  width: 220px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22,57,105,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.team-roll-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(22,57,105,0.2);
}

/* Photo — full image shown, no cropping */
.team-roll-photo {
  width: 100%;
}
.team-roll-photo img {
  width: 100%; height: auto; display: block;
}

/* Placeholder until real photo is provided */
.team-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-steel) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.4rem;
  letter-spacing: 2px; color: rgba(255,255,255,0.55);
}

/* Info panel — overlays bottom 25% of the image */
.team-roll-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 12px 30px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(to top, rgba(10,20,40,0.92) 60%, transparent 100%);
}

.team-name {
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.875rem; color: #fff;
  line-height: 1.3; margin: 0;
}
.team-role {
  font-size: 0.72rem; color: rgba(100,180,255,0.9);
  text-transform: uppercase; letter-spacing: 0.8px;
  font-weight: 600; margin: 0;
}
.team-role-faculty { color: rgba(100,180,255,0.9); }

/* LinkedIn — covers entire info panel so the whole overlay area is clickable */
.team-linkedin {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.team-linkedin svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.team-linkedin:hover { color: #fff; background: rgba(46,134,193,0.12); }
/* Faculty LinkedIn shows label text */
.team-linkedin-text { font-size: 0.8125rem; }

/* Faculty card — slightly wider + taller photo */
.team-card-faculty {
  width: 240px;
}
.team-card-faculty .team-roll-photo { height: auto; }
.team-card-faculty .team-roll-photo img { width: 100%; height: auto; display: block; }
.team-card-faculty .team-name  { font-size: 1rem; }
.team-card-faculty .team-role  { font-size: 0.8125rem; }

/* ── Marquee outer wrapper ────────────────────────── */
.team-marquee-outer {
  overflow: hidden;
  padding: 20px 0 56px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* ── Marquee track ────────────────────────────────── */
.team-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: team-scroll 38s linear infinite;
}
.team-marquee-outer:hover .team-marquee-track {
  animation-play-state: paused;
}

@keyframes team-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
  .team-roll-card   { width: 148px; }
  .team-roll-photo  { height: auto; }
  .team-card-faculty { width: 190px; }
  .team-card-faculty .team-roll-photo { height: auto; }
  .team-marquee-outer { padding-bottom: 40px; }
  .team-marquee-track { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-marquee-track { animation: none; overflow-x: auto; }
}

/* ============================================================
   MARQUEE / PHOTO STRIP
   ============================================================ */
.marquee-section { padding: 64px 0; overflow: hidden; }
.marquee-caption { text-align: center; font-size: 1.0625rem; font-weight: 500; margin-bottom: 32px; padding: 0 24px; }

.marquee-wrapper { position: relative; overflow: hidden; }
.marquee-wrapper::before, .marquee-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--color-bg), transparent); }
.marquee-wrapper::after  { right: 0; background: linear-gradient(to left, var(--color-bg), transparent); }

.marquee-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  width: 300px; height: 240px; margin: 0 12px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.875rem;
  color: rgba(255,255,255,0.75); letter-spacing: 1px;
}
.mi-1 { background: linear-gradient(135deg, #1A3C6E, #2E86C1); }
.mi-2 { background: linear-gradient(135deg, #2E86C1, #1A3C6E); }
.mi-3 { background: linear-gradient(135deg, #162f58, #2E86C1); }
.mi-4 { background: linear-gradient(135deg, #1F4882, #3498d8); }
.mi-5 { background: linear-gradient(135deg, #0d2340, #2E86C1); }
.mi-6 { background: linear-gradient(135deg, #2E86C1, #1F4882); }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card { transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(26,60,110,0.18); }

.project-card {
  background: var(--color-white); border-radius: var(--radius);
  padding: 28px 28px 28px 32px;
  box-shadow: 0 2px 20px rgba(26,60,110,0.09);
  border-left: 4px solid var(--color-steel);
  display: flex; flex-direction: column; gap: 10px;
}
.project-card:hover { border-left-color: var(--color-navy); }

.card-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; width: fit-content; }
.tag-ongoing   { background: rgba(46,134,193,0.13); color: var(--color-steel); }
.tag-completed { background: rgba(39,174,96,0.14);  color: #1a9e55; }
.tag-research  { background: rgba(230,126,34,0.14); color: #d35400; }

.card-title { font-size: 1.125rem; font-weight: 800; color: var(--color-navy); line-height: 1.3; letter-spacing: -0.2px; }
.card-meta  { font-size: 0.8125rem; color: var(--color-steel); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.card-timeline { font-size: 0.8125rem; font-weight: 600; color: #888; border-top: 1px solid #eee; padding-top: 8px; margin-top: 2px; }
.card-desc  { font-size: 0.9375rem; line-height: 1.7; color: #444; flex: 1; }


/* ============================================================
   ENGINEERING EXPERIENCE SECTION
   ============================================================ */
.eng-exp-section { }

/* ── Intro band: dark navy ── */
.eng-exp-intro-band {
  background: var(--color-navy);
  background-image: radial-gradient(circle, rgba(46,134,193,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 72px 0 64px;
}
.eng-exp-intro { text-align: center; }
.eng-exp-intro .heading-lg { color: var(--color-white); }
.eng-exp-intro .steel-line { margin-top: 14px; margin-bottom: 16px; }
.eng-exp-sub {
  max-width: 680px; margin: 0 auto;
  font-size: 1rem; color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

/* ── Event blocks ── */
.eng-exp-block { padding: 72px 0; }
.eng-block-light    { background: #f4f7fb; }
.eng-block-white    { background: #ffffff; }

/* Reversed column order for EFX (gallery left, text right) */
.eng-event-row.reversed { grid-template-columns: 580px 1fr; }
.eng-event-row.reversed .eng-event-gallery { order: -1; }

/* ── Event row (text left, gallery right) ── */
.eng-event-row {
  display: grid;
  grid-template-columns: 1fr 580px;
  gap: 48px;
  align-items: center;
}

/* ── Left: event info ── */
.eng-event-tag {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--color-steel); margin-bottom: 8px;
}
.eng-event-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--color-white);
  letter-spacing: 2px; text-transform: uppercase;
  line-height: 1; margin-bottom: 6px;
}
.eng-event-year { color: var(--color-steel); }

.eng-event-tagline {
  font-size: 0.9375rem; font-style: italic;
  color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.eng-event-desc {
  font-size: 0.9375rem; color: rgba(255,255,255,0.75);
  line-height: 1.75; margin-bottom: 24px;
}

.eng-events-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
}
.eng-event-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.eng-event-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-steel);
  flex-shrink: 0; margin-top: 5px;
}
.eng-event-item strong {
  display: block; font-size: 0.9rem;
  color: var(--color-white); margin-bottom: 2px;
}
.eng-event-item span {
  font-size: 0.8125rem; color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.eng-event-why {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  line-height: 1.65; border-left: 3px solid rgba(46,134,193,0.4);
  padding-left: 14px;
}
.eng-event-why span {
  color: var(--color-steel); font-weight: 700;
}

/* ── Right: gallery ── */
.eng-event-gallery {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%;
}

.eng-carousel { width: 100%; }

/* Viewport — the photo panel itself, big and bold */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(22,57,105,0.25), 0 6px 20px rgba(22,57,105,0.12);
}

/* Crossfade — all slides stacked, active one fades in */
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Placeholder tile for events without photos yet */
.eng-gallery-tile {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #163969 0%, #2E86C1 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
}

/* Arrow buttons — overlaid on the image */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  background: rgba(10,20,40,0.5);
  border: none;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-btn:hover {
  background: var(--color-steel);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 4px;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(22,57,105,0.18);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--color-steel);
  transform: scale(1.45);
}

/* ── Light-block text overrides ── */
.eng-event-title.light        { color: var(--color-navy); }
.eng-event-tagline.light      { color: #888; }
.eng-event-desc.light         { color: #555; }
.eng-event-item.light strong  { color: var(--color-navy); }
.eng-event-item.light span    { color: #777; }
.eng-event-why.light          { color: #666; border-left-color: rgba(46,134,193,0.35); }
.eng-event-why.light span     { color: var(--color-steel); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .eng-event-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .carousel-viewport { height: 260px; }
}
@media (max-width: 600px) {
  .carousel-viewport { height: 210px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .blog-heading-block, .blog-panel, .blog-nav-bar { padding-left: 20px; padding-right: 20px; }
  .bp-title { font-size: 1.3rem; }
  .blog-nav-dots { display: none; }
}

/* ── Keep stat-bar styles (used elsewhere) ── */
.stats-bar { display: flex; justify-content: center; gap: 64px; margin-bottom: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-heading); font-weight: 900; font-size: clamp(2.5rem, 4vw, 3.75rem); color: var(--color-white); line-height: 1; }
.stat-label  { display: block; font-size: 0.9375rem; color: var(--color-steel); font-weight: 500; margin-top: 6px; }

/* ============================================================
   BLOG SECTION — TICKER + AUTO-SLIDING PANEL
   ============================================================ */
/* accent for blog section — warm amber, distinct from site-wide steel blue */
:root { --blog-amber: #C9965A; }

.blog-heading-block { padding: 40px 40px 4px; background: var(--color-navy); }
.section-heading-white {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase; letter-spacing: 3px; color: #fff; margin-bottom: 10px;
}
.section-subtext {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 400;
  color: rgba(255,255,255,.6); max-width: 500px; line-height: 1.8;
}
.blog-section { background: var(--color-navy); }

.blog-ticker-outer {
  overflow: hidden;
  position: relative;
}
.blog-ticker-outer::before,
.blog-ticker-outer::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.blog-ticker-outer::before { left: 0;  background: linear-gradient(90deg,  var(--color-navy), transparent); }
.blog-ticker-outer::after  { right: 0; background: linear-gradient(-90deg, var(--color-navy), transparent); }
.blog-ticker-track {
  display: flex; width: max-content;
  animation: blogTicker 36s linear infinite;
}
.blog-ticker-track:hover { animation-play-state: paused; }
@keyframes blogTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.blog-ticker-item {
  padding: 10px 20px; font-size: 11.5px; font-family: 'Montserrat', sans-serif;
  font-weight: 500; letter-spacing: 0.5px;
  color: rgba(255,255,255,.3); white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: color 0.2s;
}
.blog-ticker-item:hover  { color: rgba(255,255,255,.75); }
.blog-ticker-item.active { color: #fff; }
.blog-ticker-item.active .bt-num { color: var(--blog-amber); }
.bt-num {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 9px; letter-spacing: 1px; color: rgba(255,255,255,.2);
  transition: color 0.2s;
}
.bt-sep { color: rgba(255,255,255,.12); font-size: 14px; line-height: 1; }

.blog-progress-bar {
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.blog-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blog-amber) 0%, rgba(201,150,90,.6) 100%);
  box-shadow: 0 0 10px rgba(201,150,90,.5);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-strip-wrapper { overflow: hidden; position: relative; width: 100%; }
.blog-strip-track { display: flex; will-change: transform; }
.blog-panel {
  min-width: 100%; flex-shrink: 0;
  padding: 28px 48px 24px; position: relative; box-sizing: border-box;
}
.bp-ghost-num {
  font-size: 56px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.035); margin-bottom: -14px;
  letter-spacing: -3px; font-family: 'Montserrat', sans-serif; user-select: none;
}
.bp-tag {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-size: 0.625rem; letter-spacing: 3px; font-weight: 700;
  text-transform: uppercase; color: var(--blog-amber);
  margin-bottom: 8px; font-style: normal;
  border-left: 2px solid var(--blog-amber); padding-left: 8px;
}
.bp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #fff; line-height: 1.15; margin-bottom: 10px;
  max-width: 600px; letter-spacing: 2px; text-transform: uppercase;
}
.bp-desc {
  font-family: 'Montserrat', sans-serif; font-weight: 400; font-style: italic;
  font-size: 0.875rem; color: rgba(255,255,255,.5);
  line-height: 1.8; max-width: 500px; margin-bottom: 18px;
}
.bp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75); font-size: 0.9rem;
  font-family: var(--font-body); font-weight: 500;
  text-decoration: none; letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(201,150,90,.45);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.bp-cta:hover { color: var(--blog-amber); border-color: var(--blog-amber); gap: 14px; }

.blog-nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 48px 14px; position: relative;
}
.blog-nav-bar::before {
  content: '';
  position: absolute; top: 0; left: 48px; right: 48px; height: 1px;
  background: linear-gradient(90deg, var(--blog-amber) 0%, rgba(201,150,90,.15) 50%, rgba(201,150,90,0) 100%);
}
.blog-nav-dots { display: flex; gap: 5px; align-items: center; }
.blog-nav-dot {
  width: 16px; height: 1px; border-radius: 1px;
  background: rgba(255,255,255,.12); cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.blog-nav-dot.active { width: 28px; background: var(--blog-amber); }
.blog-nav-arrows { display: flex; gap: 6px; }
.blog-nav-btn {
  width: 32px; height: 32px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.12); background: transparent;
  color: rgba(255,255,255,.4); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s, color 0.2s; line-height: 1;
}
.blog-nav-btn:hover { border-color: var(--blog-amber); color: var(--blog-amber); }

/* ============================================================
   EVENTS
   ============================================================ */
/* ============================================================
   EVENTS SECTION — split panel
   ============================================================ */
.events-section { background: var(--color-white); }

.events-intro {
  font-family: var(--font-body);
  font-size: 1rem; color: #5a6475; line-height: 1.8;
  max-width: 560px; margin-top: 8px; margin-bottom: 0;
}

.events-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  margin-top: 56px;
  border: 1px solid rgba(22,57,105,0.12);
  border-radius: 6px;
  overflow: hidden;
  min-height: 440px;
}

/* --- left nav --- */
.ep-nav {
  background: var(--color-navy);
  display: flex; flex-direction: column;
}
.ep-nav-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left; cursor: pointer;
  position: relative; transition: background 0.2s ease;
}
.ep-nav-item:last-child { border-bottom: none; }
.ep-nav-item::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-steel);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.ep-nav-item:hover { background: rgba(255,255,255,0.05); }
.ep-nav-item.active { background: rgba(46,134,193,0.14); }
.ep-nav-item.active::after { transform: scaleX(1); }

.ep-nav-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 1px;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0; padding-top: 3px;
  transition: color 0.2s;
}
.ep-nav-item.active .ep-nav-num,
.ep-nav-item:hover .ep-nav-num { color: var(--color-steel); }

.ep-nav-title {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.875rem; line-height: 1.45;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.ep-nav-item.active .ep-nav-title,
.ep-nav-item:hover .ep-nav-title { color: #fff; }

/* --- right content --- */
.ep-content { background: #fff; position: relative; }

.ep-pane {
  position: absolute; inset: 0;
  padding: 52px 56px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; flex-direction: column; justify-content: center;
}
.ep-pane.active { opacity: 1; pointer-events: auto; }

.ep-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-steel); margin-bottom: 16px;
  display: block;
}
.ep-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-navy);
  letter-spacing: 3px; text-transform: uppercase;
  line-height: 1; margin-bottom: 24px;
}
.ep-desc {
  font-family: var(--font-body);
  font-size: 1rem; color: #5a6475; line-height: 1.85;
  max-width: 520px;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-card { display: grid; grid-template-columns: 3fr 2fr; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 48px rgba(26,60,110,0.12); background: var(--color-white); }
.contact-form-panel { padding: 56px 48px; }
.contact-form-panel h2 { margin-bottom: 32px; color: var(--color-navy); }
.contact-info-panel { background: var(--color-navy); padding: 56px 40px; color: white; display: flex; flex-direction: column; gap: 28px; }
.contact-info-panel h3 { font-size: 1.375rem; font-weight: 700; color: white; margin-bottom: 4px; }

.contact-info-item { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9375rem; opacity: 0.88; line-height: 1.55; }
.ci-icon { flex-shrink: 0; width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-top: 2px; }

.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 8px; }
.form-group label .req { color: #e74c3c; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--color-text);
  background: #fafafa; transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-steel); box-shadow: 0 0 0 3px rgba(46,134,193,0.15); background: white; }
.form-group input.error, .form-group select.error, .form-group textarea.error { border-color: #e74c3c; }
.field-error { font-size: 0.8125rem; color: #e74c3c; margin-top: 4px; display: none; }
.field-error.show { display: block; }

.form-message { padding: 14px 20px; border-radius: 8px; font-size: 0.9375rem; margin-bottom: 20px; display: none; }
.form-message.success   { display: block; background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3); color: #1a9e55; }
.form-message.error-msg { display: block; background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); color: #c0392b; }

.btn-submit { position: relative; min-width: 160px; }
.btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-submit.loading .btn-label   { display: none; }
.btn-submit.loading .btn-spinner { display: inline-block; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--color-navy-dark); padding: 80px 24px; text-align: center; }
.cta-band h2 { color: white; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 900; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal        { opacity: 0; transform: translateY(32px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal-left   { opacity: 0; transform: translateX(-32px); transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal-right  { opacity: 0; transform: translateX(32px);  transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,134,193,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(46,134,193,0); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin    { to   { transform: rotate(360deg); } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; overflow-x: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE — TABLET 768px
   ============================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 48px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .heading-xl { font-size: 2.25rem; }
  .vision-grid    { grid-template-columns: 1fr; gap: 32px; }
  .awards-grid    { grid-template-columns: 1fr; }
  .cards-grid     { grid-template-columns: 1fr; }
  .stats-bar      { gap: 32px; }
  .blog-heading-block { padding: 40px 24px 4px; }
  .contact-card   { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 36px 24px; }
  .contact-info-panel { padding: 36px 24px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; }
  .events-panel { grid-template-columns: 240px 1fr; }
  .ep-pane { padding: 36px 32px; }
  .marquee-track { animation: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .marquee-item  { scroll-snap-align: start; width: 260px; }
}

@media (max-width: 480px) {
  .heading-xl { font-size: 1.875rem; }
  .events-panel { grid-template-columns: 1fr; min-height: 0; }
  .ep-nav { flex-direction: row; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ep-nav-item { flex-direction: column; align-items: center; padding: 14px 16px; gap: 4px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.06); min-width: 0; flex: 1; }
  .ep-nav-item:last-child { border-right: none; }
  .ep-nav-item::after { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 3px; transform: scaleY(0); transform-origin: bottom; }
  .ep-nav-item.active::after { transform: scaleY(1); }
  .ep-nav-title { display: none; }
  .ep-nav-num { font-size: 0.9rem; }
  .ep-content { min-height: 320px; }
  .ep-pane { padding: 32px 24px; justify-content: flex-start; }
  .ep-title { font-size: 1.75rem; }
}
