/* ============================================================
   ASTER CLINICS KSA – Main Stylesheet
   Brand: Aster Clinic UAE – Blue #134d92 | Teal #0eb48d
   LTR (English) + RTL (Arabic) | Desktop + Mobile Responsive
   ============================================================ */

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --aster-blue:        #134d92;
  --aster-blue-dark:   #0d3a6e;
  --aster-blue-light:  #e8f0fb;
  --aster-teal:        #0eb48d;
  --aster-teal-dark:   #00b38c;
  --aster-teal-light:  #e0f7f2;
  --text-dark:         #333333;
  --text-mid:          #4a5568;
  --text-light:        #718096;
  --bg-light:          #f7f9fc;
  --bg-white:          #ffffff;
  --border-light:      #e2e8f0;
  --shadow-sm:         0 2px 8px rgba(0,0,0,.07);
  --shadow-md:         0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:         0 12px 48px rgba(0,0,0,.14);
  --radius-sm:         4px;
  --radius-md:         10px;
  --radius-lg:         16px;
  --transition:        all .3s cubic-bezier(.4,0,.2,1);
  --font-body:         'Titillium Web', 'Segoe UI', system-ui, sans-serif;
  --font-arabic:       'DIN Next LT Arabic', 'Segoe UI', Tahoma, sans-serif;
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.42857143;
  letter-spacing: .5px;
  -webkit-font-smoothing: antialiased;
}

/* Arabic body */
[dir="rtl"] body,
[dir="rtl"] {
  font-family: var(--font-arabic);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── TYPOGRAPHY HELPERS ────────────────────────────────────── */

.section-heading {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--aster-blue);
  line-height: 1.25;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

[dir="rtl"] .section-heading {
  font-family: var(--font-arabic);
  font-weight: 600;
  text-transform: none;
}

.section-subtext {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 600px;
  margin: .5rem auto 0;
}


/* ─── NAVBAR ───────────────────────────────────────────────── */
#main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0px 0px 6px -2px rgba(0,0,0,.2);
  padding: 0;
  transition: var(--transition);
  z-index: 1000;
}

#main-nav.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0;
}

.navbar-brand {
  padding: 0;
}
.navbar-brand img { height: 90px; width: auto; }

.navbar-collapse { flex-grow: 0; }

#main-nav .nav-link {
  font-weight: 600;
  font-size: .875rem;
  color: #164d92;
  padding: .45rem .65rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: var(--transition);
  position: relative;
}
#main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: .65rem; right: .65rem; bottom: 0;
  height: 2px;
  background: var(--aster-teal);
  transform: scaleX(0);
  transition: transform .25s ease;
  border-radius: 2px;
}
#main-nav .nav-link:hover { color: var(--aster-teal); }
#main-nav .nav-link:hover::after { transform: scaleX(1); }
#main-nav .nav-link.active { color: var(--aster-teal); }
#main-nav .nav-link.active::after { transform: scaleX(1); }

[dir="rtl"] #main-nav .nav-link::after {
  left: .65rem; right: .65rem;
}

.btn-book-nav {
  background: var(--aster-teal);
  color: #fff;
  border: none;
  padding: .5rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-book-nav:hover { background: var(--aster-teal-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,180,141,.4); }


.lang-btn {
  border: 1.5px solid var(--aster-blue);
  background: var(--aster-blue);
  color: #fff;
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover { background: var(--aster-blue-dark); border-color: var(--aster-blue-dark); color: #fff; }

/* Mobile nav */
.navbar-toggler {
  border: none;
  background: none;
  padding: .35rem;
  font-size: 1.5rem;
  color: var(--text-dark);
  line-height: 1;
}

/* Mobile: backdrop overlay when drawer is open */
#main-nav:has(.navbar-collapse.open)::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
}

/* Mobile nav close button */
.nav-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--aster-blue-light);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--aster-blue);
  transition: var(--transition);
  z-index: 10;
  flex-shrink: 0;
}
.nav-close-btn:hover { background: var(--aster-blue); color: #fff; }
[dir="rtl"] .nav-close-btn { right: auto; left: 1rem; }

@media (max-width: 991.98px) {
  .nav-close-btn { display: flex; }
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 85vw);
    bottom: 0;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 32px rgba(0,0,0,.15);
    overflow-y: auto;
  }
  .navbar-collapse::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aster-blue), var(--aster-teal));
    flex-shrink: 0;
  }
  [dir="rtl"] .navbar-collapse {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 32px rgba(0,0,0,.15);
  }
  [dir="rtl"] .navbar-collapse::before {
    background: linear-gradient(270deg, var(--aster-blue), var(--aster-teal));
  }
  .navbar-collapse.open {
    transform: translateX(0) !important;
  }
  .navbar-nav { flex-direction: column; gap: .4rem; text-align: center; width: 100%; }
  #main-nav .nav-link { font-size: 1rem; padding: .75rem 1.5rem; }
  .btn-book-nav { font-size: .95rem; padding: .75rem 2rem; margin-top: 1rem; width: 100%; }
  .lang-btn { margin-top: .5rem; width: 100%; justify-content: center; }
}

/* ─── HERO BANNER ─────────────────────────────────────────── */
.hero-section {
  padding-top: 90px;
}

.hero-swiper {
  width: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
}

.hero-img {
  width: 100%;
  max-width: 1200px;
  height: 500px;
  object-fit: contain;
  aspect-ratio: 1200 / 500;
  margin: 0 auto;
  display: block;
}

@media (max-width: 767.98px) {
  .hero-img { height: auto; aspect-ratio: 4 / 3; }
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 28px;
  height: 52px;
  background: rgba(0,0,0,.55);
  border-radius: 4px;
  top: 50%;
  margin-top: -26px;
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.hero-swiper .swiper-button-prev { left: 1rem; }
.hero-swiper .swiper-button-next { right: 1rem; }

/* Caption */
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  display: flex; align-items: center;
  padding: 0;
  background: linear-gradient(90deg, rgba(19,77,146,.65) 0%, rgba(19,77,146,.25) 55%, transparent 100%);
  text-align: left;
}
[dir="rtl"] .carousel-caption {
  background: linear-gradient(270deg, rgba(19,77,146,.65) 0%, rgba(19,77,146,.25) 55%, transparent 100%);
  text-align: right;
}
.caption-inner {
  max-width: 540px;
  padding: 2rem 4rem;
}
[dir="rtl"] .caption-inner {
  margin-left: auto;
  padding: 2rem 4rem;
}
.caption-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aster-teal);
  margin-bottom: .75rem;
  padding-left: .75rem;
  border-left: 3px solid var(--aster-teal);
}
[dir="rtl"] .caption-tag {
  padding-left: 0;
  padding-right: .75rem;
  border-left: none;
  border-right: 3px solid var(--aster-teal);
}
.caption-inner h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1.25rem;
}
[dir="rtl"] .caption-inner h2 { font-family: var(--font-arabic); text-transform: none; }
.caption-inner button {
  background: var(--aster-blue);
  color: #fff;
  border: 2px solid transparent;
  padding: .65rem 1.8rem;
  min-width: 180px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: var(--transition);
}
.caption-inner button:hover { background: transparent; border-color: #fff; transform: translateY(-2px); }

@media (max-width: 767.98px) {
  .caption-inner { padding: 1.5rem 1.5rem; }
  .caption-inner h2 { font-size: 1.35rem; }
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.section-about {
  padding: 60px 0;
  background: var(--bg-white);
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
}
.about-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--aster-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 110px;
  border-left: 4px solid var(--aster-teal);
}
[dir="rtl"] .about-badge { right: auto; left: -24px; border-left: none; border-right: 4px solid var(--aster-teal); }
.badge-num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; }
.badge-label { display: block; font-size: .78rem; font-weight: 500; opacity: .9; margin-top: .2rem; }

.about-content { padding-left: 2rem; }
[dir="rtl"] .about-content { padding-left: 0; padding-right: 2rem; }

.about-content p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: .97rem;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 3px solid var(--aster-teal);
}
[dir="rtl"] .stat-item { padding-left: 0; padding-right: 1rem; border-left: none; border-right: 3px solid var(--aster-teal); }
.stat-item strong { font-size: 2rem; font-weight: 700; color: var(--aster-blue); line-height: 1; }
.stat-item span { font-size: .85rem; color: var(--text-mid); font-weight: 500; margin-top: .25rem; }

@media (max-width: 991.98px) {
  .section-about { padding: 48px 0; }
  .about-content { padding-left: 0; padding-right: 0; margin-top: 2.5rem; }
  .about-badge { bottom: -16px; right: -12px; }
  [dir="rtl"] .about-badge { left: -12px; right: auto; }
}

/* ─── CLINICS ──────────────────────────────────────────────── */
.section-clinics {
  padding: 60px 0;
  background: #f2f2f2;
}

.clinic-row { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; margin-bottom: 1.75rem; }
.clinic-row:last-child { margin-bottom: 0; }

.clinic-img-col { overflow: hidden; }
.clinic-img-wrap { position: relative; height: 100%; min-height: 380px; }
.clinic-img {
  width: 100%; height: 100%; min-height: 380px;
  object-fit: cover;
  transition: transform .6s ease;
}
.clinic-row:hover .clinic-img { transform: scale(1.03); }
.clinic-overlay-tag {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: var(--aster-blue);
  color: #fff;
  padding: .45rem 1rem;
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow-sm);
}
[dir="rtl"] .clinic-overlay-tag { left: auto; right: 1.2rem; }

.clinic-content { padding: 3rem; position: relative; overflow: hidden; }
.clinic-content-right { border-left: 4px solid var(--aster-blue); }
.clinic-content-left { border-right: 4px solid var(--aster-teal); border-left: none; }
[dir="rtl"] .clinic-content-right { border-left: none; border-right: 4px solid var(--aster-blue); }
[dir="rtl"] .clinic-content-left { border-right: none; border-left: 4px solid var(--aster-teal); }

.clinic-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 8rem;
  font-weight: 700;
  color: var(--aster-blue);
  opacity: .05;
  font-family: var(--font-body);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
[dir="rtl"] .clinic-number { right: auto; left: 1.5rem; }

.clinic-content h3 {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--aster-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}
[dir="rtl"] .clinic-content h3 { font-family: var(--font-arabic); text-transform: none; }

.clinic-content p { color: var(--text-mid); margin-bottom: .9rem; font-size: .97rem; line-height: 1.7; }

.clinic-features {
  display: flex; flex-direction: column; gap: .55rem;
  margin: 1.5rem 0;
}
.clinic-features span {
  display: flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 500; color: var(--text-dark);
}
.clinic-features .bi-check-circle-fill { color: var(--aster-teal); font-size: .95rem; flex-shrink: 0; }

.btn-clinic {
  background: var(--aster-blue);
  border: 2px solid var(--aster-blue);
  color: #fff;
  padding: .65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: var(--transition);
  margin-top: .5rem;
}
.btn-clinic:hover { background: var(--aster-teal); border-color: var(--aster-teal); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(14,180,141,.3); }

@media (max-width: 991.98px) {
  .section-clinics { padding: 48px 0; }
  .clinic-content { padding: 2rem 1.5rem; }
  .clinic-content-right, .clinic-content-left { border: none; border-top: 4px solid var(--aster-blue); }
  .clinic-img-wrap, .clinic-img { min-height: 260px; }
  .flex-lg-row-reverse { flex-direction: column !important; }
}

/* ─── SPECIALTIES ──────────────────────────────────────────── */
.section-specialties {
  padding: 56px 0;
  background: var(--bg-white);
}

.specialities_info_heading {
  background-color: var(--aster-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  display: block;
  width: 100%;
}

.slider_swiper_specialities {
  padding: 0 44px;
}

.spec-swiper { overflow: hidden; }
.spec-swiper .swiper-slide { height: auto; }

.specialities_details {
  padding: 1.25rem .75rem 1.5rem;
  cursor: pointer;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.specialities_details:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--aster-teal);
}
.specialities_details img {
  width: 72px;
  height: 72px;
  margin: 0 auto .75rem;
  display: block;
  object-fit: contain;
  transition: transform .25s ease;
}
.specialities_details:hover img { transform: scale(1.1); }
.specialities_details h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--aster-blue);
  margin: 0 0 .6rem;
  line-height: 1.4;
}
.spec-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.spec-swiper .swiper-button-prev,
.spec-swiper .swiper-button-next {
  color: #a6a8ab;
  width: 32px;
  height: 32px;
}
.spec-swiper .swiper-button-prev::after,
.spec-swiper .swiper-button-next::after {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.spec-swiper .swiper-button-prev { left: 0; right: auto; }
.spec-swiper .swiper-button-next { right: 0; left: auto; }

/* Swiper adds .swiper-rtl class (not dir attr) when dir:'rtl' is passed */
.spec-swiper.swiper-rtl .swiper-button-prev { right: 0; left: auto; }
.spec-swiper.swiper-rtl .swiper-button-next { left: 0; right: auto; }

/* Hero swiper RTL arrow positions */
.hero-swiper.swiper-rtl .swiper-button-prev { left: auto; right: 1rem; }
.hero-swiper.swiper-rtl .swiper-button-next { right: auto; left: 1rem; }

@media (max-width: 767.98px) {
  .section-specialties { padding: 40px 0; }
  .slider_swiper_specialities { padding: 0 36px; }
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.section-contact {
  padding: 60px 0;
  background: var(--bg-light);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--aster-blue);
  height: 100%;
}
.contact-card-header {
  background: var(--aster-blue);
  color: #fff;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid var(--aster-teal);
}
.contact-num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-body);
  opacity: .4;
  line-height: 1;
}
.contact-card-header h4 { font-size: 1rem; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .5px; }

.contact-list { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-list .bi {
  color: var(--aster-blue);
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.contact-list li div { display: flex; flex-direction: column; }
.contact-list strong { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aster-teal); margin-bottom: .15rem; }
.contact-list span { font-size: .95rem; color: var(--text-dark); }

/* Map */
.map-section { margin-top: 2rem; }
.map-tabs { display: flex; gap: 0; margin-bottom: 0; }
.map-tab {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-bottom: none;
  padding: .75rem 1.75rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: var(--transition);
  border-radius: 0;
}
.map-tab:first-child { border-right: none; }
[dir="rtl"] .map-tab:first-child { border-right: 1px solid var(--border-light); border-left: none; }
.map-tab.active { background: var(--aster-blue); color: #fff; border-color: var(--aster-blue); }
.map-tab:hover:not(.active) { background: var(--aster-blue-light); color: var(--aster-blue); }

.map-wrap {
  border: 2px solid var(--aster-blue-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.map-frame { display: none; width: 100%; border: none; height: 420px; }
.map-frame.active { display: block; }

@media (max-width: 767.98px) {
  .section-contact { padding: 48px 0; }
  .map-tabs { flex-wrap: wrap; }
  .map-tab { flex: 1; text-align: center; border-radius: 0; border: 1px solid var(--border-light); }
}

/* ─── CTA SECTION ──────────────────────────────────────────── */
.section-cta {
  padding: 60px 0;
  background: var(--aster-blue);
}

.cta-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1.35;
}
[dir="rtl"] .cta-text h2 { font-family: var(--font-arabic); }
.cta-text p { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

.btn-cta-primary {
  background: var(--aster-teal);
  color: #fff;
  border: 2px solid var(--aster-teal);
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  transition: var(--transition);
}
.btn-cta-primary:hover { background: #0aa07c; border-color: #0aa07c; transform: translateY(-2px); }

.btn-cta-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  display: flex; align-items: center; gap: .5rem;
  transition: var(--transition);
  text-decoration: none;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }

@media (max-width: 767.98px) {
  .cta-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-actions { justify-content: center; width: 100%; }
  .btn-cta-primary, .btn-cta-secondary { width: 100%; justify-content: center; }
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--aster-teal);
  color: #fff;
  padding-top: 2.5rem;
  overflow-x: hidden;
}

.footer-logo { filter: brightness(0) invert(1); margin-bottom: 1rem; width: 120px; height: auto; display: block; }
.footer-desc { font-size: .875rem; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  filter: invert(1);
  transition: var(--transition);
}
.footer-social a:hover { opacity: .75; transform: translateY(-2px); }

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; color: #fff; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { text-decoration: underline; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .875rem; color: #fff;
  margin-bottom: .65rem;
}
.footer-contact .bi { color: #fff; flex-shrink: 0; margin-top: .15rem; }

.footer-top {
  padding-bottom: 2rem;
  position: relative;
}

/* Vertical dividers between columns — matches Aster UAE ::after borders */
.footer-top > .row > [class*="col-lg"]:not(:last-child) {
  position: relative;
}
.footer-top > .row > [class*="col-lg"]:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1.5px;
  height: 100%;
  background: rgba(255,255,255,.35);
}
[dir="rtl"] .footer-top > .row > [class*="col-lg"]:not(:last-child)::after {
  right: auto; left: 0;
}

.footer-bottom {
  border-top: 2px solid #fff;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom p { font-size: .82rem; color: #fff; margin: 0; font-weight: 600; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .82rem; color: #fff; font-weight: 600; transition: var(--transition); }
.footer-bottom-links a:hover { text-decoration: underline; }

/* ─── NEWS & VIDEO SECTION ─────────────────────────────────── */
.aster_latest {
  background: #fff;
  padding-top: 3rem;
}

.aster_latest_info {
  background-color: var(--aster-blue);
  color: #fff;
  font-weight: 400;
  display: block;
  width: 100%;
}

.aster_latest_img {
  overflow: hidden;
}

.aster_latest_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background-color: #f0f0f0;
}

.aster_latest_img .youtube-thumbnail {
  flex: 1;
  min-height: 0;
}

.slide_title {
  color: #dc3545;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.1rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}
.slide_title:hover { color: #b02a37; text-decoration: underline; }

.news-swiper .swiper-button-prev,
.news-swiper .swiper-button-next,
.video-swiper .swiper-button-prev,
.video-swiper .swiper-button-next {
  color: #1c3f73;
}
.news-swiper .swiper-button-prev::after,
.news-swiper .swiper-button-next::after,
.video-swiper .swiper-button-prev::after,
.video-swiper .swiper-button-next::after {
  font-size: 25px;
  font-weight: 600;
  color: #000;
}

@media (max-width: 767.98px) {
  .aster_latest_img[style*="height:500px"],
  .aster_latest_img[style*="height:460px"] {
    height: 280px !important;
  }
}

/* ─── APPOINTMENT MODAL ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.appt-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: modalIn .35s cubic-bezier(.4,0,.2,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--bg-light);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-mid);
  z-index: 10;
  transition: var(--transition);
}
[dir="rtl"] .modal-close { right: auto; left: 1rem; }
.modal-close:hover { background: #fee; color: #c53030; }

.modal-header-custom {
  background: var(--aster-blue);
  padding: 1.8rem 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: 3px solid var(--aster-teal);
}
.modal-logo {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto .9rem;
  filter: brightness(0) invert(1);
}
.modal-header-custom h3 { color: #fff; font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
[dir="rtl"] .modal-header-custom h3 { font-family: var(--font-arabic); }
.modal-header-custom p { color: rgba(255,255,255,.8); font-size: .875rem; margin: 0; }

.modal-body-custom { padding: 2rem; }

.form-label { font-size: .85rem; font-weight: 600; color: var(--text-dark); margin-bottom: .4rem; display: block; }

.aster-input {
  border: 1.5px solid var(--border-light);
  border-radius: 0;
  padding: 0 .9rem;
  height: 42px;
  font-size: .95rem;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
  background: #fff;
  color: var(--text-dark);
}
textarea.aster-input {
  height: auto;
  padding: .65rem .9rem;
  resize: vertical;
  min-height: 100px;
}
.aster-input:focus { border-color: var(--aster-blue); outline: none; box-shadow: 0 0 0 3px rgba(19,77,146,.12); }

.btn-submit-appt {
  background: var(--aster-blue);
  color: #fff;
  border: none;
  padding: 0;
  height: 48px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: var(--transition);
  margin-top: .5rem;
}
.btn-submit-appt:hover { background: var(--aster-teal); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,180,141,.3); }

.appt-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.appt-success .bi { font-size: 3.5rem; color: var(--aster-teal); display: block; margin-bottom: 1rem; }
.appt-success h4 { font-family: var(--font-body); font-size: 1.3rem; color: var(--aster-blue); font-weight: 700; margin-bottom: .6rem; }
[dir="rtl"] .appt-success h4 { font-family: var(--font-arabic); }
.appt-success p { color: var(--text-mid); font-size: .95rem; }

/* ─── RTL SPECIFIC OVERRIDES ───────────────────────────────── */

[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .ps-4, [dir="rtl"] .pe-4 { padding-left: 0; padding-right: 0; }

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTILITY ───────────────────────────────────────────────── */
.container-xl { max-width: 1400px; padding: 0 1.5rem; margin: 0 auto; }

@media (max-width: 575.98px) {
  .container-xl { padding: 0 1rem; }
  .section-about, .section-clinics, .section-specialties, .section-contact, .section-cta { padding: 36px 0; }
  .cta-inner { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .modal-body-custom { padding: 1.5rem 1.25rem; }
}
