.carousel .carousel-item {
  height: 500px;
}

.carousel-item img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  max-height: 500px;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* Modern color scheme and typography */
body { 
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2c3e50 !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand img {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: #495057 !important;
  padding: 0.75rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Enhanced main content area */
.main-content {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Member card image optimization */
.card-img-top img {
  height: 400px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
  border-radius: 15px 15px 0 0;
}

.bsb-hover-scale-up:hover {
  transform: scale(1.05);
}

/* Enhanced card styling */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem !important;
  background: rgba(255, 255, 255, 0.95);
}

.card-title {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1rem !important;
}

.card-text {
  flex: 1;
  line-height: 1.6;
  color: #6c757d;
}

.card-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-text a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Enhanced section headers */
.section-header {
  position: relative;
  margin-bottom: 3rem;
}

.section-header h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.2rem;
}

.section-header hr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 3px;
  border: none;
  border-radius: 2px;
}

/* Enhanced footer */
.footer {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.footer .text-muted {
  color: #6c757d !important;
  font-weight: 500;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .main-content {
    border-radius: 15px;
    margin: 1rem;
  }
}

/* Animation improvements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }
}