body {
  font-family: 'Inter', sans-serif;
}

.section {
  position: relative;
  overflow-y: hidden !important; /* Clip vertical overflow */
  overflow-x: hidden !important; 
}

.card {
  background: white;
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  height: 100%;
  color: #333;
}

h1 {
  color: #fff;
}
h2, h3, h4 {
  color: #D62828;
}


.card-body h5 {
  font-size: 1rem;
}

.card-body p {
  font-size: 0.8rem;
}


.themed-btn {
  background-color: #D62828;
  color: #fff; /* Swiss red */
  border: 2px solid #D62828;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.themed-btn:hover {
  background-color: transparent;
  color: #D62828;
  text-shadow: rgba(0, 0, 0, 0.2);
  border: 2px solid #D62828;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.themed-btn2 {
  background-color: #F77F00;
  color: #ffffff; /* Swiss red */
  border: 2px solid #F77F00;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.themed-btn2:hover {
  background: rgba(0, 0, 0, 0.9); /* Adjust darkness */
  background-color: transparent;
  color: #F77F00;
  border: 2px solid #F77F00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.themed-btn3 {
  background-color: transparent;
  color: #D62828; /* Swiss red */
  border: 2px solid #D62828;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.themed-btn3:hover {
  background-color: #D62828;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.2);
  border: 2px solid #D62828;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.themed-btn4 {
  background-color: transparent;
  color: #F77F00; /* Swiss red */
  border: 2px solid #F77F00;
  border-radius: 10px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.themed-btn4:hover {
  background: rgba(0, 0, 0, 0.9); /* Adjust darkness */
  background-color: #F77F00;
  color: #fff;
  border: 2px solid #F77F00;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.black-divider {
  border: none;
  height: 3px; /* Thickness */
  background-color: #000;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 3rem 0;
}

.color-divider {
  border: none;
  height: 3px; /* Thickness */
  background: linear-gradient(to right, #D62828, #F77F00, #FCF6F5);
  width: 100%;
  margin: 3rem 0;
}



.header {
  background: linear-gradient(180deg, #D62828 0%, #F77F00 30%, #FCF6F5 95%, #ffffff 100%);
  color: white;
}

.error-container {
  max-width: 600px;
  margin: auto;
}
.error-code {
  font-size: 96px;
  font-weight: bold;
  color: #dc3545;
}
.error-message {
  font-size: 24px;
  margin-bottom: 20px;
}

/*NAVBAR*/
/* Sidebar base style */
.sidebar {
  position: fixed;
  top: 0;
  right: 0; /* Hidden by default */
  width: 300px;
  height: 100%;
  background-color: #FCF6F5;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  transform: translateX(100%); /* Hidden initially */
  transition: transform 0.3s ease-in-out;
  z-index: 1050;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
}

/* Sidebar visible */
.sidebar.active {
  transform: translateX(0); /* Slide in */
}

/* Sidebar content links */
.sidebar-link {
  position: relative;
  display: block;
  padding: 1rem 0;
  color: #D62828;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Gradient underline on hover */
.sidebar-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 66%;
  height: 3px;
  background: linear-gradient(90deg, #D62828, #F77F00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.sidebar-content a:hover::after {
  transform: scaleX(1);
}

/* Active link styling */
.sidebar-content a.active {
  color: #F77F00 !important;
  font-weight: 600;
}

/* Stack and Full Width Only for Sidebar Buttons */
.sidebar-content .action-button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

/* Remove top margin for the first button */
.sidebar-content .action-button:first-child {
  margin-top: 0;
}

/* Ensure the logout form fills width */
.sidebar-content form {
  width: 100%;
}


/* Overlay for dark background when sidebar is open */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 1040;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navbar adjustments */
.navbar {
  background-color: #F9F9F9;
  padding: 0.5rem 1rem;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand styling */
.navbar-brand {
  display: flex;
  align-items: center;
  color: #D62828;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

/* Hamburger Icon Button */
#sidebarToggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Hamburger Icon */
#sidebarToggle i {
  font-size: 1.75rem;
  color: #D62828;
}

/* Hide Bootstrap collapse behavior */
#navbarNav {
  display: none !important;
}

/* Hide Home link on mobile */
@media (max-width: 768px) {
  .home-link {
    display: none !important;
  }
}

/* No need for Bootstrap's dropdown-menu anymore */
.dropdown-menu, .dropdown-toggle::after {
  display: none !important;
}

/*LANDING*/
/* Flip Card */
.flip-card {
  position: relative;
  perspective: 1200px;
  width: 100%;
  min-height: 420px;
  padding: 5px;
}

.flip-card-inner {
  position: relative;
  height: 100%;
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  transform-style: preserve-3d;
  border-radius: 1rem;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Front Face Styling */
.flip-card-front .card {
  height: 100%;
  border: none;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Ensure the logo takes up the full card */
.flip-card-front .card-body {
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flip-card-front img {
  max-height: 80%;
  max-width: 80%;
}

/* Back Face Styling */
.flip-card-back {
  transform: rotateY(180deg);
  color: #000;
  background-color: #FCF6F5; /* Soft background for the back */
  display: flex;
  justify-content: flex-start;  /* Align content to top */
  flex-direction: column;
  padding: 0px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flip-card-back .btn {
  background-color: #fff;
  color: #007bff;
  border: none;
  transition: background 0.3s ease;
}

.flip-card-back .btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* Adjusted Card Body */
.flip-card-back .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.flip-card-back h5 {
  font-size: 1.25rem; /* Slightly larger text for the business name */
}

.flip-card-back p {
  margin-bottom: 10px; /* Space between address and category */
}

/* Button Spacing */
.flip-card-back .themed-btn {
  margin-top: 15px;
}




/* Header background */
.parallax-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-image: url('/assets/zurich.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* dark transparent overlay */
  z-index: -1;
}

.header-title {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.header-subtitle {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  font-size: 1.25rem; /* optional for extra emphasis */
}


.category-title {
  color: var(--bs-primary);
}

.swiper-slide {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* optional: horizontal centering */
  height: 100%;
}

.directory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-section {
  margin-bottom: 80px !important; /* Increase this value to add more spacing */
}

@media (max-width: 767px) {
  .category-section {
    margin-bottom: 30px; /* Adjust for smaller screens if necessary */
  }
}

.swiper-slide:hover {
  transform: translateY(-5px);
}


/* Swiper Button Navigation outside of carousel */
.swiper-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 15;
  display: flex;
  justify-content: space-between; /* Place buttons on both sides */
  transform: translateY(-50%);
}

.swiper-button-prev,
.swiper-button-next {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5px;
  height: 5px;
  font-size: 5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
}

/* Change the color of the arrows to soft pink */
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1rem; /* Adjust the size of the arrows */
  color: #F77F00; /* Soft pink color */
}

.swiper-fade-left,
.swiper-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 5;
  pointer-events: none;
}

.oneline-limit {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;     /* limit to 1 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twoline-limit {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*3D ANIMATION CARDS*//* Swiper Container Overrides */
.animated-banner-card .banner-card-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  perspective: 1500px;
  border-radius: 20px;
}

.banner-card-container {
  position: relative;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1), 0 0 40px rgba(255, 215, 0, 0.05);
}

.overflow-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none; /* Prevent interaction with video layer */
  border-radius: 20px;
}

/* Background Video Free to Overflow */
.banner-video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: scale(1.2);
  border-radius: 20px;
  pointer-events: none;
}

/* Card Content Remains Confined */
.banner-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.6s ease;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}


.video-mask {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;  /* Match card radius */
  overflow: hidden;
  z-index: 1;
  pointer-events: none;  /* So it doesn't block interactions */
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);  /* Optional soft inner shadow */
  backdrop-filter: none; /* Optional if you want a frosted effect */
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.8s forwards ease-out 0.3s;
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}


.banner-card-container:hover .video-mask {
  box-shadow: inset 0 0 50px rgba(0,0,0,0.7), 0 0 30px rgba(233,30,99,0.4);
}


/* Hover Effect - Video Flows Outwards */
.banner-card-container:hover .banner-video-background {
  transform: scale(1.5) translateY(-10px);
  opacity: 0.6;
}


/* Card Content Always Above Video */
.banner-card > *:not(.overflow-wrapper):not(.video-mask) {
  position: relative;
  z-index: 2;
}

/* Slight Lift of Card on Hover */
.banner-card-container:hover .banner-card {
  transform: translateZ(50px) scale(1.05);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

/* Logo Styling */
.logo-only-view img.premium-logo-lg {
  width: 15vh;
  height: auto;
  transition: transform 0.3s ease;
  border-radius: 20px;
}

.banner-card-container:hover .premium-logo-lg {
  transform: scale(1.3);
}

/* Swizzzy Subtitle */
.swizzzy-section-subtitle {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 1rem;
}

.swizzzy-section-subtitle .swizzzy-brand {
  color: #E91E63;
}

/* Glow/Aura */
.banner-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 20px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
  z-index: 1;
  pointer-events: none;
}


.banner-card-container:hover::before {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .banner-card {
    padding: 1.5rem 1rem;
  }

  .logo-only-view img.premium-logo-lg {
    width: 80px;
  }
}


/* Match Select2 container to .form-control height */
.select2-container .select2-selection--single {
  height: 38px !important;            /* Matches Bootstrap .form-control */
  padding: 6px 12px !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important; /* Matches Bootstrap 5 radius */
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
  top: 0 !important;
  right: 10px;
}

.select2-container--default .select2-dropdown {
  max-width: 250px !important;
  min-width: 180px;
  width: auto !important;
  box-sizing: border-box;
  overflow-x: auto;
  z-index: 1050; /* above Bootstrap modals */
}

.select2-container {
  max-width: 100%;
}

.select2-container--open .select2-dropdown {
  z-index: 9999 !important;
}


/* Search input placeholder */
input[name="search"]::placeholder {
  color: #6c757d;
  opacity: 1;
}


/* Main dropdown text color */
.select2-container--default .select2-results__option {
  color: #333 !important; /* Set your desired color */
  text-align: left !important;

}

/* Optional: change hover/selected color */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #f0f0f0 !important;
  color: #000 !important;
}

/* Selected item inside the box (not the dropdown) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333 !important;
  text-align: left !important;

}


.city-card:hover {
  transform: translateY(-5px);
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}


/* Category Cards --------------------------------------------------*/
/* Category Card */
.category-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* label stays at bottom */
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 25vh;
  text-decoration: none;
  color: #333;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* Image fills card */
.category-img {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Label bar with gradient */
.category-label {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: bold;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: linear-gradient(
    135deg,
    #FFE7D1 0%,
    #f0b47d 20%,
    #f78000 50%,
    #D62828 70%,
    #8B1E1E 100%
  );
  background-size: 300% 300%;  /* Larger canvas for animation */
  background-position: 0% 50%;
}

/* Hover effects */
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #fff;
}

.category-card:hover .category-img {
  transform: scale(1.08);
  filter: brightness(1.1) saturate(1.2);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Animate gradient on hover */
.category-card:hover .category-label {
  animation: gradientMove 4s ease infinite;
}

/* Keyframes for gradient movement */
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.container h2 {
  margin-bottom: 30px;
}


.swiper {
  overflow: visible;
}

.swiper-slide {
  min-height: 200px; /* adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  height: 100%;
}

.cta-section {
  background-color: #f7800027;
  color: black;
}
.cta-section h2{
  color: #F77F00;
}

/*STATS on Landing*/
#statsSection {
  padding: 50px 0;
  color: white;
}

.stat-title {
  color: #fff; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add a shadow to make the text more legible */
}

.stat-card h3 {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add a shadow to the stats text */
}

.gradient-overlay {
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(135deg, 
    #8B1E1E 0%, 
    #D62828 25%, 
    #F77F00 50%, 
    #FFE7D1 75%, 
    #FFE7D1 100%);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



/*Landing - Cities*/
.city-label-container {
  position: absolute;
  z-index: 10; /* base level */
  pointer-events: auto;
}

.city-label {
  display: inline-block;
  color: #000;
  font-size: clamp(0.8rem, 1.2vw, 1rem); /* Responsive text size */
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border-radius: 10px;
  word-wrap: break-word;
  pointer-events: none;
}

.city-label:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 10px;
}

/* Force more vertical space on mobile */
.responsive-map {
  aspect-ratio: 3 / 2;
  max-width: 100%;
}

.city-preview {
  position: absolute;
  top: -120%; /* Adjust to position image above label */
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
  z-index: 999;
}

.city-preview img {
  width: 20vh;  /* Adjust image size */
  height: 20vh;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: block;
}

/* Caption Styling */
.city-preview-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  font-size: 1rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* Show image on hover */
.city-label-container:hover .city-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px) scale(1);
  z-index: 1000;
}

.city-label-container:hover {
  z-index: 1000;
}


@media (max-width: 768px) {
  .responsive-map {
    /* Keep the aspect ratio even on mobile */
    aspect-ratio: 3 / 2;
    height: auto;
  }
  .city-label-box {
    font-size: 0.7rem;
    padding: 4px 6px;
    max-width: 80px;
  }

  .city-label-container {
    z-index: 3;
  }
}

/* General Label Styling */
.city-label-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #333;
  border-radius: 0.5rem;
  padding: 6px 10px;
  font-weight: 600;
  text-align: center;
  font-size: 0.85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}


.search-btn {
  background-color: #E01E37; /* Swiss red */
  color: white;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover,
.search-btn:focus {
  background-color: #c11b30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
}



/*MOBILE*/
@media (max-width: 768px) {

  .header-title {
    font-size: 2rem;
  }

  .header-subtitle {
    font-size: 1rem;
  }

  .parallax-section {
    background-attachment: scroll; /* Prevent broken background on iOS/Android */
    background-position: center;
    min-height: 80vh; /* taller for mobile screens */
    padding: 3rem 1rem;
  }

  .category-icon {
    font-size: 2rem;
  }

  .search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .form-control {
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 2rem 1rem;
  }


  #statsSection h3 {
    font-size: 2rem;
  }

  #statsSection p {
    font-size: 0.95rem;
  }
  .city-card {
    font-size: 0.75rem;
    max-width: 90px !important;
  }


}


/* DIRECTORY*/
/* red primary button already defined as .search-btn */
.directory-card{
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

.premium-ribbon {
  position: absolute;
  top: 12px;
  left: -10px;
  background: linear-gradient(145deg, #ff416c, #ff4b2b); /* Modern gradient */
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 65, 108, 0.5);
  transform: perspective(500px) rotateY(-5deg);
  z-index: 10;
  transition: all 0.3s ease;
}

.premium-ribbon:hover {
  transform: perspective(500px) rotateY(0deg) scale(1.05);
  box-shadow: 0 6px 14px rgba(255, 65, 108, 0.7);
}


.premium-glow {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 1;
}

.premium-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  z-index: -1;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}





/* tighter hero on mobile */
@media (max-width: 768px) {
  .parallax-section { min-height: 50vh; padding: 3rem 1rem; }
  .parallax-section h1 { font-size: 1.75rem; }
}


.btn-nav {
  width: 150px; /* Set your preferred width */
}

/* Style adjustments for form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form input {
    width: 100%;
    padding: 1rem;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 1rem;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #218838;
}


/* PREMIUM  PAGES*/
#map {
  height: 400px;
  width: 100%;
  border-radius: 12px;
  margin-top: 1.5rem;
}


/* PREMIUM DASHBOARD*/
/* Target only the claim business Select2 */
.select2-claim-business.select2-container--default .select2-selection--single {
  width: 100% !important;
  height: 38px !important;
  padding: 6px 12px !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  display: flex;
  align-items: center;
}

.select2-claim-business.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.select2-claim-business.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px !important;
  top: 0 !important;
  right: 10px;
}

.select2-claim-business.select2-container--default .select2-dropdown {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
  overflow-x: auto;
  z-index: 1050;
}

.select2-claim-business.select2-container {
  max-width: 100% !important;
}

/****** BUSINES PAGE ******/
  #similarCarousel .carousel-inner {
    display: flex;
    overflow: hidden;
  }

  #similarCarousel .carousel-item {
    flex: 0 0 100%;
    transition: transform 0.5s ease;
  }

  @media (min-width: 768px) {
    #similarCarousel .carousel-item {
      flex: 0 0 33.3333%;
    }
  }

  /* Ensure cards are same height */
  #similarCarousel .card {
    height: 100%;
  }
  

/* SCHOOLS*/

.how-it-works {
  background: linear-gradient(135deg, 
    #8B1E1E 0%, 
    #D62828 50%, 
    #F77F00 75%, 
    #FFE7D1 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.how-it-works h3 {
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.how-it-works .list-group-item {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
}
.how-it-works .list-group-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
.fade-in:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}