/* ===== UEG DESIGN SYSTEM ===== */
/* Baseado na identidade visual oficial: https://www.ueg.br */

:root {
  /* Cores institucionais UEG */
  --primary: #2d6cdf;
  --primary-hover: #437be2;
  --primary-dark: #202f60;
  --primary-darker: #131313;
  --secondary: #00549a;
  --accent-cyan: #3bc7f9;
  --accent-teal: #32aeda;
  --accent-orange: #fd6008;
  --success: #5cb85c;
  --warning: #f0ad4e;
  --danger: #d9534f;
  --info: #5bc0de;

  /* Neutros */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-light: #efefef;
  --bg-card: #ffffff;
  --text: #101010;
  --text-secondary: #232323;
  --text-muted: #989898;
  --border: #d8d8d8;
  --border-light: #e8e8e8;

  /* Sombras UEG */
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0px 14px 30px -15px rgba(0,0,0,0.75);
  --shadow-hover: 0 8px 24px rgba(45,108,223,0.18);

  /* Layout */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 30px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  --nav-height: 70px;

  /* Tipografia UEG */
  --font: 'Open Sans', 'Segoe UI', sans-serif;
  --font-heading: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #1a2234;
  --bg-light: #1e293b;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #2a3a52;
  --primary-dark: #1a2550;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; color: #fff; }

.loader-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 24px;
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 14px;
}

.loader-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  animation: loadProgress 1.5s ease-in-out forwards;
}

@keyframes loadProgress { 0% { width: 0; } 100% { width: 100%; } }

.loader-content p { font-size: 0.85rem; opacity: 0.6; letter-spacing: 1px; }

/* ===== HEADER / NAVBAR ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  transition: var(--transition-slow);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#header.scrolled {
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

[data-theme="dark"] #header.scrolled {
  background: rgba(17,24,39,0.97);
}

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

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

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-logo--dark { display: none; }

/* Over the hero (transparent navbar) - always show the white/negative logo */
#header:not(.scrolled) .brand-logo--light { display: none; }
#header:not(.scrolled) .brand-logo--dark { display: block; }

/* Dark theme - always show white/negative logo regardless of scroll state */
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }

.brand-text { display: flex; flex-direction: column; }

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#header:not(.scrolled) .brand-title { color: #fff; }

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

#header:not(.scrolled) .brand-subtitle { color: rgba(255,255,255,0.6); }

.nav-links { display: flex; gap: 4px; }

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.75); }

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(45,108,223,0.06);
}

#header:not(.scrolled) .nav-link:hover,
#header:not(.scrolled) .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-actions { display: flex; align-items: center; gap: 6px; }

.search-toggle, .theme-toggle, .menu-toggle {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#header:not(.scrolled) .search-toggle,
#header:not(.scrolled) .theme-toggle,
#header:not(.scrolled) .menu-toggle {
  color: rgba(255,255,255,0.75);
}

.search-toggle:hover, .theme-toggle:hover {
  background: rgba(45,108,223,0.08);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Bar */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}

.search-bar.active { max-height: 400px; }

.search-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-container i { color: var(--text-muted); }

.search-container input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
}

.search-close {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
}

.search-results {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px 14px;
}

.search-result-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.search-result-item:hover {
  background: var(--bg-alt);
  border-left-color: var(--primary);
}

.search-result-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.search-result-item p { font-size: 13px; color: var(--text-muted); }

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 998;
  transition: width 0.1s linear;
  width: 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-dark) 0%, #1a2b55 40%, var(--primary) 100%);
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #fff;
}

.shape-1 {
  width: 550px; height: 550px;
  top: -180px; right: -120px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 380px; height: 380px;
  bottom: -80px; left: -80px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 220px; height: 220px;
  top: 45%; left: 58%;
  animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -25px) scale(1.04); }
  50% { transform: translate(-15px, 15px) scale(0.96); }
  75% { transform: translate(12px, 12px) scale(1.02); }
}

.hero-particles { position: absolute; inset: 0; }

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 120px 15px 80px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 1px 2px 1px #232323;
}

.hero h1 .highlight {
  color: var(--accent-cyan);
}

.hero-desc {
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
  opacity: 0.85;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* ===== BUTTONS (padrao UEG) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  font-size: 16px;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-slow);
  border: 2px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 11px;
  position: relative;
}

.wheel {
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes wheelScroll { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(45,108,223,0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--primary-dark);
}

[data-theme="dark"] .section-header h2 { color: #e2e8f0; }

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.section-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

[data-theme="dark"] .section-header h3 { color: #e2e8f0; }

/* ===== MESSAGE CARD (Reitor) ===== */
.message-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.message-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--primary);
}

.message-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.12;
  flex-shrink: 0;
}

.message-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="dark"] .message-content h2 { color: #e2e8f0; }

.message-content blockquote {
  border: none;
  padding: 0;
  margin: 0;
}

.message-content blockquote p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.message-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.author-avatar {
  width: 44px; height: 44px;
  background: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.message-author strong { display: block; font-size: 14px; }
.message-author span { color: var(--text-muted); font-size: 12px; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px; height: 56px;
  background: rgba(45,108,223,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] .feature-card h3 { color: #e2e8f0; }

.feature-card p { color: var(--text-secondary); font-size: 14px; }

/* ===== ORG GRID ===== */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.org-main { grid-column: 1 / -1; }

.org-icon {
  width: 48px; height: 48px;
  background: rgba(45,108,223,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.2rem;
  color: var(--primary);
}

.org-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

[data-theme="dark"] .org-card h3 { color: #e2e8f0; }
.org-card p { color: var(--text-secondary); font-size: 13px; }

.org-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

.org-badge {
  padding: 5px 12px;
  background: rgba(45,108,223,0.06);
  border: 1px solid rgba(45,108,223,0.12);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* Institutes */
.institutes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  transition: var(--transition);
}

.inst-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.inst-chip i { color: var(--primary); }

/* ===== CAMPUS TABS ===== */
.campus-tabs {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tabs-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  border: none;
  background: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--primary);
  transition: var(--transition);
}

.tab-btn:hover { color: var(--primary); background: rgba(45,108,223,0.04); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { width: 100%; }

.tabs-content { padding: 28px; }

.tab-panel { display: none; animation: tabFade 0.3s ease; }
.tab-panel.active { display: block; }

@keyframes tabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.campus-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}

[data-theme="dark"] .campus-info h3 { color: #e2e8f0; }
.campus-info h3 i { color: var(--primary); }

.campus-sede { color: var(--text-secondary); margin-bottom: 14px; font-size: 14px; }

.campus-units { display: flex; flex-wrap: wrap; gap: 8px; }

.unit-tag {
  padding: 5px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.unit-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition-slow);
  text-decoration: none;
  color: var(--text);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  color: var(--text);
}

.service-icon {
  width: 48px; height: 48px;
  background: rgba(45,108,223,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 14px;
  transition: var(--transition);
}

.service-card:hover .service-icon { background: var(--primary); color: #fff; }

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] .service-card h3 { color: #e2e8f0; }

.service-card p { color: var(--text-secondary); font-size: 13px; flex: 1; margin-bottom: 14px; }

.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-link i { transition: var(--transition); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* Media Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.media-icon {
  width: 50px; height: 50px;
  background: rgba(45,108,223,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem;
  color: var(--primary);
}

.media-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.media-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.media-card a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== ACCORDION ===== */
.accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item:hover { border-color: rgba(45,108,223,0.25); }
.accordion-item.active { border-color: var(--primary); box-shadow: var(--shadow-md); }

.accordion-header {
  width: 100%;
  border: none;
  background: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  color: var(--text);
}

.accordion-icon {
  width: 40px; height: 40px;
  background: rgba(45,108,223,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.accordion-item.active .accordion-icon { background: var(--primary); color: #fff; }

.accordion-title { flex: 1; }
.accordion-title h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin-bottom: 1px; }
.accordion-title p { font-size: 12px; color: var(--text-muted); }

.accordion-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.accordion-item.active .accordion-arrow { transform: rotate(180deg); color: var(--primary); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-item.active .accordion-body { max-height: 2000px; padding: 0 20px 20px; }

.accordion-body p { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; }
.accordion-body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
}

[data-theme="dark"] .accordion-body h4 { color: #e2e8f0; }

/* Info boxes */
.info-box {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  font-size: 13px;
  align-items: flex-start;
}

.info-box i { margin-top: 2px; flex-shrink: 0; }
.info-box p { margin: 0; }

.info-warning { background: #FFF8E1; color: #E65100; border: 1px solid #FFE082; }
[data-theme="dark"] .info-warning { background: rgba(253,96,8,0.08); border-color: rgba(253,96,8,0.15); color: #fd6008; }

.info-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
[data-theme="dark"] .info-success { background: rgba(92,184,92,0.08); border-color: rgba(92,184,92,0.15); color: #5cb85c; }

.info-danger { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
[data-theme="dark"] .info-danger { background: rgba(217,83,79,0.08); border-color: rgba(217,83,79,0.15); color: #d9534f; }

/* Steps */
.steps-flow { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }

.step { display: flex; gap: 14px; align-items: flex-start; }

.step-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-text strong { display: block; margin-bottom: 2px; font-size: 14px; }
.step-text p { color: var(--text-muted); font-size: 13px; margin: 0; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(45,108,223,0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  transition: var(--transition-slow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-btn:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); }

/* Check list */
.check-list { list-style: none; margin: 10px 0; }

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.check-list li i { color: var(--success); font-size: 13px; }

/* Component Grid */
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.comp-item {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.comp-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border); }

.comp-item i { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; display: block; }
.comp-item strong { display: block; font-family: var(--font-heading); margin-bottom: 4px; font-size: 14px; }
.comp-item p { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.comp-item a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== CARDS ROW (Direitos) ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.info-card-header i { font-size: 1.2rem; color: var(--primary); }

.info-card-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

[data-theme="dark"] .info-card-header h3 { color: #e2e8f0; }

.info-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }

.links-group { display: flex; gap: 10px; flex-wrap: wrap; }

.links-group a {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(45,108,223,0.06);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SUPPORT GRID ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.support-icon {
  width: 44px; height: 44px;
  background: rgba(45,108,223,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.support-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] .support-card h3 { color: #e2e8f0; }

.support-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }

.support-card a {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-card a i { transition: var(--transition); }
.support-card:hover a i { transform: translateX(3px); }

/* ===== BOLSAS GRID ===== */
.bolsas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.bolsa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bolsa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.bolsa-card:hover::before { transform: scaleX(1); }
.bolsa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.bolsa-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(45,108,223,0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.bolsa-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] .bolsa-card h3 { color: #e2e8f0; }

.bolsa-card p { color: var(--text-secondary); font-size: 13px; margin-bottom: 12px; }
.bolsa-card a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TIMELINE ===== */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent-cyan), var(--secondary));
}

.timeline-item { position: relative; margin-bottom: 24px; }

.timeline-dot {
  position: absolute;
  left: -36px; top: 4px;
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg);
}

.section-alt .timeline-dot { box-shadow: 0 0 0 4px var(--bg-alt); }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.timeline-content:hover { box-shadow: var(--shadow-md); border-color: rgba(45,108,223,0.2); }

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

[data-theme="dark"] .timeline-content h3 { color: #e2e8f0; }
.timeline-content p { color: var(--text-secondary); font-size: 13px; margin-bottom: 6px; }

.timeline-req {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(45,108,223,0.06);
  border-radius: var(--radius-sm);
  font-size: 12px !important;
  color: var(--primary) !important;
  border: 1px solid rgba(45,108,223,0.1);
}

/* ===== GRADUATION BANNER ===== */
.graduation-banner {
  background: var(--primary-dark);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.graduation-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(45,108,223,0.15);
  border-radius: 50%;
}

.grad-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.grad-content { position: relative; z-index: 1; }

.grad-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grad-content p { opacity: 0.85; font-size: 14px; margin-bottom: 18px; line-height: 1.6; }

.grad-content .btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.grad-content .btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-light);
  position: relative;
  padding: 0;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-dark);
}

.footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.7);
}

.footer-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; margin-bottom: 6px; color: rgba(255,255,255,0.85); }
.footer-small { font-size: 12px !important; color: rgba(255,255,255,0.4) !important; }

.footer-links h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  padding: 3px 0;
  transition: var(--transition);
}

.footer-links a:hover { color: #fff; transform: translateX(3px); }

.social-links { display: flex; gap: 10px; }

.social-links a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  z-index: 100;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-hover); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos="fade-down"] { transform: translateY(-24px); }
[data-aos="fade-left"] { transform: translateX(24px); }
[data-aos="fade-right"] { transform: translateX(-24px); }

[data-aos].aos-animate { opacity: 1; transform: translate(0, 0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 15px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
  }

  [data-theme="dark"] .nav-links.active { background: var(--bg); }

  .nav-links.active .nav-link { color: var(--text) !important; padding: 10px 14px; }
  .nav-links.active .nav-link:hover,
  .nav-links.active .nav-link.active { background: rgba(45,108,223,0.06); color: var(--primary) !important; }

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

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  .message-card { flex-direction: column; padding: 24px; gap: 14px; }
  .message-icon { font-size: 2rem; }

  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cards-row { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .bolsas-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .graduation-banner { flex-direction: column; text-align: center; padding: 28px; }
  .grad-icon { width: 60px; height: 60px; font-size: 1.4rem; }

  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.8rem; }

  .timeline { padding-left: 28px; }
  .timeline::before { left: 9px; }
  .timeline-dot { left: -28px; width: 22px; height: 22px; font-size: 0.55rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-item { display: flex; align-items: center; gap: 8px; }
  .stat-number { font-size: 1.5rem; }

  .container { padding: 0 12px; }
  .brand-text { display: none; }

  .tab-btn { padding: 10px 14px; font-size: 11px; }
  .tabs-content { padding: 16px; }

  .component-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   MEDIA FRAMES - reusable image components
   ========================================================== */

/* Section header with side image */
.section-header.has-media {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  text-align: left;
  max-width: 1040px;
  margin: 0 auto 48px;
}

.section-header.has-media .section-header__text { min-width: 0; }
.section-header.has-media .section-header__text h2 { margin-bottom: 14px; }

.section-header__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
  background: #fff;
  isolation: isolate;
}
.section-header__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.section-header__media:hover img { transform: scale(1.05); }
.section-header__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,108,223,0.16) 0%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.section-header__media::before {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .section-header__media { box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
[data-theme="dark"] .section-header__media::after {
  background: linear-gradient(135deg, rgba(26,37,80,0.35) 0%, transparent 70%);
  mix-blend-mode: normal;
}

@media (max-width: 880px) {
  .section-header.has-media {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .section-header__media { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Generic decorated image frame */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  aspect-ratio: 16 / 11;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.media-frame:hover img { transform: scale(1.04); }
.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,108,223,0.18) 0%, rgba(59,199,249,0.04) 55%, transparent 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.media-frame::before {
  content: '';
  position: absolute;
  top: 16px; right: 16px;
  width: 26px; height: 26px;
  border: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .media-frame { box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
[data-theme="dark"] .media-frame::after {
  background: linear-gradient(135deg, rgba(26,37,80,0.4) 0%, transparent 70%);
  mix-blend-mode: normal;
}

/* Split layout - text + image (used in #sobre) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 36px 0 56px;
}

.about-split .about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary-dark);
}

[data-theme="dark"] .about-split .about-text h3 { color: #e2e8f0; }

.about-split .about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
  font-size: 15px;
}

.about-bullets {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.about-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.about-bullets li i {
  color: var(--primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* Full-width banner with caption (used in #apoio) */
.banner-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 40px;
  aspect-ratio: 24 / 9;
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.banner-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19,19,19,0.55) 0%, rgba(19,19,19,0.15) 50%, transparent 100%);
  pointer-events: none;
}
.banner-media .banner-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(19,19,19,0.85) 0%, rgba(19,19,19,0.55) 60%, transparent 100%);
  color: #fff;
  z-index: 2;
}
.banner-media .banner-caption h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.banner-media .banner-caption p {
  opacity: 0.9;
  font-size: 0.95rem;
  margin: 0;
}

/* Graduation banner with image side */
.graduation-banner.has-media { padding: 0; gap: 0; align-items: stretch; }
.graduation-banner.has-media .grad-media {
  position: relative;
  flex: 0 0 44%;
  min-height: 260px;
  background: #fff;
  overflow: hidden;
}
.graduation-banner.has-media .grad-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.graduation-banner.has-media .grad-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(32,47,96,0.55) 100%);
  pointer-events: none;
}
.graduation-banner.has-media .grad-content {
  flex: 1;
  padding: 40px 44px;
  position: relative;
  z-index: 1;
}
.graduation-banner.has-media .grad-content .grad-icon {
  margin-bottom: 18px;
  width: 56px; height: 56px;
  font-size: 1.4rem;
  background: var(--primary);
}

/* Responsive */
@media (max-width: 880px) {
  .about-split { grid-template-columns: 1fr; gap: 28px; margin: 28px 0 40px; }
  .banner-media { aspect-ratio: 16 / 10; }
  .banner-media .banner-caption { padding: 20px 22px; }
  .banner-media .banner-caption h3 { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  .graduation-banner.has-media { flex-direction: column; }
  .graduation-banner.has-media .grad-media {
    flex: 0 0 200px;
    width: 100%;
    min-height: 200px;
  }
  .graduation-banner.has-media .grad-media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(32,47,96,0.55) 100%);
  }
  .graduation-banner.has-media .grad-content { padding: 28px; text-align: center; }
  .graduation-banner.has-media .grad-content .grad-icon { margin: 0 auto 14px; }
}

