/* ==========================================================================
   BIA LAB · UNIVERSITY OF COIMBRA — MOBILITY & RESEARCH PORTAL
   Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #080e1e;
  --bg-dark-elevated: #0f172a;
  --bg-dark-card: #131d35;
  --bg-dark-border: rgba(56, 189, 248, 0.15);
  
  --bg-light: #f8fafc;
  --bg-light-surface: #ffffff;
  --bg-light-alt: #f1f5f9;
  --bg-light-border: #e2e8f0;

  --text-dark-primary: #ffffff;
  --text-dark-secondary: #94a3b8;
  --text-dark-muted: #64748b;

  --text-light-primary: #0f172a;
  --text-light-secondary: #475569;
  --text-light-muted: #64748b;

  /* Brand Accents */
  --cyan-primary: #0ea5e9;
  --cyan-glow: #38bdf8;
  --teal-accent: #14b8a6;
  --teal-glow: #2dd4bf;
  --purple-accent: #6366f1;
  --purple-soft: #8b5cf6;
  --warm-gold: #f59e0b;
  --warm-terracotta: #ea580c;

  /* Gradients */
  --grad-cyan-teal: linear-gradient(135deg, #38bdf8 0%, #2dd4bf 100%);
  --grad-hero-overlay: linear-gradient(90deg, rgba(6, 12, 26, 0.88) 0%, rgba(6, 12, 26, 0.68) 36%, rgba(6, 12, 26, 0.18) 64%, transparent 100%);
  --grad-hero-mobile: linear-gradient(180deg, rgba(6, 12, 26, 0.90) 0%, rgba(6, 12, 26, 0.76) 55%, rgba(6, 12, 26, 0.35) 100%);
  --grad-card-dark: linear-gradient(180deg, rgba(19, 29, 53, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 25px -5px rgba(56, 189, 248, 0.3);

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* ==========================================================================
   HEADER & NAVIGATION ARCHITECTURE
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(8, 14, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background: rgba(6, 11, 24, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

/* 1. Top Mobility Portal Bar (Official bialab.pt Gateway) */
.top-portal-bar {
  background: #040814;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.35rem 0;
  transition: all 0.25s ease;
}

.site-header.scrolled .top-portal-bar {
  padding: 0.2rem 0;
  background: #030610;
}

.top-portal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

.top-portal-badge strong {
  color: #ffffff;
  font-weight: 700;
}

.top-portal-badge a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.top-portal-badge a:hover {
  color: #7dd3fc;
}

.portal-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

.top-portal-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.portal-creed {
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f59e0b 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-size: 0.8rem;
  white-space: nowrap;
}

.portal-back-link {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.portal-back-link:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

/* 2. Main Navigation Bar */
.nav-main-bar {
  padding: 0.65rem 0;
  transition: padding var(--transition-base);
}

.site-header.scrolled .nav-main-bar {
  padding: 0.45rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  transition: height var(--transition-fast);
}

.site-header.scrolled .nav-logo-img {
  height: 32px;
}

.portal-tag-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
}

/* 3. Desktop Navigation Menu */
.nav-menu {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .nav-menu {
    gap: 0.95rem;
  }
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.4rem 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-cyan-teal);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link-external {
  color: #38bdf8 !important;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.84rem;
}

.nav-link-external:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff !important;
  border-color: #38bdf8;
}

.nav-link-external::after {
  display: none !important;
}

/* 4. Dropdown Menus */
.nav-item-dropdown {
  position: relative;
}

.dropdown-chevron {
  width: 13px;
  height: 13px;
  transition: transform var(--transition-fast);
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: rgba(9, 15, 32, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 1px rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1050;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
  transform: translateX(2px);
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.dropdown-item:hover .dropdown-item-title {
  color: #38bdf8;
}

.dropdown-item-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* 5. Nav Actions & CTA */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta-btn {
  font-size: 0.84rem;
  padding: 0.48rem 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

/* 6. Mobile Toggle & Drawer */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1101;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer (Organized into structured categories) */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 11, 24, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 4.5rem 1.5rem 2rem 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-category {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.mobile-drawer .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer .nav-link:hover,
.mobile-drawer .nav-link.active {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.mobile-drawer .nav-link::after {
  display: none;
}


/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cyan-teal);
  color: #080e1e;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-light-primary);
  border-color: var(--bg-light-border);
}

.btn-outline-dark:hover {
  background: var(--bg-light-alt);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-warm {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7.25rem;
  padding-bottom: 4.5rem;
  background-color: var(--bg-dark);
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-hero-overlay);
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: var(--grad-hero-mobile);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.3rem;
  }
}

.hero-title .gradient-text {
  background: var(--grad-cyan-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 450;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-section .btn-secondary {
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-section .btn-secondary:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.hero-context-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-context-line span.sep {
  color: #38bdf8;
}

/* ==========================================================================
   INSTITUTIONAL TRUST BAR
   ========================================================================== */

.trust-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.75rem 0;
  color: #64748b;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 1rem;
  border-left: 2px solid rgba(2, 132, 199, 0.4);
  transition: border-color var(--transition-fast);
}

.trust-item:hover {
  border-color: #0284c7;
}

.trust-item strong {
  font-size: 0.96rem;
  color: #0f172a;
  font-weight: 700;
}

.trust-item span {
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */

.section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 992px) {
  .section {
    padding: 7.5rem 0;
  }
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light-alt {
  background-color: #ffffff;
  color: var(--text-light-primary);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-lead {
  font-size: 1.12rem;
  color: var(--text-light-secondary);
  line-height: 1.65;
}

.section-dark .section-lead {
  color: var(--text-dark-secondary);
}

/* ==========================================================================
   RESEARCH PILLARS & INTERACTIVE 3D VIEWER
   ========================================================================== */

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.research-card {
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-cyan-teal);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.4);
}

.research-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1.4rem;
}

.research-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.research-card p {
  font-size: 0.96rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--bg-light-alt);
  color: var(--text-light-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Interactive Molecular Visualizer Section */
.mol-showcase-box {
  background: #080e1e;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .mol-showcase-box {
    grid-template-columns: 1.1fr 1fr;
  }
}

.mol-canvas-container {
  position: relative;
  min-height: 400px;
  background: radial-gradient(circle at center, #0f1c3d 0%, #060a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#molCanvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#molCanvas:active {
  cursor: grabbing;
}

.mol-controls-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 14, 30, 0.75);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #94a3b8;
}

.mol-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ctrl:hover, .btn-ctrl.active {
  background: #38bdf8;
  color: #080e1e;
}

.mol-info-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.mol-info-panel h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.mol-info-panel p {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.mol-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.mol-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.mol-feature-list svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   WHAT YOU'LL LEARN: SKILLS MATRIX
   ========================================================================== */

.skills-wrapper {
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-item {
  background: #ffffff;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-light-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.skill-item:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.skill-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light-primary);
}

.skill-item p {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   WHO CAN JOIN: PROFILES & FIT
   ========================================================================== */

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-light-border);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(56, 189, 248, 0.4);
}

.profile-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-badge {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-sub-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-bsc {
  background: #e0f2fe;
  color: #0284c7;
}

.badge-msc {
  background: #ecfdf5;
  color: #059669;
}

.badge-phd {
  background: #f5f3ff;
  color: #7c3aed;
}

.profile-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.5rem;
}

.profile-card .profile-tagline {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.85rem;
}

.profile-card p {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.profile-features-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.profile-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-features-list li {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.profile-features-list li i {
  color: #0284c7;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-meta {
  margin-top: auto;
  border-top: 1px solid var(--bg-light-border);
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.meta-label {
  color: var(--text-light-muted);
}

.meta-val {
  font-weight: 600;
  color: var(--text-light-primary);
  text-align: right;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  width: 100%;
}

/* ==========================================================================
   MOBILITY PATHWAYS & OFFICIAL TIMELINE
   ========================================================================== */

.deadlines-banner {
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.deadlines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .deadlines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.deadline-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.deadline-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.deadline-info h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.deadline-info strong {
  font-size: 1.15rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

.deadline-info span {
  font-size: 0.82rem;
  color: #38bdf8;
}

/* Mobility Tabs */
.mobility-tabs-nav {
  display: flex;
  gap: 0.75rem;
  border-bottom: 2px solid var(--bg-light-border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.mobility-tab-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light-muted);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.mobility-tab-btn:hover {
  color: var(--cyan-primary);
}

.mobility-tab-btn.active {
  color: var(--cyan-primary);
}

.mobility-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-cyan-teal);
  border-radius: 3px;
}

.mobility-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.mobility-pane.active {
  display: block;
}

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

.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .path-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.step-card:hover {
  border-color: #38bdf8;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #38bdf8;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-light-primary);
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.link-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-pill:hover {
  text-decoration: underline;
}

.path-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light-primary);
}

.sidebar-box p {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   INTERACTIVE STAY FINDER WIZARD
   ========================================================================== */

.stay-finder-box {
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stay-finder-box {
    padding: 3.5rem;
  }
}

.finder-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.finder-steps-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-light-border);
  z-index: 1;
}

.wizard-step-dot {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--bg-light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light-muted);
  transition: all var(--transition-fast);
}

.wizard-step-dot.active {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.wizard-step-dot.completed {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.wizard-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 1.25rem;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .wizard-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-option-btn {
  background: var(--bg-light);
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wizard-option-btn:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  transform: translateY(-2px);
}

.wizard-option-btn.selected {
  border-color: var(--cyan-primary);
  background: #e0f2fe;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

.wizard-option-btn strong {
  font-size: 1.05rem;
  color: var(--text-light-primary);
}

.wizard-option-btn span {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bg-light-border);
  padding-top: 1.5rem;
}

.wizard-result-box {
  display: none;
  background: #080e1e;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  animation: fadeIn 0.5s ease;
}

.wizard-result-box.show {
  display: block;
}

.result-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ==========================================================================
   COIMBRA & UC LIFE SECTION
   ========================================================================== */

.coimbra-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .coimbra-story-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.coimbra-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.coimbra-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.coimbra-img-wrap:hover img {
  transform: scale(1.02);
}

.coimbra-city-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(8, 14, 30, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.coimbra-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .coimbra-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fact-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition-fast);
}

.fact-item:hover {
  border-color: #38bdf8;
}

.fact-item strong {
  font-size: 1.15rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.35rem;
}

.fact-item p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Living Cost Calculator Table */
.cost-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-light-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cost-table th, .cost-table td {
  padding: 1.1rem 1.5rem;
  font-size: 0.94rem;
}

.cost-table th {
  background: var(--bg-light-alt);
  font-weight: 700;
  color: var(--text-light-primary);
  border-bottom: 2px solid var(--bg-light-border);
}

.cost-table td {
  border-bottom: 1px solid var(--bg-light-border);
  color: var(--text-light-secondary);
}

.cost-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--text-light-primary);
  background: #f0fdf4;
}

/* ==========================================================================
   QUALIFIED STAY INQUIRY FORM
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.35fr;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.contact-card-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.75rem;
}

.contact-card-box p {
  font-size: 0.94rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item-text strong {
  font-size: 0.88rem;
  display: block;
  color: var(--text-light-primary);
  margin-bottom: 0.15rem;
}

.info-item-text span, .info-item-text a {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
}

.info-item-text a:hover {
  color: var(--cyan-primary);
}

/* Form Styles */
.form-box {
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .form-box {
    padding: 3rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light-primary);
}

.form-label span.req {
  color: #ef4444;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.94rem;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--text-light-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.5;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--bg-light-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan-primary);
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 14, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.75rem;
}

.modal-card p {
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #040812;
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.3fr;
  }
}

.footer-col-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-motto {
  display: inline-block;
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-credit-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   HERITAGE & VISION: 1279 TO THE FUTURE
   ========================================================================== */

.heritage-section {
  background: radial-gradient(circle at 50% 20%, #111e3b 0%, #060a14 100%);
  color: #ffffff;
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .heritage-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.heritage-manifesto {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.heritage-manifesto h2 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
}

@media (min-width: 768px) {
  .heritage-manifesto h2 {
    font-size: 3.2rem;
  }
}

.heritage-lead-phrase {
  font-size: 1.25rem;
  font-weight: 500;
  color: #38bdf8;
  line-height: 1.5;
}

.heritage-sentences {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.strong-sentence {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.6;
  border-left: 3px solid var(--cyan-primary);
  padding-left: 1.25rem;
}

.strong-sentence strong {
  color: #ffffff;
}

.heritage-quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.heritage-quote-card::before {
  content: '“';
  position: absolute;
  top: -15px;
  left: 25px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.25);
  font-family: Georgia, serif;
}

.heritage-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.heritage-quote-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.heritage-motto-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.heritage-motto-callout span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.heritage-motto-callout strong {
  font-size: 1.05rem;
  color: #38bdf8;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   REGIONAL VISA & INTERNATIONAL PATHWAYS
   ========================================================================== */

.regions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .regions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.region-card {
  background: #ffffff;
  border: 1px solid var(--bg-light-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.region-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.4);
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.region-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.tag-eu {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tag-br {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tag-palop {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.tag-cn {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tag-world {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.tag-med {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.tag-tr {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.region-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.5rem;
}

.region-card p {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.region-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  border-top: 1px solid var(--bg-light-border);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light-secondary);
}

.region-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.region-points svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   FCTUC DEGREE PROGRAMS & PHD FELLOWSHIPS
   ========================================================================== */

.deq-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.deq-programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 992px) {
  .deq-programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.program-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-light-border);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #38bdf8;
}

.program-card.featured-deq {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 4px 20px -2px rgba(14, 165, 233, 0.12);
}

.program-level-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.pill-msc {
  background: #e0f2fe;
  color: #0369a1;
}

.pill-phd {
  background: #f3e8ff;
  color: #7e22ce;
}

.program-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.program-card p {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.program-thesis-note {
  background: var(--bg-light);
  border-left: 3px solid var(--cyan-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-light-primary);
  margin-top: auto;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.program-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0284c7;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.program-link-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Secondary FCTUC Degrees (Other Departments) */
.secondary-degrees-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.secondary-degrees-header {
  margin-bottom: 1.75rem;
}

.secondary-degrees-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.secondary-degrees-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.secondary-degrees-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .secondary-degrees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .secondary-degrees-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.secondary-degree-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.secondary-degree-card:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.sec-dept-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  margin-bottom: 0.4rem;
}

.secondary-degree-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.secondary-degree-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #475569;
}

.secondary-degree-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.secondary-degree-card ul li i {
  color: #0ea5e9;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sec-degree-tagline {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: auto;
  border-top: 1px dashed #cbd5e1;
  padding-top: 0.6rem;
}

.fellowship-box {
  background: linear-gradient(135deg, #0b1528 0%, #060a14 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #ffffff;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .fellowship-box {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.fellowship-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.fellowship-content p {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.fellowship-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fellowship-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.fellowship-stat strong {
  font-size: 1.4rem;
  color: #38bdf8;
  display: block;
  margin-bottom: 0.25rem;
}

.fellowship-stat span {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* External Link Pill Tags */
.tag-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-link:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}




/* ==========================================================================
   LAB CREED BANNER
   ========================================================================== */
.creed-banner {
  background: linear-gradient(135deg, #0b152d 0%, #080e1e 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  margin: 2.5rem 0;
}

.creed-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at right center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.creed-text-huge {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   LEADER PROFILE & PUBLICATIONS SECTION
   ========================================================================== */
.leader-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--bg-light-border);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
  .leader-profile-grid {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.leader-card-aside {
  text-align: center;
}

.leader-avatar-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #0ea5e9, #14b8a6, #f59e0b);
  box-shadow: 0 12px 30px -8px rgba(14, 165, 233, 0.35);
}

.leader-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: right center;
  background: #0f172a;
}

.leader-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-light-primary);
  margin-bottom: 0.25rem;
}

.leader-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.75rem;
}

.leader-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.stanford-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.leader-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.leader-stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.leader-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0369a1;
  display: block;
  line-height: 1.1;
}

.leader-stat-lbl {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.leader-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.leader-social-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.leader-social-btn:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.publication-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  transition: all var(--transition-fast);
}

.publication-item:hover {
  background: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.publication-year-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: #0284c7;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.publication-journal {
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  margin-left: 0.4rem;
}

.publication-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.publication-authors {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.publication-doi-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   TARGET COUNTRIES & MOBILITY AGREEMENTS (TURKEY, BRAZIL, PALOP, EU, CHINA)
   ========================================================================== */
.country-agreements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.country-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--bg-light-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #38bdf8;
}

.country-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.country-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.country-flag-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.country-pathways-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.country-pathways-list li {
  font-size: 0.88rem;
  color: var(--text-light-secondary);
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.country-pathways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #059669;
  font-weight: 800;
}

.country-highlight-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #166534;
  margin-top: auto;
}

/* ==========================================================================
   RESEARCH PILLAR MEDIA CARDS (FOR RESEARCH.HTML)
   ========================================================================== */
.pillar-media-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--bg-light-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
  transition: all var(--transition-base);
}

@media (min-width: 992px) {
  .pillar-media-card {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }
  .pillar-media-card.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
  .pillar-media-card.reverse .pillar-media-img-wrap {
    order: -1;
  }
}

.pillar-media-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillar-media-img-wrap {
  position: relative;
  background: #080e1e;
  min-height: 320px;
  overflow: hidden;
}

.pillar-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar-media-card:hover .pillar-media-img {
  transform: scale(1.03);
}

.pillar-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 30, 0.9) 100%);
  color: #cbd5e1;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 3D Molecular Viewer Controls */
.mol-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mol-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mol-zoom-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.mol-zoom-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.mol-energy-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.tag-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

.tag-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
