/* ========================================
   CENTERS STYLES
   ======================================== */

.centers-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 20px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.centers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, var(--accent-color) 50%, #10b981 100%);
}

.centers-title {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.centers-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
}

.centers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem 0;
  flex-wrap: wrap;
  max-width: 800px;
  width: 100%;
}

.centers-grid {
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#medical-centers {
  text-align: center;
}

#medical-centers .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#medical-centers .section-title {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

#medical-centers .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.center-card {
  background-size: cover;
  background-position: center;
  height: 250px;
  width: 350px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: #ffffff;
  font-size: var(--font-size-card-title);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
  cursor: pointer;
}

.center-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
  z-index: 1;
}

.center-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-type,
.center-name {
  margin: 0;
  color: #ffffff;
}

.center-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.center-card:hover .center-content {
  filter: blur(3px);
  transform: scale(0.95);
}

.center-address {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
}

.center-card:hover .center-address {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.center-address h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.center-address p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.center-address p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--accent-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .centers-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 1rem 0;
    max-width: 400px;
  }

  .center-card {
    width: 100%;
    max-width: 350px;
    height: 200px;
  }

  .center-address {
    padding: 1.5rem;
  }
  
  .center-address h4 {
    font-size: var(--font-size-base);
  }
  
  .center-address p {
    font-size: var(--font-size-sm);
  }
}
