/* Custom Swiper styles for cleaner pagination */
.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: white !important;
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  margin-top: -20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

/* Modal positioning and animations */
#details-modal {
  animation: fadeIn 0.3s ease-out;
}

#details-modal > div > div {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Enhanced modal scrolling */
.modal-scroll-container {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.modal-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll-container::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.modal-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.modal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Smooth scrolling for modal content */
.modal-content {
  scroll-behavior: smooth;
}

/* Ensure modal content doesn't overflow */
#modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Make sure the scrollable area takes up available space */
.modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Ensure sections have proper spacing when scrolled to */
section {
  scroll-margin-top: 80px;
}

/* Skip to main content link for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 9999;
}