/* 
 * ICIHS - International Centre for Interdisciplinary Heritage Studies
 * Premium CSS Stylesheet
 */

:root {
  /* Colors */
  --primary-dark: #193250;
  --secondary-dark: #121a2e;
  --accent-deep: #0f1a2e;
  --primary-gold: #C8A951;
  --gold-hover: #d4b85c;
  --light-bg: #FAF7F2;
  --section-cream: #f8f4ed;
  
  --card-light: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(200, 169, 81, 0.2);
  
  /* Text Colors */
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #f0ead6;
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 15px rgba(200, 169, 81, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}

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

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

/* =========================================
   Layout & Utility Classes
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-xxl) 0;
}

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

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

.section-accent {
  background-color: var(--accent-deep);
  color: var(--text-light);
}

.section-cream {
  background-color: var(--section-cream);
}

/* =========================================
   Navigation (.navbar)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-normal);
  background-color: transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(11, 29, 53, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

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

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

.logo-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover {
  color: var(--primary-gold);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-normal);
}

.has-dropdown {
  position: relative;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--accent-deep);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  pointer-events: none;
  padding: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #c0c0d0;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  color: var(--primary-gold);
  background-color: rgba(200, 169, 81, 0.08);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   Hero Section (.hero-section)
   ========================================= */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ---- Hero Slider ---- */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(25,50,80,0.72), rgba(25,50,80,0.52));
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  min-height: 100vh;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(200, 169, 81, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--primary-gold);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero-highlight {
  color: var(--primary-gold);
  text-shadow: var(--shadow-glow);
}

.hero-description {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all var(--transition-normal);
  cursor: pointer;
  letter-spacing: 0.5px;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(200, 169, 81, 0.3);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 169, 81, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

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

.btn-gold {
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  background-color: transparent;
}

.btn-gold:hover {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-gold), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =========================================
   Ticker (.ticker-section)
   ========================================= */
.ticker-section {
  background-color: #0a1628;
  border-top: 1px solid rgba(200, 169, 81, 0.2);
  border-bottom: 1px solid rgba(200, 169, 81, 0.2);
  display: flex;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  background-color: var(--primary-gold);
  color: var(--text-dark);
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  white-space: nowrap;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.ticker-wrapper {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 1rem 3rem;
  color: var(--text-light);
  white-space: nowrap;
  border-right: 1px solid rgba(200, 169, 81, 0.3);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   Section Headers
   ========================================= */
.section-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.text-accent, .text-gold {
  color: var(--primary-gold);
}

.text-light {
  color: rgba(255, 255, 255, 0.9);
}

.section-divider {
  width: 60px;
  height: 3px;
  background-color: var(--primary-gold);
  border-radius: 3px;
  margin: 0 auto;
}

.divider-light {
  background-color: rgba(255, 255, 255, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-dark .section-title,
.section-accent .section-title {
  color: #fff;
}

.section-light .section-title,
.section-cream .section-title {
  color: var(--text-dark);
}

/* =========================================
   About Section
   ========================================= */
.about-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.section-dark .lead-text,
.section-accent .lead-text {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   Rationale Section
   ========================================= */
.rationale-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.rationale-quote {
  position: sticky;
  top: 120px;
}

.quote-mark {
  font-size: 6rem;
  color: var(--primary-gold);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: -1rem;
}

.rationale-quote blockquote {
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 500;
}

.quote-line {
  width: 60px;
  height: 2px;
  background-color: var(--primary-gold);
  margin-top: 2rem;
}

.rationale-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.section-title-sm {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.note-text {
  opacity: 0.7;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 2rem;
}

/* =========================================
   Timeline (Centre Section)
   ========================================= */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -31px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  border: 3px solid var(--primary-gold);
  z-index: 1;
}

.timeline-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary-gold);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.timeline-date {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0.5rem 0 1rem 0;
  color: var(--text-dark);
  font-size: 1.25rem;
}

.timeline-card p {
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   Info Card
   ========================================= */
.info-card {
  background-color: rgba(200, 169, 81, 0.08);
  border: 1px solid rgba(200, 169, 81, 0.2);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.info-icon {
  min-width: 24px;
  color: var(--primary-gold);
  font-size: 1.5rem;
}

/* =========================================
   Committee Section
   ========================================= */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.committee-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.committee-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 169, 81, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.committee-card.chairperson {
  grid-column: span 3;
  background-color: rgba(200, 169, 81, 0.1);
  border-color: rgba(200, 169, 81, 0.25);
}

.card-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-gold);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  display: block;
}

.card-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  color: var(--primary-gold);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.committee-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.profile-link {
  color: inherit;
  transition: color var(--transition-fast);
}

.profile-link:hover {
  color: var(--primary-gold);
  text-decoration: underline;
}

.committee-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-link-btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-gold);
  border: 1px solid rgba(200, 169, 81, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.card-link-btn:hover {
  background-color: var(--primary-gold);
  color: var(--primary-dark);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
}

/* =========================================
   Placeholder Card & Status Badges
   ========================================= */
.placeholder-card {
  text-align: center;
  padding: 3rem;
  background-color: #fff;
  border-radius: 16px;
  border: 2px dashed #ddd;
  max-width: 500px;
  margin: 0 auto;
}

.placeholder-icon {
  width: 48px;
  margin: 0 auto 1rem;
  color: var(--primary-gold);
}

.placeholder-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: rgba(200, 169, 81, 0.1);
  color: var(--primary-gold);
}

.badge-gold { background-color: rgba(200, 169, 81, 0.15); color: var(--primary-gold); }
.badge-blue { background-color: rgba(52, 152, 219, 0.1); color: #3498db; }
.badge-teal { background-color: rgba(26, 188, 156, 0.1); color: #1abc9c; }
.badge-amber { background-color: rgba(243, 156, 18, 0.1); color: #f39c12; }

/* =========================================
   Director Section
   ========================================= */
.director-profile {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
}

.director-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(200, 169, 81, 0.2);
}

.director-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.director-image:hover .director-photo {
  transform: scale(1.05);
}

.director-name-overlay {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: linear-gradient(to top, rgba(11, 29, 53, 0.9), transparent);
}

.director-name-overlay h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.director-name-overlay p {
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin: 0;
}

.director-bio {
  color: var(--text-light);
}

.director-bio p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.director-affiliations {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.director-affiliations h4 {
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.director-affiliations ul {
  list-style: none;
}

.director-affiliations li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.director-affiliations li::before {
  content: '•';
  color: var(--primary-gold);
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================
   Director's Message Section
   ========================================= */
.message-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.message-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-deep));
  padding: 3rem;
  text-align: center;
  color: #fff;
}

.message-icon {
  width: 48px;
  margin: 0 auto 1rem;
  color: var(--primary-gold);
}

.message-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.message-subtitle {
  color: var(--primary-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message-body {
  padding: 3rem;
}

.message-greeting {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}

.message-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-body);
}

.message-closing {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1rem;
}

.message-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #ddd;
}

.signature-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.signature-date {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* =========================================
   People Section
   ========================================= */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.people-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid #eee;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.people-card:hover::before {
  transform: scaleX(1);
}

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

.people-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(200, 169, 81, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.people-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.people-card p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.link-arrow {
  color: var(--primary-gold);
  font-weight: 600;
  transition: transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.people-card:hover .link-arrow {
  transform: translateX(5px);
}

/* =========================================
   Programme Cards
   ========================================= */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.programme-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.programme-card:hover {
  border-color: rgba(200, 169, 81, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.programme-card.featured {
  border-color: rgba(200, 169, 81, 0.3);
  background-color: rgba(200, 169, 81, 0.05);
}

.programme-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: rgba(200, 169, 81, 0.15);
  line-height: 1;
}

.programme-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}

.programme-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.programme-card p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* =========================================
   Research Section
   ========================================= */
.research-highlight {
  margin-bottom: 3rem;
}

.research-active-card {
  background: linear-gradient(135deg, rgba(200,169,81,0.05), rgba(200,169,81,0.1));
  border: 1px solid rgba(200, 169, 81, 0.25);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.research-active-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-gold);
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 0 12px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.research-active-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.research-type {
  color: #a6893e; /* darkened gold */
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

.subsection-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.research-card {
  background-color: #fff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #eee;
  transition: all var(--transition-normal);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 169, 81, 0.3);
}

.research-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.research-card h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.badge-sm {
  font-size: 0.7rem;
  background-color: rgba(200, 169, 81, 0.1);
  color: var(--primary-gold);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 600;
}

.research-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background-color: rgba(200, 169, 81, 0.05);
  border-radius: 16px;
}

.research-cta p {
  margin-bottom: 1.5rem;
  color: var(--text-body);
}

/* =========================================
   Outreach Cards
   ========================================= */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.outreach-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
}

.outreach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 81, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.outreach-card.wide {
  grid-column: span 2;
}

.outreach-icon {
  width: 48px;
  height: 48px;
  color: var(--primary-gold);
  margin-bottom: 1.25rem;
}

.outreach-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.outreach-card p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* =========================================
   Repository Banner
   ========================================= */
.repository-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  background-color: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.repo-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--text-dark);
}

.repo-content p {
  color: var(--text-body);
  margin: 1.5rem 0;
  line-height: 1.8;
}

.repo-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.repo-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.repo-float-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(200, 169, 81, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  animation: float 3s ease infinite;
  font-size: 1.75rem;
}

.repo-float-icon:nth-child(1) { animation-delay: 0s; }
.repo-float-icon:nth-child(2) { animation-delay: 0.5s; }
.repo-float-icon:nth-child(3) { animation-delay: 1s; }
.repo-float-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: #060e1a;
  padding-top: 4rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
  width: 36px;
  color: var(--primary-gold);
}

.footer-logo .logo-title {
  color: var(--primary-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-contact p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background-color: var(--primary-gold);
  color: var(--text-dark);
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-gold);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  cursor: pointer;
  border: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* =========================================
   Animations & Reveal
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  .rationale-grid, 
  .director-profile {
    grid-template-columns: 1fr;
  }
  
  .director-image {
    aspect-ratio: 16 / 9;
  }
  
  .committee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .committee-card.chairperson {
    grid-column: span 2;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .navbar {
    padding: 1rem 0;
  }

  .navbar.scrolled {
    padding: 0.75rem 0;
  }

  .nav-logo {
    padding-left: 0.25rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #193250;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    align-items: flex-start;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    padding-left: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
    border: none;
    border-radius: 8px;
    width: 100%;
    margin-top: 0.25rem;
  }
  
  .has-dropdown.active-dropdown .dropdown-menu {
    display: block;
  }
  
  .dropdown-arrow {
    transition: transform var(--transition-normal);
  }
  
  .has-dropdown.active-dropdown .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .programmes-grid, 
  .people-grid, 
  .outreach-grid, 
  .research-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .outreach-card.wide {
    grid-column: span 1;
  }

  .director-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .director-image {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }
  
  .repository-banner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .repo-visual {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .hero-content {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.4rem 1rem;
    letter-spacing: 1.5px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .timeline {
    padding-left: 25px;
  }

  .timeline-marker {
    left: -24px;
    width: 18px;
    height: 18px;
  }

  .timeline-card {
    padding: 1.35rem;
  }

  .message-card {
    border-radius: 16px;
  }

  .message-header {
    padding: 2rem 1.25rem;
  }

  .message-body {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .committee-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .committee-card.chairperson {
    grid-column: span 1;
  }

  .committee-card {
    padding: 1.5rem 1.25rem;
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .ticker-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .social-links .social-link {
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-height: 650px) and (max-width: 768px) {
  .hero-scroll-indicator {
    display: none;
  }
}

/* =========================================
   Welcome Popup Modal
   ========================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(200, 169, 81, 0.15),
    0 0 80px rgba(200, 169, 81, 0.08);
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  animation: none;
}

.popup-overlay.active .popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 29, 53, 0.08);
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 2;
}

.popup-close:hover {
  background: var(--primary-gold);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

/* Popup Header */
.popup-header {
  background: linear-gradient(135deg, var(--primary-dark), #142744);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

.popup-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(200, 169, 81, 0.1), transparent 60%);
  pointer-events: none;
}

.popup-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: var(--primary-gold);
  filter: drop-shadow(0 0 10px rgba(200, 169, 81, 0.4));
}

.popup-header h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.popup-subtitle {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Popup Body */
.popup-body {
  padding: 2rem 2.5rem 1.5rem;
}

.popup-greeting {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-gold);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.popup-body p {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.popup-closing {
  font-weight: 600;
  color: var(--text-dark) !important;
}

.card-avatar-img {
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--primary-gold);
}

.card-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-signature {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(200, 169, 81, 0.35);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.popup-sig-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-gold);
  flex-shrink: 0;
}

.popup-signature .signature-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.popup-signature .signature-role {
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Popup Footer */
.popup-footer {
  padding: 0 2.5rem 2.25rem;
  display: flex;
  gap: 1rem;
}

.popup-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
}

.popup-footer .btn-outline {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.popup-footer .btn-outline:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Popup scrollbar */
.popup-card::-webkit-scrollbar {
  width: 5px;
}

.popup-card::-webkit-scrollbar-track {
  background: transparent;
}

.popup-card::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 81, 0.3);
  border-radius: 10px;
}

/* Responsive popup */
@media (max-width: 768px) {
  .popup-card {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 20px;
  }

  .popup-header {
    padding: 2rem 1.75rem 1.5rem;
    border-radius: 20px 20px 0 0;
  }

  .popup-header h2 {
    font-size: 1.35rem;
  }

  .popup-body {
    padding: 1.5rem 1.75rem 1rem;
  }

  .popup-footer {
    padding: 0 1.75rem 1.75rem;
    flex-direction: column;
  }
}

/* =========================================
   Director Profile Modal (dpm-*)
   ========================================= */
.dpm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10, 18, 35, 0.82);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.dpm-overlay.active {
  display: flex;
}

.dpm-card {
  background: #fff;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  margin: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  overflow: hidden;
  animation: dpmSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes dpmSlideIn {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dpm-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s, transform 0.2s;
}
.dpm-close:hover { background: #f0e8d5; transform: scale(1.1); }

/* Header */
.dpm-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f2540 100%);
  padding: 2.5rem 2.5rem 2rem;
}

.dpm-photo-wrap {
  flex-shrink: 0;
  width: 130px;
  height: 155px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--primary-gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.dpm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dpm-header-info { flex: 1; }

.dpm-badge {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.dpm-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.dpm-title {
  color: var(--primary-gold);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}

.dpm-inst {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

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

.dpm-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(200,169,81,0.4);
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading);
}

/* Body */
.dpm-body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-height: 55vh;
  overflow-y: auto;
}

.dpm-body::-webkit-scrollbar { width: 5px; }
.dpm-body::-webkit-scrollbar-track { background: #f5f5f5; }
.dpm-body::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 3px; }

.dpm-section { border-top: 1px solid #eeebe3; padding-top: 1.5rem; }
.dpm-section:first-child { border-top: none; padding-top: 0; }

.dpm-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dpm-icon { font-size: 1.1rem; }

.dpm-section p {
  color: #4a4a5a;
  line-height: 1.75;
  margin: 0 0 0.75rem;
  font-size: 0.93rem;
}

/* Research tags */
.dpm-research-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.dpm-research-tag {
  background: rgba(200,169,81,0.1);
  color: #8a6e20;
  border: 1px solid rgba(200,169,81,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.dpm-funded-research {
  background: #f9f6ee;
  border-left: 3px solid var(--primary-gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
}

.dpm-funded-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6a8a20;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.dpm-funded-research p {
  margin: 0;
  font-size: 0.88rem;
}

/* Awards */
.dpm-awards-list, .dpm-positions-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dpm-awards-list li, .dpm-positions-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #4a4a5a;
  line-height: 1.6;
}

.dpm-awards-list li::before, .dpm-positions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--primary-gold);
  border-radius: 50%;
}

/* Footer */
.dpm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid #eeebe3;
  background: #faf7f2;
}

.dpm-ext-link {
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: color 0.2s;
}
.dpm-ext-link:hover { color: var(--primary-gold); }

.dpm-close-btn {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 0.6rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.dpm-close-btn:hover { background: var(--primary-gold); color: var(--primary-dark); }

/* Responsive */
@media (max-width: 600px) {
  .dpm-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.5rem 1.5rem;
  }
  .dpm-tags { justify-content: center; }
  .dpm-body { padding: 1.5rem; }
  .dpm-footer { flex-direction: column; text-align: center; padding: 1rem 1.5rem; }
}
/* =========================================
   Welcome Popup Carousel
   ========================================= */

/* Wider card to display the 16:9 poster clearly */
.popup-card {
  max-width: 900px;
  overflow: hidden;
}

/* Keep the close button above poster and controls */
.popup-close {
  z-index: 10;
}

/* Horizontal container holding both slides */
.popup-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Every slide occupies the complete popup width */
.popup-slide {
  flex: 0 0 100%;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

/* Seminar poster slide */
.popup-poster-slide {
  min-height: 500px;
  padding: 2.5rem;
  background: #0b1d35;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
}

/* Previous and next navigation arrows */
.popup-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 50%;

  background: rgba(11, 29, 53, 0.82);
  color: #ffffff;

  font-size: 1.6rem;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.popup-arrow:hover,
.popup-arrow:focus-visible {
  background: var(--primary-gold);
  transform: translateY(-50%) scale(1.08);
}

.popup-arrow-prev {
  left: 1rem;
}

.popup-arrow-next {
  right: 1rem;
}

/* Navigation dots */
.popup-dots {
  position: absolute;
  z-index: 7;

  left: 50%;
  bottom: 0.75rem;

  transform: translateX(-50%);

  display: flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.4rem 0.7rem;

  border-radius: 999px;

  background: rgba(11, 29, 53, 0.7);
}

.popup-dot {
  width: 10px;
  height: 10px;

  padding: 0;
  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);

  cursor: pointer;

  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.popup-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--primary-gold);
}

/* Scrollbar for individual slides */
.popup-slide::-webkit-scrollbar {
  width: 5px;
}

.popup-slide::-webkit-scrollbar-track {
  background: transparent;
}

.popup-slide::-webkit-scrollbar-thumb {
  background: rgba(200, 169, 81, 0.45);
  border-radius: 10px;
}

/* Mobile popup carousel */
@media (max-width: 768px) {
  .popup-overlay {
    padding: 0.75rem;
  }

  .popup-card {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
  }

  .popup-slide {
    max-height: 92vh;
  }

  .popup-poster-slide {
    min-height: 0;
    padding: 3.25rem 0.65rem;
  }

  .popup-poster {
    width: 100%;
    max-height: 82vh;
    border-radius: 8px;
  }

  .popup-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .popup-arrow-prev {
    left: 0.35rem;
  }

  .popup-arrow-next {
    right: 0.35rem;
  }

  .popup-dots {
    bottom: 0.45rem;
  }
}

/* Accessibility: disable sliding animation when requested */
@media (prefers-reduced-motion: reduce) {
  .popup-track {
    transition: none;
  }
}
.popup-poster-slide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.popup-poster-title {
  margin: 0;
  padding: 0 2rem;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.popup-poster {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

@media (max-width: 768px) {
  .popup-poster-title {
    padding: 0 1rem;
    font-size: 1rem;
  }

  .popup-poster {
    max-height: 65vh;
  }
}
