.ibile-profiles-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.ibile-profiles-table th,
.ibile-profiles-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.ibile-profiles-table th {
  background-color: #f5f5f5;
  cursor: pointer;
}

.ibile-profiles-filters {
  margin-bottom: 30px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
}

.filters-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-item {
  flex: 1;
  min-width: 100px;
}

.filter-item select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

.filter-item input {
  padding: 6px 12px !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 150px;
}

.filter-item input:focus,
.filter-item select:focus {
  outline: none;
  border-color: #007bff;
}

@media (max-width: 768px) {
  .filter-item {
    min-width: 100%;
  }
}

.ibile-pagination {
  margin-top: 20px;
  text-align: center;
}

.ibile-pagination a {
  padding: 5px 10px;
  margin: 0 5px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.ibile-pagination a.active {
  background-color: #007bff;
  color: white;
}

.ibile-loading {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.placeholder-row td {
  text-align: center;
  padding: 20px;
  color: #666;
}

.ibile-profiles-container {
  position: relative;
  min-height: 200px;
}

/* Add loading animation */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.placeholder-row td {
  animation: pulse 1.5s infinite;
}

/* Ambassador Cards Styling */
.ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.ambassador-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ambassador-card:hover {
  transform: translateY(-5px);
}

.ambassador-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.ambassador-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ambassador-info {
  padding: 20px;
}

.ambassador-name {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #333;
}

.ambassador-division,
.ambassador-team,
.ambassador-project,
.ambassador-lga {
  margin: 5px 0;
  color: #666;
  font-size: 0.9em;
}

.ambassador-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  padding: 8px 15px;
  background: #0077b5;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
}

.ambassador-linkedin:hover {
  background: #005e8f;
}

/* Placeholder styling for loading state */
.placeholder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.ambassador-card.placeholder {
  background: #f5f5f5;
}

.ambassador-card.placeholder .ambassador-image {
  background: #e0e0e0;
}

.placeholder-line {
  height: 15px;
  background: #e0e0e0;
  margin: 10px 0;
  border-radius: 3px;
  animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ambassadors-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .ambassadors-grid {
    grid-template-columns: 1fr;
  }
}

/* Placeholder and Loading States */
.ambassador-card.placeholder {
  background: #f5f5f5;
}

.placeholder-image {
  background: #e0e0e0;
  width: 100%;
  height: 250px;
}

.placeholder-line {
  height: 15px;
  background: #e0e0e0;
  margin: 10px 0;
  border-radius: 3px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.ibile-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.profiles-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Fellow card specific styles */
.fellow-card {
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.fellow-card .profile-info {
  padding: 0;
}

.fellow-card .profile-name {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}

.fellow-card .profile-division,
.fellow-card .profile-lga,
.fellow-card .profile-year {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
  font-size: 1.1em;
}

/* Error message */
.error-message {
  text-align: center;
  padding: 20px;
  background: #fff3f3;
  color: #d63031;
  border-radius: 8px;
  margin: 20px 0;
}

/* Add these styles for Fellows table */
.fellows-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.fellows-table th,
.fellows-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.fellows-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.fellows-table tr:hover {
  background: #f9f9f9;
}

/* Update profile cards to be consistent */
.profiles-grid,
.ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.profile-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Cache indicator styles */
.cache-status {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: 5px;
}

/* Skeleton Loading States */
.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-image {
  background: #eee;
  width: 100%;
  height: 200px;
}

.skeleton-line {
  height: 15px;
  background: #eee;
  margin: 10px 0;
  border-radius: 4px;
}

.skeleton-pagination {
  width: 30px;
  height: 30px;
  background: #eee;
  display: inline-block;
  margin: 0 5px;
}

/* Debug styles */
.debug-info {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 9999;
}

/* Debug Info Box */
.debug-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 12px;
  z-index: 9999;
  max-width: 300px;
  word-break: break-all;
}

.debug-info:before {
  content: "Debug Info";
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #00ff00;
}

/* Pagination Styles */
.ibile-pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination-items {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.page-number {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.page-number:hover {
  background: #f5f5f5;
}

.page-number.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.page-dots {
  padding: 0 5px;
  color: #666;
}

/* Grid Container */
.profiles-grid-container {
  margin: 20px 0;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Profile Cards */
.profile-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding: 15px;
}

.profile-name {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #333;
}

.profile-division,
.profile-lga,
.profile-year,
.profile-code,
.profile-team,
.profile-project {
  margin: 5px 0;
  color: #666;
  font-size: 0.9em;
}

/* Carousel Styles */
.ibile-profiles-carousel-container {
  margin: 40px 0;
  position: relative;
}

/* Swiper Specific Styles */
.swiper {
  width: 100%;
  height: auto;
  padding: 20px 0;
}

.swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
  width: 40px;
  height: 40px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
}

/* Pagination */
.swiper-pagination {
  position: relative;
  margin-top: 40px !important;
}

.swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

/* Profile Cards in Carousel */
.swiper-slide .profile-card {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Count Display */
.ibile-profiles-header {
  margin-bottom: 20px;
}

.ibile-profiles-count {
  margin-top: 10px;
  text-align: right;
  color: #666;
  font-size: 0.9em;
}

.current-count,
.total-count {
  font-weight: bold;
  color: #333;
}

/* Carousel styles for all types */
.ibile-profiles-carousel-container {
  padding: 20px 0;
  margin: 20px 0;
}

.profiles-carousel {
  margin: 0 -15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profiles-carousel.slick-initialized {
  opacity: 1;
}

/* Specific styles for each type */
.fellows-carousel .profile-card {
  background: #f8f9fa;
}

.ambassadors-carousel .profile-card {
  background: #fff;
}

.alumnus-carousel .profile-card {
  background: #fff;
}

/* Fellow-specific card styles */
.fellow-card {
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.fellow-card .profile-info {
  padding: 0;
}

.fellow-card .profile-name {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333;
}

.fellow-card .profile-division,
.fellow-card .profile-lga,
.fellow-card .profile-year {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}

/* Keep image styles only for ambassador and alumni cards */
.ambassadors-card .profile-image,
.alumnus-card .profile-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.ambassadors-card .profile-image img,
.alumnus-card .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Filter Layout */
.ibile-profiles-header {
  margin-bottom: 20px;
}

.ibile-profiles-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.filters-left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ibile-profiles-count {
  text-align: center;
  white-space: nowrap;
  color: #666;
}

/* Order Filters - moved to right side */
.order-filters {
  display: flex;
  gap: 5px;
  align-items: center;
}

.order-filters .compact-select {
  min-width: auto;
}

.order-filters select[name="orderby"] {
  width: 90px;
}

.order-filters select[name="order"] {
  width: 60px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .filters-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-item input {
    width: 100%;
  }
}

/* Bottom Controls */
.ibile-profiles-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.per-page-control .compact-select {
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 70px;
}

@media (max-width: 768px) {
  .ibile-profiles-controls {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
}

/* Profile Card Updates */
.profile-card {
  /* ... existing styles ... */
}

.profile-name {
  font-size: 1.1em;
  margin: 0 0 10px;
  color: #333;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.profile-meta span {
  display: flex;
  align-items: center;
}

.profile-meta .separator {
  color: #ddd;
}

.profile-footer {
  display: flex;
  gap: 10px;
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* Per Page Select */
.per-page-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.per-page-control label {
  font-size: 0.9em;
  color: #666;
}

.compact-select {
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 70px;
}

@media (max-width: 768px) {
  .pagination-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Mobile Filter Toggle */
.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.filter-icon {
  width: 18px;
  height: 2px;
  background: white;
  position: relative;
}

.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  left: 0;
}

.filter-icon::before {
  top: -6px;
}
.filter-icon::after {
  bottom: -6px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .filter-toggle {
    display: flex;
  }

  .ibile-profiles-filters {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .ibile-profiles-filters.active {
    display: flex;
  }

  .filters-left {
    flex-direction: column;
    width: 100%;
  }

  .filters-right {
    width: 100%;
  }

  .search-item {
    max-width: 100%;
  }

  /* Search Input */
  .search-item input {
    padding: 6px 12px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
  }

  .filter-item select {
    width: 100%;
  }

  .ibile-profiles-count {
    order: -1;
    margin-bottom: 10px;
  }

  .ibile-profiles-controls {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .ibile-pagination {
    order: -1; /* Move pagination above per-page on mobile */
  }
}

/* Mobile Header */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* Filter Toggle */
.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filter-icon {
  width: 18px;
  height: 2px;
  background: white;
  position: relative;
}

.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  left: 0;
}

.filter-icon::before {
  top: -6px;
}
.filter-icon::after {
  bottom: -6px;
}

/* Filter Layout */
.ibile-profiles-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.filters-left {
  display: flex;
  gap: 10px;
  flex: 1;
}

.ibile-profiles-count {
  text-align: center;
  white-space: nowrap;
  color: #666;
  font-size: 0.9em;
}

.filters-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Desktop/Mobile visibility */
.desktop-only {
  display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .filter-toggle {
    display: flex;
  }

  .ibile-profiles-filters {
    display: none;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .ibile-profiles-filters.active {
    display: flex;
  }

  .filters-left {
    flex-direction: column;
    width: 100%;
  }

  .filters-right {
    width: 100%;
  }

  .desktop-only {
    display: none;
  }

  .filter-item select,
  .search-item input {
    width: 100%;
    min-width: 100%;
  }
}

/* Filter Items */
.filter-item select {
  min-width: 120px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.search-item {
  flex: 1;
  max-width: 300px;
}

/* Animation for filter collapse/expand */
.ibile-profiles-filters {
  transition: all 0.3s ease-in-out;
}

/* Pagination Styles */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.pagination-button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: white !important;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #090909 !important;
  font-size: 14px;
}

.pagination-button:hover {
  background: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
}

.pagination-button.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
}

.pagination-button svg {
  width: 16px;
  height: 16px;
}

.pagination-ellipsis {
  color: #666;
  padding: 0 4px;
}

/* Ensure SVG arrows are centered */
.pagination-button svg {
  display: block;
  margin: 0 auto;
}

/* Count Display */
.ibile-profiles-count {
  font-size: 0.9em;
  color: #666;
}

/* Filter Layout */
.ibile-profiles-filters {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.filters-left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Compact Select Styles */
.compact-select {
  padding: 6px 24px 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.compact-select:hover {
  border-color: #999;
}

.compact-select:focus {
  outline: none;
  border-color: #007bff;
}

/* Order Filters */
.order-filters {
  display: flex;
  gap: 5px;
  align-items: center;
}

.order-filters .compact-select {
  min-width: auto;
}

.order-filters select[name="orderby"] {
  width: 80px !important;
}

.order-filters select[name="order"] {
  width: 50px !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .ibile-profiles-filters {
    flex-direction: column;
    gap: 15px;
  }

  .filters-left {
    width: 100%;
  }

  .order-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .order-filters .compact-select {
    flex: 1;
  }

  .search-item {
    width: 100%;
  }
}
