/* Sponge Computing Lab - Main Stylesheet */

html, body {
  height: 100%;
}

p {
  line-height: 1.5;
  text-align: justify;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #003366;
  padding-top: 100px; /* Add padding to account for fixed header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, #003366 0%, #0074bc 100%);
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.3);
  z-index: 1000;
  border-bottom: 3px solid #faa61a;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80px;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Add some visual enhancement to the overall header */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #faa61a, #ffb84d, #faa61a, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Add subtle animation to logo */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.left-section img {
  height: 70px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: float 4s ease-in-out infinite;
}

.left-section img:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

.lab-name {
  font-size: 1.6rem;
  font-weight: bold;
  color: #faa61a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.lab-name:hover {
  color: #ffb84d;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav#navbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav#navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 20px;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

nav#navbar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #faa61a, #ffb84d);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav#navbar a:hover {
  color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(250, 166, 26, 0.4);
  border-color: #faa61a;
}

nav#navbar a:hover::before {
  opacity: 1;
}

nav#navbar a.active {
  background: linear-gradient(45deg, #faa61a, #ffb84d);
  color: #003366;
  box-shadow: 0 4px 15px rgba(250, 166, 26, 0.3);
}

nav#navbar a.active::before {
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-toggle:hover {
  background: rgba(250, 166, 26, 0.2);
  border-color: #faa61a;
}

.menu-toggle div {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, white, #faa61a);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover div {
  background: linear-gradient(90deg, #faa61a, #ffb84d);
}

/* Main content styles - Updated for flexbox layout */
main {
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  margin-top: 0;
  flex: 1; /* This makes main content grow to fill available space */
}

/* Welcome/Home page specific styles */
.welcome-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  flex-wrap: wrap;
  margin-top: 0;
  flex: 1; /* Allow welcome container to grow */
}

.welcome-text {
  flex: 1;
  min-width: 300px;
}

.welcome-image {
  flex: 0 0 300px;
  max-width: 100%;
}

/* Footer styles - Updated to stick to bottom */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto; /* Push footer to bottom */
}

/* Link styles */
.link {
  color: #996600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Content page styles */
.content-section {
  margin-bottom: 2rem;
}

.content-section h2 {
  color: #003366;
  border-bottom: 2px solid #faa61a;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.content-section h3 {
  color: #003366;
  margin-top: 1.5rem;
}

/* Team member cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #faa61a;
}

.team-member h4 {
  color: #003366;
  margin-top: 0;
}

/* Publication list */
.publication-list {
  list-style: none;
  padding: 0;
}

.publication-list li {
  background: #f8f9fa;
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #faa61a;
}

.publication-title-link {
  font-weight: bold;
  color: #003366;
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.publication-title-link:hover {
  color: #faa61a;
  border-bottom-color: #faa61a;
}

.publication-title {
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.5rem;
}

/* Publication note styles for awards and special recognition */
.publication-note {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #34ce57);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin: 0.3rem 0 0.5rem 0;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: subtle-glow 2s ease-in-out infinite alternate;
}

/* Subtle glow animation for special notes */
@keyframes subtle-glow {
  0% {
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  }
  100% {
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.5);
  }
}

/* Alternative color schemes for different types of notes */
.publication-note.award {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #8b4513;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.publication-note.spotlight {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.publication-note.oral {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  box-shadow: 0 2px 8px rgba(155, 89, 182, 0.4);
}

.publication-authors {
  color: #666;
  margin-bottom: 0.5rem;
}

.publication-venue {
  font-style: italic;
  color: #996600;
}

/* Join page specific styles */
.position-card {
  background: #f8f9fa;
  padding: 2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 4px solid #faa61a;
}

.position-card h3 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 1rem;
}

.position-card ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.position-card li {
  margin: 0.5rem 0;
}

/* Research Page Specific Styles */
.sponge-analogy {
  background: linear-gradient(135deg, #003366 0%, #0074bc 100%);
  color: #faa61a;
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
  text-align: center;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(250, 166, 26, 0.3);
  line-height: 1.5;
  font-size: 1.15rem;
}

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

.research-area-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
  border-left: 4px solid #faa61a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.research-area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #faa61a, #ffb84d, #faa61a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.research-area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.15);
  border-left-color: #003366;
}

.research-area-card:hover::before {
  opacity: 1;
}

.area-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #faa61a, #ffb84d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 15px rgba(250, 166, 26, 0.3);
}

.area-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Make PNG white to show against orange background */
  transition: all 0.3s ease;
}

.research-area-card:hover .area-icon img {
  transform: scale(1.1);
  filter: brightness(0) invert(0.2); /* Darken on hover for contrast */
}

.research-area-card h3 {
  color: #003366;
  font-size: 1.4rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  text-align: center;
}

.area-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.sponge-connection {
  background: rgba(250, 166, 26, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #faa61a;
  margin: 1rem 0;
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
}

.exemplary-work {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.exemplary-work h4 {
  color: #003366;
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.work-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.work-link {
  background: #f8f9fa;
  color: #003366;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  text-align: center;
}

.work-link:hover {
  background: #003366;
  color: white;
  border-color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

/* Mobile Responsive for Research Page */
@media (max-width: 1024px) {
  .research-areas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .research-area-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .work-links {
    flex-direction: column;
  }
  
  .work-link {
    text-align: center;
  }
}

.application-process {
  margin: 2rem 0;
}

.application-step {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 4px solid #996600;
}

.application-step h4 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-email {
  font-size: 1.2rem;
  text-align: center;
  background: #003366;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.contact-email a {
  color: #faa61a;
  text-decoration: none;
  font-weight: bold;
}

.contact-email a:hover {
  text-decoration: underline;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 4px solid #faa61a;
  text-align: center;
}

.benefit-item h4 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 1rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.faq-item h4 {
  color: #003366;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
}

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #003366;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  /* Mobile adjustments for fixed header */
  body {
    padding-top: 90px; /* Slightly less padding on mobile */
  }
  
  nav#navbar {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #003366 0%, #0074bc 100%);
    position: fixed; /* Change to fixed positioning */
    right: 1rem;
    top: 90px; /* Position below the fixed header */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.4);
    border: 2px solid #faa61a;
    backdrop-filter: blur(20px);
    min-width: 220px;
    z-index: 999; /* Just below header */
  }

  nav#navbar.show {
    display: flex;
    animation: slideDown 0.3s ease;
  }

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

  nav#navbar a {
    margin: 0.5rem 0;
    text-align: center;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Ensure all mobile nav links have consistent styling */
  nav#navbar a,
  nav#navbar a.active {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
  }

  nav#navbar a:hover,
  nav#navbar a.active {
    background: linear-gradient(45deg, #faa61a, #ffb84d);
    color: #003366;
    border-color: #faa61a;
    transform: none; /* Remove the translateY on mobile */
  }

  .menu-toggle {
    display: flex;
  }

  .welcome-container {
    flex-direction: column;
  }

  .welcome-image {
    margin-top: 1rem;
    width: 100%;
  }

  main {
    padding: 1rem;
  }

  .welcome-container {
    padding: 1.5rem;
  }

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

  .research-areas {
    grid-template-columns: 1fr;
  }

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

  .position-card, .application-step, .contact-info {
    padding: 1.5rem;
  }
}

/* Recent News Section Styles */
.news-section {
  background: #f8f9fa;
  padding: 1rem 0;
  margin-top: 0;
}

.news-section .content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.news-section h2 {
  color: #003366;
  border-bottom: 2px solid #faa61a;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.6rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #faa61a;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
  border-left-color: #003366;
}

.news-date {
  font-size: 0.9rem;
  color: #996600;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-content {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.news-link {
  color: #faa61a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: #003366;
  text-decoration: none;
  transform: translateX(3px);
}

.news-archive {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.news-archive a {
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 24px;
  border: 2px solid #003366;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.news-archive a:hover {
  background: #003366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
}

/* Mobile responsive adjustments for news section */
@media (max-width: 768px) {
  .news-section {
    padding: 2rem 0;
    margin-top: 1rem;
  }
  
  .news-section .content-section {
    padding: 0 1rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .news-item {
    padding: 1.25rem;
  }
  
  .news-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Team Page Styles - Redesigned */

/* Principal Investigator Section */
.pi-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 2rem 0 2rem;
  margin: 2rem 0;
  position: relative;
}

.pi-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(0, 51, 102, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(250, 166, 26, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.pi-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.pi-photo {
  flex: 0 0 280px;
  position: relative;
}

.pi-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.15);
  border: 4px solid white;
  display: block;
}

.pi-photo-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px dashed #dee2e6;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.1);
}

.photo-icon {
  font-size: 4rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.pi-photo-placeholder p {
  color: #6c757d;
  font-weight: 500;
  margin: 0;
}

/* Hide placeholder when image loads successfully */
.pi-image:not([src*="placeholder"]) + .pi-photo-placeholder {
  display: none;
}

/* Show placeholder when image fails to load */
.pi-image[src*="placeholder"], 
.pi-image:not([src]),
img[src="images/pi-photo.jpg"] {
  display: none;
}

.pi-info {
  flex: 1;
  min-width: 0;
}

.pi-info h3 {
  font-size: 2.2rem;
  color: #003366;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.pi-title {
  font-size: 1.3rem;
  color: #faa61a;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.pi-affiliation {
  color: #666;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.pi-research, .pi-background, .pi-contact {
  margin-bottom: 2rem;
}

.pi-info h4 {
  color: #003366;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  border-bottom: 2px solid #faa61a;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.pi-research ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pi-research li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.5;
}

.pi-research li::before {
  content: '🔬';
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.pi-background p, .pi-contact p {
  color: #555;
  line-height: 1.6;
  margin: 0.0rem 0;
}

.pi-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Team Members Grid - New Design */
.team-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
  border-left: 4px solid #faa61a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.team-member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #faa61a, #ffb84d, #faa61a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.15);
  border-left-color: #003366;
}

.team-member-card:hover::before {
  opacity: 1;
}

.member-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem auto;
  position: relative;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #faa61a;
  display: block;
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed #dee2e6;
}

.member-photo .photo-icon {
  font-size: 2.5rem;
  color: #adb5bd;
  margin: 0;
}

.member-info {
  text-align: center;
}

.member-info h4 {
  color: #003366;
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.member-role {
  color: #faa61a;
  font-weight: 600;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.member-description {
  color: #555;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.member-link {
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 2px solid #003366;
  border-radius: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.member-link:hover {
  background: #003366;
  color: white;
  transform: translateY(-2px);
}

/* Recruitment Card Special Styling */
.recruitment-card {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.recruitment-card:hover {
  border-left-color: #28a745;
}

.recruitment-card .member-photo {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recruitment-icon {
  font-size: 3rem;
  margin: 0;
}

.recruitment-card .member-role {
  color: #28a745;
}

.recruitment-card .member-link {
  border-color: #28a745;
  color: #28a745;
}

.recruitment-card .member-link:hover {
  background: #28a745;
  color: white;
}

/* Alumni Section */
.alumni-list {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #faa61a;
}

.alumni-list p {
  color: #666;
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pi-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .pi-photo {
    flex: none;
    align-self: center;
    max-width: 250px;
  }
  
  .pi-image, .pi-photo-placeholder {
    height: 300px;
  }
  
  .pi-info h3 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .pi-title, .pi-affiliation {
    text-align: center;
  }
  
  .team-grid-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pi-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .team-member-card {
    padding: 1.5rem;
  }
  
  .pi-info h3 {
    font-size: 1.6rem;
  }
  
  .member-photo {
    width: 100px;
    height: 100px;
  }
}