/* ══════════════════════════════════════════════
   ELLIS Unit NRW — styles.css
   ══════════════════════════════════════════════ */

:root {
  --indigo:       #4F46E5;
  --indigo-dark:  #3730A3;
  --indigo-light: #818CF8;
  --indigo-pale:  #EEF2FF;
  --gray-950:     #09090b;
  --gray-900:     #111827;
  --gray-700:     #374151;
  --gray-500:     #6B7280;
  --gray-400:     #9CA3AF;
  --gray-200:     #E5E7EB;
  --gray-100:     #F3F4F6;
  --gray-50:      #F9FAFB;
  --white:        #FFFFFF;
  --r-sm: 8px; --r-md: 14px; --r-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 3px 10px rgba(0,0,0,.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10);
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;
  font-size:18px; line-height:1.7;
  color:var(--gray-900); background:var(--white);
  -webkit-font-smoothing:antialiased;
}
a { color:var(--indigo); text-decoration:none; transition:color .2s var(--ease) }
a:hover { color:var(--indigo-dark) }
img { max-width:100%; display:block }
ul { list-style:none }
.container { max-width:1160px; margin:0 auto }

/* ══════════════════════════════════
   NAVBAR
   ══════════════════════════════════ */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:60px; padding:0 24px;
  display:flex; align-items:center;
  background:transparent;
  transition:background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--gray-200);
}
.nav-container {
  max-width:1160px; width:100%; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
}

/* ── Navbar logo: hidden until scrolled ── */
.nav-logo {
  opacity:0; pointer-events:none;
  transition:opacity .35s var(--ease);
}
.navbar.scrolled .nav-logo {
  opacity:1; pointer-events:auto;
}
/* Both img variants hidden when not scrolled; only dark shown when scrolled */
.logo-dark  { display:block }   /* white PNG → black */
.logo-light { display:none  }

/* Hero inner wrapper — column layout so logo sits above the grid */
.hero-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Logo now spans the full width above both columns */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-logo-img {
  height: clamp(80px, 16vw, 140px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  transition: opacity .3s var(--ease);
  will-change: opacity;
}

.hero-logo-vertical   { display: none }
.hero-logo-horizontal { display: block }

.nav-menu { display:flex; align-items:center; gap:28px }
.nav-link {
  font-size:13px; font-weight:600; letter-spacing:-.01em;
  color:rgba(255,255,255,.78);
  transition:color .2s var(--ease);
}
.navbar.scrolled .nav-link { color:var(--gray-700) }
.nav-link:hover,
.nav-link.active { color:var(--white) }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color:var(--indigo) }

.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:4px }
.bar {
  display:block; width:20px; height:1.5px;
  background:var(--white); margin:5px 0;
  transition:transform .25s var(--ease), opacity .25s;
}
.navbar.scrolled .bar { background:var(--gray-700) }

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  min-height:100vh;
  position:relative; overflow:hidden;
  display:flex; align-items:center;
  padding:80px 24px 56px;
  background:linear-gradient(135deg, #0f0c29 0%, #1c1870 45%, #22205a 100%);
  color:var(--white);
}

/* Ambient blobs */
.hero-bg {
  position:absolute; inset:0; pointer-events:none; overflow:hidden;
}
.hero-bg::before {
  content:'';
  position:absolute; width:900px; height:900px; top:-300px; right:-200px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(99,102,241,.20) 0%, transparent 65%);
  animation:blob 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content:'';
  position:absolute; width:600px; height:600px; bottom:-150px; left:-80px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 65%);
  animation:blob 30s ease-in-out infinite alternate-reverse;
}
@keyframes blob {
  from { transform:translate(0,0) scale(1) }
  to   { transform:translate(40px,-30px) scale(1.1) }
}
.hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:28px 28px;
}

/* Two-column grid */
.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Hero Left ── */
.hero-left { padding-top:8px }

.hero-badges { display:flex; gap:8px; margin-bottom:20px }
.badge {
  display:inline-flex; align-items:center;
  font-size:10px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  padding:4px 11px; border-radius:var(--r-full);
}
.badge-ellis { background:var(--indigo); color:var(--white) }
.badge-nrw   { border:1px solid rgba(255,255,255,.22); color:rgba(255,255,255,.72); background:rgba(255,255,255,.06) }

.hero-title {
  font-size:clamp(26px,3.6vw,46px); font-weight:800;
  letter-spacing:-.03em; line-height:1.1;
  color:var(--white); margin-bottom:14px;
}
.hero-tagline {
  font-size:15px; color:rgba(255,255,255,.56);
  line-height:1.75; margin-bottom:22px; max-width:420px;
}

/* About text inside hero */
.hero-about-text {
  font-size:13.5px; color:rgba(255,255,255,.55);
  line-height:1.8; margin-bottom:22px;
}
.hero-about-text p { margin-bottom:9px }
.hero-about-text .lead { color:rgba(255,255,255,.76); font-size:14.5px }

/* Research area tags */
.research-areas { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:24px }
.area-tag {
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:3px 10px; border-radius:var(--r-full);
  border:1px solid rgba(99,102,241,.4);
  color:var(--indigo-light); background:rgba(99,102,241,.07);
}

.hero-social { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px }
.social-icon {
  width:40px; height:40px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.6); transition:all .2s var(--ease);
}
.social-icon:hover { background:var(--indigo); border-color:var(--indigo); color:var(--white) }
.social-icon svg { width:18px; height:18px; fill:currentColor }

.hero-cta { display:flex; gap:10px; flex-wrap:wrap }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:10px 22px; border-radius:var(--r-full);
  font-family:inherit; font-size:13px; font-weight:700;
  letter-spacing:-.01em; cursor:pointer;
  transition:all .2s var(--ease); text-decoration:none; border:none;
}
.btn-primary { background:var(--indigo); color:var(--white) }
.btn-primary:hover {
  background:var(--indigo-dark); color:var(--white);
  transform:translateY(-1px); box-shadow:0 6px 20px rgba(79,70,229,.4);
}
.btn-ghost {
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2); color:var(--white);
}
.btn-ghost:hover { background:rgba(255,255,255,.14); color:var(--white) }

/* ── Hero Right ── */
.hero-right {
  display:flex; flex-direction:column; gap:24px;
  padding-left:40px; border-left:1px solid rgba(255,255,255,.08);
}

/* Shared panel style */
.hero-panel { display:flex; flex-direction:column; gap:0 }
.panel-label {
  font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.3); margin-bottom:12px;
}

/* News list */
.hero-news-list { display:flex; flex-direction:column }
.hero-news-item {
  display:flex; align-items:baseline; gap:14px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
  font-size:13px; color:rgba(255,255,255,.62);
}
.hero-news-item:first-child { padding-top:0 }
.hero-news-item:last-child  { border-bottom:none }
.hero-news-item.hidden { display:none }
.news-date {
  min-width:52px; font-size:10px; font-weight:700; letter-spacing:.05em;
  color:var(--indigo-light); flex-shrink:0;
}
.hero-news-more {
  margin-top:10px; align-self:flex-start; cursor:pointer;
  background:none; border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.45); font-family:inherit;
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:4px 14px; border-radius:var(--r-full); transition:all .2s;
}
.hero-news-more:hover { border-color:var(--indigo-light); color:var(--indigo-light) }

/* Partner university logos inside hero */
.hero-unis { display:flex; flex-direction:column; gap:0 }

.hero-unis-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.hero-uni-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
  min-height: 80px;
}
.hero-uni-chip:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(129, 140, 248, .5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 1px rgba(129,140,248,.2),
              inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-uni-chip img {
  height: 34px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: none;   /* white logos on dark glass */
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.hero-uni-chip:hover img { opacity: 1 }

.hero-uni-chip-text {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Scroll hint */
.scroll-hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 10; pointer-events: auto;
  transition: opacity .3s var(--ease);
}
.scroll-arrow {
  width:20px; height:20px;
  border-right:1.5px solid rgba(255,255,255,.25);
  border-bottom:1.5px solid rgba(255,255,255,.25);
  transform:rotate(45deg);
  animation:bounce 2s ease-in-out infinite;
}

/* make scroll-hint text a button that when clicked automatically scrolls down a bit, and both scroll-hint-text and scroll-arrow
disappear when scrolled, to avoid overlap with navbar */
.scroll-hint-text {
  margin-top:8px; font-size:11px; color:rgba(255,255,255,.35);
  transition:opacity .3s var(--ease);
  background:none; border:none; cursor:pointer; font-family:inherit;
  padding:0; opacity:1;
}
.scroll-hint-text:hover { color:rgba(255,255,255,.6) }
.scroll-hint.hidden .scroll-hint-text,
.scroll-hint.hidden { opacity: 0; pointer-events: none; }


@keyframes bounce {
  0%,100% { transform:rotate(45deg) translateY(0); opacity:.2 }
  50%      { transform:rotate(45deg) translateY(5px); opacity:.55 }
}

/* ══════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════ */
.section { padding:88px 24px }
.section-light { background:var(--gray-50) }
.section-white { background:var(--white) }

.section-title {
  font-size:clamp(22px,2.4vw,34px); font-weight:800;
  letter-spacing:-.03em; color:var(--gray-900); margin-bottom:8px;
}
.section-sub { font-size:15px; color:var(--gray-500); margin-bottom:44px }

.block-label {
  font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--gray-500); margin-bottom:28px;
}

/* ══════════════════════════════════
   PARTNERS
   ══════════════════════════════════ */
.partner-grid {
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px;
  margin-bottom:8px;
}
.partner-card {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:10px;
  text-decoration:none;
  padding:20px 24px; min-width:160px; max-width:210px;
  border-radius:var(--r-md); border:1.5px solid var(--gray-200);
  background:var(--white); transition:all .2s var(--ease);
}
.partner-card:hover { border-color:var(--indigo); box-shadow:var(--shadow-sm); transform:translateY(-2px) }
.partner-logo {
  width: 150px; height: 72px;
  object-fit: contain; object-position: center;
}
.partner-logo-placeholder {
  width: 150px; height: 72px; padding:0 14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--indigo-pale); border-radius:var(--r-sm);
  font-size:13px; font-weight:700; color:var(--indigo);
}
.partner-name { font-size:12px; font-weight:600; color:var(--gray-700); text-align:center; line-height:1.3 }

.assoc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 840px; 
  margin: 0 auto;
}
.assoc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  padding: 12px 16px;
  width: 160px;  
  height: 110px; 
  border-radius: var(--r-md);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: all .2s var(--ease);
}
.assoc-card:hover { border-color: var(--indigo); box-shadow: var(--shadow-sm); transform: translateY(-2px) }
.assoc-logo { width: 110px; height: 40px;
  object-fit: contain; object-position: center; }
.assoc-logo-placeholder {
  width: 110px; height: 40px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-pale); border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700; color: var(--indigo);
}
.assoc-name { font-size: 10px; font-weight: 600; color: var(--gray-700); text-align: center; line-height: 1.3 }

/* ══════════════════════════════════
   PEOPLE
   ══════════════════════════════════ */
.people-block { margin-bottom:60px }
.people-block:last-child { margin-bottom:0 }

/* Directors: centered, wrap centered */
.directors-row {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(5 * 140px + 4 * 28px);
  justify-content:center;
  gap:36px 28px;
  margin-left: auto;
  margin-right: auto;
}
/* Coordinators: left-aligned, wrap left-aligned */
.coordinators-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 36px 16px;
  margin-left: auto;
  margin-right: auto;
}
.person-card {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  max-width:140px; text-align:center;
  text-decoration:none; color:inherit;
  transition:opacity .2s var(--ease);
}
.person-card:hover { opacity:.82 }
.person-card:hover .person-name { color:var(--indigo) }

/* Director: larger circle */
.director-avatar {
  width:108px; height:108px; border-radius:50%;
  background:var(--indigo-pale); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:28px; font-weight:800; color:var(--indigo);
  transition:box-shadow .2s var(--ease);
}
.person-card:hover .director-avatar { box-shadow:0 6px 22px rgba(79,70,229,.2) }
.director-avatar img { width:100%; height:100%; object-fit:cover }

/* Member: smaller circle */
.member-avatar {
  width:84px; height:84px; border-radius:50%;
  background:var(--gray-100); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; color:var(--gray-500);
  transition:box-shadow .2s var(--ease);
}
.person-card:hover .member-avatar { box-shadow:0 4px 14px rgba(0,0,0,.10) }
.member-avatar img { width:100%; height:100%; object-fit:cover }

.person-name { font-size:13px; font-weight:700; letter-spacing:-.02em; color:var(--gray-900); line-height:1.3; transition:color .2s }
.person-role { font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--indigo) }
.person-inst { font-size:11px; color:var(--gray-500); line-height:1.3 }

/* Members grid */
.members-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr));
  gap:36px 16px; justify-items:center;
}

/* ══════════════════════════════════
   ACTIVITIES
   ══════════════════════════════════ */
.activities-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr)); gap:14px;
}
.activity-card {
  background:var(--white); border-radius:var(--r-md);
  padding:20px 22px; box-shadow:var(--shadow-xs);
  display:flex; flex-direction:column; gap:8px;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.activity-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-md) }
.activity-top { display:flex; align-items:center; justify-content:space-between; gap:12px }
.activity-type {
  font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--indigo); background:var(--indigo-pale);
  padding:3px 9px; border-radius:var(--r-full);
}
.activity-date { font-size:11px; font-weight:600; color:var(--gray-500); white-space:nowrap }
.activity-title { font-size:15px; font-weight:700; letter-spacing:-.02em; color:var(--gray-900); line-height:1.3 }
.activity-speaker { font-size:12px; color:var(--gray-500); font-style:italic }
.activity-desc { font-size:13px; color:var(--gray-500); line-height:1.65 }
.activity-link {
  display:inline-flex; align-items:center; gap:4px; margin-top:4px;
  font-size:12px; font-weight:700; color:var(--indigo); align-self:flex-start;
}
.activity-link:hover { color:var(--indigo-dark) }

/* ══════════════════════════════════
   OPEN POSITIONS
   ══════════════════════════════════ */
.positions-list { display:flex; flex-direction:column; gap:12px }
.position-card {
  padding:18px 22px; background:var(--white);
  border:1.5px solid var(--gray-200); border-radius:var(--r-md);
  transition:border-color .2s, box-shadow .2s, transform .2s;
}
.position-card:hover { border-color:var(--indigo); box-shadow:var(--shadow-sm); transform:translateY(-1px) }
.position-title { font-size:15px; font-weight:700; color:var(--gray-900); margin-bottom:7px }
.position-meta { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:6px }
.pos-tag {
  font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--indigo); background:var(--indigo-pale);
  padding:2px 8px; border-radius:var(--r-full);
}
.pos-deadline { font-size:12px; color:var(--gray-500) }
.position-desc { font-size:13px; color:var(--gray-500); line-height:1.65 }
.position-apply {
  display:inline-flex; align-items:center; gap:4px; margin-top:9px;
  font-size:12px; font-weight:700; color:var(--indigo);
}
.positions-empty { font-size:14px; color:var(--gray-500); font-style:italic }

/* ══════════════════════════════════
   FOOTER  (also the contact anchor)
   ══════════════════════════════════ */
.footer {
  background:var(--gray-950); padding:36px 32px;
}
.footer-inner {
  max-width:1160px; margin:0 auto;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px;
  flex-wrap:wrap;
}
.footer-logo { opacity:.65; transition:opacity .2s }
.footer-logo:hover { opacity:1 }
.footer-copy { font-size:13px; color:rgba(255,255,255,.38); text-align:center; flex:1; min-width:200px }
.footer-copy a { color:rgba(255,255,255,.5) }
.footer-copy a:hover { color:var(--indigo-light) }
.footer-note { font-size:11px; margin-top:3px }

/* Contact button in footer */
.btn-contact {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 24px; border-radius:var(--r-full);
  font-family:inherit; font-size:13px; font-weight:700;
  cursor:pointer; border:1.5px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.06); color:var(--white);
  transition:all .2s var(--ease); white-space:nowrap;
}
.btn-contact svg { width:15px; height:15px; flex-shrink:0 }
.btn-contact:hover {
  background:var(--indigo); border-color:var(--indigo);
  transform:translateY(-1px); box-shadow:0 5px 18px rgba(79,70,229,.4);
}

/* ══════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════ */
.fade-up {
  opacity:0; transform:translateY(16px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.fade-up.visible { opacity:1; transform:none }

/* ══════════════════════
   ANNOUNCEMENT BANNER
   ══════════════════════ */
:root { --banner-h: 0px; }

.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 102;
  min-height: 48px; padding: 10px 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo); color: var(--white);
  font-size: 15px; font-weight: 600; gap: 10px;
  text-align: center; line-height: 1.5;
}
.announce-bar a { color: rgba(255,255,255,.85); text-decoration: underline }
.announce-bar a:hover { color: var(--white) }
.announce-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px;
  transition: color .15s;
}
.announce-close:hover { color: var(--white) }

body.has-banner .navbar { top: var(--banner-h); }
body.has-banner .hero   { padding-top: calc(80px + var(--banner-h)); }


/* ══════════════════════
   PINNED NEWS ITEM
   ══════════════════════ */
.hero-news-item.pinned {
  background:rgba(99,102,241,.10);
  border:1px solid rgba(99,102,241,.25);
  border-radius:6px;
  padding:8px 10px 8px 10px;
  margin-bottom:6px;
  border-bottom:1px solid rgba(99,102,241,.25) !important;
}
.hero-news-item.pinned .news-date {
  color:var(--white); background:var(--indigo);
  padding:2px 7px; border-radius:var(--r-full);
  font-size:9px;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width:1024px) {
  .hero-grid { grid-template-columns:1fr; gap:44px }
  .hero-right { border-left:none; padding-left:0; border-top:1px solid rgba(255,255,255,.08); padding-top:36px }
}
@media (max-width:768px) {
  .navbar { padding:0 16px }
  .nav-menu {
    position:fixed; top:60px; left:0; right:0;
    background:rgba(255,255,255,.97); backdrop-filter:blur(16px);
    flex-direction:column; gap:0; padding:8px 0;
    display:none; box-shadow:var(--shadow-md);
  }
  .announce-bar { font-size: 14px; padding: 10px 40px 10px 16px; justify-content: flex-start; text-align: left; }
  .nav-menu.open { display:flex }
  .nav-link { padding:11px 20px; display:block; color:var(--gray-700) !important }
  .nav-link:hover,
  .nav-link.active { color:var(--indigo) !important }
  .nav-toggle { display:block }
  .hero { padding:76px 16px 52px }
  .section { padding:64px 16px }
  .footer { padding:28px 16px }
  .scroll-hint { display: none; }
  body.has-banner .hero { padding-top: calc(76px + var(--banner-h)); }

  .footer-inner { flex-direction:column; align-items:center; text-align:center; gap:20px }
  .activities-grid { grid-template-columns:1fr }
  .members-grid { grid-template-columns:repeat(auto-fill, minmax(100px,1fr)) }
  .directors-row {
    max-width: calc(3 * 140px + 2 * 28px); /* 476px — 3 cards + 2 gaps */
  }
  .hero-logo-img {
    width: 75%;
    height: auto;
    max-width: none;
    min-height: unset;
  }
  .partner-card {
    padding: 12px 16px;
    min-width: 120px;
    max-width: 160px;
    gap: 7px;
  }
  .partner-logo { width: 110px; height: 48px; }
  .partner-name      { font-size: 10px }
  .partner-grid      { gap: 10px }
  /* 3 per row on tablet: 3×120px + 2×10px = 380px */
  .assoc-grid { max-width: 380px }
  .assoc-card { width: calc(50% - 7px); min-width: unset; max-width: unset; }
  .assoc-logo { width: 110px; height: 48px; }
}
@media (max-width:480px) {
  .members-grid { grid-template-columns:repeat(3,1fr) }
  .director-avatar { width:90px; height:90px; font-size:24px }
  .directors-row {
    max-width: calc(2 * 140px + 1 * 28px); /* 308px — 2 cards + 1 gap */
  }
  .hero-logo-img {
    width: 85%;
    height: auto;
    max-width: none;
    min-height: unset;
  }
  .partner-card { width: 160px; }
  /* 2 per row on small phones: 2×120px + 1×10px = 250px */
  .assoc-grid { max-width: 250px }
}

@media (max-width: 600px) {
  .hero-logo-horizontal { display: none }
  .hero-logo-vertical   { display: block; width: 65%; height: auto; max-width: 200px }
}