/* ==========================================================================
   UPT ROBOTICS CLUB — DESIGN SYSTEM & CORE STYLES
   Document: Doc. UPT-RC-WEB-01 · Aligned with Brand Guide v4 (Ediția 4 · 2026)
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT (Barlow Condensed + Barlow + JetBrains Mono) --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- ROOT DESIGN TOKENS (LIGHT & DARK THEMES) --- */
:root {
  /* Brand Constants — Ghid Identitate Vizuală v4 */
  --color-yellow: #FCB31C;         /* Galben Atelier · RGB 252 179 28 */
  --color-yellow-hover: #e59f14;
  --color-yellow-dark: #D78226;    /* Umbră Caldă */
  --color-yellow-glow: rgba(252, 179, 28, 0.35);
  
  --color-orange: #F69320;         /* Portocaliu · RGB 246 147 32 */
  --color-upt-blue: #16489A;       /* Albastru UPT · RGB 22 72 154 */
  --color-upt-navy: #0D3372;       /* Bleumarin UPT · RGB 13 51 114 */
  --color-shield-black: #040606;   /* Negru Scut · RGB 4 6 6 */
  --color-laurel: #6FBC42;         /* Laur Verde */
  --color-laurel-dark: #0F3E1F;    /* Laur Închis */
  
  --color-graphite: #0d0f11;       /* Grafit Cald / Bază Scut */
  --color-graphite-dark: #040606;
  --color-graphite-light: #1b1d20;
  
  --color-paper: #F6F1E6;          /* Hârtie Caldă */
  --color-paper-light: #faf7f0;
  --color-paper-dark: #ece5d6;
  
  --color-gray: #6b6b6b;           /* Gri Neutru */
  --color-gray-light: #bdbdbd;
  --color-gray-subtle: rgba(255, 255, 255, 0.12);
  
  /* Fonts — Sistemul Oficial Barlow */
  --font-logo: 'Barlow Condensed', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --trans-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-theme: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
  --corner-size: 8px;
}

/* Color scheme declaration for mobile status bar and OS */
:root {
  color-scheme: dark light;
}

/* Dark Theme (Grafit Cald · Bază / Default) */
body[data-theme="dark"], :root[data-theme="dark"], :root {
  --bg-primary: var(--color-graphite);
  --bg-secondary: #1e1b19;
  --bg-card: #2c2725;
  --bg-card-glass: rgba(44, 39, 37, 0.85);
  --bg-highlight: #3a3431;
  
  --text-primary: var(--color-paper);
  --text-secondary: #cfc7b8;
  --text-muted: #9e968b;
  --text-inverse: var(--color-graphite);
  
  --border-color: rgba(246, 241, 230, 0.16);
  --border-subtle: rgba(246, 241, 230, 0.08);
  --border-focus: var(--color-yellow);
  
  --blueprint-line: rgba(89, 128, 166, 0.4);
  --blueprint-grid: rgba(246, 241, 230, 0.035);
  --pattern-opacity: 0.12;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Light Theme (Hârtie Caldă · Explicit) */
body[data-theme="light"], :root[data-theme="light"] {
  --bg-primary: var(--color-paper);
  --bg-secondary: var(--color-paper-light);
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.88);
  --bg-highlight: #ece5d6;
  
  --text-primary: var(--color-graphite);
  --text-secondary: #424244;
  --text-muted: var(--color-gray);
  --text-inverse: var(--color-paper);
  
  --border-color: rgba(38, 34, 32, 0.16);
  --border-subtle: rgba(38, 34, 32, 0.08);
  --border-focus: var(--color-yellow-dark);
  
  --blueprint-line: rgba(89, 128, 166, 0.5);
  --blueprint-grid: rgba(38, 34, 32, 0.04);
  --pattern-opacity: 0.07;
  --shadow-card: 0 10px 30px rgba(38, 34, 32, 0.06);
}

/* Tema Sistemului Activă (Când sistemul are Light Mode și nu este forțat Dark manual) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]),
  body:not([data-theme="dark"]) {
    --bg-primary: var(--color-paper);
    --bg-secondary: var(--color-paper-light);
    --bg-card: #ffffff;
    --bg-card-glass: rgba(255, 255, 255, 0.88);
    --bg-highlight: #ece5d6;
    
    --text-primary: var(--color-graphite);
    --text-secondary: #424244;
    --text-muted: var(--color-gray);
    --text-inverse: var(--color-paper);
    
    --border-color: rgba(38, 34, 32, 0.16);
    --border-subtle: rgba(38, 34, 32, 0.08);
    --border-focus: var(--color-yellow-dark);
    
    --blueprint-line: rgba(89, 128, 166, 0.5);
    --blueprint-grid: rgba(38, 34, 32, 0.04);
    --pattern-opacity: 0.07;
    --shadow-card: 0 10px 30px rgba(38, 34, 32, 0.06);
  }
}

/* --- RESET & GLOBAL BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: var(--trans-theme);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    linear-gradient(to right, var(--blueprint-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--blueprint-grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Noise texture overlay for warm paper realism */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: radial-gradient(var(--text-primary) 1px, transparent 0);
  background-size: 8px 8px;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-smooth);
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.text-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
}

.text-accent {
  color: var(--color-yellow);
}

body[data-theme="light"] .text-accent {
  color: var(--color-yellow-dark);
}

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

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* --- BLUEPRINT BOX SYSTEM (.blueprint) --- */
.blueprint {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--trans-smooth);
}

.blueprint-interactive:hover {
  border-color: var(--color-yellow);
  transform: translateY(-3px);
}

/* Blueprint corner tick markers (Brand Guide v3 requirement) */
.corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  pointer-events: none;
  transition: var(--trans-smooth);
}

.corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--color-yellow);
  border-left: 2px solid var(--color-yellow);
}

.corner.tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--color-yellow);
  border-right: 2px solid var(--color-yellow);
}

.corner.bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid var(--color-yellow);
  border-left: 2px solid var(--color-yellow);
}

.corner.br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--color-yellow);
  border-right: 2px solid var(--color-yellow);
}

/* Blueprint Doc Code Tag */
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  background: var(--bg-secondary);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.doc-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background-color: var(--color-yellow);
}

/* --- INTERACTIVE BLUEPRINT TOOLTIPS --- */
.interactive-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip-trigger {
  color: var(--color-yellow);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-yellow);
  padding: 0 3px;
  border-radius: 2px;
  transition: var(--trans-smooth);
}

body[data-theme="light"] .tooltip-trigger {
  color: var(--color-yellow-dark);
  text-decoration-color: var(--color-yellow-dark);
}

.tooltip-trigger:hover,
.interactive-tooltip:focus-within .tooltip-trigger {
  color: #262220;
  background-color: var(--color-yellow);
  text-decoration: none;
}

body[data-theme="light"] .tooltip-trigger:hover,
body[data-theme="light"] .interactive-tooltip:focus-within .tooltip-trigger {
  color: #ffffff;
  background-color: var(--color-yellow-dark);
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(340px, 86vw);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--border-color) transparent transparent transparent;
}

.interactive-tooltip:hover .tooltip-content,
.interactive-tooltip:focus-within .tooltip-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tooltip-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-yellow);
  display: inline-block;
  text-transform: uppercase;
}

body[data-theme="light"] .tooltip-badge {
  color: var(--color-yellow-dark);
}

.tooltip-body {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-primary);
  font-weight: 400;
  text-transform: none;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  position: relative;
  transition: var(--trans-smooth);
  user-select: none;
}

.btn-primary {
  background-color: var(--color-yellow);
  color: #262220 !important;
  border: 1px solid var(--color-yellow);
  box-shadow: 0 4px 14px var(--color-yellow-glow);
}

.btn-primary:hover {
  background-color: var(--color-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-yellow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: var(--bg-highlight);
}

body[data-theme="light"] .btn-outline:hover {
  color: var(--color-yellow-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* --- HEADER / NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--trans-theme);
}

.site-header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
}

@media (min-width: 768px) {
  .site-header .container {
    padding: 0 20px !important;
  }
}

@media (min-width: 1440px) {
  .site-header .container {
    padding: 0 24px !important;
  }
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--trans-smooth);
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
}

.logo-wrapper:hover {
  transform: translateY(-1px);
}

/* Official Wordmark Branding — High-Presence Standalone Sizing & Easter Egg Glow */
.brand-wordmark {
  height: 46px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.logo-wrapper:hover .brand-wordmark {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(255, 197, 41, 0.45));
}

@media (max-width: 768px) {
  .brand-wordmark {
    height: 34px;
  }
}

:root[data-theme="dark"] .wordmark-dark,
body[data-theme="dark"] .wordmark-dark {
  display: none !important;
}
:root[data-theme="dark"] .wordmark-white,
body[data-theme="dark"] .wordmark-white {
  display: inline-block !important;
}

:root[data-theme="light"] .wordmark-white,
body[data-theme="light"] .wordmark-white {
  display: none !important;
}
:root[data-theme="light"] .wordmark-dark,
body[data-theme="light"] .wordmark-dark {
  display: inline-block !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .wordmark-white,
  body:not([data-theme="dark"]) .wordmark-white {
    display: none !important;
  }
  :root:not([data-theme="dark"]) .wordmark-dark,
  body:not([data-theme="dark"]) .wordmark-dark {
    display: inline-block !important;
  }
}

/* Footer Brand Lockup — Bold & Authoritative */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
}

.footer-crest,
.brand-crest {
  height: 165px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.45));
  display: block;
  margin: 0 auto;
}

/* UPT Official Blue Crest & Badges */
.badge-upt-crest {
  height: 20px;
  width: auto;
  vertical-align: -3px;
  margin-right: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Institutional Declaration Layout */
.rep-header-lockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.rep-authority-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rep-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #16489A 0%, #0D3372 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(22, 72, 154, 0.4);
  width: fit-content;
  border: 1px solid rgba(252, 179, 28, 0.35);
}

.rep-badge-seal-icon {
  color: #FCB31C;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.rep-mandate-sub {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 600;
}

.rep-banner-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rep-quote-heading {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.rep-declaration-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 90ch;
}

/* ==================== BRAND GUIDE V4 GRAPHIC DEVICES ==================== */
/* Banda de culoare (3fr galben : 2fr portocaliu : 1fr negru / albastru) */
.brand-stripe {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr;
  height: 4px;
  width: 100%;
}
.brand-stripe > span:nth-child(1) { background: #FCB31C; }
.brand-stripe > span:nth-child(2) { background: #F69320; }
.brand-stripe > span:nth-child(3) { background: #040606; }

body[data-theme="light"] .brand-stripe > span:nth-child(3) {
  background: #040606;
}

.brand-stripe-upt {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr;
  height: 4px;
  width: 100%;
}
.brand-stripe-upt > span:nth-child(1) { background: #FCB31C; }
.brand-stripe-upt > span:nth-child(2) { background: #F69320; }
.brand-stripe-upt > span:nth-child(3) { background: #16489A; }

/* Lockup de co-branding UPT (Ghid v4 Pag. 4, 14 & 16) — Placă albă oficială */
.upt-cobranding-lockup {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 30px;
  background: #ffffff;
  border: 1.5px solid rgba(22, 72, 154, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.16);
  transition: transform var(--trans-smooth), border-color var(--trans-smooth), box-shadow var(--trans-smooth);
}

.upt-cobranding-lockup:hover {
  border-color: rgba(22, 72, 154, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 72, 154, 0.22);
}

.upt-lockup-uni {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.upt-lockup-divider {
  width: 1.5px;
  height: 52px;
  background: #040606;
  opacity: 0.3;
  border-radius: 1px;
}

.upt-lockup-club {
  height: 66px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 680px) {
  .rep-header-lockup-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .upt-cobranding-lockup {
    width: 100%;
    justify-content: center;
    gap: 16px;
    padding: 14px 18px;
  }
  .upt-lockup-uni {
    height: 48px;
  }
  .upt-lockup-divider {
    height: 44px;
  }
  .upt-lockup-club {
    height: 56px;
  }
}

.upt-strategic-logo {
  height: 52px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

body[data-theme="dark"] .upt-strategic-logo {
  content: url("../logos/upt-logo-white.png");
}

.partner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.partner-logo-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.partner-logo-img {
  height: 52px;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.partner-logo-img:hover {
  transform: scale(1.05);
}

.partner-logo-pill {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Banda de atelier (Hazard/Workshop) */
.brand-hazard-stripe {
  background: repeating-linear-gradient(135deg, #FCB31C 0 7px, #3a3634 7px 11px);
}

/* Paranteza decorativă din wordmark (Ghid v4 Pag. 8) */
.brand-bracket-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-bracket-title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.1em;
  border: solid var(--color-yellow);
  border-width: 3px 0 3px 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Backward compatibility for CSS logo lockup */
.logo-box-upt {
  background: #FFC529;
  color: #262220;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  padding: 9px 13px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--trans-smooth);
}

.logo-text-n4 {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #F6F1E6;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-theme="light"] .logo-text-n4 {
  color: #262220;
}

.logo-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-brand-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 0.875rem;
  line-height: 1.25;
  color: #F6F1E6;
  letter-spacing: 0.06em;
}

.logo-brand-sub {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #F6F1E6;
}

body[data-theme="light"] .logo-brand-title,
body[data-theme="light"] .logo-brand-sub {
  color: #262220;
}

/* Nav Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: clamp(2px, 0.45vw, 8px);
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  margin: 0 clamp(8px, 1.2vw, 20px);
}

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

@media (min-width: 1440px) {
  .nav-menu {
    gap: 8px;
    margin: 0 24px;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.74vw, 0.775rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px clamp(5px, 0.5vw, 9px);
  border-radius: 2px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1440px) {
  .nav-link {
    font-size: 0.785rem;
    letter-spacing: 0.05em;
    padding: 7px 11px;
  }
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-highlight);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--color-yellow);
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-btn {
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--trans-smooth);
}

.lang-btn.active {
  background-color: var(--color-yellow);
  color: #262220;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--trans-smooth);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

/* Mobile Menu Toggle */
.mobile-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.mobile-toggle-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: var(--trans-smooth);
}

/* ==========================================================================
   NATIVE MOBILE NAVIGATION, APP DRAWER & BOTTOM DOCK
   ========================================================================== */

/* Mobile Backdrop Blur Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 6, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 1040;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer (Native App Sheet / Slide-in Panel) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 16px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s;
  z-index: 1050;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.drawer-title-box {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.drawer-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-yellow);
  letter-spacing: 0.05em;
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--trans-smooth);
}

.drawer-close-btn:active {
  transform: scale(0.92);
}

/* Drawer Section Label */
.drawer-section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* System Theme Segmented Control */
.theme-segmented-control {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.theme-segment-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.theme-segment-btn.active {
  background: var(--bg-card);
  color: var(--color-yellow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-weight: 700;
}

body[data-theme="light"] .theme-segment-btn.active {
  background: #ffffff;
  color: var(--color-yellow-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Drawer Navigation Rows */
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.drawer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
}

.drawer-nav-row:active {
  transform: scale(0.98);
  background: var(--bg-secondary);
}

.drawer-nav-row.active {
  background: var(--bg-secondary);
  border-color: rgba(252, 179, 28, 0.3);
  color: var(--color-yellow);
}

body[data-theme="light"] .drawer-nav-row.active {
  color: var(--color-yellow-dark);
}

.drawer-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: var(--text-muted);
}

.drawer-nav-row.active .drawer-nav-icon {
  color: var(--color-yellow);
}

body[data-theme="light"] .drawer-nav-row.active .drawer-nav-icon {
  color: var(--color-yellow-dark);
}

.drawer-nav-chevron {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Drawer Dropdown Section */
.drawer-dropdown-group {
  display: flex;
  flex-direction: column;
}

.drawer-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 36px;
  margin: 6px 0 10px;
  border-left: 2px solid var(--color-yellow);
}

.drawer-sub-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.drawer-sub-link:active,
.drawer-sub-link.active {
  color: var(--color-yellow);
  background: var(--bg-secondary);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & OVERFLOW CONTAINMENT
   ========================================================================== */

/* Completely hide and eliminate bottom-nav */
.mobile-bottom-nav {
  display: none !important;
}

/* Global horizontal scroll prevention */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* Base mobile container padding and blueprint card padding */
@media (max-width: 600px) {
  .container {
    padding: 0 16px !important;
    max-width: 100% !important;
  }

  .blueprint {
    padding: 20px 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-meta-strip {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.04 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Global text, tag and heading wrapping protection */
.doc-tag {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  line-height: 1.35 !important;
  letter-spacing: 0.12em !important;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Construction Hazard Tape mobile containment */
.construction-sticky-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.hazard-tape-ribbon {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  transform: none !important;
}

.hazard-tape-text {
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
  max-width: 100% !important;
  font-size: 0.72rem !important;
  padding: 6px 12px !important;
}

.construction-hud-card {
  max-width: 100% !important;
  width: 100% !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}

/* Team Pyramid Leadership Hierarchy mobile fit */
@media (max-width: 768px) {
  .team-pyramid-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .pyramid-flow {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .pyramid-wings-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .pyramid-node,
  .node-apex,
  .node-vp,
  .node-admin {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 14px !important;
    gap: 12px !important;
  }

  .node-apex .pyramid-node-avatar {
    width: 60px !important;
    height: 60px !important;
  }

  .node-vp .pyramid-node-avatar {
    width: 56px !important;
    height: 56px !important;
  }

  .node-apex .pyramid-node-name {
    font-size: 1.15rem !important;
  }

  .pyramid-node-name {
    font-size: 1.05rem !important;
    word-break: break-word !important;
  }

  .pyramid-node-bio {
    font-size: 0.8rem !important;
    word-break: break-word !important;
  }
}

/* Projects Layout on Mobile */
@media (max-width: 900px) {
  .projects-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .android-fast-scroll {
    display: none !important;
  }
}

/* Ergonomic Mobile Header & Viewport Adjustments */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    height: var(--header-height);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .brand-wordmark {
    height: 32px;
  }

  .hero-section {
    padding: 32px 0 40px;
  }

  #rover-canvas-container,
  #rover-blueprint-canvas {
    touch-action: pan-y !important;
  }

  /* Prevent Safari auto-zoom on form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

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

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 7.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-lead {
  font-size: clamp(0.95rem, 3.8vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100%;
}

@media (max-width: 540px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 3D Rover Canvas Container */
.rover-3d-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 360px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rover-3d-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  display: block;
}

.rover-3d-canvas:active {
  cursor: grabbing;
}

.rover-3d-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--color-yellow);
  background: rgba(38, 34, 32, 0.7);
  padding: 4px 8px;
  border-left: 2px solid var(--color-yellow);
}

.rover-hint {
  display: none !important; /* Eliminate text overlay on top of 3D render */
}

.rover-3d-column {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.rover-hint-below {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}

.rover-hint-below svg {
  color: var(--color-yellow);
  flex-shrink: 0;
}

body[data-theme="light"] .rover-hint-below svg {
  color: var(--color-yellow-dark);
}

/* --- MODEL-VIEWER & GLB 3D CAD ENGINE --- */
model-viewer.ansamblu-3d-model {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  outline: none;
  --poster-color: transparent;
}

.glb-controls-toolbar {
  position: absolute;
  bottom: 12px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.glb-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 18, 17, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(6px);
}

.glb-ctrl-btn:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: rgba(38, 34, 32, 0.95);
}

.glb-ctrl-btn.active {
  background: var(--color-yellow);
  color: #262220;
  border-color: var(--color-yellow);
  font-weight: 700;
}

.glb-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 12, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.glb-loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.glb-loader-box {
  width: 90%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.glb-loader-box .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-yellow);
}

.glb-loader-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.glb-loader-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--color-yellow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.glb-loader-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.glb-progress-bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.glb-progress-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--color-yellow);
  box-shadow: 0 0 10px rgba(255, 197, 41, 0.5);
  transition: width 0.15s ease-out;
}

.glb-loader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- METRIC STATS TICKER & CAROUSEL --- */
.stats-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Background floating silhouettes of robots and rovers */
.stats-bg-silhouettes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
}

body[data-theme="light"] .stats-bg-silhouettes {
  opacity: 0.05;
}

.silhouette-svg {
  width: 130px;
  height: 130px;
  animation: floatDrift 14s ease-in-out infinite alternate;
}

.silhouette-svg:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 18s;
}

.silhouette-svg:nth-child(3) {
  animation-delay: -9s;
  animation-duration: 16s;
}

@keyframes floatDrift {
  0% { transform: translateY(-8px) rotate(-2deg); }
  100% { transform: translateY(8px) rotate(3deg); }
}

/* Moving Carousel Track for Stats */
.stats-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.stats-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollStats 28s linear infinite;
  padding: 10px 0;
}

.stats-track:hover {
  animation-play-state: paused;
}

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

.stat-item {
  flex: 0 0 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 22px 26px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 136px;
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--color-yellow);
  box-shadow: 0 12px 28px var(--color-yellow-glow);
  z-index: 10;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-yellow);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

body[data-theme="light"] .stat-val {
  color: var(--color-yellow-dark);
}

.stat-item:hover .stat-val {
  transform: scale(1.05);
  text-shadow: 0 0 16px var(--color-yellow-glow);
}

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 48px;
  }
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 64ch;
  margin-top: 12px;
}

/* --- ROVER ROSTER (CARDS) --- */
.rover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.rover-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rover-card.flagship {
  border-color: var(--color-yellow);
}

.rover-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.rover-title {
  font-size: 1.75rem;
}

.rover-badge {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  background-color: var(--color-yellow);
  color: #040606;
  border-radius: 2px;
}

.rover-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
}

.rover-specs-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.rover-specs-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rover-specs-table td:last-child {
  font-weight: 500;
  text-align: right;
  color: var(--text-primary);
}

/* --- PROJECTS PAGE SIDEBAR & SHOWCASE LAYOUT --- */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .projects-layout {
    grid-template-columns: 290px 1fr;
    gap: 40px;
  }
}

.projects-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  z-index: 40;
}

.projects-nav-panel {
  background: var(--bg-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.projects-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.projects-nav-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.projects-nav-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.projects-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Minimalist default state */
.projects-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--text-secondary);
  position: relative;
  cursor: pointer;
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.28s ease,
              padding 0.25s ease;
}

.nav-item-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-item-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-bottom: 2px;
  transition: color 0.25s ease;
}

.nav-item-name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transform-origin: left center;
  transition: font-size 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              font-family 0.25s ease,
              font-weight 0.25s ease,
              color 0.25s ease,
              transform 0.28s ease,
              letter-spacing 0.25s ease,
              text-shadow 0.28s ease;
}

.nav-item-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.35;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s ease,
              opacity 0.25s ease;
}

/* --- HOVER EFFECT: POPS OUT, SCALES UP, HIGHLIGHTS --- */
.projects-nav-item:hover {
  transform: translateX(8px) scale(1.03);
  background: var(--bg-highlight);
  border-color: var(--color-yellow);
  border-left: 4px solid var(--color-yellow);
  box-shadow: 0 8px 24px var(--color-yellow-glow);
  z-index: 5;
}

body[data-theme="light"] .projects-nav-item:hover {
  border-color: var(--color-yellow-dark);
  border-left-color: var(--color-yellow-dark);
  box-shadow: 0 6px 20px rgba(154, 107, 18, 0.2);
}

.projects-nav-item:hover .nav-item-num {
  color: var(--color-yellow);
  transform: scale(1.1);
}

body[data-theme="light"] .projects-nav-item:hover .nav-item-num {
  color: var(--color-yellow-dark);
}

.projects-nav-item:hover .nav-item-tag {
  color: var(--color-yellow);
}

body[data-theme="light"] .projects-nav-item:hover .nav-item-tag {
  color: var(--color-yellow-dark);
}

/* The project name gets bigger and stands out prominently! */
.projects-nav-item:hover .nav-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-yellow);
  text-shadow: 0 0 14px var(--color-yellow-glow);
  transform: translateX(2px);
}

body[data-theme="light"] .projects-nav-item:hover .nav-item-name {
  color: var(--color-yellow-dark);
  text-shadow: none;
}

.projects-nav-item:hover .nav-item-arrow {
  opacity: 1;
  color: var(--color-yellow);
  transform: translateX(4px);
}

body[data-theme="light"] .projects-nav-item:hover .nav-item-arrow {
  color: var(--color-yellow-dark);
}

/* Active State (ScrollSpy or clicked) */
.projects-nav-item.active {
  background: rgba(255, 197, 41, 0.09);
  border-left: 4px solid var(--color-yellow);
  border-color: rgba(255, 197, 41, 0.35);
}

body[data-theme="light"] .projects-nav-item.active {
  background: rgba(154, 107, 18, 0.09);
  border-left-color: var(--color-yellow-dark);
  border-color: rgba(154, 107, 18, 0.35);
}

.projects-nav-item.active .nav-item-num {
  color: var(--color-yellow);
}

body[data-theme="light"] .projects-nav-item.active .nav-item-num {
  color: var(--color-yellow-dark);
}

.projects-nav-item.active .nav-item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.projects-nav-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.nav-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  box-shadow: 0 0 8px var(--color-yellow);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px var(--color-yellow); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Target card flash when navigating via click */
@keyframes projectCardHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 197, 41, 0.8);
    border-color: var(--color-yellow);
  }
  30% {
    box-shadow: 0 0 35px 8px var(--color-yellow-glow);
    border-color: var(--color-yellow);
  }
  100% {
    box-shadow: var(--shadow-card);
  }
}

.project-scroll-target.is-highlighted {
  animation: projectCardHighlight 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- CLUSTERED DEPARTMENTS (TEHNIC & NON-TEHNIC) --- */
.dept-cluster-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.dept-cluster-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}

.dept-cluster-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dept-cluster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

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

.dept-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
  padding: 24px 22px;
  border: 1px solid var(--border-color);
  min-height: 290px;
}

.dept-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 16px rgba(255, 197, 41, 0.12);
}

body[data-theme="light"] .dept-card:hover {
  border-color: var(--color-yellow-dark);
  box-shadow: 0 10px 24px rgba(154, 107, 18, 0.15);
}

.dept-card.is-expanded {
  border-color: var(--color-yellow);
  box-shadow: 0 14px 34px var(--color-yellow-glow);
}

.dept-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dept-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--trans-smooth);
  position: relative;
}

.dept-card:hover .dept-icon-box {
  border-color: var(--color-yellow);
  background-color: rgba(255, 197, 41, 0.08);
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(255, 197, 41, 0.2);
}

body[data-theme="light"] .dept-card:hover .dept-icon-box {
  border-color: var(--color-yellow-dark);
  background-color: rgba(217, 155, 0, 0.08);
}

.dept-icon-box svg {
  width: 30px;
  height: 30px;
  display: block;
}

.dept-brief {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* --- DEPT COORDINATOR PHOTO SLOT --- */
.dept-coord-slot {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-yellow);
  margin-top: auto;
  margin-bottom: 14px;
  transition: var(--trans-smooth);
}

body[data-theme="light"] .dept-coord-slot {
  border-left-color: var(--color-yellow-dark);
}

.dept-card:hover .dept-coord-slot {
  border-color: rgba(255, 197, 41, 0.45);
  background: var(--bg-highlight);
}

.dept-coord-avatar {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border: 1.8px dashed var(--color-yellow);
  background: rgba(255, 197, 41, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: var(--trans-smooth);
}

body[data-theme="light"] .dept-coord-avatar {
  border-color: var(--color-yellow-dark);
  background: rgba(217, 155, 0, 0.08);
}

.dept-card:hover .dept-coord-avatar {
  border-style: solid;
  box-shadow: 0 0 12px var(--color-yellow-glow);
}

.dept-coord-avatar svg {
  width: 26px;
  height: 26px;
  color: var(--color-yellow);
  margin-bottom: 2px;
}

body[data-theme="light"] .dept-coord-avatar svg {
  color: var(--color-yellow-dark);
}

.dept-coord-avatar .avatar-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1;
}

body[data-theme="light"] .dept-coord-avatar .avatar-tag {
  color: var(--color-yellow-dark);
}

.dept-coord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dept-coord-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dept-coord-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

body[data-theme="light"] .dept-coord-label {
  color: var(--color-yellow-dark);
}

.dept-coord-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.dept-coord-role {
  font-size: 0.75rem;
  color: var(--color-yellow);
  line-height: 1.3;
  margin-bottom: 2px;
}

body[data-theme="light"] .dept-coord-role {
  color: var(--color-yellow-dark);
}

.dept-coord-bio {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
  margin-top: 4px;
  border-left: 2px solid rgba(255, 197, 41, 0.4);
  padding-left: 8px;
}

body[data-theme="light"] .dept-coord-bio {
  border-left-color: rgba(154, 107, 18, 0.4);
}

.dept-toggle-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-yellow);
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: auto;
}

body[data-theme="light"] .dept-toggle-action {
  color: var(--color-yellow-dark);
}

.dept-card:hover .dept-toggle-action,
.dept-card.is-expanded .dept-toggle-action {
  background: var(--color-yellow);
  color: #262220;
  border-color: var(--color-yellow);
}

.dept-toggle-action svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dept-card.is-expanded .dept-toggle-action svg {
  transform: rotate(180deg);
}

/* Expandable content area */
.dept-expandable-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dept-card.is-expanded .dept-expandable-content {
  grid-template-rows: 1fr;
}

.dept-expandable-inner {
  min-height: 0;
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dept-pill-box, .dept-spec-box {
  background: var(--bg-secondary);
  border-left: 3px solid var(--color-yellow);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 14px;
  position: relative;
  transition: var(--trans-smooth);
}

.dept-pill-box:hover, .dept-spec-box:hover {
  background: var(--bg-highlight);
}

.dept-pill-box.cv, .dept-spec-box.cv {
  border-left-color: var(--blueprint-line);
}

.dept-pill-box.life, .dept-spec-box.life {
  border-left-color: var(--color-gray);
}

.dept-pill-header, .dept-spec-header {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-yellow);
}

body[data-theme="light"] .dept-pill-header,
body[data-theme="light"] .dept-spec-header {
  color: var(--color-yellow-dark);
}

.dept-pill-box.cv .dept-pill-header,
.dept-spec-box.cv .dept-spec-header {
  color: #7ba2c7;
}

body[data-theme="light"] .dept-pill-box.cv .dept-pill-header,
body[data-theme="light"] .dept-spec-box.cv .dept-spec-header {
  color: #3b658d;
}

.dept-pill-box.life .dept-pill-header,
.dept-spec-box.life .dept-spec-header {
  color: var(--text-muted);
}

body[data-theme="light"] .dept-pill-box.life .dept-pill-header,
body[data-theme="light"] .dept-spec-box.life .dept-spec-header {
  color: var(--color-gray);
}

.dept-spec-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.dept-pill-desc, .dept-spec-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* --- RECRUITMENT / WORKSHOP SECTION --- */
.workshop-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .workshop-banner {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

/* --- PARTNER SLOW CAROUSEL & TIERS --- */
.partner-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.partner-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.partner-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollPartners 42s linear infinite;
  padding: 12px 0;
}

.partner-track:hover {
  animation-play-state: paused;
}

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

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-card);
}

.partner-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-yellow);
  box-shadow: 0 10px 24px var(--color-yellow-glow);
}

/* Dedicated marquee card sizing and structure */
.partner-track .partner-card {
  flex: 0 0 350px;
  min-height: 220px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 6px;
}

.partner-track .partner-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-yellow);
  box-shadow: 0 12px 28px rgba(255, 197, 41, 0.16);
}

.partner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.partner-meta-status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.partner-logo-box {
  display: flex;
  align-items: center;
}

/* Central hero logo stage for marquee cards */
.partner-marquee-logo-stage {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
  position: relative;
}

.upt-strategic-logo {
  height: 58px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.25s ease;
}

body[data-theme="light"] .upt-strategic-logo {
  filter: none;
}

.partner-logo-img {
  object-fit: contain;
  transition: transform 0.25s ease;
}

.partner-card:hover .upt-strategic-logo,
.partner-card:hover .partner-logo-img {
  transform: scale(1.06);
}

.partner-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.partner-card:hover .partner-logo-pill {
  transform: scale(1.04);
}

.partner-slot-stage {
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.partner-card:hover .partner-slot-stage {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

.partner-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-strategic {
  background: linear-gradient(135deg, #ffc529 0%, #f59e0b 100%);
  color: #1a1614;
  box-shadow: 0 2px 8px rgba(255, 197, 41, 0.35);
}

.tier-platinum {
  background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
  color: #111827;
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.25);
}

.tier-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.tier-silver {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #ffffff;
}

.tier-bronze {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  color: #ffffff;
}

.partner-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.partner-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-yellow);
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body[data-theme="light"] .partner-domain {
  color: var(--color-yellow-dark);
}

.partner-tagline {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

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

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 34ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.footer-brand div {
  text-align: center;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--color-yellow);
}

body[data-theme="light"] .footer-col a:hover {
  color: var(--color-yellow-dark);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: var(--trans-smooth);
  text-decoration: none;
  line-height: 1;
}

.footer-social-item .social-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.footer-social-item:hover {
  color: var(--color-yellow);
  border-color: rgba(255, 197, 41, 0.4);
  background: rgba(255, 197, 41, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-social-item:hover .social-icon {
  transform: scale(1.12);
  fill: var(--color-yellow);
}

body[data-theme="light"] .footer-social-item {
  background: rgba(38, 34, 32, 0.03);
  border-color: rgba(38, 34, 32, 0.12);
  color: var(--text-secondary);
}

body[data-theme="light"] .footer-social-item:hover {
  color: var(--color-yellow-dark);
  border-color: var(--color-yellow-dark);
  background: rgba(255, 197, 41, 0.15);
}

body[data-theme="light"] .footer-social-item:hover .social-icon {
  fill: var(--color-yellow-dark);
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 767px) {
  .blueprint {
    padding: 20px;
  }
  
  .hero-section {
    padding: 48px 0;
  }
  
  .section {
    padding: 56px 0;
  }
}

/* ==========================================================================
   ANDROID APP-DRAWER FAST-SCROLL (DREAPTA, DOAR TEXT, POP-UP LA HOVER)
   ========================================================================== */

.android-fast-scroll {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  pointer-events: auto;
  user-select: none;
}

.fast-scroll-track {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  position: relative;
  padding: 14px 0 14px 20px;
  border-right: 2px solid rgba(255, 197, 41, 0.25);
}

body[data-theme="light"] .fast-scroll-track {
  border-right-color: rgba(38, 34, 32, 0.2);
}

.fast-scroll-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimalist pure text identifier */
.fast-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  white-space: nowrap;
}

/* Pip indicator that sits on the track */
.fast-scroll-pip {
  width: 8px;
  height: 2px;
  background-color: var(--border-color);
  margin-right: -2px; /* aligns right on the vertical rail */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- ACTIVE STATE (SCROLLSPY) --- */
.fast-scroll-item.is-active .fast-scroll-text {
  color: var(--color-yellow);
  font-weight: 700;
}

body[data-theme="light"] .fast-scroll-item.is-active .fast-scroll-text {
  color: var(--color-yellow-dark);
}

.fast-scroll-item.is-active .fast-scroll-pip {
  width: 16px;
  height: 3px;
  background-color: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow);
}

body[data-theme="light"] .fast-scroll-item.is-active .fast-scroll-pip {
  background-color: var(--color-yellow-dark);
  box-shadow: 0 0 8px rgba(216, 150, 0, 0.4);
}

/* ==========================================================================
   HOVER STATE: "in momentul in care muti mouse-ul peste el iasa mai mare si in evidenta numele proiectului"
   ========================================================================== */

/* 1. The rail text expands and stands out */
.fast-scroll-item:hover .fast-scroll-text {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-yellow);
  transform: translateX(-4px);
  text-shadow: 0 0 14px rgba(255, 197, 41, 0.5);
}

body[data-theme="light"] .fast-scroll-item:hover .fast-scroll-text {
  color: var(--color-yellow-dark);
  text-shadow: none;
}

.fast-scroll-item:hover .fast-scroll-pip {
  width: 20px;
  height: 3px;
  background-color: var(--color-yellow);
}

body[data-theme="light"] .fast-scroll-item:hover .fast-scroll-pip {
  background-color: var(--color-yellow-dark);
}

/* 2. Android App-Drawer Style Magnified Bubble (Pops out to the left) */
.fast-scroll-bubble {
  position: absolute;
  right: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%) translateX(16px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  background: var(--bg-primary);
  border: 1.5px solid var(--color-yellow);
  padding: 14px 20px;
  min-width: 280px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 197, 41, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  z-index: 1000;
}

body[data-theme="light"] .fast-scroll-bubble {
  background: #FFFFFF;
  border-color: var(--color-yellow-dark);
  box-shadow: 0 12px 32px rgba(38, 34, 32, 0.18);
}

/* Bubble arrow pointing right toward the track item */
.fast-scroll-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid var(--color-yellow);
}

body[data-theme="light"] .fast-scroll-bubble::after {
  border-left-color: var(--color-yellow-dark);
}

.bubble-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-yellow);
  font-weight: 700;
}

body[data-theme="light"] .bubble-tag {
  color: var(--color-yellow-dark);
}

/* Magnified Project Name */
.bubble-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.bubble-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Reveal bubble on hover */
.fast-scroll-item:hover .fast-scroll-bubble {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* Target card scroll animation when clicked */
@keyframes projectCardHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 197, 41, 0);
    border-color: var(--border-color);
  }
  20% {
    box-shadow: 0 0 32px rgba(255, 197, 41, 0.6), inset 0 0 20px rgba(255, 197, 41, 0.15);
    border-color: var(--color-yellow);
  }
  60% {
    box-shadow: 0 0 24px rgba(255, 197, 41, 0.35);
    border-color: var(--color-yellow);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 197, 41, 0);
    border-color: var(--border-color);
  }
}

.project-scroll-target.is-highlighted {
  animation: projectCardHighlight 1.8s ease-out forwards;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .android-fast-scroll {
    right: 10px;
  }
  
  .fast-scroll-track {
    gap: 14px;
    padding-left: 10px;
    border-right-width: 1.5px;
  }

  .fast-scroll-text {
    font-size: 0.72rem;
  }

  .fast-scroll-bubble {
    min-width: 220px;
    padding: 10px 14px;
    right: calc(100% + 12px);
  }

  .bubble-title {
    font-size: 1.1rem;
  }
}

/* Software App Cards & Tech Pills */
.software-app-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.software-app-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-yellow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] .software-app-card:hover {
  box-shadow: 0 10px 24px rgba(38, 34, 32, 0.12);
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

body[data-theme="light"] .tech-pill {
  background: #FFFFFF;
  border-color: rgba(38, 34, 32, 0.15);
}

/* 3D Blueprint Engine & Interactive Canvas */
.rover-3d-wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: radial-gradient(circle at center, rgba(255, 197, 41, 0.06) 0%, rgba(20, 18, 17, 0.96) 80%);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="light"] .rover-3d-wrapper {
  background: radial-gradient(circle at center, rgba(255, 197, 41, 0.08) 0%, rgba(246, 241, 230, 0.96) 80%);
}

.rover-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.rover-3d-canvas:active {
  cursor: grabbing;
}

.rover-3d-hud {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-yellow);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* rover-hint moved below render to avoid overlap */

/* WebApp Runner Container */
.webapp-runner-box {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
}

.webapp-runner-box iframe {
  width: 100%;
  height: 480px;
  border: none;
  background: #0d0d0d;
  display: block;
}

/* ==========================================================================
   NAVIGATION DROPDOWN (PROIECTE: ROVERE / EVENIMENTE)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-chevron,
.dropdown-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-dropdown-chevron,
.nav-item-dropdown:focus-within .nav-dropdown-chevron,
.nav-item-dropdown.is-open .nav-dropdown-chevron,
.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow,
.nav-item-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 290px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-dropdown-item:hover {
  background: var(--bg-highlight);
  border-left-color: var(--color-yellow);
}

.nav-dropdown-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown-sub {
  font-family: var(--font-body);
  font-size: 0.775rem;
  color: var(--text-secondary);
  margin-top: 3px;
  text-transform: none;
  line-height: 1.4;
}

/* Mobile Drawer Dropdown */
.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.mobile-sub-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
  margin-top: 10px;
  margin-bottom: 8px;
  border-left: 2px solid var(--color-yellow);
}

.mobile-sub-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 4px 0;
  display: block;
}

.mobile-sub-link:hover, .mobile-sub-link.active {
  color: var(--color-yellow);
}

/* ==========================================================================
   NEWS FEED SECTION & NOUTĂȚI SUBPAGE
   ========================================================================== */
.news-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.news-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-badge.badge-erc {
  background: var(--color-yellow);
  color: #040606;
}

.news-badge.badge-upt {
  background: var(--color-upt-blue);
  color: #ffffff;
}

.news-badge.badge-hackathon {
  background: #9b51e0;
  color: #ffffff;
}

.news-badge.badge-workshop {
  background: #27ae60;
  color: #ffffff;
}

.news-badge.badge-general {
  background: var(--bg-highlight);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   UPT.RO STYLE NEWS SECTION (EXACT WWW.UPT.RO DESIGN & INTERACTION)
   ========================================================================== */
.news-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

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

/* --- UPT.RO HOMEPAGE NEWS CAROUSEL SECTION --- */
.upt-news-section {
  position: relative;
}

.upt-news-carousel-wrapper {
  position: relative;
  width: 100%;
}

.upt-news-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 18px;
}

.upt-news-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Individual News Card (UPT Pattern: 16:9 Image flush with edges, clean card, title, date + square arrow box) */
.upt-news-card {
  flex: 0 0 340px;
  max-width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: transform var(--trans-smooth), border-color var(--trans-smooth), box-shadow var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .upt-news-card {
    flex: 0 0 85vw;
    max-width: 85vw;
  }
}

body[data-theme="light"] .upt-news-card {
  background-color: #F3F4F6;
  border-color: rgba(0, 0, 0, 0.08);
}

.upt-news-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .upt-news-card:hover {
  border-color: #2222B3;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

/* 16:9 Aspect Ratio Image Container */
.upt-news-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.upt-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.upt-news-card:hover .upt-news-img {
  transform: scale(1.05);
}

/* Card Body Content */
.upt-news-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.upt-news-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 24px;
  transition: color var(--trans-smooth);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.15em;
}

.upt-news-card:hover .upt-news-card-title {
  color: var(--color-yellow);
}

body[data-theme="light"] .upt-news-card:hover .upt-news-card-title {
  color: #2222B3;
}

/* Card Footer: Date on left, Square Arrow Box on right (Signature UPT.ro Style) */
.upt-news-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.upt-news-date {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.upt-news-arrow-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--trans-smooth);
  flex-shrink: 0;
}

body[data-theme="light"] .upt-news-arrow-box {
  border-color: #9ca3af;
}

.upt-news-card:hover .upt-news-arrow-box {
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
  color: #262220;
  transform: translateX(3px);
}

body[data-theme="light"] .upt-news-card:hover .upt-news-arrow-box {
  background-color: #2222B3;
  border-color: #2222B3;
  color: #ffffff;
}

/* UPT Signature Royal Blue Square Floating Nav Buttons */
.upt-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: #2222B3;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
}

.upt-carousel-nav-btn:hover {
  background-color: #1a1a9a;
  transform: translateY(-50%) scale(1.06);
}

.upt-carousel-prev {
  left: -14px;
  opacity: 0;
  pointer-events: none;
}

.upt-carousel-prev.visible {
  opacity: 1;
  pointer-events: auto;
}

.upt-carousel-next {
  right: -14px;
}

@media (max-width: 768px) {
  .upt-carousel-prev {
    left: 4px;
  }
  .upt-carousel-next {
    right: 4px;
  }
}

/* Bottom Centered CTA Button: Citește mai multe noutăți (UPT.ro Style) */
.upt-news-bottom-cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.upt-more-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 1.5px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--trans-smooth);
}

.upt-more-news-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

body[data-theme="light"] .upt-more-news-btn {
  border-color: #262220;
  color: #262220;
}

body[data-theme="light"] .upt-more-news-btn:hover {
  background-color: #262220;
  color: #ffffff;
}

.upt-more-news-btn svg {
  transition: transform var(--trans-smooth);
}

.upt-more-news-btn:hover svg {
  transform: translateX(5px);
}

/* Category Filter Tabs for noutati.html */
.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.news-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--trans-smooth);
}

.news-filter-btn:hover, .news-filter-btn.active {
  background: var(--color-yellow);
  color: #262220;
  border-color: var(--color-yellow);
  font-weight: 700;
}

/* ==========================================================================
   EVENTS SHOWCASE (ORGANIZATE & PARTICIPAT) PE PROIECTE.HTML
   ========================================================================== */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

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

.event-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.event-role-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.event-role-organized {
  background: rgba(255, 197, 41, 0.15);
  border: 1px solid var(--color-yellow);
  color: var(--color-yellow);
}

body[data-theme="light"] .event-role-organized {
  color: #8c6800;
  background: #fff8e1;
}

.event-role-attended {
  background: rgba(0, 90, 156, 0.15);
  border: 1px solid #005A9C;
  color: #4da6ff;
}

body[data-theme="light"] .event-role-attended {
  color: #004d80;
  background: #e6f3ff;
}

.event-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-stats-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ==========================================================================
   STUDENT REPRESENTATION PAGE (REPREZENTARE STUDENȚEASCĂ UPT)
   ========================================================================== */
.rep-hero-banner {
  border-left: 4px solid var(--color-yellow);
  padding: 36px;
  background: var(--bg-card);
  margin-bottom: 48px;
}

.rep-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.rep-pillar-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--trans-smooth), border-color var(--trans-smooth);
}

.rep-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-yellow);
}

.rep-pillar-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  margin-bottom: 20px;
}

.rep-feedback-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 36px;
  margin-top: 48px;
}

.rep-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .rep-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rep-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rep-input-group label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.rep-input-group input,
.rep-input-group select,
.rep-input-group textarea {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--trans-smooth);
}

.rep-input-group input:focus,
.rep-input-group select:focus,
.rep-input-group textarea:focus {
  border-color: var(--color-yellow);
}

.rep-office-hours-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 197, 41, 0.06);
  border: 1px solid var(--color-yellow);
  padding: 24px 32px;
  margin-top: 36px;
}

/* Student Representation Council & Senate Seats (TBA Cards) */
.rep-representatives-section {
  margin-top: 56px;
}

.rep-member-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform var(--trans-smooth), border-color var(--trans-smooth);
}

.rep-member-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-yellow);
}

.rep-tba-avatar {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: rgba(22, 72, 154, 0.15);
  border: 1.5px dashed rgba(22, 72, 154, 0.6);
  color: #16489A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

body[data-theme="dark"] .rep-tba-avatar {
  color: #6da2f8;
  border-color: rgba(109, 162, 248, 0.5);
  background: rgba(22, 72, 154, 0.25);
}

.rep-tba-avatar.senat {
  background: rgba(252, 179, 28, 0.15);
  border-color: rgba(252, 179, 28, 0.6);
  color: #d18d04;
}

body[data-theme="dark"] .rep-tba-avatar.senat {
  color: #FCB31C;
  border-color: rgba(252, 179, 28, 0.6);
  background: rgba(252, 179, 28, 0.2);
}

.rep-member-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rep-member-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.rep-member-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rep-member-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Form success feedback banner */
.rep-feedback-banner {
  padding: 20px 24px;
  background: rgba(39, 174, 96, 0.12);
  border: 1.5px solid #27ae60;
  border-radius: 4px;
  margin-bottom: 24px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.rep-feedback-banner.active {
  display: block;
}

/* ==========================================================================
   CONSTRUCTION SITE / COMING SOON OVERLAY SYSTEM
   ========================================================================== */
.construction-zone {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm, 2px);
  min-height: 380px;
}

.construction-blurred {
  filter: blur(8px) brightness(0.42) saturate(0.55);
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.55;
  transition: filter 0.3s ease;
}

.construction-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(16, 14, 13, 0.65);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  overflow: hidden;
}


.construction-sticky-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hazard-tape-ribbon {
  width: 110%;
  background: repeating-linear-gradient(
    -45deg,
    #FFC529 0,
    #FFC529 20px,
    #181514 20px,
    #181514 40px
  );
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  position: relative;
}

.hazard-tape-ribbon.ribbon-top {
  transform: rotate(-1.5deg) translateY(-8px);
  margin-bottom: 14px;
}

.hazard-tape-ribbon.ribbon-bottom {
  transform: rotate(1.5deg) translateY(8px);
  margin-top: 14px;
}

.hazard-tape-text {
  background: #181514;
  color: #FFC529;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 6px 24px;
  text-transform: uppercase;
  border-top: 2px solid #FFC529;
  border-bottom: 2px solid #FFC529;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.construction-hud-card {
  position: relative;
  background: rgba(22, 19, 18, 0.96);
  border: 1px solid var(--color-yellow);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 197, 41, 0.2);
  padding: 36px 40px;
  max-width: 580px;
  width: 90%;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.construction-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 197, 41, 0.12);
  border: 1px solid rgba(255, 197, 41, 0.4);
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.construction-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 8px var(--color-yellow);
  animation: constructionPulse 1.8s infinite ease-in-out;
}

@keyframes constructionPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.construction-hud-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-yellow);
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(255, 197, 41, 0.4);
}

.construction-hud-desc {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 auto 16px auto;
  max-width: 46ch;
}

.construction-hud-footer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* Light Theme Adaptations */
body[data-theme="light"] .construction-overlay {
  background: rgba(240, 237, 230, 0.72);
}

body[data-theme="light"] .construction-hud-card {
  background: rgba(252, 250, 246, 0.97);
  border-color: var(--color-yellow-dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .construction-hud-title {
  color: var(--color-yellow-dark);
  text-shadow: none;
}

body[data-theme="light"] .hazard-tape-text {
  background: #28231e;
  color: #FFC529;
}

/* ==========================================================================
   REPREZENTARE STUDENȚEASCĂ - COMPONENTS & DESIGN SYSTEM
   ========================================================================== */

.rep-hero-banner {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.rep-header-lockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.upt-cobranding-lockup {
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: 1px solid #e1e4e8;
}

.upt-lockup-uni {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.upt-lockup-divider {
  width: 1.5px;
  height: 28px;
  background: #cbd5e1;
}

.upt-lockup-club {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.rep-authority-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

@media (max-width: 768px) {
  .rep-authority-meta {
    align-items: flex-start;
  }
}

.rep-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16489A;
  background: rgba(22, 72, 154, 0.12);
  border: 1px solid rgba(22, 72, 154, 0.35);
  padding: 6px 12px;
  border-radius: 2px;
}

body[data-theme="dark"] .rep-official-badge {
  color: #63a4ff;
  background: rgba(22, 72, 154, 0.25);
  border-color: rgba(99, 164, 255, 0.45);
}

.rep-badge-seal-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rep-mandate-sub {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.rep-banner-content {
  margin-top: 20px;
}

.rep-quote-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 16px;
  font-style: italic;
  letter-spacing: -0.01em;
}

.rep-declaration-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 82ch;
}

.rep-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .rep-pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.rep-council-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .rep-council-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rep-council-grid {
    grid-template-columns: 1fr;
  }
}

.rep-senate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .rep-senate-grid {
    grid-template-columns: 1fr;
  }
}

.rep-pillar-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rep-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .rep-pillar-card:hover {
  box-shadow: 0 12px 28px rgba(38, 34, 32, 0.12);
}

.rep-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: rgba(255, 197, 41, 0.1);
  border: 1px solid rgba(255, 197, 41, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  margin-bottom: 18px;
}

.rep-office-hours-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 30px;
  border-left: 4px solid var(--color-yellow);
}

.rep-representatives-section {
  margin-top: 56px;
}

.rep-member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 2px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rep-member-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-yellow);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rep-tba-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22, 72, 154, 0.14);
  border: 2px dashed rgba(22, 72, 154, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #16489A;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body[data-theme="dark"] .rep-tba-avatar {
  color: #63a4ff;
  border-color: rgba(99, 164, 255, 0.55);
  background: rgba(22, 72, 154, 0.25);
}

.rep-tba-avatar.senat {
  background: rgba(252, 179, 28, 0.14);
  border-color: rgba(252, 179, 28, 0.6);
  color: #FCB31C;
}

body[data-theme="dark"] .rep-tba-avatar.senat {
  background: rgba(255, 197, 41, 0.16);
  border-color: rgba(255, 197, 41, 0.65);
  color: #FFC529;
}

.rep-member-card:hover .rep-tba-avatar {
  transform: scale(1.05);
}

.rep-member-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rep-member-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.rep-member-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rep-member-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-yellow);
  font-weight: 600;
}

.rep-feedback-box {
  padding: 36px 40px;
}

@media (max-width: 600px) {
  .rep-feedback-box {
    padding: 24px 20px;
  }
}

.rep-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rep-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rep-input-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.rep-input-group input,
.rep-input-group select,
.rep-input-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rep-input-group input:focus,
.rep-input-group select:focus,
.rep-input-group textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(255, 197, 41, 0.15);
}

.rep-feedback-banner {
  display: none;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(30, 80, 50, 0.18);
  border: 1px solid rgba(40, 167, 69, 0.45);
  border-left: 4px solid #28a745;
  border-radius: 2px;
  color: var(--text-primary);
  animation: fadeInDown 0.3s ease-out forwards;
}

.rep-feedback-banner.is-visible {
  display: block;
}

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

/* ====================================================================
   MEET THE TEAM — LEADERSHIP GRID
   ==================================================================== */

.team-section {
  padding: 60px 0 80px;
}

.team-section .section-head {
  margin-bottom: 48px;
}

.team-cluster {
  margin-bottom: 48px;
}

.team-cluster-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-yellow);
  margin-bottom: 20px;
  padding: 4px 10px;
  background: rgba(255, 197, 41, 0.08);
  border: 1px solid rgba(255, 197, 41, 0.2);
}

/* ==========================================================================
   PYRAMID ORGANIGRAM & LEADERSHIP HIERARCHY
   ========================================================================== */

.team-pyramid-container {
  width: 100%;
  margin-top: 30px;
}

.pyramid-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pyramid-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.level-indicator {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 14px;
  padding: 3px 12px;
  background: rgba(255, 197, 41, 0.08);
  border: 1px solid rgba(255, 197, 41, 0.25);
  font-weight: 700;
}

body[data-theme="light"] .level-indicator {
  color: var(--color-yellow-dark);
  background: rgba(217, 155, 0, 0.08);
  border-color: rgba(217, 155, 0, 0.3);
}

.level-cards-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

/* Precision Node Card with Photo Slot, Title, Name and Bio */
.pyramid-node {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 18px 22px;
  text-align: left;
  transition: var(--trans-smooth);
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.pyramid-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-yellow), transparent);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pyramid-node:hover {
  border-color: var(--color-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 197, 41, 0.15);
}

.pyramid-node:hover::before {
  opacity: 1;
}

/* Pyramid Node Dedicated Photo Slot (Noticeably larger & prominent) */
.pyramid-node-avatar {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border: 1.8px dashed var(--color-yellow);
  background: rgba(255, 197, 41, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: var(--trans-smooth);
}

body[data-theme="light"] .pyramid-node-avatar {
  border-color: var(--color-yellow-dark);
  background: rgba(217, 155, 0, 0.08);
}

.pyramid-node:hover .pyramid-node-avatar {
  border-style: solid;
  border-color: var(--color-yellow);
  box-shadow: 0 0 12px var(--color-yellow-glow);
}

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

.pyramid-avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.pyramid-avatar-placeholder svg {
  width: 26px;
  height: 26px;
  color: var(--color-yellow);
  opacity: 0.9;
}

body[data-theme="light"] .pyramid-avatar-placeholder svg {
  color: var(--color-yellow-dark);
}

.avatar-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-yellow);
  margin-top: 2px;
  line-height: 1;
}

body[data-theme="light"] .avatar-tag {
  color: var(--color-yellow-dark);
}

.pyramid-node-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.pyramid-node-badge {
  margin-bottom: 3px;
}

.pyramid-node-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  font-weight: 700;
  line-height: 1.2;
}

body[data-theme="light"] .pyramid-node-role {
  color: var(--color-yellow-dark);
}

.pyramid-node-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.pyramid-node-bio {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 6px;
  font-style: italic;
  border-left: 2px solid var(--color-yellow);
  padding-left: 8px;
}

body[data-theme="light"] .pyramid-node-bio {
  border-left-color: var(--color-yellow-dark);
}

/* Apex Level (President) */
.node-apex {
  min-width: 380px;
  max-width: 540px;
  padding: 22px 28px;
  border-color: rgba(255, 197, 41, 0.6);
  background: linear-gradient(180deg, rgba(255, 197, 41, 0.08), var(--bg-card));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 197, 41, 0.12);
  gap: 20px;
}

.node-apex .pyramid-node-avatar {
  width: 86px;
  height: 86px;
  border-width: 2px;
}

.node-apex .pyramid-avatar-placeholder svg {
  width: 34px;
  height: 34px;
}

.node-apex .pyramid-node-role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.node-apex .pyramid-node-name {
  font-size: 1.35rem;
  font-weight: 800;
}

/* Vice Presidents */
.node-vp {
  min-width: 320px;
  max-width: 480px;
  padding: 18px 22px;
  border-color: rgba(255, 197, 41, 0.4);
}

.node-vp .pyramid-node-avatar {
  width: 76px;
  height: 76px;
}

.node-vp .pyramid-avatar-placeholder svg {
  width: 30px;
  height: 30px;
}

.node-vp-nontehnic {
  border-color: rgba(255, 197, 41, 0.55);
  background: linear-gradient(180deg, rgba(255, 197, 41, 0.06), var(--bg-card));
}

/* Secretariat & Audit Nodes */
.node-admin {
  min-width: 300px;
  max-width: 440px;
  padding: 16px 20px;
}

.node-admin .pyramid-node-avatar {
  width: 70px;
  height: 70px;
}

/* Vertical Stems & Connectors */
.pyramid-pipe-v {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, var(--color-yellow), rgba(255, 197, 41, 0.2));
  margin: 12px auto 6px;
  position: relative;
}

.pyramid-pipe-v::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 8px var(--color-yellow);
}

/* Wings Layout (Divizia Tehnică & Divizia Non-Tehnică) */
.pyramid-wings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  margin-top: 10px;
}

.pyramid-wing {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 28px 24px;
  position: relative;
  transition: var(--trans-smooth);
}

.pyramid-wing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-yellow);
  opacity: 0.6;
}

.pyramid-wing:hover {
  border-color: rgba(255, 197, 41, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wing-banner {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.wing-pill {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--color-yellow);
  background: rgba(255, 197, 41, 0.1);
  padding: 3px 10px;
  border: 1px solid rgba(255, 197, 41, 0.25);
  margin-bottom: 8px;
  font-weight: 700;
}

body[data-theme="light"] .wing-pill {
  color: var(--color-yellow-dark);
  background: rgba(217, 155, 0, 0.1);
  border-color: rgba(217, 155, 0, 0.3);
}

.wing-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wing-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.wing-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.node-coord {
  width: 100%;
  min-width: unset;
  max-width: unset;
  padding: 14px 18px;
  gap: 14px;
}

.node-coord .pyramid-node-avatar {
  width: 64px;
  height: 64px;
}

.node-coord .pyramid-avatar-placeholder svg {
  width: 24px;
  height: 24px;
}

.node-coord .pyramid-node-name {
  font-size: 1.05rem;
}

/* ==========================================================================
   CONTACT PAGE: INTERACTIVE MAP COMPONENT
   ========================================================================== */

.contact-map-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 36px;
  margin-top: 40px;
  transition: var(--trans-smooth);
}

.contact-map-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.contact-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 2px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Seamless Dark Mode Map filter */
body[data-theme="dark"] .contact-map-wrapper iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.9);
}

body[data-theme="light"] .contact-map-wrapper iframe {
  filter: none;
}

.contact-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==================== MODERN CONTACT PAGE STYLES ==================== */
.contact-hero-banner {
  padding: 36px 40px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
}

.contact-header-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Quick Scroll Margin Targets */
#formular-contact,
#canale-contact,
#localizare-harta,
#faq-contact {
  scroll-margin-top: 100px;
}

.contact-grid-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.15fr);
  gap: 28px;
  align-items: stretch;
}

.contact-channel-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-email-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-yellow);
  padding: 18px 20px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-email-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-yellow);
  word-break: break-all;
  letter-spacing: 0.02em;
}

body[data-theme="light"] .contact-email-val {
  color: #b45309;
}

.contact-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==================== DEPARTMENT ROUTING SHELF ==================== */
.contact-dir-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .contact-dir-shelf {
    grid-template-columns: 1fr;
  }
}

.contact-dir-card {
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-yellow);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--trans-smooth);
}

.contact-dir-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-dir-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.contact-dir-card-title {
  color: var(--color-yellow);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

body[data-theme="light"] .contact-dir-card-title {
  color: #b45309;
}

.contact-dir-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}

.contact-dir-card-link {
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: color var(--trans-smooth);
}

body[data-theme="light"] .contact-dir-card-link {
  color: #b45309;
}

.contact-dir-card-link:hover {
  text-decoration: underline;
  color: var(--color-yellow-hover);
}

.contact-form-card {
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.contact-form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border-radius: 2px;
  transition: var(--trans-smooth);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow-glow);
}

.contact-feedback-box {
  display: none;
  padding: 24px;
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.4);
  border-left: 4px solid #28a745;
  border-radius: 2px;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

.contact-feedback-box.is-visible {
  display: block;
}

.contact-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.contact-access-card {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  position: relative;
  transition: var(--trans-smooth);
}

.contact-access-card:hover {
  border-color: var(--color-yellow);
  transform: translateY(-2px);
}

/* ==================== CONTACT FAQ: QUESTION & ANSWER DIRECT ==================== */
.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.contact-faq-card {
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--color-yellow);
  position: relative;
  transition: border-color var(--trans-smooth), box-shadow var(--trans-smooth);
}

.contact-faq-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

body[data-theme="light"] .contact-faq-question {
  color: #b45309;
}

.contact-faq-answer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.contact-faq-answer p {
  margin: 0 0 8px;
}

.contact-faq-answer p:last-child {
  margin-bottom: 0;
}

.contact-faq-answer strong {
  color: var(--text-primary);
}



@media (max-width: 980px) {
  .contact-grid-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-hero-banner {
    padding: 24px 20px;
  }
  .contact-form-card,
  .contact-channel-card {
    padding: 24px 20px;
  }
}


/* Responsive adjustments */
@media (max-width: 860px) {
  .pyramid-wings-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .level-cards-row {
    flex-direction: column;
    align-items: center;
  }

  .pyramid-node {
    width: 100%;
    max-width: 380px;
  }

  .contact-map-card {
    padding: 24px 18px;
  }

  .contact-map-wrapper {
    height: 320px;
  }
}
