/* ==========================================================================
   Modern Academic Portfolio - Prof. Samer Mohammed
   Clean, Elegant, Responsive HTML5 & CSS3
   ========================================================================== */

:root {
  --primary: #0f2b46;          /* Deep academic midnight blue */
  --primary-light: #18436b;    /* Lighter navy */
  --primary-dark: #0a1c2e;     /* Dark navy */
  --accent: #0284c7;           /* Modern scientific sky/blue accent */
  --accent-light: #e0f2fe;     /* Soft blue tint */
  --accent-hover: #0369a1;
  
  --text-main: #1e293b;        /* Slate 800 - high contrast readability */
  --text-muted: #475569;       /* Slate 600 - secondary text */
  --text-light: #94a3b8;       /* Slate 400 */
  
  --bg-body: #f8fafc;          /* Crisp soft light slate */
  --bg-card: #ffffff;          /* Pure white cards */
  --bg-card-alt: #f1f5f9;      /* Subtle secondary surface */
  
  --border-color: #e2e8f0;     /* Slate 200 */
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(15, 43, 70, 0.12), 0 8px 10px -6px rgba(15, 43, 70, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title:hover {
  color: #e0f2fe;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.4rem;
}

.nav-link {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background-color: #38bdf8;
  border-radius: 2px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ==========================================================================
   Page Banner / Breadcrumb
   ========================================================================== */
.page-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

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

.page-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-light);
}

/* ==========================================================================
   Hero / Profile Section
   ========================================================================== */
.profile-section {
  padding: 2.5rem 0 1.5rem 0;
}

.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  align-items: center;
}

.profile-image-wrapper {
  position: relative;
  text-align: center;
}

.profile-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, #0284c7 0%, #0f2b46 100%);
  border-radius: calc(var(--radius-md) + 6px);
  z-index: 0;
  opacity: 0.25;
  transition: var(--transition);
}

.profile-card:hover .profile-image-wrapper::before {
  opacity: 0.45;
}

.profile-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background-color: #fff;
  border: 3px solid #ffffff;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.badge-outline {
  background-color: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.profile-name {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.profile-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-affiliations {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.affiliation-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.affiliation-item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-1px);
}

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

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

/* ==========================================================================
   Section Styling (Shared)
   ========================================================================== */
.main-section {
  padding: 2.25rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.85rem;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Research Interests
   ========================================================================== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: var(--transition);
}

.interest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}

.interest-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-icon-box svg {
  width: 24px;
  height: 24px;
}

.interest-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* ==========================================================================
   Running Research Projects (2x2 Grid)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
}

.project-card-header {
  padding: 1.15rem 1.4rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.project-index {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
}

.project-card-body {
  padding: 1.5rem;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.project-img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-card-footer {
  padding: 0.85rem 1.4rem;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}

/* ==========================================================================
   Selected Recent Publications
   ========================================================================== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  transition: var(--transition);
}

.pub-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.pub-meta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 60px;
}

.pub-year {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.pub-number {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.pub-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
}

.pub-journal {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pub-journal em {
  font-style: italic;
  color: #334155;
  font-weight: 500;
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.pub-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
}

.pub-link-badge:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pub-link-badge svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  margin-top: 4rem;
  border-top: 3px solid var(--accent);
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  position: relative;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom p {
  color: #64748b;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--accent);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Bio Page Specific Styling
   ========================================================================== */
.bio-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: flex-start;
}

.bio-text-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.bio-text-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.bio-text-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(2, 132, 199, 0.35);
  transition: var(--transition);
}

.bio-text-content a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.bio-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bio-avatar {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: top center;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px -4px rgba(15, 43, 70, 0.18), 0 0 0 1px var(--border-color);
  transition: var(--transition);
}

.bio-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.28);
}

.bio-avatar-caption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.bio-avatar-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bio-avatar-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.15rem;
}

.bio-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  width: 100%;
}

.bio-link-btn.scholar-btn {
  background-color: #f0f9ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.bio-link-btn.scholar-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bio-link-btn.linkedin-btn {
  background-color: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}

.bio-link-btn.linkedin-btn:hover {
  background-color: #084e96;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.bio-link-btn svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
}

/* Bio Key Highlights Grid */
.bio-highlights {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.bio-highlights-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.stat-card {
  background: #fbfcfe;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bae6fd;
}

.stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   PhD Students Page Styling
   ========================================================================== */
.phd-header-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.phd-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.phd-stat-pill strong {
  color: var(--accent);
}

.phd-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.student-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.student-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  align-items: flex-start;
}

.student-grid.no-image {
  grid-template-columns: 1fr;
}

.student-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.student-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.student-number {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.student-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.student-dates {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.student-dates.ongoing {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.student-dates.completed {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border-color);
}

.student-thesis-title {
  background-color: #f8fafc;
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.5;
}

.student-thesis-title strong {
  color: var(--primary);
  font-weight: 600;
}

.student-pubs-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.student-pubs-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.student-pubs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.student-pub-item {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 1.15rem;
  position: relative;
}

.student-pub-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.student-pub-item strong {
  color: var(--text-main);
}

/* Accordion for More Publications */
.more-pubs-details {
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  overflow: hidden;
  transition: var(--transition);
}

.more-pubs-details[open] {
  border-color: #bae6fd;
  box-shadow: var(--shadow-sm);
}

.more-pubs-summary {
  padding: 0.6rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background-color: #f8fafc;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.more-pubs-summary:hover {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

.more-pubs-content {
  padding: 0.9rem 1rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* Student Photo / Portrait */
.student-photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.student-photo {
  width: 160px;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px -4px rgba(15, 43, 70, 0.15), 0 0 0 1px var(--border-color);
  background-color: #ffffff;
  transition: var(--transition);
}

.student-card:hover .student-photo {
  transform: scale(1.03);
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   Research Page Styling
   ========================================================================== */
.research-intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--accent);
}

.research-intro-lead {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-main);
  text-align: justify;
}

.research-topics-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.topic-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-hover);
}

.topic-header-block {
  padding: 1.75rem 2.25rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(to right, #ffffff, #f8fafc);
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent-hover);
  margin-bottom: 0.65rem;
}

.topic-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.topic-content-block {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.topic-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: justify;
}

.topic-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.topic-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.topic-tag-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.topic-media-frame {
  background-color: #fbfcfe;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.topic-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.topic-media-frame:hover .topic-img {
  transform: scale(1.015);
}

.topic-media-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topic-images-duo {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ==========================================================================
   Robotic Platforms Page Styling
   ========================================================================== */
.platforms-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.platforms-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.platforms-count-badge svg {
  color: var(--accent);
}

.platform-toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.platform-toggle-all-btn:hover {
  background-color: var(--accent-light);
  border-color: #93c5fd;
  color: var(--accent-hover);
}

.platforms-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.platform-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

/* Platform Accordion Summary */
.platform-accordion summary {
  list-style: none;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.platform-accordion summary::-webkit-details-marker {
  display: none;
}

.platform-summary-bar {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(to right, #ffffff, #f8fafc);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.platform-accordion[open] .platform-summary-bar {
  border-bottom-color: var(--border-color);
  background: linear-gradient(to right, #ffffff, #f0f7ff);
}

.platform-summary-main {
  flex: 1;
}

.platform-num-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-light);
  color: var(--accent-hover);
  margin-bottom: 0.5rem;
}

.platform-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin: 0;
}

.platform-toggle-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.platform-accordion summary:hover .platform-toggle-indicator {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.platform-toggle-indicator .icon-chevron {
  transition: transform 0.25s ease;
}

.platform-accordion[open] .platform-toggle-indicator .icon-chevron {
  transform: rotate(180deg);
}

.platform-accordion:not([open]) .text-less {
  display: none;
}

.platform-accordion[open] .text-more {
  display: none;
}

.platform-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeIn 0.25s ease;
}

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

.platform-desc-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-main);
  text-align: justify;
}

/* References Section */
.platform-references-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.platform-references-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platform-ref-item {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.platform-ref-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.platform-ref-item a:hover {
  color: var(--accent-hover);
}

/* Video & Media Frames */
.platform-media-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

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

.platform-media-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background-color: #ff0000;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-youtube:hover {
  background-color: #cc0000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.platform-image-frame {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #fbfcfe;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.platform-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.platform-image-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .student-grid {
    grid-template-columns: 1fr 150px;
    gap: 1.5rem;
  }

  .student-photo {
    width: 140px;
    height: 180px;
  }
  .bio-layout {
    grid-template-columns: 1fr 180px;
    gap: 1.75rem;
  }

  .bio-avatar {
    width: 160px;
    height: 160px;
  }

  .profile-card {
    grid-template-columns: 200px 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .student-photo-wrapper {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .student-photo {
    width: 140px;
    height: 175px;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-avatar-wrapper {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .bio-avatar {
    width: 150px;
    height: 150px;
  }
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    gap: 0.25rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.65rem 0.85rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .profile-image-wrapper {
    margin: 0 auto;
  }

  .profile-badge-row {
    justify-content: center;
  }

  .affiliation-item {
    justify-content: center;
    text-align: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .pub-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pub-meta-col {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

  .research-intro-card {
    padding: 1.5rem 1.25rem;
  }

  .topic-header-block {
    padding: 1.25rem 1.25rem;
  }

  .topic-content-block {
    padding: 1.5rem 1.25rem;
  }

  .topic-media-frame {
    padding: 0.75rem;
  }

  .platform-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
  }

  .platform-body {
    padding: 1.5rem 1.25rem;
  }

  .platform-heading {
    font-size: 1.15rem;
  }
}
