
/* Base styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #1e293b;
  line-height: 1.5;
  background-color: #f8fafc;
}

/* Custom color variables */
:root {
  --lamp-blue: #0056b3;
  --lamp-light-blue: #3b82f6;
  --lamp-dark-blue: #1e3a8a;
  --lamp-green: #16a34a;
}

/* Color classes */
.text-lamp-blue {
  color: var(--lamp-blue);
}

.bg-lamp-blue {
  background-color: var(--lamp-blue);
}

.text-lamp-light-blue {
  color: var(--lamp-light-blue);
}

.bg-lamp-light-blue {
  background-color: var(--lamp-light-blue);
}

.text-lamp-dark-blue {
  color: var(--lamp-dark-blue);
}

.bg-lamp-dark-blue {
  background-color: var(--lamp-dark-blue);
}

/* Navigation */
.nav-links a {
  position: relative;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--lamp-blue);
}

/* Tab styling */
.tab-trigger {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  background-color: #f3f4f6;
}

.tab-trigger:hover {
  background-color: #e5e7eb;
}

.tab-trigger.tab-active {
  background-color: var(--lamp-blue);
  color: white;
}

/* Publication styling */
.publication-list {
  display: none;
}

.publication-list.active {
  display: block;
}

/* Gallery specific styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

/* Additional utility classes */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
  }
}

/* Fix scrollbar styling for Firefox */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #bfdbfe transparent;
}

/* Fix scrollbar styling for Chrome, Edge, and Safari */
.scrollbar-thin::-webkit-scrollbar {
  width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: #bfdbfe;
  border-radius: 20px;
  border: 3px solid transparent;
}

/* Facilities page specific styling */
.facility-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.facility-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* Team page specific styling */
.team-member-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.team-member-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-updates-scroll {
  height: 340px;
  overflow-y: auto;
  padding-right: 5px;
}

.profile-image {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}

/* Mobile menu styling */
#mobile-menu {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Header styling */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Fix for mobile menu toggle */
.mobile-menu-toggle {
  cursor: pointer;
}

/* Utility classes for cards */
.card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Fix for links in cards */
.card a {
  color: inherit;
  text-decoration: none;
}

/* Additional spacing utilities */
.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}
