/* =========================================================
   TREATMENTS PAGE STYLES
   ========================================================= */

/* =========================================================
   HERO (SENİN STANDART)
   ========================================================= */
.hb-page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}

.hb-page-hero::before,
.hb-page-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  filter: blur(2px);
}

.hb-page-hero::before { 
  top: -220px; 
  right: -160px; 
}

.hb-page-hero::after  { 
  bottom: -260px; 
  left: -200px; 
  background: rgba(255,255,255,0.06); 
}

.hb-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hb-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hb-hero-subtitle {
  opacity: 0.92;
  font-size: 16px;
  max-width: 700px;
}

.hb-hero-metrics {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hb-metric {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 140px;
}

.hb-metric-value {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.hb-metric-label {
  margin-top: 6px;
  opacity: 0.9;
  font-size: 13px;
}

.hb-hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}

.hb-hero-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hb-hero-card-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.hb-hero-card-row label {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 600;
}

/* Inputs and selects for hero */
.hb-select, .hb-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  transition: all 0.3s;
}

.hb-select:focus, .hb-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.hb-select option {
  background: var(--dark);
  color: white;
}

/* Hero buttons */
.hb-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.hb-btn-primary {
  background: white;
  color: var(--primary);
}

.hb-btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Filter bar buttons */
.hb-filter-bar .hb-btn-primary {
  background: var(--primary);
  color: white;
}

.hb-filter-bar .hb-btn-primary:hover {
  background: var(--primary-dark);
}

.hb-filter-bar .hb-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.hb-filter-bar .hb-btn-outline:hover {
  background: rgba(0, 180, 216, 0.05);
}

.hb-filter-bar .hb-btn-ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.hb-filter-bar .hb-btn-ghost:hover {
  background: #f3f4f6;
}
/* =========================================================
   FILTER BAR
   ========================================================= */
.hb-filter-bar {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin: 30px 0;
  position: relative;
}

.hb-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.hb-filter-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Üstten hizalama */
}

.hb-filter-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  height: 20px; /* Sabit yükseklik */
}

.hb-filter-label i {
  color: var(--primary);
}

/* Filter inputs in filter bar */
.hb-filter-bar .hb-select, 
.hb-filter-bar .hb-input {
  width: 270px;
  height: 48px; /* Sabit yükseklik */
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background: white;
  color: var(--dark);
  transition: border-color 0.3s;
  box-sizing: border-box; /* Padding'i dahil et */
}

.hb-filter-bar .hb-select:focus, 
.hb-filter-bar .hb-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Son item için stil */
.hb-filter-item:last-child {
  grid-column: span 2;
  display: flex;
  align-items: flex-end; /* Butonu alta hizala */
  justify-content: flex-end;
}

/* Gelişmiş Filtreler butonu */
#toggleAdvancedBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px; /* Diğer inputlarla aynı yükseklik */
  padding: 12px 16px;
  margin-top: 0; /* Üst boşluğu kaldır */
  box-sizing: border-box;
}

/* Filter actions */
.hb-filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 0;
}

.hb-search {
  position: relative;
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
}

.hb-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  z-index: 1;
}

.hb-search input {
  width: 100%;
  height: 48px; /* Diğer inputlarla aynı yükseklik */
  padding: 12px 16px 12px 48px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.hb-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.hb-filter-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Butonlar için ortak stil */
.hb-btn {
  height: 48px; /* Diğer inputlarla aynı yükseklik */
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-sizing: border-box;
}

/* Buton tipleri */
.hb-btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.hb-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.hb-btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid transparent;
}

.hb-btn-sm {
  height: 36px;
  padding: 8px 16px;
  font-size: 13px;
}

/* Gelişmiş filtre paneli için gerekli ek stiller */
.hb-advanced-filters {
  /* Mevcut stiller */
}

.hb-advanced-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hb-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.hb-advanced-section {
  /* Mevcut stiller */
}

.hb-advanced-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Gelişmiş filtre paneli toggle animasyonu */
.hb-advanced-filters {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.hb-advanced-filters.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   GELİŞMİŞ FİLTRELEME PANELİ
   ========================================================= */
.hb-advanced-filters {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
  margin-top: 20px;
  display: none;
  animation: slideDown 0.3s ease;
}

.hb-advanced-filters.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-advanced-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
}

.hb-advanced-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.hb-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

.hb-advanced-section {
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.hb-advanced-title {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.hb-advanced-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Checkbox Stilleri */
.hb-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark);
  padding: 8px 0;
}

.hb-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.hb-check input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hb-check input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hb-check input[type="checkbox"]:hover {
  border-color: var(--primary);
}

/* Fiyat Aralığı */
.hb-price-range {
  padding: 8px 0;
}

.hb-range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--dark);
  font-size: 16px;
}

.hb-range-slider {
  margin: 20px 0;
}

.hb-range-slider input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
}

.hb-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hb-range-slider input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hb-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

/* Tedavi Süresi */
.hb-duration-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hb-duration-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hb-duration-btn {
  padding: 10px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
}

.hb-duration-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hb-duration-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hb-duration-custom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-duration-custom input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}

.hb-duration-custom input:focus {
  outline: none;
  border-color: var(--primary);
}

.hb-duration-custom span {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
}

/* Gelişmiş Filtre Footer */
.hb-advanced-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* =========================================================
   RESULTS BAR
   ========================================================= */
.hb-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.hb-results-left {
  font-size: 16px;
  color: var(--dark);
}

.hb-results-left strong {
  color: var(--primary);
  font-weight: 700;
}

.hb-results-info {
  color: #6b7280;
  font-size: 14px;
  margin-left: 10px;
  font-style: italic;
}

.hb-chip {
  background: #eff6ff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hb-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 18px;
  height: 18px;
}

/* =========================================================
   TREATMENT GRID (4 KART YANDA - %10 DAHA GENİŞ)
   ========================================================= */
.hb-treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.hb-treatment-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hb-treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* CARD MEDIA */
.hb-card-media {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.hb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.hb-treatment-card:hover .hb-card-media img {
  transform: scale(1.05);
}

.hb-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* BAŞARI ORANI BADGE */
.hb-card-rating {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.hb-card-rating i {
  color: #f59e0b;
}

/* STATUS BADGE */
.hb-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.hb-status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.hb-status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

/* CARD BODY */
.hb-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hb-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hb-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  flex: 1;
  margin-right: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
}

.hb-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.hb-card-location i {
  font-size: 12px;
}

/* PILLS */
.hb-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hb-pill {
  background: #f0f9ff;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}

.hb-pill:nth-child(2) {
  background: #f0fdf4;
  color: #059669;
}

.hb-pill:nth-child(3) {
  background: #fef3c7;
  color: #d97706;
}

/* DESCRIPTION */
.hb-card-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 63px;
}

/* CARD FOOTER */
.hb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.hb-card-price {
  display: flex;
  flex-direction: column;
}

.hb-price-from {
  font-size: 12px;
  color: #6b7280;
}

.hb-price-amount {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.hb-price-note {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

.hb-card-cta {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
}

.hb-card-cta:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.hb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.hb-page-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: all 0.3s;
}

.hb-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.hb-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hb-page-numbers {
  display: flex;
  gap: 8px;
}

.hb-page-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
}

.hb-page-number.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hb-page-number:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   NO RESULTS
   ========================================================= */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
}

.no-results i {
  font-size: 3.5rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.no-results h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.no-results p {
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1440px) {
  .hb-treatment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .hb-treatment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hb-filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hb-advanced-grid {
    grid-template-columns: 1fr;
  }
  
  .hb-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .hb-treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hb-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hb-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hb-search {
    max-width: 100%;
  }
  
  .hb-filter-buttons {
    width: 100%;
    justify-content: flex-end;
  }
  
  .hb-hero-title {
    font-size: 36px;
  }
  
  .hb-filter-item:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hb-filter-grid {
    grid-template-columns: 1fr;
  }
  
  .hb-filter-item:last-child {
    grid-column: span 1;
  }
  
  .hb-advanced-footer {
    flex-direction: column;
  }
  
  .hb-advanced-footer .hb-btn {
    width: 100%;
  }
  
  .hb-hero-title {
    font-size: 32px;
  }
  
  .hb-hero-metrics {
    justify-content: center;
  }
  
  .hb-metric {
    min-width: 120px;
  }
}

@media (max-width: 576px) {
  .hb-treatment-grid {
    grid-template-columns: 1fr;
  }
  
  .hb-duration-buttons {
    justify-content: center;
  }
  
  .hb-duration-custom {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hb-hero-title {
    font-size: 28px;
  }
  
  .hb-page-hero {
    padding: 30px 0;
  }
}

/* =========================================================
   MEDICAL UNITS SPECIFIC STYLES
   ========================================================= */
.hb-unit-group {
  margin-bottom: 3rem;
}

.hb-unit-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hb-unit-group-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.hb-unit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  width: 100%;
}

/* Eğer medicalUnitGrid class'ı farklıysa */
#medicalUnitGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  width: 100%;
}

.hb-unit-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e5e7eb;
  aspect-ratio: 4 / 5; /* Dikdörtgen oran */
}

.hb-unit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.hb-unit-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.875rem 0.75rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  justify-content: space-between;
}

.hb-unit-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.625rem;
  flex-shrink: 0;
}

.hb-unit-card-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
}

.hb-unit-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.375rem 0;
  line-height: 1.25;
  min-height: 2.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-unit-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.hb-unit-card-meta i {
  color: var(--primary);
  font-size: 0.6875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hb-unit-grid,
  #medicalUnitGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hb-unit-grid,
  #medicalUnitGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .hb-alphabet-buttons {
    gap: 0.375rem;
    padding: 0.375rem 0;
  }
  
  .hb-alphabet-btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }
  
  .hb-alphabet-btn-all {
    min-width: 60px;
    padding: 0 0.75rem;
  }
  
  .hb-unit-card-link {
    padding: 0.75rem 0.5rem;
  }
  
  .hb-unit-card-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .hb-unit-card-title {
    font-size: 0.6875rem;
    min-height: 2.1em;
  }
  
  .hb-unit-card-meta {
    font-size: 0.625rem;
    padding-top: 0.375rem;
  }
}

/* =========================================================
   ALPHABET FILTER BAR (HER ZAMAN GÖRÜNÜR)
   ========================================================= */
.hb-alphabet-filter-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hb-alphabet-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hb-alphabet-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.875rem;
  white-space: nowrap;
  min-width: 120px;
}

.hb-alphabet-label i {
  color: var(--primary);
}

/* =========================================================
   ALPHABET FILTER INLINE (FILTER BAR İÇİNDE)
   ========================================================= */
.hb-alphabet-filter-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.75rem;
}

.hb-alphabet-label-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.94rem;
  white-space: nowrap;
  min-width: 69px;
}

.hb-alphabet-label-inline i {
  color: var(--primary);
  font-size: 1.01rem;
}

.hb-alphabet-buttons-inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.375rem;
  flex: 1;
  align-items: center;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.hb-alphabet-buttons-inline::-webkit-scrollbar {
  height: 4px;
}

.hb-alphabet-buttons-inline::-webkit-scrollbar-track {
  background: transparent;
}

.hb-alphabet-buttons-inline::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.hb-alphabet-buttons-inline::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.hb-alphabet-btn-inline {
  min-width: 37px;
  width: 37px;
  height: 37px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 4px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.hb-alphabet-btn-inline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hb-alphabet-btn-inline.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hb-alphabet-btn-inline.hb-alphabet-btn-all {
  min-width: 58px;
  width: auto;
  padding: 0 0.87rem;
  font-weight: 700;
  font-size: 0.87rem;
}

.hb-alphabet-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hb-alphabet-clear:hover {
  background: #dc2626;
  transform: translateY(-1px);
}


/* Responsive - Alphabet Filter Inline */
@media (max-width: 768px) {
  .hb-alphabet-filter-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .hb-alphabet-label-inline {
    min-width: auto;
  }
  
  .hb-alphabet-buttons-inline {
    width: 100%;
  }
  
  .hb-alphabet-btn-inline {
    min-width: 33px;
    width: 33px;
    height: 33px;
    font-size: 0.79rem;
  }
  
  .hb-alphabet-btn-inline.hb-alphabet-btn-all {
    min-width: 53px;
    padding: 0 0.58rem;
  }
}