/* Shared visual system for public therapy-service pages. */
.service-page { color: #f2eee8; overflow: hidden; }
.service-page section { padding-block: clamp(2.75rem, 5vw, 5rem); }
.service-page .hero { padding-top: clamp(2.5rem, 5vw, 5rem); }
.service-page .hero-box { background: linear-gradient(145deg, #121212, #1b1b1b); border: 1px solid rgba(184, 138, 74, .3); border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); }
.service-page h1, .service-page h2, .service-page h3, .service-page h4 { color: #e8c8a0; }
.service-page p, .service-page li { line-height: 1.85; }
.service-page .hero-image-home { width: 100%; max-width: 520px; height: auto; object-fit: cover; border: 1px solid rgba(212, 175, 55, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.service-page .service-card, .service-page .ot-card, .service-page .ot-feature-card, .service-page .ot-service-card { background: linear-gradient(145deg, #121212, #1b1b1b); border: 1px solid rgba(184, 138, 74, .3); border-radius: 22px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); height: 100%; padding: clamp(1.35rem, 3vw, 2.2rem); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.service-page .service-card:hover, .service-page .ot-card:hover, .service-page .ot-feature-card:hover, .service-page .ot-service-card:hover { transform: translateY(-6px); border-color: #d4af37; box-shadow: 0 18px 40px rgba(212, 175, 55, .18); }
.service-page .ot-card-left, .service-page .ot-card-right { border-inline: 1px solid rgba(184, 138, 74, .3); }
.service-page .service-icon, .service-page .ot-feature-icon, .service-page .ot-service-icon, .service-page .ot-icon { color: #d4af37; }
.service-page .gold-list li::marker, .service-page .ot-check-list li::before, .service-page .ot-card li::before { color: #d4af37; }
@media (max-width: 991px) { .service-page section { padding-block: 2.5rem; } .service-page .hero-box { padding: 1.5rem; } .service-page .hero-content { text-align: left; } .service-page .hero-image-home { margin-top: 1.5rem; max-width: 100%; } .service-page .service-card, .service-page .ot-card, .service-page .ot-feature-card, .service-page .ot-service-card { padding: 1.35rem; } }
@media (max-width: 575px) { .service-page section { padding-block: 2rem; } .service-page h1 { font-size: clamp(2rem, 10vw, 2.7rem); } .service-page h2 { font-size: clamp(1.55rem, 7vw, 2rem); } .service-page .lead, .service-page p, .service-page li { font-size: .98rem; } }

/* A single card system for every Services-dropdown page. */
.service-page > section:not(.hero) > .container,
.service-page .ot-section > .container,
.service-page .ot-feature-section > .container {
  background: linear-gradient(145deg, #121212, #1b1b1b);
  border: 1px solid rgba(184, 138, 74, .3);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.service-page .ot-section,
.service-page .ot-feature-section {
  background: transparent;
  padding-block: clamp(2.75rem, 5vw, 5rem);
}

.service-page .ot-block {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.service-page .service-card,
.service-page .ot-card,
.service-page .ot-feature-card,
.service-page .ot-service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.service-page ul,
.service-page .gold-list,
.service-page .ot-check-list,
.service-page .ot-card ul {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.service-page li,
.service-page .gold-list li,
.service-page .ot-check-list li,
.service-page .ot-card li {
  list-style: disc;
  margin: 0 0 .55rem;
  padding: 0 0 0 .2rem;
  text-align: left;
}

.service-page .ot-check-list li::before,
.service-page .ot-card li::before {
  content: none;
}

.service-page .service-card h4,
.service-page .ot-card h3,
.service-page .ot-service-card h3 {
  min-height: 0;
  margin-bottom: 1rem;
  text-align: left;
}

@media (max-width: 991px) {
  .service-page > section:not(.hero) > .container,
  .service-page .ot-section > .container,
  .service-page .ot-feature-section > .container {
    border-radius: 18px;
    padding: 1.25rem;
  }

  .service-page .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .service-page .assessment-two-column {
    gap: 0;
    margin-top: 0;
  }

  .service-page .service-card,
  .service-page .ot-card,
  .service-page .ot-feature-card,
  .service-page .ot-service-card {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .service-page > section:not(.hero) > .container,
  .service-page .ot-section > .container,
  .service-page .ot-feature-section > .container {
    padding: 1rem;
  }

  .service-page ul,
  .service-page .gold-list,
  .service-page .ot-check-list,
  .service-page .ot-card ul {
    padding-left: 1.2rem;
  }

  .service-page li,
  .service-page .gold-list li,
  .service-page .ot-check-list li,
  .service-page .ot-card li {
    margin-bottom: .45rem;
    padding-left: .15rem;
  }
}

/* The assessment keeps its inner content card without an additional outer card. */
.service-page .assessment-section > .container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Keep the intervention and goal content cards without a duplicate outer card. */
.service-page .interventions-section > .container,
.service-page .goals-section > .container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* The Services heading remains plain; only its individual service cards are framed. */
.special-education-page .services-list-section > .container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Keep Approach and Goal content without decorative wrapper cards. */
.special-education-page .approach-section .mt-5.p-4 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Tighten the transition from the service cards to Our Approach. */
.special-education-page .services-list-section {
  padding-bottom: 1rem;
}

.special-education-page .approach-section {
  padding-top: 1rem;
}

.special-education-page .approach-section .mt-5 {
  margin-top: 0 !important;
}

/* Tighten the transition to Our Goal and remove only its outer wrapper. */
.special-education-page .approach-section {
  padding-bottom: 1rem;
}

.special-education-page .goal-section {
  padding-top: 1rem;
}

.special-education-page .goal-section > .container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Refine the typography inside the gold Our Goal card. */
.special-education-page .goal-section .p-5 {
  padding: clamp(1.75rem, 4vw, 3.5rem) !important;
}

.special-education-page .goal-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}

.special-education-page .goal-section p {
  max-width: 800px;
  margin-inline: auto;
  color: #2c1b0e;
  font-size: clamp(1rem, 1.25vw, 1.15rem) !important;
  line-height: 1.75 !important;
  text-align: center !important;
}

/* Speech Therapy: remove marked outer wrappers, retain the inner content cards. */
.speech-therapy-page .speech-inner-card-section > .container {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.speech-therapy-page .communication-section .p-4.rounded-4 {
  border: 1px solid rgba(184, 138, 74, .55) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

/* Use compact internal spacing for all Speech Therapy content cards. */
.speech-therapy-page .p-5.rounded-4 {
  padding: clamp(1.25rem, 2.25vw, 2rem) !important;
}

.speech-therapy-page .p-4.rounded-4 {
  padding: clamp(1rem, 1.75vw, 1.4rem) !important;
}

.speech-therapy-page > section:not(.hero):not(.speech-inner-card-section) > .container {
  padding: clamp(1.1rem, 2vw, 1.75rem);
}

/* Use compact, consistent spacing between all Speech Therapy sections. */
.speech-therapy-page > section:not(.hero) {
  padding-block: .75rem;
}

.speech-therapy-page > section.communication-section {
  padding-bottom: .25rem;
}

.speech-therapy-page > section.speech-approach-section {
  padding-top: .25rem;
}

.speech-therapy-page .speech-approach-section .mt-5 {
  margin-top: 0 !important;
}

/* Tighten the Language Therapy to Autism section transition. */
.speech-therapy-page .language-section {
  padding-bottom: .25rem;
}

.speech-therapy-page .autism-social-section {
  padding-top: .25rem;
}

@media (max-width: 575px) {
  .speech-therapy-page > section:not(.hero) {
    padding-block: 1rem;
  }

  /* Remove excess gaps when Speech Therapy's desktop list columns stack. */
  .speech-therapy-page .assessment-two-column {
    gap: 0;
    margin-top: .5rem;
  }

  .speech-therapy-page .assessment-two-column .gold-list {
    margin-block: .25rem;
    padding-left: 1.2rem;
  }

  .speech-therapy-page .assessment-two-column .gold-list li {
    margin-bottom: .5rem;
  }

  .speech-therapy-page .autism-social-section .p-5.rounded-4 {
    padding: 1.25rem !important;
  }

  /* Keep every remaining Speech Therapy card inside the viewport edges. */
  .speech-therapy-page > section:not(.hero):not(.speech-inner-card-section) > .container,
  .speech-therapy-page .speech-inner-card-section .p-5.rounded-4,
  .speech-therapy-page .speech-inner-card-section .p-4.rounded-4 {
    width: auto;
    margin-inline: .75rem;
    box-sizing: border-box;
  }
}

/* Align icons and content at the top of every Special Education service card. */
.special-education-page .service-card .service-icon {
  flex: 0 0 auto;
  margin: 0 auto 1.25rem;
}

/* Reduce the gap between assessment and intervention sections. */
.service-page .assessment-section {
  padding-top: clamp(1.5rem, 2vw, 2.5rem);
  padding-bottom: 1rem;
}

.service-page .occupational-overview-section {
  padding-bottom: 0;
}

.service-page .interventions-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Occupational Therapy: replace the alternating icon/text rows with cards. */
.service-page .occupational-overview > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(145deg, #121212, #1b1b1b);
  border: 1px solid rgba(184, 138, 74, .3);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.service-page .occupational-overview > .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.service-page .occupational-overview > .row > .col-lg-5 {
  order: -1;
}

.service-page .occupational-overview > .row > .col-lg-5 i {
  display: inline-block;
  font-size: clamp(3.5rem, 7vw, 5.5rem) !important;
}

.service-page .occupational-overview > .row > .col-lg-7 > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.service-page .occupational-overview > .row h3 {
  margin-bottom: 1rem;
  text-align: left;
}

/* Lay the Occupational Therapy topics out as a responsive card grid. */
.service-page .occupational-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.service-page .occupational-overview > .text-center {
  grid-column: 1 / -1;
  margin-bottom: 1rem !important;
  order: 0;
}

.service-page .occupational-overview > .text-center h1 {
  font-size: clamp(2rem, 2.5vw, 2.75rem);
}

.service-page .occupational-overview > .row {
  min-width: 0;
  height: 100%;
  margin: 0;
}

.service-page .occupational-overview > .row > .col-lg-5 i {
  font-size: clamp(2.5rem, 3vw, 3.6rem) !important;
}

.service-page .occupational-overview > .row h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
  line-height: 1.35;
}

/* Keep the introduction as a plain full-width heading block. */
.service-page .occupational-overview > .occupational-intro {
  order: 1;
  grid-column: 1 / -1;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 clamp(.25rem, 2vw, 1rem);
}

/* Preserve the topic sequence while swapping Learning and Neurological cards. */
.service-page .occupational-developmental { order: 2; }
.service-page .occupational-learning { order: 3; }
.service-page .occupational-genetic { order: 4; }
.service-page .occupational-sensory { order: 5; }
.service-page .occupational-neurological { order: 6; }
.service-page .occupational-functional { order: 7; }
.service-page .occupational-responsibilities { order: 8; }

.service-page .occupational-overview > .occupational-intro > .col-lg-5 {
  display: none;
}

.service-page .occupational-overview > .occupational-intro > .col-lg-7 > div {
  text-align: center;
}

.service-page .occupational-overview > .occupational-intro h3 {
  color: #e8c8a0;
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  text-align: center;
}

/* Topic cards, including responsibilities, stay compact in the same grid. */
.service-page .occupational-overview > .row:not(.occupational-intro) {
  padding: 1rem 1.1rem;
}

.service-page .occupational-overview > .row:not(.occupational-intro) > .col-lg-5 i {
  font-size: clamp(2.15rem, 2.6vw, 3.1rem) !important;
}

.service-page .occupational-overview > .row:not(.occupational-intro) ul {
  margin-top: .65rem;
}

.service-page .occupational-overview > .row:not(.occupational-intro) li {
  margin-bottom: .35rem;
}


@media (min-width: 1400px) {
  .service-page .occupational-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .service-page .occupational-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .service-page .occupational-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    width: auto;
    margin-inline: .75rem;
  }

  /* Keep the introduction plain, as on desktop. */
  .service-page .occupational-overview > .occupational-intro {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 .25rem !important;
  }

  .service-page .occupational-overview > .occupational-intro > .col-lg-7 > div,
  .service-page .occupational-overview > .occupational-intro h3 {
    text-align: left;
  }

  .service-page .occupational-overview > .occupational-intro h3 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
  }

  .service-page .occupational-overview > .row {
    box-sizing: border-box;
    border-radius: 18px;
    margin: 0 !important;
    padding: 1.1rem;
  }

  /* Compact secondary Occupational Therapy section headings on phones. */
  .service-page .assessment-section,
  .service-page .interventions-section {
    padding-block: 1.25rem;
  }

  .service-page .assessment-section .text-center,
  .service-page .interventions-section .text-center {
    margin-bottom: 1rem !important;
  }

  .service-page .assessment-section .ot-feature-title,
  .service-page .interventions-section .ot-feature-title {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: .5rem;
  }

  .service-page .assessment-section .ot-feature-card {
    padding: 1.1rem;
    width: auto;
    margin-inline: .75rem;
    box-sizing: border-box;
  }

  .service-page .assessment-section .ot-note-box {
    margin-inline: .75rem;
  }

  .service-page .interventions-section .ot-service-card {
    width: auto;
    margin-inline: .75rem;
    box-sizing: border-box;
  }

  .service-page .goals-section .p-5 {
    width: auto;
    margin-inline: .75rem;
    box-sizing: border-box;
  }

  /* Keep the Special Education benefit list compact when its columns stack. */
  .special-education-page .assessment-two-column {
    gap: 0;
    margin-top: .75rem;
  }

  .special-education-page .assessment-two-column .gold-list {
    margin-block: 0;
    padding-left: 1.2rem;
  }

  .special-education-page .assessment-two-column .gold-list li {
    margin-bottom: .6rem;
  }

  /* Keep every Special Education card inset from the phone screen edges. */
  .special-education-page > section:not(.hero) > .container,
  .special-education-page .service-card {
    width: auto;
    margin-inline: .75rem;
    box-sizing: border-box;
  }

  .special-education-page .service-card h4 {
    font-size: 1.2rem;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
  }

  .special-education-page .service-card p,
  .special-education-page .service-card li {
    text-align: left !important;
    line-height: 1.65;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}
