/* ==========================================================================
   Services Page Stylesheet (services.css)
   Modeled after: https://drdilipkiyawatneurosurgeon.com/our-services/
   Brand tokens: Plum Purple (#5E125E), Medical Blue (#235293), Teal (#48C0C0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Hero Banner Section
   -------------------------------------------------------------------------- */
.services-hero-section {
  position: relative;
  padding: 5rem 0;
  color: var(--bg-white);
  background-color: #0f172a;
  background-image: url('../../images/homepage/Bbanner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.services-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(94, 18, 94, 0.82) 50%, rgba(35, 82, 147, 0.88) 100%);
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-breadcrumbs a {
  color: var(--bg-white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hero-breadcrumbs a:hover {
  color: var(--accent-teal);
}

.hero-breadcrumbs i {
  font-size: 0.7rem;
  color: var(--accent-teal);
}

.hero-breadcrumbs span {
  color: var(--accent-teal);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. Main Services Section & Filter Controls
   -------------------------------------------------------------------------- */
.services-main-section {
  background-color: var(--bg-light);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section-head-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tagline-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 800;
  color: #d53863;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section-main-heading {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0c1527;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-main-desc {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Filter Bar & Search Container */
.services-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
  background-color: var(--bg-white);
}

.filter-btn.active {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(94, 18, 94, 0.25);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--bg-white);
}

.services-search-wrapper {
  position: relative;
  min-width: 260px;
  flex: 0 1 320px;
}

.services-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: var(--text-main);
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.services-search-input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(72, 192, 192, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. Elementor-Style CTA Service Cards Grid (3 Columns)
   -------------------------------------------------------------------------- */
.services-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-cta-card {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #0c1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(12, 21, 39, 0.22);
}

/* Background Image with Zoom Animation */
.cta-card-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.cta-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.92);
}

.service-cta-card:hover .cta-card-bg {
  transform: scale(1.1);
  filter: brightness(1);
}

/* Gradient Overlay for Readability */
.cta-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 21, 39, 0.25) 0%, rgba(12, 21, 39, 0.65) 45%, rgba(12, 21, 39, 0.96) 100%);
  transition: background 0.45s ease;
  z-index: 2;
}

.service-cta-card:hover .cta-card-overlay {
  background: linear-gradient(180deg, rgba(12, 21, 39, 0.15) 0%, rgba(12, 21, 39, 0.72) 40%, rgba(12, 21, 39, 0.98) 100%);
}

/* Card Content Area */
.cta-card-content {
  position: relative;
  z-index: 3;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.cta-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  padding-bottom: 2rem;
}

.cta-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  background-color: rgba(72, 192, 192, 0.92);
  color: #0c1527;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-category-badge.spine {
  background-color: rgba(229, 231, 235, 0.92);
  color: #1f2937;
}

.cta-category-badge.brain {
  background-color: rgba(72, 192, 192, 0.92);
  color: #0c1527;
}

.cta-card-title {
  font-family: var(--font-primary);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.28;
  text-transform: capitalize;
}

.cta-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cta-card-title a:hover {
  color: var(--accent-teal);
}

.cta-card-desc {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button wrapper matching reference Click Here button */
.cta-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-cta-click {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  border: 2px solid var(--accent-teal);
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-cta-click:hover {
  background-color: var(--accent-teal);
  color: #0c1527;
  border-color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(72, 192, 192, 0.35);
}

.btn-cta-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-cta-book:hover {
  background-color: #ffffff;
  color: var(--primary-purple);
  border-color: #ffffff;
}

/* Card Hidden when filtered */
.service-cta-card.hidden {
  display: none !important;
}

/* Anchor offset for sticky header */
.service-anchor-target {
  position: relative;
  top: -120px;
  visibility: hidden;
  height: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Skills & Expertise in Surgeries Section (Reference Section 1)
   -------------------------------------------------------------------------- */
.skills-expertise-section {
  position: relative;
  background: linear-gradient(135deg, #0a1128 0%, #1c1954 50%, #3e0c3e 100%);
  color: var(--bg-white);
  padding: 6rem 0;
  overflow: hidden;
}

.skills-expertise-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(72, 192, 192, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.skills-container {
  position: relative;
  z-index: 2;
}

.skills-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.skills-text-col .skills-subtitle {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 800;
  color: #d53863;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  display: block;
}

.skills-text-col .skills-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.skills-text-col .skills-desc {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d3dcff;
  margin-bottom: 2rem;
  border-left: 3.5px solid #d53863;
  padding-left: 1.25rem;
}

.btn-appointment-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  background-color: #d53863;
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(213, 56, 99, 0.35);
}

.btn-appointment-cta:hover {
  background-color: #b82850;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(213, 56, 99, 0.5);
  color: #ffffff;
}

/* Key Highlights 2x2 Grid */
.skills-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.09);
}

.stat-icon {
  font-size: 1.75rem;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. News Feed & Medical Blog Section (Reference Section 3 & 4)
   -------------------------------------------------------------------------- */
.services-blog-section {
  padding: 5.5rem 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.blog-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.blog-section-subtitle {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 800;
  color: #d53863;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.blog-section-title {
  font-family: var(--font-primary);
  font-size: 2.4rem;
  font-weight: 800;
  color: #0c1527;
  margin-bottom: 1rem;
}

.blog-title-line {
  width: 50px;
  height: 3px;
  background-color: #d53863;
  margin: 0 auto;
}

.services-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(72, 192, 192, 0.4);
}

.news-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.news-card-meta i {
  color: #d53863;
}

.news-card-title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a174c;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.news-card-title a:hover {
  color: #d53863;
}

.news-card-desc {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.news-card-link {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.news-card-link:hover {
  color: #d53863;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   6. Consultation Emergency Help Strip
   -------------------------------------------------------------------------- */
.services-emergency-strip {
  background: linear-gradient(90deg, #5E125E 0%, #235293 100%);
  color: #ffffff;
  padding: 2.75rem 0;
}

.emergency-strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.emergency-strip-text h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.emergency-strip-text p {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.emergency-strip-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-strip-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  background-color: var(--accent-teal);
  color: #0c1527;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-strip-call:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-strip-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-strip-book:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .section-main-heading {
    font-size: 1.85rem;
  }
  
  .services-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .services-search-wrapper {
    min-width: 100%;
  }
  
  .skills-highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .services-blog-grid {
    grid-template-columns: 1fr;
  }
  
  .emergency-strip-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  
  .emergency-strip-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .services-cta-grid {
    grid-template-columns: 1fr;
  }
  
  .service-cta-card {
    min-height: 380px;
  }
  
  .skills-text-col .skills-title {
    font-size: 2rem;
  }
}
