/* ============================================================
   SGEC v103 — style.css
   Herda o design do v102; atualizações apenas estruturais
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --primary:      #1a3a6c;
  --primary-dark: #0f2347;
  --secondary:    #0066cc;
  --accent:       #e07b0a;
  --accent-light: #f59c2a;
  --text:         #1e1e2e;
  --text-light:   #5a5a72;
  --bg:           #f7f8fc;
  --card-bg:      #ffffff;
  --border:       #dde2ef;
  --footer-bg:    #0f2347;
  --topbar-bg:    #0a1a35;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 2px 12px rgba(26,58,108,.10);
  --shadow-md:    0 4px 24px rgba(26,58,108,.15);
  --nav-h:        56px;
  --header-h:     80px;
  --topbar-h:     36px;
  --font-body:    'Source Sans 3', sans-serif;
  --font-heading: 'Merriweather', serif;
}

/* ── 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(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ── Acessibilidade — barra topo ─────────────────────────── */
#topbar {
  background: var(--topbar-bg);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
}
#topbar .topbar-left { font-style: italic; }
#topbar .topbar-right { display: flex; gap: 16px; }
#topbar .topbar-right a {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .68rem;
}
#topbar .topbar-right a:hover { color: var(--accent-light); }

/* ── Header ──────────────────────────────────────────────── */
#header {
  background: #fff;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
#header .logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
#header .brand { display: flex; flex-direction: column; }
#header .brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
#header .brand-sub {
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .3px;
}
#header .brand-tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}
#header .header-spacer { flex: 1; }
#header .header-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
#header .header-cta:hover { background: var(--accent); color: #fff !important; }

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  background: var(--primary);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  padding: 0 24px;
  position: sticky;
  top: var(--header-h);
  z-index: 800;
}
#navbar ul.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}
#navbar ul.nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
}
#navbar ul.nav-list > li > a,
#navbar ul.nav-list > li > span.nav-parent {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 15px;
  color: rgba(255,255,255,.88);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s;
  border-bottom: 3px solid transparent;
}
#navbar ul.nav-list > li > a:hover,
#navbar ul.nav-list > li > span.nav-parent:hover,
#navbar ul.nav-list > li.active > a,
#navbar ul.nav-list > li.active > span.nav-parent {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-bottom-color: var(--accent-light);
}
/* dropdown arrow */
.nav-parent::after { content: ' ▾'; font-size: .65rem; opacity: .7; }

/* sub-menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent);
  z-index: 700;
  padding: 6px 0;
}
.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: .84rem;
  color: var(--text);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-left: 24px;
}
li:hover > .nav-dropdown { display: block; }

/* ── Mobile Nav toggle ───────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: .3s;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  background: #fff;
  padding: 10px 40px;
  font-size: .82rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: #fff;
  padding: 72px 40px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-inner { max-width: 700px; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent-light); font-style: normal; }
.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); color: #fff; border-color: var(--accent-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ── Stats ───────────────────────────────────────────────── */
.stats-bar {
  background: var(--primary);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-item {
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.3; }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 56px 40px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-link { font-size: .85rem; font-weight: 600; color: var(--secondary); }
.section-link:hover { color: var(--accent); }

/* ── Highlights (3 cards top) ───────────────────────────── */
.highlights { background: #fff; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.highlight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.highlight-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-badge {
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
}
.badge-green  { background: #e6f4ea; color: #2d7a3a; }
.badge-blue   { background: #e8f0fe; color: #1a56b0; }
.badge-orange { background: #fef3e2; color: #b45309; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.highlight-title { font-size: .95rem; font-weight: 700; color: var(--primary); line-height: 1.35; }
.highlight-date  { font-size: .78rem; color: var(--text-light); }

/* ── Acesso Rápido ───────────────────────────────────────── */
.quick-access { background: var(--bg); }
.qa-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.qa-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}
.qa-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--accent); }
.qa-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ── News grid ───────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-body { padding: 18px 20px 20px; }
.news-category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--secondary);
  margin-bottom: 8px;
}
.news-title { font-size: .97rem; font-weight: 700; color: var(--primary); line-height: 1.4; margin-bottom: 10px; }
.news-date   { font-size: .78rem; color: var(--text-light); }

/* ── Atividades ──────────────────────────────────────────── */
.activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.activity-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--accent);
  transition: box-shadow .2s;
}
.activity-card:hover { box-shadow: var(--shadow-md); }
.activity-title { font-size: 1rem; font-weight: 700; color: var(--primary); }
.activity-desc  { font-size: .88rem; color: var(--text-light); line-height: 1.55; }

/* ── Agenda ──────────────────────────────────────────────── */
.agenda { background: #fff; }
.agenda-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.event-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: var(--shadow); }
.event-date {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 10px;
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}
.event-day  { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-mon  { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); }
.event-info-title { font-size: .92rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.event-location   { font-size: .78rem; color: var(--text-light); }
.event-highlight  {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-highlight .eh-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.event-highlight p { font-size: .88rem; opacity: .88; line-height: 1.55; }
.event-highlight .btn-outline { margin-top: 6px; align-self: flex-start; }

/* ── Links Úteis ─────────────────────────────────────────── */
.useful-links { background: var(--bg); }
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.links-grid a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  transition: .2s;
}
.links-grid a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Página interna: hero banner ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--secondary) 100%);
  color: #fff;
  padding: 52px 40px 44px;
}
.page-hero .ph-tag { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px; }
.page-hero h1 { font-family: var(--font-heading); font-size: 2rem; line-height: 1.2; margin-bottom: 14px; }
.page-hero h1 em { color: var(--accent-light); font-style: normal; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.82); max-width: 600px; }

/* âncora nav interna */
.anchor-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: .2s;
}
.anchor-nav a:hover, .anchor-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ── Cards de conteúdo ───────────────────────────────────── */
.content-section { padding: 48px 40px; }
.content-section:nth-child(even) { background: #fff; }
.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.content-section .sub-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.content-section p { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 14px; }
.content-section p:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card p  { font-size: .87rem; color: var(--text-light); line-height: 1.55; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
blockquote {
  border-left: 4px solid var(--accent);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
  font-size: .94rem;
}

/* Líderes */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.leader-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr;
}
.leader-photo { width: 160px; object-fit: cover; height: 100%; min-height: 220px; }
.leader-body { padding: 24px; }
.leader-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); margin-bottom: 4px; }
.leader-role { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-bottom: 12px; }
.leader-body p { font-size: .86rem; color: var(--text-light); line-height: 1.6; }

/* Departamentos — cards com id âncora */
.dept-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: start;
  border-left: 5px solid var(--accent);
  scroll-margin-top: 130px;
}
.dept-badge {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.dept-badge span { display: block; font-size: .65rem; font-weight: 400; opacity: .75; margin-top: 4px; }
.dept-body h2 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--primary); margin-bottom: 4px; }
.dept-full-name { font-size: .82rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.dept-body p { font-size: .92rem; color: var(--text-light); line-height: 1.65; }

/* Cursos */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.course-tag  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); }
.course-title{ font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); line-height: 1.3; }
.course-desc { font-size: .87rem; color: var(--text-light); line-height: 1.6; }
.course-link { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--secondary); }
.course-link:hover { color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  padding: 52px 40px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .fb-logo { width: 56px; margin-bottom: 12px; }
.footer-brand .fb-name { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; font-weight: 700; margin-bottom: 6px; }
.footer-brand p { font-size: .83rem; line-height: 1.6; color: rgba(255,255,255,.65); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
footer h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: rgba(255,255,255,.65); font-size: .84rem; transition: color .2s; }
footer ul li a:hover { color: var(--accent-light); }
footer address {
  font-style: normal;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
}
footer address a { color: rgba(255,255,255,.65); }
footer address a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.55); margin-left: 14px; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 200px 1fr 1fr; }
}
@media (max-width: 900px) {
  .news-grid, .highlights-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid, .course-grid, .agenda-grid, .leader-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
  .leader-photo { width: 100%; height: 200px; }
  .dept-card { grid-template-columns: 1fr; }
  section, .content-section { padding: 40px 24px; }
  .hero { padding: 48px 24px 40px; }
  .hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 40px 24px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  #header { padding: 0 20px; }
  #navbar { padding: 0 12px; }
  #topbar { padding: 0 16px; }
  .stats-bar { grid-template-columns: 1fr 1fr 1fr; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .breadcrumb { padding: 10px 24px; }
  .anchor-nav { padding: 0 20px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  #navbar ul.nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--primary-dark);
    padding: 12px 0 20px;
    height: auto;
    z-index: 799;
  }
  #navbar ul.nav-list.open { display: flex; }
  #navbar ul.nav-list > li > a,
  #navbar ul.nav-list > li > span.nav-parent {
    padding: 12px 20px;
    border-bottom: none;
  }
  .nav-dropdown { position: static; display: none; box-shadow: none; background: rgba(0,0,0,.2); border-top: none; padding-left: 16px; }
  li.open > .nav-dropdown { display: block; }
  li:hover > .nav-dropdown { display: none; }
  li.open > .nav-dropdown { display: block; }
  .nav-dropdown a { color: rgba(255,255,255,.75); }
  .nav-dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .highlights-grid, .news-grid, .card-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  #header .brand-name { font-size: 1.2rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-btns { flex-direction: column; }
  .links-grid { grid-template-columns: 1fr 1fr; }
}
