﻿/* ==========================================================================
   Dr. Darshan Bafna Orthopaedics - Unified Service Inner Pages
   Clean Alignment + Hero Banner with Breadcrumbs + Interactive Subtopics
   ========================================================================== */


:root {
  --theme-navy: #001F62;
  --theme-blue: #007bbf;
  --theme-bg-light: #f5f7fb;
}

body.service-page {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background-color: var(--theme-bg-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ── 1. HERO BANNER WITH RELATED IMAGE & BREADCRUMB ── */
.service-hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 50px;
  text-align: center;
  box-sizing: border-box;
  transition: background 0.4s ease-in-out;
}

.service-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-hero-title {
  font-family: 'Audiowide', cursive, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.banner-breadcrumb {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.banner-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.banner-breadcrumb a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.banner-breadcrumb span {
  margin: 0 8px;
  opacity: 0.7;
}

.banner-breadcrumb .active-crumb {
  color: #93c5fd;
  font-weight: 600;
  opacity: 1;
}

/* ── 2. PROPERLY ALIGNED SERVICES LAYOUT (SIDEBAR + MAIN CONTENT) ── */
.service-content-wrapper {
  position: relative;
  width: 100%;
  padding: 50px 24px 80px;
  box-sizing: border-box;
}

.service-layout-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
}

/* Sidebar with Circle Image & Subtopics */
.sidebar {
  width: 360px;
  min-width: 320px;
  max-width: 380px;
  background: linear-gradient(135deg, #004c80 0%, #007bbf 100%);
  padding: 24px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 110px;
}

.circle-image {
  width: 210px;
  height: 210px;
  background-color: #007bbf;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  margin: 0 auto 20px auto;
  overflow: hidden;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.sidebar ul#subtopics {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul#subtopics li {
  padding: 13px 18px 13px 36px;
  margin: 10px 0;
  background-color: #ffffff;
  color: var(--theme-navy);
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  transition: all 0.25s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.sidebar ul#subtopics li i {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--theme-navy);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar ul#subtopics li.active {
  background-color: var(--theme-navy);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sidebar ul#subtopics li.active i {
  color: #ffffff;
  transform: rotate(45deg);
}

.sidebar ul#subtopics li:hover {
  background-color: var(--theme-navy);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar ul#subtopics li:hover i {
  color: #ffffff;
}

/* Main Content Card */
.main-content {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 8px 24px rgba(0, 31, 98, 0.1);
  border: 1px solid rgba(0, 31, 98, 0.08);
  box-sizing: border-box;
}

.main-content h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  color: var(--theme-navy);
  text-align: left;
  margin-bottom: 22px;
  font-weight: 700;
  font-family: "Audiowide", system-ui, sans-serif;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.main-content h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--theme-navy);
}

.main-content p {
  margin-bottom: 18px;
  font-size: 16.5px;
  line-height: 1.85;
  color: #334155;
  font-family: 'Outfit', sans-serif;
}

.main-content ul {
  padding-left: 20px;
  margin-bottom: 22px;
}

.main-content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 16px;
  color: #334155;
  font-family: 'Outfit', sans-serif;
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.faq-section h3 {
  cursor: pointer;
  background: var(--theme-navy);
  color: #ffffff;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Outfit', sans-serif;
}

.faq-section h3:hover {
  background: #001646;
  box-shadow: 0 4px 12px rgba(0, 31, 98, 0.25);
}

.faq-section h3 i {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.faq-section p {
  max-height: 0;
  overflow: hidden;
  background: #f8fafc;
  margin: 0;
  border-left: 4px solid var(--theme-navy);
  padding: 0 16px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #475569;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  font-family: 'Outfit', sans-serif;
  border-radius: 0 6px 6px 0;
  box-sizing: border-box;
}

.faq-section h3.active + p {
  max-height: 1000px;
  padding: 14px 18px;
  margin-bottom: 8px;
}

.faq-section h3.active i {
  transform: rotate(90deg);
}

/* ── RESPONSIVE ALIGNMENT ── */
@media (max-width: 991px) {
  .service-layout-container {
    flex-direction: column;
    align-items: center;
  }

  .sidebar {
    width: 100%;
    max-width: 600px;
    position: static;
  }

  .main-content {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 767px) {
  .service-hero-banner {
    min-height: 320px;
    padding-top: 115px;
    padding-bottom: 40px;
  }

  .service-content-wrapper {
    padding: 30px 16px 60px;
  }

  .main-content {
    padding: 24px 20px;
  }

  .circle-image {
    width: 180px;
    height: 180px;
  }
}
