/* ==========================================================================
   CSS DESIGN SYSTEM — PROF. PRAJAPATI TRIVEDI PORTFOLIO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN SYSTEM — ACADEMIC & STATESMAN THEME
   Primary Palette:
     60% — Light Alabaster Grey  (#F5F4F0) — refined off-white base
     30% — Oxford Navy Blue      (#1B3F6E) — authority & institution
     10% — Harvard Crimson       (#A51C30) — Harvard / LSE accent
   Typography:
     Display/Headings — Merriweather (authoritative serif)
     Body            — Open Sans   (clean, accessible sans-serif)
   ========================================================================== */

:root {
  /* ── 60% Base: Light Alabaster Grey ── */
  --bg-primary:    #F5F4F0;
  --bg-secondary:  #ECEAE3;
  --bg-tertiary:   #FFFFFF;

  /* ── 30% Structure: Oxford Navy Blue ── */
  --navy:          #1B3F6E;
  --navy-mid:      #244F85;
  --navy-light:    #2D609C;

  /* ── 10% Accent: Harvard/LSE Crimson ── */
  --accent-primary:   #A51C30;
  --accent-secondary: #8B0000;
  --accent-hover:     #7A0020;
  --accent-glow:      rgba(165, 28, 48, 0.12);

  /* ── Text ── */
  --text-primary:   #1B3F6E;   /* Oxford Navy for headings */
  --text-secondary: #2C3E55;   /* Deep slate for body */
  --text-muted:     #5A6E82;   /* Mid-blue-grey for secondary */

  /* ── Surfaces & Glass ── */
  --glass-bg:       rgba(255, 255, 255, 0.72);
  --glass-border:   rgba(10, 35, 66, 0.10);
  --border-color:   #D6D2C8;
  --shadow-color:   rgba(10, 35, 66, 0.06);
  --shadow-hover:   rgba(10, 35, 66, 0.12);
  --overlay-bg:     rgba(10, 35, 66, 0.50);

  /* ── Typography ── */
  --font-display: 'Merriweather', Georgia, serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  /* ── Motion & Geometry ── */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   all 0.2s ease;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;
  --container-width: 1500px;
}

/* ===== RESET & RESET BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.5s ease;
}

h1 { font-size: clamp(2.0rem, 4.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

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

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

/* ===== UTILITIES & LAYOUT ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: clamp(60px, 10vw, 120px) 0;
}

.text-center { text-align: center; }
.accent-span { color: var(--accent-primary); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-desc {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 70px);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== GLASSMORPHISM STYLES ===== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 var(--shadow-hover);
  border-color: var(--accent-primary);
}

/* ===== INTERSECTION OBSERVER REVEAL ENGINES ===== */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
  margin-top: 30px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: var(--bg-tertiary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

header.scrolled .logo {
  color: var(--navy);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

nav ul li a {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

header.scrolled nav ul li a {
  color: #000000;
}

/* Nav-specific Contact button: white on transparent header, original colors when scrolled */
#desktop-nav .btn-outline {
  color: #FFFFFF;
  border-color: rgb(165 28 48);
  transition: color 0.3s ease, border-color 0.3s ease;
}

header.scrolled #desktop-nav .btn-outline {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--accent-primary);
  transition: var(--transition-fast);
}

nav ul li a:hover { color: #E8C547; }
nav ul li a:hover::after { width: 100%; background-color: #E8C547; }

header.scrolled nav ul li a:hover { color: #B8860B; }
header.scrolled nav ul li a:hover::after { background-color: #B8860B; }

nav ul li a.nav-active {
  color: var(--accent-primary);
}
nav ul li a.nav-active::after {
  width: 100%;
  background-color: var(--accent-primary);
}

/* Mobile nav active state */
.mobile-nav-list li a.nav-active {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ===== DROPDOWN MENUS ===== */
#desktop-nav ul li.has-dropdown {
  position: relative;
}

/* Add this block to bridge the hover gap */
#desktop-nav ul li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px; 
  background: transparent;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.dropdown-caret {
  font-size: 0.5rem;
  transition: transform 0.2s ease;
  opacity: 0.5;
  flex-shrink: 0;
  pointer-events: none;
}

.has-dropdown:hover .dropdown-caret,
.has-dropdown:focus-within .dropdown-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* ── The panel itself ── */
.dropdown-menu {
  /* layout */
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  /* sizing */
  min-width: 180px;
  width: max-content;
  /* visual */
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  /* reset inherited nav ul styles */
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
  /* animation */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
  z-index: 2000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

/* Right-align last 2 dropdowns so they don't overflow viewport */
.has-dropdown:nth-last-of-type(1) .dropdown-menu,
.has-dropdown:nth-last-of-type(2) .dropdown-menu {
  left: auto;
  right: 0;
  transform: translateY(-4px);
}
.has-dropdown:nth-last-of-type(1):hover .dropdown-menu,
.has-dropdown:nth-last-of-type(1):focus-within .dropdown-menu,
.has-dropdown:nth-last-of-type(2):hover .dropdown-menu,
.has-dropdown:nth-last-of-type(2):focus-within .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Each row */
.dropdown-menu li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  /* hairline separator */
  border-bottom: 1px solid var(--glass-border);
}
.dropdown-menu li:last-child {
  border-bottom: none;
}

/* Row link */
.dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  margin: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  color: var(--text-secondary) !important;
  white-space: nowrap;
  width: 100%;
  line-height: 1.2;
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

.dropdown-menu li a::after,
.dropdown-menu li a::before {
  display: none !important;
}

.dropdown-menu li a i {
  width: 12px;
  font-size: 0.62rem;
  text-align: center;
  color: var(--accent-primary);
  opacity: 0.6;
  flex-shrink: 0;
}

.dropdown-menu li a:hover {
  background: var(--bg-secondary) !important;
  color: var(--accent-primary) !important;
}
.dropdown-menu li a:hover i {
  opacity: 1;
}

/* Group label — separates Masterclass / Publications sub-groups inside Knowledge Bank */
.dropdown-menu li a.dropdown-label-link {
  cursor: pointer;
  text-decoration: none;
}
.dropdown-menu li a.dropdown-label-link:hover {
  opacity: 0.75;
}
.dropdown-menu li a.cop-group {
  padding-left: 12px !important;
}
.dropdown-menu li.dropdown-group-label,
.dropdown-menu li a.dropdown-group-label {
  display: block !important;
  width: 100% !important;
  padding: 8px 12px 4px !important;
  margin: 0 !important;
  border-bottom: none !important;
  font-family: var(--font-body);
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--accent-primary) !important;
  opacity: 0.7;
  background: transparent;
}
.dropdown-menu li.dropdown-group-label:not(:first-child) {
  margin-top: 2px !important;
  border-top: 1px solid var(--glass-border) !important;
  padding-top: 8px !important;
}

/* Mid-width compression before mobile breakpoint */
@media (max-width: 1200px) { nav ul { gap: 22px; } }
@media (max-width: 1060px) {
  nav ul { gap: 12px; }
  nav ul li a { font-size: 0.82rem; letter-spacing: 0.8px; }
}

/* ===== MOBILE ACCORDION DROPDOWNS ===== */

/* Parent li that has a submenu */
.mobile-has-dropdown {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* The clickable row: label + caret */
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  gap: 0;
  transition: background 0.15s ease;
  position: relative;
}

.mobile-dropdown-toggle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mobile-has-dropdown.open > .mobile-dropdown-toggle,
.mobile-dropdown-toggle:hover {
  background: var(--accent-glow);
}

.mobile-has-dropdown.open > .mobile-dropdown-toggle::before,
.mobile-dropdown-toggle:hover::before {
  opacity: 1;
}

/* The anchor text inside the toggle */
.mobile-dropdown-toggle > a {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0;
  pointer-events: none; /* tap handled by button */
  text-align: left;
}

.mobile-has-dropdown.open > .mobile-dropdown-toggle > a,
.mobile-dropdown-toggle:hover > a {
  color: var(--accent-primary);
}

/* Caret icon */
.mobile-caret {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.22s ease;
  padding: 4px 6px;
  flex-shrink: 0;
}
.mobile-has-dropdown.open > .mobile-dropdown-toggle .mobile-caret {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

/* Submenu — collapsed by default */
.mobile-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.2s ease;
}
.mobile-has-dropdown.open > .mobile-dropdown-menu {
  max-height: 500px;
  margin-top: 6px;
}

/* Sub-item row */
.mobile-dropdown-menu li {
  border-left: 2px solid var(--border-color);
  margin-left: 24px;
  transition: border-color 0.15s ease;
}
.mobile-dropdown-menu li:last-child {
  border-bottom: none;
}

/* Sub-item link */
.mobile-dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 12px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  color: var(--text-muted) !important;
  line-height: 1.3;
  transition: color 0.12s ease, padding-left 0.12s ease;
}
.mobile-dropdown-menu li a i {
  font-size: 0.6rem;
  color: var(--accent-primary);
  opacity: 0.6;
  width: 11px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-dropdown-menu li a:hover,
.mobile-dropdown-menu li a:focus {
  color: var(--accent-primary) !important;
  padding-left: 16px !important;
}
.mobile-dropdown-menu li a:hover i {
  opacity: 1;
}
.mobile-has-dropdown.open > .mobile-dropdown-menu li {
  border-left-color: var(--accent-primary);
  opacity: 0.85;
}
.mobile-has-dropdown.open > .mobile-dropdown-menu li a:hover {
  opacity: 1;
}

/* Group label — separates Masterclass / Publications sub-groups inside mobile Knowledge Bank accordion */
.mobile-dropdown-menu li a.dropdown-label-link {
  cursor: pointer;
  text-decoration: none;
}
.mobile-dropdown-menu li.mobile-dropdown-group-label,
.mobile-dropdown-menu li a.mobile-dropdown-group-label {
  border-left: 2px solid var(--border-color);
  margin-left: 24px;
  padding: 6px 12px 2px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: var(--accent-primary) !important;
  opacity: 0.75;
}
.mobile-dropdown-menu li a.mobile-cop-group {
  border-left: none;
  margin-left: 0;
  padding-left: 12px !important;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
  padding-top: 10px !important;
}
.mobile-dropdown-menu li.mobile-dropdown-group-label:not(:first-child) {
  margin-top: 4px;
}
.mobile-has-dropdown.open > .mobile-dropdown-menu li.mobile-dropdown-group-label {
  border-left-color: var(--border-color);
  opacity: 0.75;
}

/* Navigation control togglers */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ===== HERO CAROUSEL ===== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 160px 0;
  background-color: #0d1f36; /* dark fallback only shown before image loads */
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0 0 160px 0;
  background:
    /* Left-to-right: dark behind text, fades out to the right */
    linear-gradient(
      to right,
      rgba(8, 20, 40, 0.515) 0%,
      rgba(8, 20, 40, 0.28) 45%,
      rgba(8, 20, 40, 0.05) 75%,
      rgba(8, 20, 40, 0.00) 100%
    ),
    /* Top-to-bottom: subtle vignette */
    linear-gradient(
      to bottom,
      rgba(8, 20, 40, 0.04) 0%,
      rgba(8, 20, 40, 0.08) 50%,
      rgba(8, 20, 40, 0.22) 100%
    );
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  padding-bottom: clamp(100px, 15vw, 150px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
}

.hero-text {
  color: #F8FAFC;
  max-width: 680px;
}

.hero-text h1 {
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 6px 20px rgba(0,0,0,0.7);
}

.hero-text p {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 4px 12px rgba(0,0,0,0.8);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-avatar-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

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

.hero-avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(165, 28, 48, 0.45);
  pointer-events: none;
}

.hero-badge-label {
  font-family: var(--font-body);
  color: #B8CCDE;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
}

/* Slide Caption and Dot Navigation */
.carousel-controls {
  position: absolute;
  bottom: 120px;
  left: 32px;
  right: 32px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
}

.carousel-caption-text {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  gap: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--accent-primary);
  transform: scale(1.3);
  width: 24px;
  border-radius: 4px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 40px;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  padding: 32px 24px;
}

.highlight-icon {
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-primary);
  stroke: var(--accent-primary);
}

.highlight-icon.highlight-icon--logo {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0px;
  border-radius: inherit;
}

.highlight-icon.highlight-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

/* Education logo carousel */
.edu-logo-carousel {
  position: relative;
  overflow: hidden;
}
.edu-logo-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.edu-logo-slide.active {
  opacity: 1;
}

/* Flag carousel — wider aspect, rounded corners, subtle shadow */
.flag-slide {
  width: 90%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.highlight-card h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent-primary);
  text-decoration-color: var(--accent-primary);
}

/* ===== CAREER TIMELINE ===== */
.career {
  background-color: var(--bg-secondary);
  border-radius: 120px 0 120px 0;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--border-color) 100%);
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 4px var(--accent-glow);
  z-index: 2;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timeline-dot:hover {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 8px var(--accent-glow);
}

.timeline-content {
  width: 45%;
  position: relative;
  padding: 30px;
  cursor: pointer;
}

.timeline-year {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.timeline-hint {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 1;
  transition: var(--transition-fast);
}

/* ===== EXPERTISE ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.expertise-card {
  padding: 30px;
  overflow: hidden;
}

.expertise-card h3,
.expertise-card p {
  padding: 0;
}

.expertise-card .card-image.expertise-clickable,
.expertise-card .card-image.expertise-clickable img {
  cursor: zoom-in;
}

.expertise-card .card-image {
  margin-bottom: 24px;
  height: 180px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.expertise-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-sizing: border-box;
  background: #05070f;
  padding: 8px;
}

.expertise-card .card-image img.logo {
  object-fit: contain;
  padding: 16px;
}

.expertise-card .card-image.gov-perf-carousel {
  position: relative;
  background: #05070f;
}

.expertise-card .card-image.gov-perf-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  object-fit: contain;
  padding: 10px;
}

.expertise-card .card-image.gov-perf-carousel .carousel-slide.active {
  opacity: 1;
}

.expertise-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.expertise-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== PUBLICATIONS ===== */
.publications {
  background-color: var(--bg-secondary);
}

.pub-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.pub-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.pub-search-wrapper input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.pub-search-wrapper input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pub-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.pub-filters {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.filter-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pub-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pub-card-body {
  padding: 30px;
  flex: 1;
}.pub-card-header {
  height: 6px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

/* Book-cover variant: full cover shown plain in a top tray,
   no accent strip on this card. Height is capped so the cover
   stays proportional to the rest of the grid instead of scaling
   up to the card's full width. */
.pub-card-cover {
  background: var(--bg-tertiary);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-card-cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pub-cover-carousel {
  position: relative;
  overflow: hidden;
}

.pub-cover-carousel .pub-cover-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.pub-cover-carousel .pub-cover-slide.active {
  opacity: 1;
}

.pub-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.pub-card h4 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.pub-publisher {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pub-year {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ===== OTHER WORKS — video nav tabs (redirect to Masterclass, not content panels) ===== */
.filter-btn.ow-video-nav {
  opacity: 0.6;
  position: relative;
}
.filter-btn.ow-video-nav::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.7;
}
.filter-btn.ow-video-nav:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
  opacity: 1;
}

/* ===== OTHER WORKS — Performance Agreements two-column layout (removed) ===== */

/* ===== AWARDS ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.award-card {
  padding: 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.award-logo-banner {
  width: 100%;
  height: 140px;
  background: #ffffff;
  border-bottom: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.award-logo-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.award-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.award-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.award-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.award-org {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-top: 16px;
  display: block;
}

/* ===== EVENTS ===== */
.events-tabs {
  justify-content: center;
  margin: 0 auto clamp(40px, 6vw, 60px);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  text-align: left;
}

.event-date-badge {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background-color: var(--navy);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.event-card-past .event-date-badge {
  background-color: var(--text-muted);
}

.event-date-month {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.event-date-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.event-card-body {
  flex: 1;
  min-width: 0;
}

.event-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.event-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.event-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-body p:not(.event-meta) {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.events-empty-note {
  text-align: center;
  margin-top: 30px;
}

.events-empty-note p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
  }
}

/* ===== AFFILIATIONS ===== */
.affiliations {
  background-color: var(--bg-secondary);
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.affiliation-card {
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
}

.affiliation-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.aff-icon {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  border-radius: 10px;
  background-color: #fff;
  padding: 16px;
  overflow: hidden;
}

.aff-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.affiliation-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.affiliation-card h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.affiliation-card h4 a:hover {
  color: var(--accent, #b3282d);
  text-decoration: underline;
}

.affiliation-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== CTA / CONTACT ===== */
.contact-section {
  background: linear-gradient(135deg, rgb(18, 40, 74) 0%, rgb(18, 40, 74) 100%);
  color: #FFFFFF;
  border-radius: 160px 0 0 0;
  position: relative;
  overflow: hidden;
}

.contact-section h2 {
  color: #FFFFFF;
}

.contact-section .section-desc {
  color: #A8BDD0;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-btn-box {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.contact-grid-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  row-gap: 24px;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}

.contact-link-item {
  flex: 0 0 auto;
}

.contact-link-item {
  color: #A8BDD0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.contact-link-item:hover {
  color: var(--accent-primary);
}

/* ===== FOOTER ===== */
footer {
  background-color: #0C1E35;
  padding: 72px 0 0;
  border-top: 3px solid var(--accent-primary);
  color: #5A7A96;
}

/* ── Footer Grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Brand Column ── */
.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #E8E4DA;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.footer-logo span {
  color: var(--accent-primary);
}
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A6A84;
  margin-bottom: 16px;
}
.footer-bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #4A6A84;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5A7A96;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Link Columns ── */
.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E8E4DA;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: #4A6A84;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.2s;
  vertical-align: middle;
}
.footer-col ul li a:hover {
  color: #C8D8E8;
}
.footer-col ul li a:hover::before {
  width: 10px;
}

/* ── Footer Bottom ── */
.footer-bottom {
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: #2E4A62;
  margin: 0;
}

/* ── Footer Responsive ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bio { max-width: 100%; }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== INTERACTIVE SIDE DRAWER MODAL ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 500px;
  background-color: var(--bg-tertiary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-primary);
}

.drawer-body {
  padding: 32px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-year {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.drawer-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.drawer-content {
  line-height: 1.75;
}

.drawer-content h5 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.drawer-content ul {
  list-style: none;
  margin-bottom: 20px;
}

.drawer-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.drawer-content ul li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ===== BOOKING WIZARD MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.wizard-modal {
  width: 100%;
  max-width: 600px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-overlay.active .wizard-modal {
  transform: translateY(0) scale(1);
}

.wizard-header {
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.wizard-title h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.wizard-progress {
  width: 100%;
  height: 4px;
  background-color: var(--bg-secondary);
  position: absolute;
  bottom: 0; left: 0;
}

.wizard-progress-bar {
  height: 100%;
  width: 33.33%;
  background-color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.wizard-body {
  padding: 40px;
  overflow-y: auto;
  max-height: 70vh;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-tertiary);
}

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

/* Options Grid for inquiry type */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  background-color: var(--bg-primary);
}

.option-card:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-secondary);
}

.option-card.selected {
  border-color: var(--accent-primary);
  background-color: var(--accent-glow);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

.option-card .icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--accent-glow);
  margin-left: auto;
  margin-right: auto;
}

.option-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-primary);
}

.option-card span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.wizard-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

/* Success Wizard State */
.wizard-success-state {
  text-align: center;
  padding: 40px 0;
}

.success-icon-box {
  width: 80px; height: 80px;
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: bounceIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== DYNAMIC MOBILE NAVIGATION SLIDER ===== */
/* ===== MOBILE NAV DRAWER — REDESIGNED ===== */
.mobile-nav-drawer {
  position: fixed;
  top: 0; bottom: 0; right: 0;
  width: min(85vw, 320px);
  background-color: var(--bg-tertiary);
  border-left: 1px solid var(--border-color);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
  z-index: 2002;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

/* Header: logo + close, with bottom accent line */
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px;
  border-bottom: 2px solid var(--accent-primary);
  flex-shrink: 0;
}

.mobile-nav-header .logo {
  font-size: 1.1rem;
}

/* Scrollable nav area */
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

/* Every top-level item */
.mobile-nav-list > li {
  padding: 0;
  border-bottom: 1px solid var(--glass-border);
}

/* Last child = Contact button row — no border, pinned feel */
.mobile-nav-list > li:last-child {
  border-bottom: none;
  margin-top: auto;
  padding: 20px 24px 8px;
}

/* Top-level plain links */
.mobile-nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  position: relative;
}

.mobile-nav-list > li > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > a.nav-active {
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding-left: 28px;
}

.mobile-nav-list > li > a:hover::before,
.mobile-nav-list > li > a.nav-active::before {
  opacity: 1;
}

/* Contact button — full width */
.mobile-nav-list > li:last-child > a.btn {
  display: flex !important;
  justify-content: center;
  width: 100%;
  padding: 14px 24px !important;
  font-size: 0.78rem !important;
  letter-spacing: 2px;
  border-radius: var(--radius-full) !important;
  text-align: center;
  margin-top: 0;
}

/* ===== EXECUTIVE MASTERCLASS ACADEMY ===== */
.academy {
  background-color: var(--bg-primary);
}

.academy-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

.academy-sidebar {
  display: flex;
  flex-direction: column;
  max-height: 600px;
  padding: 0;
  overflow: hidden;
}

.playlist-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.02);
}

.playlist-header h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.playlist-badge {
  font-size: 0.75rem;
  font-family: var(--font-body);
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.academy-tabs {
  display: flex;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.01);
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
  pointer-events: auto;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  pointer-events: auto;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.tab-btn.active {
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.playlist-scroll {
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}

/* Custom Scrollbar */
.playlist-scroll::-webkit-scrollbar {
  width: 6px;
}
.playlist-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.playlist-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
.playlist-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 8px;
  border: 1px solid transparent;
  background: transparent;
}

.playlist-item:last-child {
  margin-bottom: 0;
}

.playlist-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.playlist-item.active {
  background: var(--glass-bg);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px var(--shadow-hover);
}

.playlist-num {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.playlist-item:hover .playlist-num {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

.playlist-item.active .playlist-num {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.playlist-details {
  flex-grow: 1;
}

.playlist-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 2px;
}

.playlist-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.playlist-play-icon {
  font-size: 0.8rem;
  color: var(--accent-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.playlist-item.active .playlist-play-icon {
  opacity: 1;
}

.theater-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--glass-border);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-load-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #111;
  border: none;
  cursor: pointer;
  color: #fff;
  z-index: 2;
}
.video-load-overlay i {
  font-size: 3.2rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}
.video-load-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.video-load-overlay:hover i {
  transform: scale(1.08);
}

.theater-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.theater-info.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.session-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  font-weight: 700;
}

.theater-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.session-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.session-highlights {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 4px solid var(--accent-primary);
}

.session-highlights h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.session-highlights ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-highlights li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.session-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.theater-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
  header {
    background-color: transparent ;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px var(--shadow-color) !important;
    
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-badge-container {
    order: -1;
  }
  .hero {
    border-radius: 0 0 80px 0;
  }
  .carousel-controls {
    justify-content: center;
    bottom: 60px;
  }
  .carousel-caption-text {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
    gap: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .expertise-grid, .pub-grid, .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .affiliation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline::before {
    left: 30px;
  }
  .timeline-item {
    flex-direction: column !important;
    padding-left: 60px;
  }
  .timeline-content {
    width: 100% !important;
    text-align: left !important;
    padding: 20px 24px;
  }
  .timeline-dot {
    left: 30px;
    transform: translateX(-50%) !important;
  }
  .timeline-dot:hover {
    transform: translateX(-50%) scale(1.2) !important;
  }
  nav ul {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .academy-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .academy-sidebar {
    max-height: 400px;
  }
}

/* Publications filter pills: scrollable row from tablet width down,
   so "All / Books / Monographs / Articles" never clip or wrap awkwardly
   against the Scholar Profile button on mobile. */
@media (max-width: 768px) {
  .pub-controls > div[style*="flex-wrap"] {
    flex-wrap: nowrap !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .pub-filters {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .pub-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .pub-controls > div[style*="flex-wrap"] > a.btn-outline {
    width: 100% !important;
    max-width: 100%;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.15rem;
  }
  .nav-controls {
    gap: 12px;
  }
  .container {
    padding: 0 20px;
  }
  .section-padding {
    padding: 50px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }
  .stats-bar {
    margin-top: -30px;
  }
  .expertise-grid, .pub-grid, .awards-grid {
    grid-template-columns: 1fr;
  }
  .affiliation-grid {
    grid-template-columns: 1fr;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .pub-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .pub-search-wrapper {
    max-width: 100%;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .contact-btn-box {
    flex-direction: column;
  }
  .contact-grid-links {
    flex-direction: column;
    gap: 16px;
  }
  .contact-section {
    border-radius: 80px 0 0 0;
  }
  .wizard-body {
    padding: 30px 20px;
  }
  .wizard-footer {
    padding: 20px;
  }
  .theater-card {
    padding: 16px;
  }
  .theater-info h3 {
    font-size: 1.4rem;
  }
  .session-highlights {
    padding: 16px;
  }
  .academy-tabs {
    padding: 6px 8px;
    gap: 4px;
  }
  .tab-btn {
    font-size: 0.72rem;
    padding: 6px 8px;
    letter-spacing: 0.5px;
  }
}
/* ===== GALLERY SECTION ===== */
.gallery-section { background: var(--bg-secondary); }

.gallery-year-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 48px;
}

.year-btn {
  padding: 10px 28px;
  border: 2px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
}

.year-btn:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.year-btn.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.gallery-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  animation: galleryFadeIn 0.4s ease;
}

.gallery-grid.active { display: grid; }

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(27,63,110,0.88));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 28px 14px 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-item-video {
  cursor: pointer;
}

.gallery-item-video video {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  background: #000;
}

.gallery-item-video .gallery-caption {
  transform: translateY(0);
  background: linear-gradient(transparent, rgba(27,63,110,0.75));
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-year-switcher { gap: 8px; }
  .year-btn { padding: 8px 18px; font-size: 0.88rem; }
}

/* Gallery Lightbox */
.gallery-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,14,20,0.86);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.gallery-lightbox-overlay.active { display: flex; }
.gallery-lightbox-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.gallery-lightbox-close {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.gallery-lightbox-close:hover { background: var(--accent-primary); }
.gallery-lightbox-image-wrap {
  width: 100%;
  max-height: 62vh;
  overflow: hidden;
  background: #000;
}
.gallery-lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #000;
}
.gallery-lightbox-info {
  padding: 24px 28px 30px;
}
.gallery-lightbox-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.gallery-lightbox-story {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.gallery-lightbox-story p { margin-bottom: 14px; }
.gallery-lightbox-story p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .gallery-lightbox-info { padding: 18px 18px 22px; }
  .gallery-lightbox-image-wrap { max-height: 42vh; }
  .gallery-lightbox-image-wrap img { max-height: 42vh; }
}

/* ===== SMART SOFTWARE ===== */
.smart-software { background-color: var(--bg-secondary); }

.ss-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

/* LEFT */
.ss-left { display: flex; flex-direction: column; gap: 24px; }

.ss-image-wrap {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--bg-tertiary);
}
.ss-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}
.ss-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(165,28,48,0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.ss-summary p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ss-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ss-features li {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ss-features li i { color: var(--accent-primary); font-size: 0.85rem; flex-shrink: 0; }

.ss-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ss-btn {
  flex: 1;
  min-width: 160px;
  text-align: center;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 13px 20px;
}

/* RIGHT */
.ss-right { padding: 36px 32px; }

.ss-form-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.ss-form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.ss-form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.ss-form { display: flex; flex-direction: column; gap: 16px; }

.ss-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ss-field { display: flex; flex-direction: column; gap: 6px; }
.ss-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.ss-field .req { color: var(--accent-primary); }

.ss-field input,
.ss-field select,
.ss-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
  outline: none;
  box-sizing: border-box;
}
.ss-field input:focus,
.ss-field select:focus,
.ss-field textarea:focus { border-color: var(--accent-primary); }
.ss-field textarea { resize: vertical; min-height: 80px; }
.ss-field select { appearance: none; cursor: pointer; }

.ss-submit-btn {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px;
  font-size: 0.9rem;
}
.ss-form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
}
.ss-form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
.ss-form-feedback.success { background: #d4edda; color: #155724; }
.ss-form-feedback.error { background: #f8d7da; color: #721c24; }

/* PDF Modal */
.ss-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.ss-modal-overlay.active { display: flex; }
.ss-modal-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.ss-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ss-modal-header i { color: var(--accent-primary); margin-right: 8px; }
.ss-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.ss-modal-close:hover { color: var(--accent-primary); }
.ss-modal-body { flex: 1; overflow: hidden; }
.ss-modal-body iframe {
  width: 100%;
  height: 75vh;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .ss-layout { grid-template-columns: 1fr; }
  .ss-right { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .ss-field-row { grid-template-columns: 1fr; }
  .ss-actions { flex-direction: column; }
  .ss-btn { min-width: unset; }
  .ss-image-wrap { border-radius: var(--radius-sm); }
  .ss-image-wrap iframe,
  .ss-image-wrap > div > iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    pointer-events: auto;
  }
}
.ss-modal-download {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  transition: color 0.2s, border-color 0.2s;
}
.ss-modal-download:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

/* ===== COMMUNITY OF PRACTICE (COP) ===== */
.cop-section { background-color: var(--bg-secondary); }

.cop-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

.cop-info-card { padding: 36px 32px; display: flex; flex-direction: column; gap: 28px; }

.cop-block h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cop-block h4 i { color: var(--accent-primary); }

.cop-block p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.cop-block-lead { margin-bottom: 10px; }

.cop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cop-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.cop-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}
.cop-list li strong { color: var(--text-primary); }

.cop-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.cop-step { display: flex; gap: 14px; align-items: flex-start; }
.cop-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cop-step h5 { font-size: 0.92rem; margin: 0 0 4px; color: var(--text-primary); }
.cop-step-time { font-weight: 400; font-size: 0.78rem; color: var(--accent-primary); }
.cop-step p { font-size: 0.85rem; margin: 0; color: var(--text-secondary); line-height: 1.55; }

.cop-right { padding: 36px 32px; max-width: 560px; margin: 0 auto; }
.cop-form { max-width: 100%; }

@media (max-width: 900px) {
  .cop-grid { grid-template-columns: 1fr; }
  .cop-info-card, .cop-right { padding: 28px 24px; }
}

.cop-intro-card { margin-top: 48px; padding: 32px; }
.cop-intro-card h4, .cop-timeline-card h4 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.cop-intro-card h4 i, .cop-timeline-card h4 i, .cop-card h4 i { color: var(--accent-primary); }
.cop-intro-card p { font-size: 0.92rem; line-height: 1.65; color: var(--text-secondary); }

.cop-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.cop-card { padding: 28px; }
.cop-card h4 { font-size: 1.02rem; margin-bottom: 10px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }

.cop-timeline-card { margin-top: 24px; padding: 32px; }


@media (max-width: 900px) {
  .cop-two-col { grid-template-columns: 1fr; }
  .cop-intro-card, .cop-timeline-card, .cop-two-col .cop-card { padding: 24px; }
}

/* ===== Other Works: small heading label above sub-option groups ===== */
.ow-subgroup-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 10px 2px;
}

/* ===== Newsletter ===== */
.newsletter-cover {
  position: relative;
  background: linear-gradient(135deg, var(--navy), var(--accent-primary));
  color: #FFFFFF;
}

.newsletter-cover i {
  font-size: 2.6rem;
  opacity: 0.9;
}

.newsletter-issue-no {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-signup {
  margin-top: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-signup h4 {
  margin-bottom: 6px;
}

.newsletter-signup p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.newsletter-signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-signup-form input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 240px;
}

.newsletter-signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}

@media (max-width: 600px) {
  .newsletter-signup {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-signup-form {
    width: 100%;
  }
  .newsletter-signup-form input[type="email"] {
    flex: 1;
    min-width: 0;
  }
}

/* ===== Performance Agreements: RFD table (72 departments x 4 years) ===== */
.pa-table-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.pa-table-legend i { color: var(--accent-primary); }

.pa-table-wrap {
  width: 100%;
  max-height: 560px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #ffffff;
}
.pa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #ffffff;
}
.pa-table thead th {
  background: #f4f4f4;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 12px 10px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #d8d8d8;
}
.pa-table thead th.pa-table-dept-head {
  text-align: left;
  min-width: 320px;
  left: 0;
  z-index: 3;
}
.pa-table tbody tr {
  border-top: 1px solid #e6e6e6;
}
.pa-table tbody tr:nth-child(even) {
  background: #fafafa;
}
.pa-table-dept {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #2a2a2a;
  min-width: 320px;
  background: #ffffff;
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 #e6e6e6;
}
.pa-table tbody tr:nth-child(even) .pa-table-dept {
  background: #fafafa;
}
.pa-table-group-row .pa-table-dept,
.pa-table-group-row .pa-table-group {
  position: static;
}

@media (max-width: 700px) {
  .pa-table-wrap { max-height: 480px; }
  .pa-table { min-width: 520px; }
  .pa-table thead th {
    font-size: 0.68rem;
    padding: 8px 6px;
  }
  .pa-table thead th.pa-table-dept-head { min-width: 170px; }
  .pa-table-dept {
    min-width: 170px;
    padding: 8px 8px;
    font-size: 0.74rem;
  }
  .pa-table-num, .pa-table-letter {
    padding: 8px 4px;
    font-size: 0.74rem;
  }
  .pa-table-cell { padding: 6px 4px; }
  .pa-cell-btn {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .pa-na {
    min-width: 28px;
    height: 28px;
    font-size: 0.62rem;
    padding: 0 4px;
  }
  .pa-table-legend {
    font-size: 0.74rem;
    align-items: flex-start;
  }
  .pa-table-group-row .pa-table-group {
    font-size: 0.76rem;
    padding: 8px 10px;
  }
}
.pa-table tbody { counter-reset: padept; }
.pa-table-num-head {
  min-width: 44px;
  width: 44px;
}
.pa-table-num {
  padding: 10px 6px;
  font-size: 0.82rem;
  color: #2a2a2a;
  text-align: center;
  white-space: nowrap;
}
.pa-table-num::before {
  counter-increment: padept;
  content: counter(padept) ".";
}
.pa-table-letter {
  padding: 10px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a2a2a;
  text-align: center;
  white-space: nowrap;
}
.pa-table-group-row .pa-table-group {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1a1a1a;
  background: #eef1f6;
}
.pa-table-cell {
  text-align: center;
  padding: 8px;
}
.pa-cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pa-cell-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-1px);
}
.pa-na {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f4f4f4;
  border: 1px dashed #ccc;
  color: #9a9a9a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pub-card-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-decoration: none;
}
.pub-card-pdf-link:hover {
  text-decoration: underline;
}

.pa-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.pa-empty-state i {
  font-size: 2.2rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: block;
}
.pa-empty-state p {
  font-size: 0.95rem;
}

/* ── Career Detail Image (drawer) ─────────────────────────────────────────── */
.drawer-detail-image {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08);
  display: inline-block;
  width: 100%;
}
.drawer-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.drawer-image-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
}
.drawer-detail-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s ease;
}
.drawer-detail-image:hover::after {
  background: rgba(0,0,0,0.08);
}

.drawer-detail-carousel {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #05070f;
}
.drawer-detail-carousel .carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
  padding: 6px;
}
.drawer-detail-carousel .carousel-slide.active {
  opacity: 1;
}
.drawer-detail-carousel .drawer-image-hint {
  top: 10px;
  left: 10px;
}

/* ── Career Detail Image Lightbox ─────────────────────────────────────────── */
.detail-image-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,14,20,0.86);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.detail-image-lightbox-overlay.active { display: flex; }
.detail-image-lightbox-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-tertiary, #fff);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}
.detail-image-lightbox-box img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.detail-image-lightbox-caption {
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary, #555);
  margin: 0;
}
.detail-image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.detail-image-lightbox-close:hover { background: rgba(0,0,0,0.75); }

.detail-image-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}
.detail-image-lightbox-nav:hover { background: rgba(0,0,0,0.8); }
.detail-image-lightbox-prev { left: -14px; }
.detail-image-lightbox-next { right: -14px; }
