/* Custom CSS for PaperMod theme - Red fixed navigation */

/* -------------------------------------------------- */
/* CSS Variables for Publication Cards               */
/* -------------------------------------------------- */
:root {
  /* Publication card background colors - whitish with dark text */
  --pub-card-bg-start: #f8f9fa;
  --pub-card-bg-end: #ffffff;
  --pub-card-media-bg: #f1f3f5;
  
  /* Publication card text colors - dark for light background */
  --pub-card-text-primary: #1a1a1a;
  --pub-card-text-secondary: #2c3e50;
  --pub-card-text-muted: #555555;
  --pub-card-text-very-muted: #777777;
  
  /* Publication card accent colors */
  --pub-card-accent: #dc2626;
  --pub-card-accent-gold: #f59e0b;
  
  /* Publication card border colors */
  --pub-card-border: rgba(0, 0, 0, 0.1);
  --pub-card-border-hover: rgba(220, 38, 38, 0.3);
  --pub-card-border-thick: rgba(0, 0, 0, 0.15);
  
  /* Publication card hover effects */
  --pub-card-hover-overlay: rgba(220, 38, 38, 0.05);
  --pub-card-hover-bg: rgba(220, 38, 38, 0.03);
  --pub-card-hover-link-bg: rgba(220, 38, 38, 0.1);
  
  /* Publication card shadows */
  --pub-card-shadow: rgba(0, 0, 0, 0.08);
  --pub-card-shadow-hover: rgba(0, 0, 0, 0.12);
  --pub-card-shadow-media: rgba(0, 0, 0, 0.15);
  --pub-card-shadow-img: rgba(0, 0, 0, 0.2);
  
  /* Publication section colors */
  --pub-year-text: #111827;
  --pub-year-gradient-start: #dc2626;
  --pub-year-gradient-end: #ef4444;
  --pub-header-text: #2c3e50;
  --pub-header-desc: #4b5563;
  --pub-empty-text: #6b7280;
  --pub-tag-bg: rgba(220, 38, 38, 0.1);
  --pub-tag-text: #b91c1c;
  
  /* Publication link buttons */
  --pub-link-bg: rgba(220, 38, 38, 0.08);
  --pub-link-bg-hover: rgba(220, 38, 38, 0.15);
}

/* Remove default margins and padding to make header start from very top */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove margin from the main wrapper */
#main,
.main,
.wrapper,
.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Header styling - grey/white background with transparency and fixed positioning */
.header,
header,
.nav header *{
  background: rgba(220, 220, 220, 0.7) !important; /* Light grey/white with transparency */
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  backdrop-filter: blur(6px) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 20px !important;
  box-sizing: border-box !important;
}

/* Ensure nav content spans full width */
.nav,
.header .nav,
header .nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  /*background: rgba(220, 220, 220, 0.6) !important; /* Light grey/white with transparency */
}

/* Menu styling to fill remaining space */
#menu,
.menu {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
  list-style: none !important;
  margin: 0 200px 0 0 !important; /* Move menu to the left with right margin */
  padding: 0 !important;
  /*background: rgba(220, 220, 220, 0.6) !important; /* Light grey/white with transparency */
  flex: 1 !important;
}

/* Menu items styling */
#menu li,
.menu li {
  margin: 0 !important;
  padding: 0 !important;
}

#menu li a,
.menu li a {
  display: block !important;
  padding: 15px 20px !important;
  color: #2c3e50 !important; /* Dark blue text */
  text-decoration: none !important;
  font-size: 16px !important; /* Bigger text */
  font-weight: 600 !important; /* Bold text */
}

/* Active page styling - rounded corners, no harsh lines */
#menu li a.active,
.menu li a.active,
#menu li a[aria-current="page"],
.menu li a[aria-current="page"] {
  background: #2c3e50 !important; /* Dark blue background */
  color: #ffffff !important; /* White text */
  border-radius: 8px !important; /* Rounded corners instead of sharp squares */
  border: none !important; /* Remove any borders */
  box-shadow: none !important; /* Remove any box shadows */
}

/* Add padding to body to prevent content from hiding under fixed header */
body {
  padding-top: 60px;
}

/* Style navigation links for better contrast on grey/white background */
.header nav a,
.header .nav a,
.logo a,
header a {
  color: #2c3e50 !important; /* Dark blue text */
  font-size: 16px !important; /* Bigger text */
  font-weight: 600 !important; /* Bold text */
}

/* Hide dark/light mode toggle */
.theme-toggle,
.dark-toggle,
#theme-toggle,
button[aria-label*="theme"],
button[title*="theme"] {
  display: none !important;
}

/* Hide site title - keep logo visible but hide text */
.site-title,
.header-title,
h1.site-title,
.logo-text,
.header .logo-text,
.header h1,
.header .site-name,
header .logo-text,
header h1,
header .site-name,
.logo .logo-text,
.logo h1,
#logo-text,
.brand-text,
.site-brand {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Make sure logo container and image remain visible */
.logo,
.header-logo,
.logo img,
.header-logo img,
.logo a,
.header .logo,
header .logo {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Logo styling */
.logo,
.header-logo {
  display: flex !important;
  align-items: center !important;
  height: 80px !important;
  margin: 0 auto !important; /* Center the logo */
  position: absolute !important;
  left: 24% !important;
  transform: translateX(-50%) !important;
}

.logo img,
.header-logo img {
  height: 80px !important;
  width: auto !important;
  max-height: 80px !important;
}

/* Hero Banner Styling */
.hero-banner {
  position: relative;
  width: 100vw;
  /* Full viewport width */
  height: 500px;
  overflow: hidden;
  margin-top: 0;
  margin-left: calc(-50vw + 50%);
  /* Center and extend to full width */
  margin-right: calc(-50vw + 50%);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps the image covering the full area */
  object-position: -20px -280px; /* Try: top center, bottom center, left center, right center */
  display: block;
  transform: scale(1.0); /* Keep at normal scale */
}

.banner-text-overlay {
  position: absolute;
  top: 60%;
  /* You can adjust this - 50% is center, 30% is higher, 70% is lower */
  left: 3%;
  /* You can adjust this - 50% is center, 20% is left, 80% is right */
  /* top: 80%; You can adjust this - 50% is center, 30% is higher, 70% is lower */
  /* left: 26%; You can adjust this - 50% is center, 20% is left, 80% is right */
  /* transform: translate(10%, 110%); */
  z-index: 10;
}

.announcement-box {
  background: rgba(220, 220, 220, 0.8);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  max-width: 800px;
  min-width: 550px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 20px;
  min-height: 100px;
}

.announcement-box h3 {
  color: #dd3535;
  font-size: 26px;
  margin: 8px 0 6px 0;
  font-weight: bold;
}

.announcement-box h3 .icon-symbol {
  margin-right: 10px;
  font-style: normal;
}

.announcement-box p {
  color: #2c3e50;
  font-size: 20px;
  line-height: 1.5;
  margin: 4px 0 6px 0;
}

.announcement-box p:last-child {
  margin-bottom: 4px;
}

/* Announcement content wrapper */
.announcement-content {
  flex: 1;
}

/* Announcement action buttons */
.announcement-actions {
  margin: 0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.apply-btn, .contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.apply-btn {
  background-color: #2d4e94;
  color: #ffffff !important;
  border-color: #2d4e94;
  text-decoration: none !important;
}

.apply-btn:hover {
  background-color: #203b75;
  border-color: #203b75;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.contact-btn {
  background-color: transparent;
  color: #2c3e50;
  border-color: #2c3e50;
}

.contact-btn:hover {
  background-color: #2c3e50;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

.announcement-box a {
  color: #007bff;
  text-decoration: underline;
}

.announcement-box a:hover {
  color: #0056b3;
}

/* Main content spacing */
.main-content {
  max-width: 1400px;
  padding: 40px 40px;
  margin: 0 auto;
}

/* Custom highlighting styles */
.highlight {
  background-color: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
}

.red-highlight {
  background-color: #ffcdd2;
  color: #d32f2f;
  padding: 2px 4px;
  border-radius: 3px;
}

.blue-highlight {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Professional Academic Fonts - Now loaded via HTML head for better performance */

/* Base typography */
body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #2c3e50;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  /* border-bottom: 2px solid #ff0000; */
  /* padding-bottom: 0.5rem; */
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  color: #ff0000;
}

/* Paragraph text */
p {
  margin-bottom: 1rem;
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

/* Links */
a {
  color: #ff0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #cc0000;
  text-decoration: underline;
}

/* Force email link color - highest specificity */
a[href^="mailto:"] {
  color: #87CEEB !important;
}

a[href^="mailto:"]:hover {
  color: #4682B4 !important;
}

/* Contact icons styling */
.contact-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  justify-content: center;
}

.contact-link {
  color: #87CEEB !important;
  font-size: 2rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* background-color: rgba(135, 206, 235, 0.1); */
}

.contact-link:hover {
  color: #5B9BD5 !important;
  background-color: rgba(135, 206, 235, 0.2);
  transform: translateY(-2px);
}

/* Legacy Font Awesome support (keeping for compatibility) */
.contact-link i,
.contact-link .fa,
.contact-link .fas,
.contact-link .far,
.contact-link .fab {
  color: #87CEEB !important;
  font-style: normal !important;
}

.contact-link:hover i,
.contact-link:hover .fa,
.contact-link:hover .fas,
.contact-link:hover .far,
.contact-link:hover .fab {
  color: #5B9BD5 !important;
}

/* Force color inheritance for all icon states */
.contact-link * {
  color: inherit !important;
}

/* Ensure proper spacing in contact icons */
.contact-icons .contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* List styling */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #444;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Code and technical text */
code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #ff0000;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* Strong and emphasis */
strong,
b {
  font-weight: 600;
  color: #2c3e50;
}

em,
i {
  font-style: italic;
  color: #555;
}

/* Welcome Box Styling */
.welcome-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 40px;
  margin: 10px 0 30px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.welcome-box h2 {
  color: #ff0000;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  border-bottom: none;
  padding-bottom: 0;
}

.welcome-box h1 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #ff0000;
  text-align: center;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-box h2 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #2c3e50;
  text-align: center;
  margin: 0 0 40px 0;
  letter-spacing: 1px;
  font-style: italic;
}

/* Two Column Layout */
.welcome-box .two-columns {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

.welcome-box .left-column {
  flex: 3;
  padding-right: 10px;
  box-sizing: border-box;
}

.welcome-box .right-column {
  flex: 1;
  min-width: 330px;
  box-sizing: border-box;
}

/* Icon paragraph styling for left column */
.left-column .icon-paragraph {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 15px;
}

.left-column .icon-paragraph i {
  color: #ff0000;
  font-size: 1.5rem;
  margin-top: 5px;
  min-width: 25px;
  flex-shrink: 0;
}

.left-column .icon-paragraph .icon {
  font-size: 2.5rem;
  margin-top: 3px;
  min-width: 40px;
  flex-shrink: 0;
  text-align: center;
}

.left-column .icon-paragraph .text-content {
  flex: 1;
}

.left-column .icon-paragraph .text-content p {
  margin-bottom: 1rem;
}

.left-column .icon-paragraph .text-content ul {
  margin-top: 0.5rem;
}

/* Left column specific text sizing */
.left-column p {
  font-size: 18px;
}

.left-column li {
  font-size: 16px;
}

/* Profile Section */
.profile-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*justify-content: flex-start;*/
  align-items: center;
  /*max-height: 600px;*/
  /*overflow-y: auto;*/
}

.profile-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 10px;
  border: none;
}

/* Photo display variants */

/* Data attribute selectors for mixed photo handling */
.team-photo[data-fit="cover"] {
  object-fit: cover;
}

.team-photo[data-fit="contain"] {
  object-fit: contain;
}


.profile-info h3 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 1.39rem;
  /* border-top: 1px solid #2c3e50; */
  padding-top: 2px;
}

.profile-info .title {
  color: #2c3e50;
  font-weight: 450;
  font-size: 1.25rem;
  margin-bottom: 2px;
  margin-top: 8px;
}

.profile-info .title:first-of-type {
  margin-top: 0;
}

.profile-info .affiliation {
  color: #666;
  margin-bottom: 18px;
  margin-top: 2px;
  line-height: 1.35;
}

.profile-info .affiliation a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.profile-info .affiliation a:hover {
  text-decoration: underline;
}

.profile-info .title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.profile-info .title a:hover {
  text-decoration: underline;
}

.profile-info .email {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.profile-section .profile-info .email a {
  color: #87CEEB !important;
  text-decoration: none !important;
  font-size: 1.8rem !important;
}

.profile-section .profile-info .email a:hover {
  color: #4682B4 !important;
  text-decoration: none !important;
  transform: scale(1.1) !important;
  transition: all 0.3s ease !important;
}

/* Additional fallback with even higher specificity */
.right-column .profile-section .profile-info .email a {
  color: #87CEEB !important;
}

.right-column .profile-section .profile-info .email a:hover {
  color: #4682B4 !important;
}

.credentials {
  text-align: left;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.credentials ul {
  margin: 10px 0;
  padding-left: 20px;
}

.credentials li {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .welcome-box {
    padding: 25px;
    margin: 10px 0 20px 0;
  }

  .two-columns {
    flex-direction: column;
    gap: 30px;
  }

  .left-column {
    padding-right: 0;
  }

  .right-column {
    min-width: auto;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

/* ================================================== */
/* GENERIC ENTRY LAYOUT (shared by all list pages)   */
/* ================================================== */

/* Page container */
.entry-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

/* Page header */
.entry-header {
  text-align: center;
  margin-bottom: 48px;
}

.entry-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: var(--pub-header-text);
}

.entry-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--pub-header-desc);
  font-size: 1.1rem;
}

/* Year-based sections */
.entry-section {
  margin-bottom: 72px;
}

.entry-year {
  margin: 0 0 32px;
  font-size: 2.2rem;
  color: var(--pub-year-text);
  position: relative;
  padding-bottom: 14px;
}

.entry-year::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 4px;
  background: linear-gradient(90deg, var(--pub-year-gradient-start), var(--pub-year-gradient-end));
  border-radius: 999px;
}

/* Entry list - full width layout */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Entry card */
.entry-card {
  background: linear-gradient(150deg, var(--pub-card-bg-start), var(--pub-card-bg-end));
  border-radius: 8px;
  border: 1px solid var(--pub-card-border);
  box-shadow: 0 6px 16px var(--pub-card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.entry-card:hover {
  box-shadow: 0 10px 24px var(--pub-card-shadow-hover);
  border-color: var(--pub-card-border-hover);
}

/* Card inner layout */
.entry-card-inner {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 0;
}

/* Media (image) section */
.entry-card-media {
  position: relative;
  overflow: hidden;
  background: var(--pub-card-media-bg);
  flex: 0 0 350px;
  border-radius: 6px;
}

.entry-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content section */
.entry-card-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
}

/* Title */
.entry-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--pub-card-text-secondary);
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--pub-card-accent);
  text-decoration: underline;
}

/* Meta information */
.entry-meta {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pub-card-text-muted);
}

.entry-meta p {
  margin: 0;
}

/* Description */
.entry-description {
  color: var(--pub-card-text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.entry-description p {
  margin: 0;
}

/* Links */
.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--pub-link-bg-hover);
  color: var(--pub-card-text-secondary) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.entry-link:hover {
  background: var(--pub-card-hover-link-bg);
  color: var(--pub-card-text-secondary) !important;
  text-decoration: none;
}

/* Empty state */
.entry-empty {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pub-empty-text);
}

/* Typography helpers */
.entry-card-content strong,
.entry-card-content b {
  color: var(--pub-card-text-secondary);
}

.entry-card-content em,
.entry-card-content i {
  color: var(--pub-card-accent);
}

.entry-card-content a {
  color: var(--pub-card-text-secondary);
}

.entry-card-content a:hover {
  color: var(--pub-card-accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .entry-card-inner {
    flex-direction: column;
  }

  .entry-card-media {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    height: 260px;
  }

  .entry-card-content {
    padding: 24px 24px 28px;
  }
}

@media (max-width: 768px) {
  .entry-page {
    padding: 48px 16px 80px;
  }

  .entry-header h1 {
    font-size: 2.2rem;
  }

  .entry-year {
    font-size: 1.75rem;
  }

  .entry-card-content {
    padding: 22px 20px 26px;
  }
}

/* ================================================== */
/* PUBLICATION-SPECIFIC STYLES                        */
/* ================================================== */

/* Publications now use flex column layout like research/events */
.publication-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Publication cards override to use grid + add subtle hover effect */
.publication-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--pub-card-hover-overlay), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

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

.publication-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 5px; /* Reduced from 28px to 5px */
  padding: 5px; /* Reduced from 28px to 5px */
}

.publication-card-media {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 28px var(--pub-card-shadow-media);
  border: 2px solid var(--pub-card-border-thick);
  background: var(--pub-card-media-bg);
  min-height: 100px;
  flex: 0 0 350px;
}

.publication-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.publication-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced from 14px to 10px */
  padding: 0;
  flex: 1 1 auto;
}

.publication-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--pub-card-text-secondary);
}

.publication-title a {
  color: inherit;
  text-decoration: none;
}

.publication-title a:hover {
  color: var(--pub-card-accent);
  text-decoration: underline;
}

.publication-authors,
.publication-venue {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--pub-card-text-muted);
}

.publication-authors p,
.publication-venue p {
  margin: 0;
}

/* Author name links styling - very high specificity */
.publication-card .publication-card-inner .publication-card-content .publication-authors a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.publication-card .publication-card-inner .publication-card-content .publication-authors a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--pub-link-bg-hover);
  color: var(--pub-card-text-secondary) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  transition: background 0.3s ease, color 0.3s ease;
}

.publication-link:hover {
  background: var(--pub-card-hover-link-bg);
  color: var(--pub-card-text-secondary) !important;
  text-decoration: none;
}

/* Publication-specific typography */
.publication-card-content strong,
.publication-card-content b {
  color: var(--pub-card-text-secondary);
}

.publication-card-content em,
.publication-card-content i {
  color: var(--pub-card-accent);
}

.publication-card-content a {
  color: var(--pub-card-text-secondary);
}

.publication-card-content a:hover {
  color: var(--pub-card-accent);
}

.publication-card-inner strong a,
.publication-card-inner strong,
.publication-card-inner a {
  color: var(--pub-card-text-secondary);
}

.publication-card-inner strong a:hover,
.publication-card-inner a:hover {
  color: var(--pub-card-accent);
}

.publication-card-inner strong>a {
  display: inline;
  padding: 0;
  background: none;
  border-radius: 0;
  letter-spacing: normal;
  text-transform: none;
  font-size: 1.25rem;
  margin-right: 0;
  margin-bottom: 0;
}

.publication-card-inner strong>a:hover {
  color: var(--pub-card-accent);
  text-decoration: underline;
}

.publication-card-inner strong i {
  font-style: normal;
  font-size: 0.85rem;
  margin-left: 6px;
  color: var(--pub-card-accent-gold);
}

.publication-empty {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pub-empty-text);
}

@media (max-width: 1024px) {
  .publication-card-inner {
    flex-direction: column;
    padding: 24px;
  }

  .publication-card-media {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    height: 260px;
  }
}

@media (max-width: 640px) {
  .publication-card-inner {
    flex-direction: column;
    padding: 22px 20px;
  }

  .publication-card-media {
    height: auto;
  }
}

/* ================================================== */
/* RESEARCH-SPECIFIC STYLES                           */
/* ================================================== */

.research-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: stretch;
}

.entry-card.research-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  width: 100%;
  overflow: visible;
}

.entry-card.research-card:hover {
  transform: none;
  box-shadow: none;
}

/* Default layout: Image left, text right (odd entries) */
.research-card-inner {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  background: transparent;
  padding: 0;
}

/* Alternating layout: Image right, text left (even entries) */
.research-list li:nth-child(even) .research-card-inner {
  flex-direction: row-reverse;
}

.research-card-media {
  position: relative;
  flex: 0 0 600px;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  background-color: white; /* White background for contain mode */
}

.research-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Default: show full image */
  display: block;
}



/* Data attribute selectors for individual image control */
.research-card-media[data-fit="cover"] img {
  object-fit: cover; /* Fill container, may crop */
}

.research-card-media[data-fit="contain"] img {
  object-fit: contain; /* Show full image, may have empty space */
}



.research-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.research-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2563eb;
}

.research-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #2563eb;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
}

.research-title {
  font-size: 2rem;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0 0 16px 0;
  font-weight: 600;
}

.research-description {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.7;
}

.research-description p {
  margin: 0 0 16px 0;
}

.research-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .research-list {
    gap: 35px;
  }

  .research-card-inner {
    gap: 40px;
    padding: 0;
  }

  .research-card-media {
    flex: 0 0 500px;
    height: 350px;
  }

  .research-title {
    font-size: 1.8rem;
  }

  .research-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .research-list {
    gap: 30px;
  }

  /* Stack vertically on mobile - reset alternating layout */
  .research-card-inner,
  .research-list li:nth-child(even) .research-card-inner {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }

  .research-card-media {
    flex: none;
    height: 280px;
  }

  .research-title {
    font-size: 1.6rem;
  }

  .research-description {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .research-card-inner {
    padding: 0;
    gap: 24px;
  }

  .research-card-media {
    height: 240px;
  }

  .research-title {
    font-size: 1.4rem;
  }
}

/* ================================================== */
/* EVENT-SPECIFIC STYLES                              */
/* ================================================== */

/* Events use generic entry classes, with specific carousel styling */
.event-card {
  /* Uses same background as generic entry-card */
  border-radius: 12px;
}

/* Carousel component */
.event-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pub-card-media-bg);
  min-height: 260px;
  flex: 0 0 380px;
}

.event-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.event-carousel-slide.is-active {
  opacity: 1;
}

.event-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel controls */
.event-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.event-carousel-control:hover {
  background: rgba(15, 23, 42, 0.75);
}

.event-carousel-control span {
  font-size: 1.8rem;
  line-height: 1;
  pointer-events: none;
}

.event-carousel-control.prev {
  left: 18px;
}

.event-carousel-control.next {
  right: 18px;
}

/* Linked publications */
.event-linked-publications {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-linked-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pub-card-text-muted);
}

.event-linked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-linked-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.event-linked-list a:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #2563eb;
}

/* Event Grid Layout */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.event-grid-item {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Large Event Carousel */
.event-carousel-large {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--pub-card-media-bg);
}

.event-carousel-large .event-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.event-carousel-large .event-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.event-carousel-large .event-carousel-slide.is-active {
  opacity: 1;
}

.event-carousel-large .event-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Event Content */
.event-content {
  padding: 24px;
  flex: 1;
}

.event-title {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.event-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.event-date {
  color: #007bff;
}

.event-location {
  color: #666;
}

.event-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

.event-description p {
  margin: 0 0 12px 0;
}

.event-description p:last-child {
  margin-bottom: 0;
}

/* Simple quoted speech styling */
.event-description .quote {
  font-style: italic;
  margin: 16px 0;
}

.event-description .quote p {
  margin: 0;
}

.event-description .quote-author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95em;
}

/* Simple blockquote styling as fallback */
.event-description blockquote {
  font-style: italic;
  margin: 16px 0;
  padding-left: 20px;
  border-left: 3px solid #ddd;
}

.event-description blockquote p {
  margin: 0;
}

/* Event responsive */
@media (max-width: 1200px) {
  .event-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }
  
  .event-carousel-large {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .event-carousel-large {
    height: 200px;
  }
  
  .event-content {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .event-carousel-control {
    width: 38px;
    height: 38px;
  }

  .event-carousel-control.prev {
    left: 12px;
  }

  .event-carousel-control.next {
    right: 12px;
  }
}

/* ================================================== */
/* FONT AWESOME ICON SUPPORT                          */
/* ================================================== */

/* Ensure Font Awesome fonts are properly loaded */
.fas, .far, .fab, .fa {
  font-family: "Font Awesome 5 Free", "FontAwesome", "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  font-style: normal;
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Specific support for solid icons */
.fas {
  font-family: "Font Awesome 5 Free", "FontAwesome", "Font Awesome 6 Free";
  font-weight: 900;
}

/* Brand icons */
.fab {
  font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands";
  font-weight: 400;
}

/* Regular icons */
.far {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 400;
}


/* Call for students paragraph styling */
.call-for-students .highlight-words{
  color: #dc2626;
  font-size: 1.2em;
  font-weight: bold;
}

.call-for-students .highlight-sentence {
  color: #2a78e6;
  font-size: 1.2em;
  font-weight: bold;
}

.call-for-students .highlight-join-us {
  color: #08c589;
  font-size: 1.2em;
  font-weight: bold;
}

.call-for-students .highlight-join-us:hover {
  color: #059669;
  text-decoration: none;
  text-decoration: underline;
}

/* News Section Styling - Simple text lines */
.news-section {
  width: 100%;
  max-width: 1400px; /* Same as main-content max-width */
  margin: 40px 0;
  padding: 0;
}

.news-section h2 {
  color: #2c3e50; /* Dark blue color */
  text-align: left; /* Left aligned */
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: none;
  padding-bottom: 0;
}

/* News content container with fixed height and scroll */
.news-content {
  height: 240px; /* Fixed height */
  overflow-y: auto; /* Enable vertical scrolling */
  padding-right: 10px; /* Space for scrollbar */
}

/* News items with fixed date width */
.news-item {
  display: flex;
  margin-bottom: 8px;
  line-height: 1.25;
}

.news-date {
  color: #444;
  font-size: 18px;
  font-weight: bold;
  width: 140px; /* Fixed width for dates */
  flex-shrink: 0; /* Prevent shrinking */
}

.news-text {
  color: #444;
  font-size: 18px;
  flex: 1; /* Take remaining space */
}

/* Custom scrollbar styling for news content */
.news-content::-webkit-scrollbar {
  width: 8px;
}

.news-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.news-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive design for news section */
@media (max-width: 768px) {
  .news-section {
    margin: 30px 0;
  }
  
  .news-content {
    height: 350px; /* Slightly smaller on mobile */
  }
}

/* Company Logos Section Styling */
.logos-section {
  width: 100%;
  max-width: 1400px; /* Same as main-content max-width */
  margin: 0px 0 40px 0;
  padding: 0;
}

.logos-section h2 {
  color: #2c3e50; /* Dark blue color, same as news section */
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  border-bottom: none;
  padding-bottom: 0;
}

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 0px 0;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.partner-logo {
  max-height: 100px;
  max-width: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
}

/* Responsive design for logos section */
@media (max-width: 768px) {
  .logos-section {
    margin: 40px 0 30px 0;
  }
  
  .logos-container {
    gap: 20px;
    padding: 15px 0;
  }
  
  .partner-logo {
    max-height: 50px;
    max-width: 120px;
  }
  
  .logo-item {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  .logos-container {
    gap: 15px;
  }
  
  .partner-logo {
    max-height: 40px;
    max-width: 100px;
  }
}

/* Page Header Styling for Research, Publication, Event, Join Us, and Team pages */
.entry-page.research-page .entry-header,
.entry-page.publication-page .entry-header,
.entry-page.event-page .entry-header,
.entry-page.joinus-page .entry-header,
.entry-page.team-page .entry-header {
  margin-top: 80px;
}

.entry-page.research-page .entry-header h2,
.entry-page.publication-page .entry-header h2,
.entry-page.event-page .entry-header h2,
.entry-page.joinus-page .entry-header h2,
.entry-page.team-page .entry-header h2 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: 400;
  color: #2c3e50;
  letter-spacing: 1px;
}

/* Join Us page specific styling */
.entry-page.joinus-page h3 {
  color: #2c3e50; /* Change this to your desired color */
}

/* Funding type styling - different color, custom size */
.funding-type {
  color: #0033ff; /* Blue color - change this to your preferred color */
  font-size: 1.2rem; /* Set font size - change this to your desired size */
}

.funding-type strong,
.funding-type b {
  font-weight: normal; /* Remove bold formatting */
  color: inherit; /* Inherit the color from parent */
}

/* Team Row Styling - Horizontal grid layout */
.team-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center; /* Center each row */
}

/* Team Member Styling - Vertical card layout for grid */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 290px;
  height: 360px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* Photo display variants */

/* Data attribute selectors for mixed photo handling */
.team-photo[data-fit="cover"] {
  object-fit: cover;
}

.team-photo[data-fit="contain"] {
  object-fit: contain;
}


.team-info {
  width: 100%;
}

.team-info h3 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}

.team-title {
  color: #2c3e50;
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.team-email {
  color: #666;
  font-size: 2rem;
  margin: 0;
}

.team-email a {
  color: #007bff;
  text-decoration: none;
}

.team-email a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Team supervisor information - inline with email */
.team-supervisor {
  color: #666;
  font-size: 1.3rem;
  margin-left: 10px;
  font-style: italic;
  display: inline;
}

.team-supervisor a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.team-supervisor a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Team member card for lists (without photo) */
.team-member-list {
  justify-content: flex-start;
  text-align: left;
  padding: 18px;
  height: auto;
}

.team-member-list .team-info {
  width: 100%;
  text-align: center;
}

.team-member-list h3 {
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 1.5rem;
}

.team-member-list .team-title {
  margin: 0 0 8px 0;
  font-size: 1.4rem;
}

.student-list {
  text-align: center;
  margin: 0;
  padding: 0;
}

.student-list p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 1px 0;
  padding: 1px 0;
}

/* Team Links Container */
.team-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0;
}

.team-link {
  color: #007bff;
  text-decoration: none;
  font-size: 2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* background-color: rgba(0, 123, 255, 0.1); */
}

.team-link:hover {
  color: #0056b3;
  /* background-color: rgba(0, 123, 255, 0.2); */
  transform: translateY(-2px);
}

/* LinkedIn icon specific styling */

.team-link:hover .fab.fa-linkedin,
.team-link:hover .fab.fa-linkedin-in {
  color: #005885 !important; /* Darker LinkedIn blue on hover */
}

/* Alternative fallback - if Font Awesome completely fails, show text */
.team-link .fab.fa-linkedin-in:empty::after,
.team-link .fab.fa-linkedin:empty::after {
  content: "in";
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: bold;
  font-size: 2rem;
  color: #003cb5;
}

/* Responsive design for team members */
@media (max-width: 1200px) {
  .team-row {
    gap: 15px;
  }
  
  .team-member {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .team-row {
    justify-content: center;
    gap: 15px;
  }
  
  .team-member {
    width: 160px;
    padding: 15px;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .team-info h3 {
    font-size: 1.2rem;
  }
  
  .team-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .team-row {
    flex-direction: column;
    align-items: center;
  }
  
  .team-member {
    width: 100%;
    max-width: 200px;
  }
}
