/* ==========================================
   Conditions Page Modern Styling (2026)
   ========================================== */

/* Hero Slider Section (85vh Grand Height) */
.conditions-hero-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.conditions-hero-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 90px) + 2rem) 2rem 4rem 2rem;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.78) 100%);
  z-index: 1;
}

.conditions-hero-section .hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.conditions-hero-section .section-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.conditions-hero-section .hero-title {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 3.8rem;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.25rem;
}

.conditions-hero-section .section-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Slider Dots */
.conditions-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  width: 32px;
  border-radius: 6px;
  background: #ffffff;
}

/* ==========================================
   Image-Based Condition Cards Grid
   ========================================== */
.conditions-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.condition-pro-card {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cpc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.condition-pro-card:hover .cpc-overlay {
  background: linear-gradient(180deg, rgba(23, 107, 135, 0.4) 0%, rgba(15, 23, 42, 0.94) 100%);
}

.condition-pro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(23, 107, 135, 0.2);
}

.cpc-content-wrap {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.cpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cpc-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.cpc-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.condition-pro-card:hover .cpc-icon-box {
  background: var(--primary, #176B87);
  border-color: var(--primary, #176B87);
  transform: scale(1.08);
}

.cpc-body h3 {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cpc-body p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cpc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
}

.cpc-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Responsive Grid Breakpoints */
@media (max-width: 992px) {
  .conditions-listing-grid {
    grid-template-columns: 1fr;
  }
  .conditions-hero-section .hero-title {
    font-size: 2.75rem;
  }
}