/* ==========================================================================
   DR. MUHAMMAD FAYAZ - ACADEMIC PORTFOLIO DESIGN SYSTEM
   Author: MAAZ
   Theme: Premium Social Orange & Modern Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Color Palette - Vibrant Social Orange Theme */
  --primary-dark: #0f172a;
  --primary-navy: #18181b;
  --primary-blue: #ea580c;  /* Shifted from blue to vibrant Social Orange */
  --accent-blue: #f97316;   /* Vibrant Social Orange */
  --accent-light: #fb923c;  /* Warm Coral Tint */
  --accent-cyan: #ea580c;   /* Bright Accent Orange */
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #18181b 50%, #27272a 100%);

  /* Neutrals */
  --bg-main: #fafaf9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: rgba(226, 232, 240, 0.85);
  --border-glow: rgba(249, 115, 22, 0.35);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(234, 88, 12, 0.08), 0 8px 10px -6px rgba(234, 88, 12, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(234, 88, 12, 0.16), 0 10px 15px -5px rgba(249, 115, 22, 0.12);
  --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

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

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

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: var(--transition-fast);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 40px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.btn-gradient {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
}

.btn-gradient:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary-dark);
  padding: 6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 150px 0 90px;
  position: relative;
  background: linear-gradient(180deg, #f0f4f9 0%, var(--bg-main) 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shape-1 {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-shape-2 {
  position: absolute;
  bottom: -50px;
  left: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Portrait Card */
.hero-portrait-card {
  position: relative;
  text-align: center;
}

.portrait-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
}

.portrait-badge-1 {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.portrait-badge-1 i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.portrait-badge-2 {
  position: absolute;
  top: 15px;
  left: -10px;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-navy);
  width: fit-content;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

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

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.meta-item i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   RESEARCH PILLARS SECTION (4 CARDS)
   ========================================================================== */
.pillars {
  padding: 70px 0 90px;
}

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

.pillar-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
  background: var(--primary-navy);
  color: #ffffff;
  transform: scale(1.05);
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT ME & TABBED EXPLORER
   ========================================================================== */
.about {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   DEDICATED SECTION STYLES
   ========================================================================== */
.publications-section,
.experience-section,
.projects-section,
.news-section,
.conferences-section,
.supervision-section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-color);
}

.publications-section, .projects-section, .conferences-section {
  background: var(--bg-main);
}

.experience-section, .news-section, .supervision-section {
  background: #ffffff;
}

/* ==========================================================================
   ENHANCED PUBLICATIONS SECTION STYLING (PREMIUM ACADEMIC SHOWCASE)
   ========================================================================== */
.section-header-center {
  text-align: center;
  margin-bottom: 40px;
}

.section-header-center .section-subtitle {
  margin: 0 auto;
  max-width: 720px;
}

/* Publication Highlights Stats Bar */
.pub-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 36px;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1c1917 50%, #27272a 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(234, 88, 12, 0.15);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.pub-stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.pub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 10px;
}

.pub-stat:last-child {
  border-right: none;
}

.pub-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pub-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* Interactive Filter Bar */
.pub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.pub-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-filter-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pub-filter-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 8px 20px rgba(11, 37, 89, 0.25);
}

.pub-filter-btn.active i {
  color: var(--accent-cyan);
}

/* Publications List Grid & Cards */
.pub-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pub-card-v2 {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px 30px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
}

.pub-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0.85;
  transition: width 0.3s ease;
}

.pub-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px rgba(11, 37, 89, 0.12), 0 8px 16px -6px rgba(29, 91, 216, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
}

.pub-card-v2:hover::before {
  width: 7px;
}

/* Left Index Box */
.pub-index-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 88, 12, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.pub-card-v2:hover .pub-index-box {
  background: var(--accent-gradient);
  transform: scale(1.05);
}

.pub-index-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.pub-card-v2:hover .pub-index-num {
  color: #ffffff;
}

.pub-index-icon {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.pub-card-v2:hover .pub-index-icon {
  color: rgba(255, 255, 255, 0.8);
}

/* Card Main Content Body */
.pub-main-body {
  flex: 1;
  min-width: 0;
}

.pub-header-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pill-ieee {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.pill-revision {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea580c;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.pill-date {
  background: rgba(100, 116, 139, 0.1);
  color: var(--text-dark);
}

.pill-other {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
  border: 1px solid rgba(147, 51, 234, 0.18);
}

.pill-scopus {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pill-conference {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.pub-paper-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.pub-card-v2:hover .pub-paper-title {
  color: var(--primary-blue);
}

.pub-authors-line {
  font-size: 0.93rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.pub-authors-line i {
  color: var(--primary-blue);
  margin-right: 4px;
}

.pub-authors-line strong {
  color: var(--primary-blue);
  font-weight: 700;
}

.pub-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.pub-venue-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pub-venue-name i {
  color: var(--primary-blue);
}

.pub-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.25s ease;
  text-decoration: none;
}

.pub-action-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .pub-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pub-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
  }
  .pub-stat:nth-child(3), .pub-stat:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 576px) {
  .exp-card {
    flex-direction: column;
    padding: 24px 20px;
  }
}

/* ==========================================================================
   CHATBOT WIDGET STYLING
   ========================================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 84px;
  z-index: 1050;
}

.chatbot-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
  border: 2px solid #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}

.chatbot-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.6);
  animation: botPulse 2s infinite;
  pointer-events: none;
}

@keyframes botPulse {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.chatbot-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 32px);
  height: 420px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, #0f172a 0%, #1c1917 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ea580c;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.chatbot-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
}

.chatbot-status {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.chatbot-close-btn {
  background: transparent;
  color: #94a3b8;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.chatbot-close-btn:hover {
  color: #ffffff;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafaf9;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
}

.msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.bot-msg .msg-content {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.user-msg .msg-content {
  background: var(--accent-gradient);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.msg-time {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}

.bot-msg .msg-time { align-self: flex-start; }
.user-msg .msg-time { align-self: flex-end; }

.chatbot-input-bar {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  gap: 8px;
}

.chatbot-input-bar input {
  flex: 1;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
  outline: none;
  font-family: inherit;
}

.chatbot-input-bar input:focus {
  border-color: #ea580c;
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .pub-card-v2 {
    flex-direction: column;
    padding: 22px 20px;
    gap: 16px;
  }
  .pub-index-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .pub-index-num {
    font-size: 1.2rem;
  }
  .pub-paper-title {
    font-size: 1.08rem;
  }
}

/* Experience Grid */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.exp-card {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
  opacity: 0.8;
  transition: width 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.exp-card:hover::before {
  width: 6px;
}

.exp-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.15));
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.exp-card:hover .exp-icon {
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: #ffffff;
  transform: scale(1.05);
}

.exp-content {
  flex: 1;
  min-width: 0;
}

.exp-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.exp-role {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}

.exp-org {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-org i {
  color: var(--primary-blue);
  font-size: 0.85rem;
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Standard Theme Projects Grid */
.projects-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1150px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .projects-theme-grid {
    grid-template-columns: 1fr;
  }
}

.project-theme-card {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-theme-card.full-width {
  grid-column: 1 / -1;
}

.project-theme-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 4px;
  background: linear-gradient(90deg, #ea580c, #f97316);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.project-theme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.project-num-badge {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1;
}

.project-tag-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-tag-pill.funded {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.project-theme-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.project-theme-desc {
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   RESPONSIBILITIES SECTION (DUTIES & ROLES)
   ========================================================================== */
/* Research Supervisor & Scholars Grid */
.scholars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .scholars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .scholars-grid {
    grid-template-columns: 1fr;
  }
}

.scholar-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.scholar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.35);
}

.scholar-avatar-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
  border: 3px solid #ffffff;
  outline: 2px solid rgba(249, 115, 22, 0.3);
}

.scholar-avatar-box.phd {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}

.scholar-avatar-box.mphil {
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.scholar-initials {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.scholar-degree-badge {
  position: absolute;
  bottom: -6px;
  background: #c2410c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.scholar-degree-badge.mphil {
  background: #ea580c;
}

.scholar-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.scholar-degree-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.scholar-research-focus {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scholar-filter-btn,
.exp-filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scholar-filter-btn.active,
.scholar-filter-btn:hover,
.exp-filter-btn.active,
.exp-filter-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   GALLERY SECTION ("MOMENTS IN PICTURES")
   ========================================================================== */
.gallery-section {
  padding: 90px 0;
  background: var(--primary-dark);
  color: #ffffff;
}

.gallery-section .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-section .section-title {
  color: #ffffff;
}

.gallery-section .section-subtitle {
  color: var(--text-light);
}

/* Gallery Slider Styling */
.gallery-slider-wrapper {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.gallery-slider-viewport {
  overflow: hidden;
  border-radius: 24px;
  width: 100%;
}

.gallery-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.gallery-card-v2 {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  position: relative;
  cursor: pointer;
}

@media (max-width: 768px) {
  .gallery-card-v2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.gallery-img-box {
  position: relative;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  border: 1px solid var(--border-color);
  background: var(--primary-dark);
}

.gallery-img-box .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-overlay-v2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
  opacity: 0.92;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.gallery-card-v2:hover .gallery-overlay-v2 {
  opacity: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.45) 60%, transparent 100%);
}

.gallery-card-v2:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: auto;
  align-self: flex-end;
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-card-v2:hover .gallery-zoom-icon {
  transform: scale(1.12);
  background: var(--primary-blue);
}

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.gallery-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Slider Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-nav-btn.prev-btn {
  left: -26px;
}

.gallery-nav-btn.next-btn {
  right: -26px;
}

@media (max-width: 1200px) {
  .gallery-nav-btn.prev-btn {
    left: 10px;
  }
  .gallery-nav-btn.next-btn {
    right: 10px;
  }
}

.gallery-nav-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
  transform: translateY(-50%) scale(1.1);
}

/* Slider Pagination Dots */
.gallery-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.gallery-slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-slider-dots .dot.active {
  width: 34px;
  border-radius: 20px;
  background: var(--primary-blue);
}
  opacity: 1;
}

.gallery-caption {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-sub {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-top: 4px;
}

/* ==========================================================================
   JOURNAL REVIEWER & EDITORIAL CONTRIBUTIONS
   ========================================================================== */
.editorial {
  padding: 90px 0;
}

.journals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.journal-card {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-normal);
}

.journal-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.journal-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.15);
  position: absolute;
  top: 20px;
  right: 24px;
}

.journal-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-top: 10px;
}

.journal-publisher {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-top: 12px;
}

/* ==========================================================================
   PUBLICATIONS & NEWS BLOG
   ========================================================================== */
.publications {
  padding: 90px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.news-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

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

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.news-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-link:hover {
  gap: 10px;
}

/* ==========================================================================
   AFFILIATIONS TICKER
   ========================================================================== */
.affiliations {
  padding: 45px 0;
  background: var(--primary-navy);
  color: #ffffff;
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

.affil-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.affil-item i {
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

/* Contact Hero Card Styling (Light / White Theme) */
.contact-section {
  padding: 60px 0 0 0;
  background: var(--bg-body);
}

.contact-hero-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 40px 36px;
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact-header-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 32px;
}

.contact-tag-hero {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
  border: 1px solid rgba(37, 99, 235, 0.18);
  margin-bottom: 12px;
}

.contact-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Contact Methods Grid */
.contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 991px) {
  .contact-methods-grid {
    grid-template-columns: 1fr;
  }
}

.contact-method-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 28px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-method-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.method-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.2);
}

.method-icon-box.email {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
  color: #ffffff;
}

.method-icon-box.web {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: #ffffff;
}

.method-icon-box.location {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
}

.method-card-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.method-card-val {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.method-card-val.text-sm {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.method-action-btn {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--primary-dark);
  color: #ffffff;
  border: 1px solid var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: auto;
}

.method-action-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.method-location-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Profiles Bar */
.contact-profiles-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profiles-bar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.profiles-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scholar-profile-btn {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.scholar-profile-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.method-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

a.method-value:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER (100% FULL-WIDTH SEAMLESS BOTTOM BAR)
   ========================================================================== */
.footer {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 0;
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  position: relative;
  left: 0;
  right: 0;
}

.footer-flex {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  color: #ffffff;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 19, 43, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

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

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: var(--bg-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.modal-close:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-portrait-card {
    margin: 0 auto;
  }

  .hero-status {
    margin: 0 auto 16px;
  }

  .contact-meta {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .pillars-grid, .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .journals-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1200px) {
  .nav-wrapper {
    padding: 0 24px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
  }

  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    border-bottom: none;
  }

  .pillars-grid, .roles-grid, .gallery-grid, .journals-grid, .news-grid, .exp-grid {
    grid-template-columns: 1fr;
  }

  .footer-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .exp-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }
}

/* ==========================================
   CV PRINT & PDF GENERATION ISOLATION
   ========================================== */
#cvDownloadTemplate {
  width: 794px !important;
  min-width: 794px !important;
  max-width: 794px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

#cvDownloadTemplate * {
  box-sizing: border-box !important;
}

