/* ==========================================================================
   Prof. Prem Shanker Ram - Academic Legacy & Portfolio
   Faculty of Education, Banaras Hindu University (BHU), Varanasi
   Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette - Oxford Navy & Royal Gold (BHU Academic Palette) */
  --primary: #0f2b48;
  --primary-dark: #08192b;
  --primary-light: #1b4570;
  --accent-gold: #c69214;
  --accent-gold-light: #e5b338;
  --accent-gold-dark: #9b6e0b;
  --accent-gold-glow: rgba(198, 146, 20, 0.22);
  --accent-teal: #1a7a82;
  --accent-maroon: #80182a;
  --accent-green: #10b981;

  /* Neutrals - Light Theme (Parchment & Ivory) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-gold: rgba(198, 146, 20, 0.35);

  /* Typography */
  --font-serif: 'Lora', 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Lora', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Text Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 4px rgba(15, 43, 72, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 43, 72, 0.08);
  --shadow-lg: 0 14px 32px rgba(15, 43, 72, 0.12);
  --shadow-gold: 0 8px 24px rgba(198, 146, 20, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --primary: #d6e2f0;
  --primary-dark: #0a111a;
  --primary-light: #243c58;
  --accent-gold: #e2ab28;
  --accent-gold-light: #f5c754;
  --accent-gold-dark: #b8850f;
  --accent-gold-glow: rgba(226, 171, 40, 0.28);
  --accent-teal: #2dd4bf;
  --accent-maroon: #f87171;
  --accent-green: #34d399;

  --bg-main: #0b1118;
  --bg-surface: #121c27;
  --bg-card: #152232;
  --bg-alt: #0e1722;
  --bg-glass: rgba(18, 28, 39, 0.92);
  --border-subtle: #1e2e42;
  --border-strong: #2a3f5a;
  --border-gold: rgba(226, 171, 40, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0b1118;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #091726, #163252, #091726);
  color: #f8fafc;
  font-size: 0.875rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(198, 146, 20, 0.3);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.badge-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.announcement-link {
  color: var(--accent-gold-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition-fast);
}

.announcement-link:hover {
  text-decoration: underline;
  gap: 0.45rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand-crest {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-gold);
  background: #ffffff;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .brand-name {
  color: var(--text-main);
}

.brand-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link i {
  width: 14px;
  height: 14px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--accent-gold-dark);
  background: var(--bg-alt);
}

.nav-link.highlight-nav {
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
  border: 1px solid var(--border-gold);
}

.nav-link.active {
  color: var(--primary);
  background: var(--bg-alt);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
}

[data-theme="dark"] .nav-link.active {
  color: var(--accent-gold-light);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-link.highlight-nav {
  color: var(--accent-gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 1001;
}

.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  transform: rotate(15deg);
}

.theme-toggle .light-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #123456, #091c30);
  color: #ffffff;
  border-color: rgba(198, 146, 20, 0.4);
  box-shadow: 0 4px 14px rgba(15, 43, 72, 0.25);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #0b1118;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 146, 20, 0.35);
  border-color: var(--accent-gold-light);
}

.btn-pulse {
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 0 0 rgba(198, 146, 20, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(198, 146, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 146, 20, 0); }
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

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

[data-theme="dark"] .btn-outline {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4rem 0 3rem;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(198, 146, 20, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(15, 43, 72, 0.05) 0%, transparent 50%);
}

.hero-bg-glow {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-status-pill {
  color: var(--accent-gold-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .hero-name {
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #d8e5f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 600;
}

.mission-callout-hero {
  background: linear-gradient(135deg, rgba(198, 146, 20, 0.12), rgba(15, 43, 72, 0.06));
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.5rem 1.15rem 3rem;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.mission-icon {
  position: absolute;
  top: 1.15rem;
  left: 0.9rem;
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}

.mission-callout-hero strong {
  color: var(--accent-gold-dark);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .mission-callout-hero strong {
  color: var(--accent-gold-light);
}

.mission-callout-hero p {
  font-size: 0.925rem;
  color: var(--text-main);
  line-height: 1.55;
}

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

/* Portrait Card in Hero */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--bg-surface);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  background: var(--bg-surface);
}

.portrait-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.portrait-frame:hover .portrait-img {
  transform: scale(1.02);
}

.portrait-badge {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.portrait-badge i {
  color: var(--accent-gold);
  width: 28px;
  height: 28px;
}

.portrait-badge div {
  display: flex;
  flex-direction: column;
}

.portrait-badge strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.portrait-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.scholar-badge {
  position: absolute;
  top: 25px;
  right: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  animation: floatSlow 4s ease-in-out 1s infinite alternate;
}

.scholar-badge i {
  color: var(--accent-teal);
  width: 28px;
  height: 28px;
}

.scholar-badge div {
  display: flex;
  flex-direction: column;
}

.scholar-badge strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.scholar-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Metrics Ribbon
   ========================================================================== */
.metrics-ribbon {
  margin-top: 3.5rem;
  position: relative;
  z-index: 2;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

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

.metric-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .metric-number {
  color: var(--accent-gold-light);
}

.metric-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Standards
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-dark);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-tag.special-tag {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(198, 146, 20, 0.3);
}

[data-theme="dark"] .section-tag {
  color: var(--accent-gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .section-title {
  color: var(--text-main);
}

.title-separator {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin: 0.85rem auto 1rem;
  border-radius: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Free Mentorship Section
   ========================================================================== */
.free-mentorship-section {
  background: radial-gradient(circle at 10% 20%, rgba(198, 146, 20, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(26, 122, 130, 0.06) 0%, transparent 50%),
              var(--bg-alt);
}

.mentorship-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(15, 43, 72, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-card.gold .pillar-icon {
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
}

.pillar-card.teal .pillar-icon {
  background: rgba(26, 122, 130, 0.12);
  color: var(--accent-teal);
}

.pillar-card.maroon .pillar-icon {
  background: rgba(128, 24, 42, 0.12);
  color: var(--accent-maroon);
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.free-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.free-tag i {
  width: 14px;
  height: 14px;
}

[data-theme="dark"] .free-tag {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
}

.mentorship-form-wrapper {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  margin: 0 auto;
}

.mentorship-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.mentorship-form-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .mentorship-form-header h3 {
  color: var(--accent-gold-light);
}

.mentorship-form-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.zero-cost-badge {
  background: linear-gradient(135deg, #0f2b48, #091726);
  color: var(--accent-gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--accent-gold);
  white-space: nowrap;
}

.mentorship-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ==========================================================================
   About Section & Timeline
   ========================================================================== */
.about-section {
  background: var(--bg-main);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.about-narrative {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.narrative-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .narrative-heading {
  color: var(--accent-gold-light);
}

.about-narrative p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.core-competencies {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.competency-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.competency-item i {
  color: var(--accent-gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Fields of Specialization in Biography */
.specialization-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.specialization-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .specialization-title {
  color: var(--accent-gold-light);
}

.specialization-title i {
  color: var(--accent-gold);
}

.specialization-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3.5px solid var(--accent-gold);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.spec-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.spec-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(198, 146, 20, 0.14);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.spec-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.about-timeline-card {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

[data-theme="dark"] .timeline-title {
  color: var(--text-main);
}

.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  bottom: 5px;
  width: 2px;
  background: var(--border-strong);
}

.timeline-node {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-node::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -1.75rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-gold);
  box-shadow: 0 0 0 3px var(--bg-surface);
  z-index: 2;
}

.timeline-node.active::before {
  background: var(--accent-gold);
  box-shadow: 0 0 0 4px var(--accent-gold-glow);
}

.node-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  background: var(--bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .node-badge {
  color: var(--accent-gold-light);
}

.node-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.node-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   27+ PhD Scholars Registry Section
   ========================================================================== */
.scholars-section {
  background: var(--bg-alt);
}

.theses-controls {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.search-box {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.search-box input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.filter-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.filter-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .filter-chip.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b1118;
}

.theses-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-wrapper select {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Theses Grid & Cards */
.theses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.thesis-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.thesis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

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

.domain-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--accent-gold-dark);
  border: 1px solid var(--border-gold);
}

[data-theme="dark"] .domain-tag {
  color: var(--accent-gold-light);
}

.award-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.thesis-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.thesis-scholar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}

.scholar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2b48, #2a5885);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scholar-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

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

.thesis-snippet {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thesis-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.thesis-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.no-theses-msg {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}

.no-theses-msg i {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.no-theses-msg h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.no-theses-msg p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Publications & Books Section
   ========================================================================== */
.publications-section {
  background: var(--bg-main);
}

.pub-tabs {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pub-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.pub-tab i {
  color: var(--accent-gold);
}

.pub-tab:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.pub-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .pub-tab.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b1118;
}

[data-theme="dark"] .pub-tab.active i {
  color: #0b1118;
}

.pub-search-bar {
  position: relative;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.pub-search-bar i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.pub-search-bar input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 2.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.pub-search-bar input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: all var(--transition-smooth);
}

.pub-item:hover {
  transform: translateX(4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.pub-main {
  flex: 1;
}

.pub-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.pub-item-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pub-venue {
  font-size: 0.825rem;
  font-style: italic;
  color: var(--accent-gold-dark);
}

[data-theme="dark"] .pub-venue {
  color: var(--accent-gold-light);
}

.pub-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Conferences & Keynotes Section
   ========================================================================== */
.conferences-section {
  background: var(--bg-alt);
}

.conferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.conference-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.conference-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.conf-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.conf-type-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .conf-type-tag {
  color: var(--accent-gold-light);
}

.conf-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.conf-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.conf-event {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.conf-event i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}

.conf-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MHRD & WCD Policy Impact Section
   ========================================================================== */
.policy-section {
  background: var(--bg-main);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.policy-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(15, 43, 72, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.policy-icon-wrapper.gold {
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
}

.policy-icon-wrapper.teal {
  background: rgba(26, 122, 130, 0.12);
  color: var(--accent-teal);
}

[data-theme="dark"] .policy-icon-wrapper {
  background: rgba(214, 226, 240, 0.1);
  color: var(--primary);
}

[data-theme="dark"] .policy-icon-wrapper.gold {
  color: var(--accent-gold-light);
}

.policy-dept {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.policy-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.policy-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.policy-points {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.policy-points li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.policy-points li i {
  color: var(--accent-gold);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   Retirement Legacy & Tributes
   ========================================================================== */
.legacy-section {
  background: var(--bg-alt);
}

.legacy-banner {
  background: linear-gradient(135deg, #0f2b48, #16365c);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(198, 146, 20, 0.35);
  box-shadow: var(--shadow-lg);
}

.legacy-sub {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

.legacy-banner-text h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #ffffff;
}

.legacy-banner-text p {
  font-size: 0.95rem;
  color: #d1d5db;
  line-height: 1.65;
}

.legacy-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(198, 146, 20, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.stat-highlight {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-highlight-label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.tributes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.tribute-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tribute-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.tribute-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2b48, #1b4570);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tribute-avatar.gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
}

.tribute-avatar.teal {
  background: linear-gradient(135deg, var(--accent-teal), #0f585e);
}

.tribute-header h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.2;
}

.tribute-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tribute-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tribute-stars {
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.add-tribute-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}

.add-tribute-box h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .add-tribute-box h3 {
  color: var(--accent-gold-light);
}

.add-tribute-box p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.tribute-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.form-group label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-box.success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .alert-box.success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* ==========================================================================
   Consultation & Contact Section
   ========================================================================== */
.consultation-section {
  background: var(--bg-main);
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.services-offered h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

[data-theme="dark"] .services-offered h3 {
  color: var(--text-main);
}

.service-item {
  display: flex;
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(15, 43, 72, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon.gold {
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
}

.service-icon.teal {
  background: rgba(26, 122, 130, 0.12);
  color: var(--accent-teal);
}

.service-detail h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.service-detail p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .contact-title {
  color: var(--accent-gold-light);
}

.contact-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #091422;
  color: #f1f5f9;
  padding: 4.5rem 0 0;
  border-top: 1px solid rgba(198, 146, 20, 0.3);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

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

.footer-crest {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
  background: #ffffff;
}

.footer-logo h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
}

.footer-logo p {
  font-size: 0.75rem;
  color: var(--accent-gold-light);
}

.footer-bio-snippet {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

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

.footer-links li a {
  font-size: 0.875rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.footer-links li a:hover {
  color: var(--accent-gold-light);
  transform: translateX(3px);
}

.footer-col p {
  font-size: 0.875rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 17, 27, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}

.modal-tags {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.modal-domain-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-gold-glow);
  color: var(--accent-gold-dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .modal-domain-badge {
  color: var(--accent-gold-light);
}

.modal-year-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-maroon);
}

.modal-body {
  padding: 2rem;
}

.modal-thesis-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

[data-theme="dark"] .modal-thesis-title {
  color: #ffffff;
}

.modal-scholar-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-alt);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.modal-abstract-section {
  margin-bottom: 1.75rem;
}

.modal-abstract-section h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.modal-abstract-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-keywords-section {
  margin-bottom: 1.75rem;
}

.modal-keywords-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.modal-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.modal-citation-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.citation-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
}

[data-theme="dark"] .citation-label {
  color: var(--accent-gold-light);
}

.modal-citation-box code {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-main);
  background: var(--bg-surface);
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* CV Modal Specifics */
.cv-modal-dialog {
  max-width: 860px;
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-header-title i {
  color: var(--accent-gold);
  width: 28px;
  height: 28px;
}

.cv-header-title h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-main);
}

.cv-header-title span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-document {
  background: var(--bg-surface);
  padding: 1rem;
}

.cv-doc-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cv-doc-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .cv-doc-header h1 {
  color: #ffffff;
}

.cv-doc-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cv-doc-meta {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cv-divider {
  border: none;
  border-top: 1.5px solid var(--accent-gold);
  margin: 1.5rem 0;
}

.cv-section {
  margin-bottom: 1.75rem;
}

.cv-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.4rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .cv-section h2 {
  color: var(--accent-gold-light);
}

.cv-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.cv-section p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Global Mobile Guard against unwanted overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Tablet & Smaller Laptops / Mobile Navigation Breakpoint (<= 1140px) */
@media (max-width: 1140px) {
  .container {
    padding: 0 1rem;
  }

  /* Navbar on Tablets & Laptops */
  .navbar {
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-container {
    height: 4.25rem;
    gap: 0.75rem;
  }
  .brand-crest {
    width: 42px;
    height: 42px;
  }
  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
  }
  .brand-title {
    font-size: 0.66rem;
    white-space: normal;
    line-height: 1.2;
    max-width: 200px;
  }
  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .cv-btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
    transition: background var(--transition-fast);
    flex-shrink: 0;
  }
  .menu-toggle:hover {
    background: var(--border-subtle);
  }
  .nav-menu {
    position: fixed;
    top: 4.25rem;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 4.25rem);
    background: var(--bg-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    gap: 0.5rem;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 9999;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .mission-callout-hero {
    text-align: left;
  }
  .portrait-card {
    max-width: 340px;
    margin: 0 auto;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mentorship-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .consultation-grid, .legacy-banner {
    grid-template-columns: 1fr;
  }
  .policy-grid, .tributes-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices (Smartphones & Phablets <= 768px) */
@media (max-width: 768px) {
  /* Container & Spacing */
  .container {
    padding: 0 0.85rem;
  }

  /* Top Announcement Bar */
  .announcement-bar {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
  .announcement-content {
    flex-direction: column;
    gap: 0.35rem;
  }
  .badge-gold {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.2rem 0 2.5rem;
  }
  .hero-tag {
    font-size: 0.75rem;
  }
  .hero-name {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-title {
    font-size: 0.95rem;
  }
  .hero-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .portrait-card {
    max-width: 280px;
    margin: 1rem auto 0;
  }

  /* Section Titles & General Headings */
  .section {
    padding: 2.75rem 0;
  }
  .section-header {
    margin-bottom: 1.75rem;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .section-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Metrics Ribbon */
  .metrics-ribbon {
    padding: 1.5rem 0;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .metric-card {
    padding: 1rem 0.6rem;
  }
  .metric-number {
    font-size: 1.5rem;
  }
  .metric-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Theses Controls & Grid */
  .theses-controls {
    margin-bottom: 1.5rem;
  }
  .search-box {
    width: 100%;
  }
  .filter-chips {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.25rem 0 0.6rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .theses-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .sort-wrapper select {
    flex: 1;
    font-size: 0.85rem;
  }
  .theses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .thesis-card {
    padding: 1.25rem;
  }
  .thesis-title {
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .thesis-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .view-abstract-btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }

  /* Publications Tabs & List */
  .pub-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pub-tabs::-webkit-scrollbar {
    display: none;
  }
  .pub-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
  .pub-item {
    padding: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .pub-actions {
    width: 100%;
    justify-content: stretch;
  }
  .pub-actions .btn {
    flex: 1;
    justify-content: center;
    min-height: 40px;
  }

  /* Conferences & Mentorship */
  .conferences-grid, .mentorship-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pillar-card, .conference-card {
    padding: 1.25rem;
  }

  /* Forms (Mentorship & Contact) */
  .form-card {
    padding: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    min-height: 44px;
    padding: 0.65rem 0.85rem;
  }
  .form-actions button[type="submit"] {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .mentorship-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Timeline */
  .timeline-container {
    padding-left: 0.5rem;
  }
  .timeline-node {
    padding-left: 1.75rem;
  }

  /* Subpage Banner & Titles */
  .page-banner {
    padding: 2rem 0 1.5rem;
  }
  .page-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }
  .page-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .page-content-wrapper {
    padding: 2rem 0 3.5rem;
  }

  /* Modals */
  .modal-dialog {
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 10px;
    max-height: 90vh;
    padding: 1.25rem;
    border-radius: 12px;
  }
  .modal-thesis-title {
    font-size: 1.15rem;
    line-height: 1.4;
  }
  .modal-scholar-info {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
  }
  .footer-bottom-content, .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Mobile Screen Widths (<= 640px) */
@media (max-width: 640px) {
  .brand-title {
    display: none; /* Keep clean logo + name on mobile to leave plenty of room for theme & menu toggles */
  }
  .brand-crest {
    width: 38px;
    height: 38px;
  }
  .brand-name {
    font-size: 0.94rem;
  }
  .nav-container {
    height: 3.85rem;
  }
  .nav-menu {
    top: 3.85rem;
    height: calc(100vh - 3.85rem);
  }
}

/* Small Smartphone Screens (iPhone SE, 360px Androids <= 480px) */
@media (max-width: 480px) {
  .hero-name {
    font-size: 1.65rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    padding: 0.85rem 1rem;
  }
  .portrait-card {
    max-width: 240px;
  }
}

