/* General styles */
body {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.3rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #555;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007bff;
}

/* Secondary nav bar below header */
.navbar-secondary {
  background-color: #f1f5f9;
  border-top: 2px solid #007bff;
  box-shadow: inset 0 -2px 0 #007bff;
}

.navbar-secondary .nav-link {
  color: #007bff;
  font-weight: 600;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-secondary .nav-link:hover {
  background-color: #e3f2fd;
}

/* Footer styles */
.footer {
  background-color: #f8f9fa;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* Page Header */
.page-header {
  padding: 1.8rem 0;
  border-bottom: 1px solid #eaeaea;
  margin-bottom: 1.5rem;
}

/* Slider styles */
#homepageSlider {
  max-height: 350px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

#homepageSlider .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 350px;
}

/* Landing sections text and image alternating */
.landing-section {
  margin-bottom: 2.5rem;
}

.landing-section .text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-section img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 250px;
}

/* Content Cards: compact and small for large lists */
.content-card {
  margin-bottom: 0.6rem;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-radius: 6px;
  background: white;
  transition: box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  font-size: 0.85rem;
  cursor: default;
}

.content-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.content-card h5 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card p {
  font-size: 0.8rem;
  color: #555;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* limit to 3 lines */
  -webkit-box-orient: vertical;
}

/* Responsive smaller padding and font on mobile */
@media (max-width: 576px) {
  .content-card {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  .content-card h5 {
    font-size: 0.9rem;
  }
  .content-card p {
    -webkit-line-clamp: 2;
  }
}

/* Buttons */
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

/* Misc */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility */
.mt-auto {
  margin-top: auto !important;
}

.shadow-top {
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1);
}
.table-responsive {
  max-height: 500px;
  overflow-y: auto;
}

.table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

/* Search input styling */
#searchInput {
  max-width: 300px;
  margin-bottom: 1rem;
}
.toast-container {
  max-width: 400px;
  animation: fadeSlideIn 0.5s ease-in-out;
}

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

