/* ========================== AADITYA HOSPITAL – ORTHOPEDIC PAGE ======================== */

/* ---------- Page hero ---------- */
.ortho-page-hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  padding: 76px 0 72px;
  isolation: isolate;
}

.ortho-page-hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.ortho-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, rgba(93, 8, 39, .91), rgba(23, 34, 38, .60));
}

.ortho-page-hero .container {
  position: relative;
  z-index: 1;
}

.ortho-page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .88);
  font-size: .9rem;
}

.ortho-page-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.ortho-page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.ortho-page-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12;
}

.ortho-page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .91);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.ortho-page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.ortho-page-hero .btn-outline {
  border-color: rgba(255, 255, 255, .85);
  color: #fff;
  background: transparent;
}

.ortho-page-hero .btn-outline:hover {
  color: #C21850;
  background: #fff;
}

/* ---------- Intro section ---------- */
.ortho-intro-section {
  padding-top: 76px;
  padding-bottom: 76px;
}

.ortho-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.ortho-intro-copy,
.ortho-intro-aside {
  min-width: 0;
}

.ortho-intro-copy h2 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
  line-height: 1.2;
}

.ortho-intro-copy p {
  max-width: 760px;
  margin: 0 0 14px;
  line-height: 1.75;
}

.ortho-intro-copy .btn {
  margin-top: 10px;
}

.ortho-intro-aside {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(194, 24, 80, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff 0%, #FBE9F0 100%);
  box-shadow: 0 12px 34px rgba(38, 50, 56, .08);
}

.ortho-aside-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: #C21850;
  font-size: 1.45rem;
}

.ortho-intro-aside h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.ortho-intro-aside p {
  margin: 0 0 18px;
  font-size: .96rem;
  line-height: 1.7;
}

.ortho-intro-aside .text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #C21850;
  font-weight: 700;
  text-decoration: none;
}

.ortho-intro-aside .text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Treatment section ---------- */
.ortho-care-section {
  padding: 82px 0;
  scroll-margin-top: 105px;
}

.ortho-section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.ortho-section-heading h2 {
  margin: 4px 0 12px;
  font-size: clamp(1.9rem, 3.5vw, 2.65rem);
}

.ortho-section-heading p {
  max-width: 690px;
  margin: 0 auto;
  line-height: 1.7;
}

.ortho-treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

.ortho-treatment-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E6E8E6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(38, 50, 56, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.ortho-treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(38, 50, 56, .13);
}

.ortho-treatment-image {
  display: flex;
  height: 260px;
  flex: 0 0 auto;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  background: #EEF3F4;
}

.ortho-treatment-image img {
  display: block;
  width: 100%;
  height: 222px;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.ortho-treatment-image.ortho-image-contain img {
  padding: 12px;
  object-fit: contain;
  background: #F7F9F9;
}

.ortho-treatment-image figcaption {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  color: #5B6A71;
  background: #fff;
  font-size: .72rem;
  line-height: 1.35;
}

.ortho-treatment-image figcaption a {
  color: #267C70;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ortho-treatment-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 28px);
}

.ortho-treatment-label {
  display: inline-block;
  margin-bottom: 5px;
  color: #C21850;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ortho-treatment-content h3 {
  margin: 7px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.28;
}

.ortho-treatment-content > p {
  margin: 0 0 15px;
  font-size: .94rem;
  line-height: 1.72;
}

.ortho-points {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.ortho-points li {
  position: relative;
  padding-left: 26px;
  color: #263238;
  font-size: .91rem;
  line-height: 1.6;
}

.ortho-points li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: #267C70;
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-size: .82rem;
  font-weight: 900;
}

.ortho-treatment-content > .btn {
  margin-top: auto;
}

/* ---------- FAQ accordion ---------- */
.ortho-faq {
  width: 100%;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #E6E8E6;
}

.ortho-faq h4 {
  margin: 0 0 8px;
  color: #172226;
  font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  font-size: .98rem;
  font-weight: 700;
}

.ortho-faq details {
  padding: 12px 0;
  border-bottom: 1px solid #E6E8E6;
}

.ortho-faq summary {
  position: relative;
  padding: 0 32px 0 0;
  color: #172226;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
}

.ortho-faq summary::-webkit-details-marker {
  display: none;
}

.ortho-faq summary::after {
  position: absolute;
  top: -3px;
  right: 3px;
  color: #C21850;
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
}

.ortho-faq details[open] summary::after {
  content: "−";
}

.ortho-faq details p {
  margin: 9px 0 2px;
  color: #5B6A71;
  font-size: .87rem;
  line-height: 1.7;
}

/* ---------- Insurance information panel ---------- */
.ortho-info-panel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 26px 28px;
  border: 1px solid rgba(38, 124, 112, .18);
  border-radius: 20px;
  background: #E4F2EF;
}

.ortho-info-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #267C70;
  font-size: 1.35rem;
}

.ortho-info-panel h3 {
  margin: 0 0 6px;
  color: #172226;
  font-size: 1.18rem;
}

.ortho-info-panel p {
  margin: 0;
  color: #5B6A71;
  font-size: .9rem;
  line-height: 1.65;
}

.ortho-info-panel > .btn {
  white-space: nowrap;
}

/* ---------- Reports / appointment prompt ---------- */
.ortho-report-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(194, 24, 80, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(38, 50, 56, .045);
}

.ortho-report-cta > div {
  min-width: 0;
}

.ortho-report-cta h3 {
  margin: 5px 0 6px;
  color: #172226;
  font-size: 1.25rem;
}

.ortho-report-cta p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
}

.ortho-report-cta > .btn {
  flex: 0 0 auto;
}

/* ---------- Doctor section ---------- */
.ortho-doctor-section {
  padding-top: 78px;
  padding-bottom: 82px;
}

.ortho-doctor-section .section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.ortho-doctor-section .section-heading h2 {
  margin: 4px 0 10px;
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
}

.ortho-doctor-section .section-heading p {
  margin: 0;
}

.ortho-doctor-section .doctor-grid.single {
  display: grid;
  max-width: 690px;
  margin: 0 auto;
}

.ortho-doctor-section .doctor-card {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #E6E8E6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(38, 50, 56, .09);
}

.ortho-doctor-section .doctor-photo {
  min-height: 250px;
  background: #F4F5F4;
}

.ortho-doctor-section .doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center top;
}

.ortho-doctor-section .doctor-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 26px;
}

.ortho-doctor-section .doctor-info h3 {
  margin: 0 0 3px;
  font-size: 1.45rem;
}

.ortho-doctor-section .doctor-info .role {
  color: #267C70;
  font-weight: 700;
}

.ortho-doctor-section .doctor-info .role-mr {
  color: #5B6A71;
  font-size: .92rem;
}

.ortho-doctor-section .doctor-info .qual {
  margin-top: 5px;
  color: #263238;
  font-weight: 600;
}

.ortho-doctor-section .doctor-info .reg {
  color: #5B6A71;
  font-size: .86rem;
}

.ortho-doctor-section .doctor-info .btn {
  margin-top: 12px;
}

/* ---------- Main call-to-action ---------- */
.ortho-page-hero + .ortho-intro-section + .ortho-care-section + .ortho-doctor-section + .cta-band {
  scroll-margin-top: 100px;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .ortho-intro-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
    gap: 28px;
  }

  .ortho-treatment-grid {
    gap: 22px;
  }

  .ortho-treatment-content {
    padding: 22px;
  }

  .ortho-info-panel {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ortho-info-panel > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .ortho-intro-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ortho-intro-aside {
    max-width: 100%;
  }

  .ortho-treatment-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .ortho-treatment-image {
    height: 280px;
  }

  .ortho-treatment-image img {
    height: 242px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .ortho-page-hero {
    min-height: 410px;
    padding: 58px 0 54px;
  }

  .ortho-page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .ortho-page-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 300px;
  }

  .ortho-page-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .ortho-intro-section,
  .ortho-care-section,
  .ortho-doctor-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ortho-section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .ortho-section-heading p {
    margin-left: 0;
  }

  .ortho-treatment-grid {
    gap: 20px;
  }

  .ortho-treatment-image {
    height: 245px;
  }

  .ortho-treatment-image img {
    height: 207px;
  }

  .ortho-treatment-content {
    padding: 20px;
  }

  .ortho-info-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .ortho-info-panel > .btn {
    grid-column: auto;
    justify-self: start;
  }

  .ortho-report-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .ortho-report-cta > .btn {
    width: 100%;
    justify-content: center;
  }

  .ortho-doctor-section .doctor-card {
    grid-template-columns: 1fr;
  }

  .ortho-doctor-section .doctor-photo,
  .ortho-doctor-section .doctor-photo img {
    min-height: 260px;
    max-height: 340px;
  }

  .ortho-doctor-section .doctor-info {
    padding: 22px;
  }
}

@media (max-width: 380px) {
  .ortho-treatment-content {
    padding: 17px;
  }

  .ortho-treatment-image {
    height: 220px;
  }

  .ortho-treatment-image img {
    height: 182px;
  }

  .ortho-intro-aside {
    padding: 22px;
  }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ortho-treatment-card {
    transition: none;
  }

  .ortho-treatment-card:hover {
    transform: none;
  }
}
