/* =============================================================================
   TABLE OF CONTENTS
   1. Base & Reset
   2. Top Info Bar
      2a. Desktop Layout
      2b. Pills (Call, Directions, Español)
      2c. Scrolled State
   3. Main Navbar
   4. Mobile Nav Dropdown
   5. Hero - Team Card Carousel
   6. Testimonials
   7. Services Section
   8. Affiliations
   9. Intake Form
   10. Footer
============================================================================= */

/* =============================================================================
   1. BASE & RESET
============================================================================= */

html, body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  padding-top: 0;
  margin: 0;
}

/* =============================================================================
   2. TOP INFO BAR
============================================================================= */

.top-info-bar {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: #0a2970;
  color: #ffffff;
  font-size: 1rem;
  white-space: nowrap;
  overflow-x: hidden;
  transition: background-color 0.25s ease;
}

.top-info-bar.scrolled {
  background-color: #0064cd;
}


.top-info-bar a {
  color: inherit;
  text-decoration: none;
}

.top-info-bar a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   2a. DESKTOP LAYOUT (info row grid)
----------------------------------------------------------------------------- */

.top-info-bar .info-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.top-info-bar .info-item:first-child {
  justify-self: start;
}

.top-info-bar .info-item:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.top-info-bar .info-item:last-child {
  justify-self: end;
}

/* Call pill */

.top-info-bar .call-now-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 5px 18px 5px 5px;
  background: #e52424;
  color: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.top-info-bar .call-now-pill .call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  background: #fff;
  color: #e52424;
  border-radius: 50%;
  font-size: 0.875rem;
}

.top-info-bar .call-now-pill .call-text {
  padding-top: 1px;
}

.top-info-bar .call-now-pill:hover {
  background: #c81e1e;
  text-decoration: none;
}

/* Language pill */

.top-info-bar .lang-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 5px 18px 5px 5px;
  background: black;
  color: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.top-info-bar .lang-pill .lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  background: #fff;
  color: #3f63b8;
  border-radius: 50%;
  font-size: 0.95rem;
}

.top-info-bar .lang-pill:hover {
  background: #3454a1;
  text-decoration: none;
}

.top-info-bar .lang-pill.active {
  background: #2f3b59;
}

.top-info-bar .lang-pill.active .lang-icon {
  color: #2f3b59;
}

/* -----------------------------------------------------------------------------
   2b. MOBILE PILLS — replaces desktop row below 992px
----------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .top-info-bar {
    font-size: 0.85rem;
    white-space: normal;
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .call-now-pill {
    font-size: 0.7rem;
  }
}

/* Hide desktop grid */

@media (max-width: 991.98px) {
  .top-info-bar .info-row {
    display: none !important;
  }
}

/* Pill row */

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Shared pill base */

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .pill-sm {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .pill-sm:hover {
    opacity: 0.92;
    text-decoration: none;
  }
}

/* Individual pill colors */

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .pill-call {
    background: #e52424;
    color: #fff;
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .pill-directions {
    background: #ffffff;
    color: black;
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .pill-513, .top-info-bar .topbar-pills .pill-es {
    background: #ffffff;
    color: black;
  }
}

@media (max-width: 991.98px) {
  .top-info-bar .topbar-pills .lang-pill {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    gap: 6px;
    margin-left: 0;
    font-size: 0.82rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }

  .top-info-bar .topbar-pills .lang-pill .lang-icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
    background: transparent;
    border-radius: 0;
  }
}

/* Extra small screens (iPhone SE etc.) */

@media (max-width: 420px) {
  .top-info-bar .topbar-pills {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .pill-sm {
    padding: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
  }
}

/* Hide text spans, show short ::after labels */

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .pill-call span,
  .top-info-bar .topbar-pills .pill-directions span,
  .top-info-bar .topbar-pills .pill-513 span,
  .top-info-bar .topbar-pills .lang-pill .lang-text {
    display: none;
  }
}

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .lang-pill::after {
    content: "Español";
  }
}

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .pill-call::after {
    content: "Call Now";
  }
}

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .pill-directions::after {
    content: "Directions";
  }
}

@media (max-width: 420px) {
  .top-info-bar .topbar-pills .pill-513::after {
    content: "Espanol";
  }
}


/* Pop-out effect for call and language pills */

.call-now-pill, .lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.call-now-pill:hover, .lang-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.call-now-pill:active, .lang-pill:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile pills too */

.pill-sm.pill-call, .pill-sm.pill-directions {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pill-sm.pill-call:hover, .pill-sm.pill-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.pill-sm.pill-call:active, .pill-sm.pill-directions:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes hintLift {
  0% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  }
  15% {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28), 0 3px 6px rgba(0, 0, 0, 0.18);
  }
  30% {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  45% {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  60% {
    transform: translateY(-4px) rotate(1.5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28), 0 4px 8px rgba(0, 0, 0, 0.18);
  }
  80% {
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25), 0 3px 5px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

.hint-lift {
  animation: hintLift 0.9s ease-in-out;
}

/* =============================================================================
   3. MAIN NAVBAR
============================================================================= */

.main-navbar {
  background: #004fa3;
}

.main-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.2px;
}

.main-navbar .nav-link {
  color: white;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.main-navbar .nav-link.active {
  text-decoration: underline;
  font-weight: 600;
}

.main-navbar .nav-link:hover, .main-navbar .nav-link:focus {
  color: white;
}

/* Centered brand on desktop */

@media (min-width: 992px) {
  .brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Tablet / mid-desktop — keep nav on one line */

@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-navbar .container, .main-navbar .navbar-nav {
    min-width: 0;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-navbar .navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.1px;
    white-space: nowrap;
    margin-right: 0.75rem;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-navbar .nav-link {
    font-size: 0.82rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    white-space: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .main-navbar .navbar-nav {
    gap: 0.5rem !important;
    flex-wrap: nowrap;
  }
}

/* Mobile brand */

@media (max-width: 767.98px) {
  .main-navbar .navbar-brand {
    display: block;
    width: 100%;
    max-width: calc(100% - 56px);
    text-align: left;
    margin-right: auto;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
    font-size: 1.15rem;
  }
}

@media (max-width: 767.98px) {
  .main-navbar .navbar-toggler {
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .main-navbar .navbar-brand {
    font-size: 1.05rem;
  }
}

/* =============================================================================
   4. MOBILE NAV DROPDOWN
============================================================================= */

.mobile-nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav .nav-link {
  padding: 0.75rem 0;
  font-weight: 500;
  color: #0064cd;
}

.mobile-nav .nav-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.fullscreen-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #0064cd;
  z-index: 9999;
  overflow-y: auto;
}

.fullscreen-nav.open {
  display: flex;
}

.fullscreen-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 3rem;
  width: 100%;
  min-height: 100%;
}

.fullscreen-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.fullscreen-brand {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  max-width: 75%;
}

.fullscreen-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
}

.fullscreen-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.fullscreen-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-nav-links li a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  padding: 1.1rem 0;
  transition: opacity 0.2s;
}

.fullscreen-nav-links li a:hover {
  opacity: 0.75;
}

.fullscreen-nav-cta {
  margin-top: 2.5rem;
}

.fullscreen-cta-btn {
  display: block;
  text-align: center;
  background-color: red;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fullscreen-cta-btn:hover {
  opacity: 0.85;
  color: white;
}

/* =============================================================================
   5. HERO — TEAM CARD CAROUSEL
============================================================================= */

.team-hero {
  background: #f6f8fb;
  color: #111827;
  overflow: visible;
}

.hero-media {
  position: relative;
  overflow: visible;
  padding: 18px 34px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -30px -10px -30px -10px;
  border-radius: 28px;
  background: radial-gradient( 600px 300px at 65% 40%, rgba(59, 130, 246, 0.14), transparent 55% ), radial-gradient( 500px 260px at 30% 70%, rgba(14, 165, 233, 0.1), transparent 60% );
  pointer-events: none;
}

/* Hide legacy photo elements */

.hero-photo, .hero-nameplate, .hero-profile, .hero-badge {
  display: none !important;
}

/* Card */

.hero-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 34px auto 0;
  padding: 92px 34px 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
  text-align: center;
  overflow: visible !important;
}

/* Avatar */

.hero-team-avatar {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 8px solid #f6f8fb;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.hero-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text */

.hero-team-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 6px;
}

.hero-team-role {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.hero-team-blurb {
  max-width: 44ch;
  margin: 0 auto 18px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Socials */

.hero-team-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
}

.hero-team-socials a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #111827;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hero-team-socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
  opacity: 0.95;
}

.hero-team-socials i {
  font-size: 1.05rem;
}

/* Carousel controls */

.hero-control {
  width: 64px;
  opacity: 1;
}

.hero-control .carousel-control-prev-icon, .hero-control .carousel-control-next-icon {
  width: 2.4rem;
  height: 2.4rem;
  background-size: 100% 100%;
  filter: invert(0);
  opacity: 0.75;
}

.hero-control:hover .carousel-control-prev-icon, .hero-control:hover .carousel-control-next-icon {
  opacity: 1;
}

/* Force black chevron arrows */

#teamHeroCarousel .hero-control .carousel-control-prev-icon, #teamHeroCarousel .hero-control .carousel-control-next-icon {
  background-image: none !important;
  width: 2.4rem !important;
  height: 2.4rem !important;
  opacity: 1 !important;
}

#teamHeroCarousel .hero-control .carousel-control-prev-icon::before, #teamHeroCarousel .hero-control .carousel-control-next-icon::before {
  content: "" !important;
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  border-top: 3px solid #000 !important;
  border-right: 3px solid #000 !important;
  margin: auto !important;
}

#teamHeroCarousel .hero-control .carousel-control-prev-icon::before {
  transform: rotate(-135deg) !important;
}

#teamHeroCarousel .hero-control .carousel-control-next-icon::before {
  transform: rotate(45deg) !important;
}

/* Indicators */

.hero-indicators {
  margin-bottom: -12px;
}

.hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: #111 !important;
  opacity: 0.2;
}

.hero-indicators .active {
  opacity: 0.75;
}

/* Indicators repositioned below card */

#teamHeroCarousel {
  padding-bottom: 40px;
}

#teamHeroCarousel .hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

#teamHeroCarousel .hero-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #111 !important;
  opacity: 0.25;
  transition: opacity 0.2s ease;
}

#teamHeroCarousel .hero-indicators .active {
  opacity: 0.75;
}

/* Fade transition (no slide) */

#teamHeroCarousel.carousel-fade .carousel-inner .carousel-item {
  transition: opacity 0.75s ease-in-out !important;
}

#teamHeroCarousel.carousel-fade .carousel-item-next, #teamHeroCarousel.carousel-fade .carousel-item-prev, #teamHeroCarousel.carousel-fade .carousel-item.active {
  transform: none !important;
}

#teamHeroCarousel.carousel-fade .carousel-item {
  pointer-events: none;
}

#teamHeroCarousel.carousel-fade .carousel-item.active {
  pointer-events: auto;
}

/* Prevent avatar clipping */

#teamHeroCarousel, #teamHeroCarousel .carousel-inner, #teamHeroCarousel .carousel-item {
  overflow: visible !important;
}

#teamHeroCarousel .carousel-inner {
  padding-top: 34px;
}

.team-hero .col-lg-6, .team-hero .hero-media {
  overflow: visible !important;
}

/* Hero responsive */

@media (max-width: 991.98px) {
  .hero-media {
    padding: 16px 18px;
  }
}

@media (max-width: 991.98px) {
  .hero-card {
    padding: 88px 22px 22px;
  }
}

@media (max-width: 991.98px) {
  .hero-team-avatar {
    width: 132px;
    height: 132px;
    border-width: 7px;
    top: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero-card {
    margin-top: 28px;
    padding: 84px 18px 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-team-avatar {
    width: 120px;
    height: 120px;
    border-width: 7px;
    top: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero-team-socials {
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  .hero-team-socials a {
    width: 40px;
    height: 40px;
  }
}

/* =============================================================================
   6. TESTIMONIALS
============================================================================= */

.testimonials-section {
  background: #fff;
}

.testimonials-badge {
  border: 1px solid #d8e6ff;
  background: #f3f7ff;
  color: #1f4ed8;
  font-size: 0.85rem;
}

.testimonials-badge-text {
  color: #1f4ed8;
  font-weight: 600;
}

.testimonials-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  max-width: 980px;
}

.testimonials-avatar-wrap {
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding: 2rem 0 2rem 2rem;
}

.testimonials-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.testimonials-source {
  font-weight: 600;
}

.testimonials-rating {
  color: #f4b000;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.testimonials-quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1a1a1a;
}

.testimonials-quote-mark {
  color: #1f4ed8;
  font-weight: 800;
}

.testimonials-indicators {
  position: static;
  margin-bottom: 1.25rem;
}

.testimonials-indicators [data-bs-target] {
  background-color: #000;
  opacity: 0.25;
}

.testimonials-indicators .active {
  opacity: 1;
}

/* Side arrows */

.testimonials-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  opacity: 1;
  width: auto;
}

.carousel-control-prev.testimonials-control {
  left: 10px;
}

.carousel-control-next.testimonials-control {
  right: 10px;
}

.testimonials-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f2f4f8;
  color: #444;
  font-size: 32px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.testimonials-arrow:hover {
  background: #e6ebf3;
  color: #000;
}

.testimonials-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1399.98px) {
  .testimonials-card {
    max-width: 880px;
  }
}

@media (max-width: 1199.98px) {
  .testimonials-card {
    max-width: 700px;
  }
}

@media (max-width: 991.98px) {
  .testimonials-control {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .testimonials-avatar-wrap {
    padding: 1.25rem 1.25rem 0 1.25rem;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .testimonials-card {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .carousel-control-prev.testimonials-control, .carousel-control-next.testimonials-control {
    display: none;
  }
}

/* =============================================================================
   7. SERVICES SECTION
============================================================================= */

.servicesection {
  background-color: #f8f9fa;
}

.container.py-5 {
  max-width: 1400px;
}

.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  color: #6c757d;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  padding: 10px 20px;
}

.nav-tabs .nav-link.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

.tab-pane {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: block !important;
  height: 0;
  overflow: hidden;
}

.tab-pane.show.active {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-body {
  text-align: center;
}

.card-title {
  font-weight: bold;
}

li + li {
  margin-top: 0;
}

/* =============================================================================
   8. AFFILIATIONS
============================================================================= */

.affiliations-card {
  border-radius: 0.75rem;
}

.affiliations-card .card-body {
  min-height: 200px;
  padding: 1.75rem;
}

.affiliations-logo-box {
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliations-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.affiliations-intro {
  max-width: 540px;
  line-height: 1.6;
}

.affiliations-logo-text {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .affiliations-card {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =============================================================================
   9. INTAKE FORM
============================================================================= */

iframe {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* =============================================================================
   10. FOOTER
============================================================================= */

footer {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: #0064cd;
}

footer a {
  color: #ffef99;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffef99;
}

.footer-links .separator {
  color: white;
}

@media (max-width: 575.98px) {
  .mobile-hide-period {
    display: none;
  }
}

.hours-bar {
  background-color: #e8f0fe;
  border-bottom: 1px solid #c5d5f5;
  font-size: 0.875rem;
  color: #1a3a6b;
}

#privacy-policy {
  background-color: #f8f9fa;
}

