.speciality-section {
  background: linear-gradient(
    180deg,
    rgba(255, 162, 204, 0.05) 0%,
    rgba(222, 255, 225, 0.05) 100%
  );
  margin-top: -80px;
  overflow-x: hidden;
}

/* Title Section */
.title-part {
  margin-bottom: 30px;
}

/* Category Pills Slider */
.category-pills-slider-wrapper {
  position: relative;
  padding: 0 40px;
  margin-bottom: 40px;
}

.category-tabs-swiper {
  width: 100%;
}

.tab-navigation-buttons {
  display: flex;
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.tab-navigation-buttons button {
  width: 30px;
  height: 30px;
  background: #352d74;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  border: none;
  transition: all 0.3s ease;
  font-size: 12px;
}

.tab-navigation-buttons button:hover {
  background: #4a3c8a;
}

.category-pill {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.65px solid #352d74;
  background: transparent;
  color: #352d74;
  font-family: "Inter-Regular", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
}

.category-pill:hover {
  background: #352d74;
  color: #ffffff;
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(91, 75, 160, 0.3);
}

.category-pill.active {
  background: #352d74;
  color: #ffffff;
}

.add-pill {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
}

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

header .mobile-only {
  display: none;
}

/* Specialties Grid */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.specialty-card {
  /* background: #ffffff; */
  border: 1px solid #352d74;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 2.24px 4.48px 0px #00000014;
  transition: all 0.3s ease;
  display: flex;
  padding: 10px;
  flex-direction: column;
}

/* .specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} */

/* Title at top */
.specialty-title {
  font-family: "Inter-Regular", sans-serif;
  font-size: 18px;
  color: #000000;
  padding: 10px 0px;
  margin: 0;
}

.specialty-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.specialty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* .specialty-card:hover .specialty-image {
  transform: scale(1.1);
} */

.specialty-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

.specialty-content {
  /* padding: 20px; */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.speciality-description {
  font-family: "Inter-Regular", sans-serif;
  font-size: 14px;
  color: #000000;
  padding-top: 10px;
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

.specialty-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 15px;
  border-top: 1px solid #352d74;
  padding-top: 15px;
}

.specialty-btn-custom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #352d74;
  border-radius: 76px;
  font-family: "Inter-Medium", sans-serif;
  font-size: 14px;
  color: #352d74;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.specialty-btn-custom:hover {
  background: #352d74;
  color: #ffffff;
}

.specialty-btn-custom svg {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.specialty-btn-custom:hover svg {
  transform: translateX(4px);
}

/* View All Button */
.view-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  border: 1px solid #352d74;
  border-radius: 50px;
  background: transparent;
  color: #352d74;
  font-family: "Inter-Medium", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #352d74;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 75, 160, 0.3);
}

.view-all-btn svg {
  transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
  transform: translateX(4px);
}

/* Swiper Customization */
.specialties-swiper-container {
  position: relative;
  padding: 0 10px;
}

.specialties-swiper {
  padding: 20px 0 30px;
}

.spec-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(53, 45, 116, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.spec-nav-btn:hover {
  background: #4a3c8a;
  transform: translateY(-50%) scale(1.1);
}

.spec-nav-btn.disabled {
  display: none;
  pointer-events: none;
}

.spec-prev {
  left: -24px;
}

.spec-next {
  right: -24px;
}

@media screen and (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-swiper-controls {
    display: flex;
  }

  .category-pills-slider-wrapper {
    padding: 0;
  }

  .tab-navigation-buttons {
    display: none;
  }
}

/* Pagination */
.spec-pagination-custom {
  display: none !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.spec-pagination-custom .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.spec-pagination-custom .swiper-pagination-bullet-active {
  background: #352d74;
  width: 24px;
  border-radius: 4px;
}

/* Mobile Swiper Controls */
.mobile-swiper-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-nav-btn {
  width: 36px;
  height: 36px;
  background: #352d74;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.mobile-nav-btn.disabled {
  /* display: none; */
  background: #d8d9dd;
  pointer-events: none;
}

.spec-pagination-custom {
  margin-top: 0 !important;
  /* Reset margin since it's inside flex container now */
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 991px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-pills {
    gap: 8px;
  }

  .category-pill {
    padding: 10px 20px;
    font-size: 13px;
  }

  .category-pill:hover {
    background: transparent;
    color: #352d74;
  }

  .category-pill.active {
    background: #352d74 !important;
    color: #fff !important;
  }

  .specialty-image-wrapper {
    height: 160px;
  }

  /* .specialty-content {
        padding: 16px;
    } */

  .specialty-title {
    font-size: 16px;
    padding: 16px 16px 10px;
  }

  .speciality-description {
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  header .mobile-only {
    display: flex !important;
  }

  .category-pills {
    display: none;
  }

  .category-pills-slider-wrapper {
    padding: 0;
  }

  .category-pills::-webkit-scrollbar {
    height: 4px;
  }

  .category-pills::-webkit-scrollbar-thumb {
    background: #5b4ba0;
    border-radius: 4px;
  }

  .specialty-actions {
    flex-direction: row;
    /* Keep buttons row on mobile */
    gap: 8px;
  }

  .specialty-btn-custom {
    width: 100%;
    padding: 8px 12px;
    /* Slight adjustment for mobile */
    font-size: 12px;
  }
}
