.service-img {
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.service-hospital-img {
    height: 140px;
    width: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.card {
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(208, 0, 50, 0.15) !important;
}

.card .card-body {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-5px);
    }
}

.category-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-content {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.category-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.category-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-details:hover {
  border-color: #d00032;
  color: #d00032;
}

.btn-details i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.details-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-content li {
  padding: 8px 0;
  color: #666;
  font-size: 0.85rem;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.details-content li strong {
  color: #333;
}

.details-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d00032;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  .category-image {
    height: 180px;
  }
  .category-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .category-content {
    padding: 20px;
  }
  .category-image {
    height: 200px;
  }
}

.pharmacy-card:hover {
    box-shadow: 0 20px 40px rgba(208, 0, 50, 0.15) !important;
    transform: translateY(-5px);
}

.pharmacy-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .pharmacy-card {
        flex-direction: column;
        text-align: center;
    }

    .pharmacy-card > div:last-child {
        text-align: center;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(208, 0, 50, 0.15) !important;
}

.qr-wrapper {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 12px;
}

.download-section {
  position: relative;
}

.z-1 {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .display-3 {
      font-size: 2rem;
  }
  
  .store-buttons {
      flex-wrap: wrap;
  }
}

.form-control:focus, .form-select:focus {
  border-color: #1a495d !important;
  box-shadow: 0 0 0 0.2rem rgba(26, 73, 93, 0.15) !important;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 73, 93, 0.25);
}

.pharmacy-card {
  background: white;
  border-radius: 15px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.pharmacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pharmacy-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #f0f0f0;
}

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

.distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.no-results i {
  font-size: 4rem;
  color: #d00032;
  margin-bottom: 1rem;
}

.no-results h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #666;
  margin-bottom: 0;
}

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

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.no-hover-message:hover {
  transform: none !important;
  box-shadow: none !important;
}