/* ========== PREMIUM CLINIC DESIGN SYSTEM ========== */ :root {
  --bg: #eef3f7;
  --surface: #fff;
  --ink: #0E2A20;
  --muted: #68756E;
  --primary: #123B2C;
  --primary-2: #1B5A43;
  --accent: #bcdbd0;
  --accent-ink: #25380D;
  --soft: #ddeae5;
  --line: rgba(14, 42, 32, .09);
  --shadow: 0 24px 60px -24px rgba(14, 42, 32, .22);
  --r: 22px;
  --r-lg: 30px;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  overflow-x: hidden
}
html[lang="ar"] body {
  font-family: var(--font-ar);
  letter-spacing: 0
}
::selection {
  background: var(--accent);
  color: var(--accent-ink)
}
::-webkit-scrollbar {
  width: 10px
}
::-webkit-scrollbar-track {
  background: var(--bg)
}
::-webkit-scrollbar-thumb {
  background: var(--primary-2);
  border-radius: 99px
}
img {
  max-width: 100%
}
h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 {
  letter-spacing: 0
}
a {
  text-decoration: none;
  color: inherit
}
.section {
  padding: 100px 0 0 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.2rem
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem)
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px
}
.text-lime {
  color: var(--primary-2)
}
/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s
}
#preloader.hide {
  opacity: 0;
  pointer-events: none
}
.loader {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  animation: pulse 1s infinite
}
@keyframes pulse {
  50% {
    transform: scale(1.15)
  }
}
/* Navbar (glass) */
.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgb(223 233 243 / 82%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: .3s;
  padding: 1rem 0
}
.nav-premium.scrolled {
  padding: .55rem 0;
  box-shadow: 0 10px 30px -18px rgba(14, 42, 32, .25)
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary)
}
.brand i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center
}
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 auto
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  opacity: .8;
  transition: .25s;
  position: relative
}
.nav-links a:hover {
  opacity: 1;
  color: var(--primary-2)
}
.lang-toggle {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px
}
.lang-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  color: var(--muted)
}
.lang-toggle button.active {
  background: var(--primary);
  color: #fff
}
/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border-radius: 999px;
  padding: .95rem 1.9rem;
  font-weight: 700;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  transition: .3s
}
.btn-pill i {
  transition: .3s
}
.btn-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}
.btn-pill:hover i {
  transform: translateX(4px)
}
html[lang="rtl"] .btn-pill:hover i {
  transform: translateX(-4px)
}
.btn-dark {
  background: var(--primary);
  color: #fff
}
.btn-lime {
  background: var(--accent);
  color: var(--accent-ink)
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink)
}
/* Hero */
.hero {
  padding: 130px 0 90px;
  position: relative
}
.hero-blob {
  position: absolute;
  top: -80px;
  inset-inline-end: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgb(213 236 255), transparent 70%);
  filter: blur(50px);
  z-index: -1
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.3rem)
}
.hero h1 span {
  color: var(--primary-2);
  position: relative
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px
}
.hero-img-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow)
}
.hero-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover
}
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: .65rem 1.2rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  animation: float 6s ease-in-out infinite
}
.float-chip.lime {
  background: var(--accent);
  color: var(--accent-ink)
}
.float-chip i {
  color: var(--primary-2)
}
.fc-1 {
  top: 24px;
  inset-inline-start: 24px
}
.fc-2 {
  bottom: 90px;
  inset-inline-end: 24px;
  animation-delay: 1.5s
}
.fc-3 {
  bottom: 24px;
  inset-inline-start: 40px;
  animation-delay: 3s
}
@keyframes float {
  50% {
    transform: translateY(-12px)
  }
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem
}
.trust-avatars {
  display: flex
}
.trust-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  margin-inline-start: -12px;
  object-fit: cover
}
.trust-avatars img:first-child {
  margin: 0
}
/* Marquee */
.marquee {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  padding: 16px 0;
  border-radius: 16px
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 700
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 3rem
}
.marquee-track i {
  color: var(--accent)
}
@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}
[dir="rtl"] .marquee-track {
  animation-direction: reverse
}
/* Cards */
.card-premium {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  height: 100%;
  transition: .4s
}
.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent
}
.icon-tile {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
  transition: .4s
}
.card-premium:hover .icon-tile {
  background: var(--accent)
}
.card-premium h5 {
  font-size: 1.15rem;
  margin-bottom: .6rem
}
.card-premium p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0
}
/* Directors */
.director-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: .4s
}
.director-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow)
}
.director-card img {
  height: 280px;
  width: 100%;
  object-fit: cover
}
.director-body {
  padding: 1.6rem
}
.director-role {
  color: var(--primary-2);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em
}
/* Doctors */
.doctor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: .4s;
  position: relative
}
.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow)
}
.doctor-card img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: top
}
.doctor-body {
  padding: 1.4rem
}
.doctor-body .spec {
  color: var(--primary-2);
  font-weight: 700;
  font-size: .85rem
}
.book-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  margin-top: .8rem;
  transition: .3s
}
.book-link:hover {
  color: var(--primary-2);
  gap: .8rem
}
/* Stats */
.stats-band {
  background: var(--primary);
  border-radius: var(--r-lg);
  padding: 60px 40px;
  color: #fff
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent)
}
.stat-lbl {
  opacity: .85;
  font-weight: 600
}
/* Testimonials */
.t-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
  scrollbar-width: none
}
.t-row::-webkit-scrollbar {
  display: none
}
.t-card {
  min-width: 360px;
  max-width: 360px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem
}
.t-card .stars {
  color: #F5B301;
  margin-bottom: 1rem
}
.t-card p {
  color: var(--muted);
  font-size: .95rem
}
.t-user {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin-top: 1.4rem
}
.t-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover
}
/* Gallery */
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}
.g-item {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 260px
}
.g-item.tall {
  grid-row: span 2;
  height: 100%
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s
}
.g-item:hover img {
  transform: scale(1.08)
}
.g-item .g-cap {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: .7rem 1.1rem;
  font-weight: 700;
  font-size: .88rem;
  transform: translateY(80px);
  transition: .4s
}
.g-item:hover .g-cap {
  transform: none
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 32, .92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px
}
.lightbox.open {
  display: flex
}
.lightbox img {
  max-height: 88vh;
  border-radius: 16px
}
.lb-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 28px;
  background: var(--accent);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--accent-ink)
}
/* Videos */
.v-wrap {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9
}
.v-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0
}
/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow)
}
.form-control, .form-select {
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #FBFAF6;
  padding: .9rem 1.1rem;
  font-size: .95rem;
  color: var(--ink)
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(27, 90, 67, .12);
  background: #fff
}
.form-label {
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .4rem
}
/* Contact / Footer */
.info-chip {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.3rem;
  transition: .3s
}
.info-chip:hover {
  border-color: var(--primary-2);
  transform: translateX(4px)
}
.info-chip i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0
}
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow)
}
footer {
  background: rgb(198 213 227);
  color: var(--ink);
  padding: 80px 0 0;
  margin: 70px 0 0 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0
}
footer h6 {
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--primary-2)
}
footer a {
  opacity: .8;
  transition: .25s;
  display: block;
  margin-bottom: .6rem;
  font-size: .92rem
}
footer a:hover {
  opacity: 1;
  color: var(--ink);
}
.social-row a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  align-items: center;
  justify-content: center;
  margin: 0 6px 0 0
}
.social-row a:hover {
  background: var(--ink);
  color: var(--accent-ink)
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 60px;
  padding: 22px 0;
  font-size: .88rem;
  opacity: .8
}
/* Floating buttons */
.fab-wrap {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1500
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: .3s
}
.fab:hover {
  transform: translateY(-4px) scale(1.05)
}
.fab-wa {
  background: #25D366
}
.fab-call {
  background: var(--primary);
  color: var(--accent)
}
#btn-back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  z-index: 1500;
  display: none;
  box-shadow: var(--shadow)
}
#btn-back-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center
}
/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease
}
.reveal.visible {
  opacity: 1;
  transform: none
}
/* RTL & Responsive */
[dir="rtl"] .nav-links {
  padding: 0
}
@media(max-width:991px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line)
  }
  .nav-links.open {
    display: flex
  }
  .g-grid {
    grid-template-columns: repeat(2, 1fr)
  }
  .hero-img-wrap img {
    height: 400px
  }
}
@media(max-width:575px) {
  .g-grid {
    grid-template-columns: 1fr
  }
  .t-card {
    min-width: 300px;
    max-width: 300px
  }
  .section {
    padding: 70px 0
  }
  .fab-call {
    display: flex
  }
}
@media(min-width:576px) {
  .fab-call {
    display: none
  }
}
/* Blog post content formatting */
#blog-post img {
  border-radius: 18px
}
#blog-post h2, #blog-post h3 {
  margin-top: 1.8rem;
  margin-bottom: .8rem;
  color: var(--primary)
}
#blog-post p {
  margin-bottom: 1rem
}
#blog-post ul, #blog-post ol {
  margin: 1rem 0 1rem 1.5rem
}
/* List page testimonials (grid) */
.row .t-card {
  height: auto
}
/* Featured badge on admin */
.badge-featured {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  margin-inline-start: 6px
}
/* Active nav link */
.nav-links a.active {
  color: var(--primary-2);
  opacity: 1;
  font-weight: 800
}
.nav-links a.active::after {
  content: '';
  display: block;
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  margin: 6px auto 0
}
/* Subtitles on section headers */
.section-sub {
  color: var(--muted);
  max-width: 640px
}
/* Centered gallery on index — max width */
.g-grid.mx-auto {
  margin-left: auto;
  margin-right: auto
}
/* Testimonials & Blog on index — uniform centered cards */
.justify-content-center .t-card, .justify-content-center .card-premium {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
/* Blog card height uniformity */
.justify-content-center .card-premium {
  display: flex;
  flex-direction: column;
}
.justify-content-center .card-premium > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.justify-content-center .card-premium p {
  flex: 1
}
@media(max-width:767px) {
  .g-grid.mx-auto {
    grid-template-columns: repeat(2, 1fr)
  }
}
.nav-links {
  gap: 1.15rem
}
.nav-links a {
  font-size: .9rem
}
@media(max-width:1199px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line)
  }
  .nav-links.open {
    display: flex
  }
}
.filter-tabs {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap
}
.filter-tabs button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .6rem 1.7rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .3s;
  color: var(--ink)
}
.filter-tabs button:hover {
  border-color: var(--primary-2)
}
.filter-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary)
}
.brand-logo {
  /*width: 40px;*/
  height: 40px;
  border-radius: 12px;
  object-fit: contain
}
/* ===== GALLERY: photos-ഉം videos-ഉം ഇടയിൽ gap ===== */
#gallery-videos-wrap {
  margin-top: 2.5rem
}
/* ===== LOADER: custom logo സ്റ്റൈൽ ===== */
.loader {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(14, 42, 32, .35);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: pulse 1s infinite
}
.loader img {
  width: 58px;
  height: 58px;
  object-fit: contain
}
/* ===== MOBILE/TABLET: വലതുവശത്തെ gap + overflow ഫിക്സ് ===== */
html, body {
  overflow-x: hidden;
  max-width: 100%
}
.hero {
  overflow: hidden
}
.fab-wrap {
  position: fixed;
  bottom: 20px;
  right: 16px;
  left: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1500
}
[dir="rtl"] .fab-wrap {
  right: auto;
  left: 16px
}
#btn-back-to-top {
  bottom: 20px;
  left: 16px;
  right: auto
}
[dir="rtl"] #btn-back-to-top {
  left: auto;
  right: 16px
}
@media(max-width:575px) {
  .fab {
    width: 50px;
    height: 50px;
    font-size: 1.15rem
  }
  .fab-wrap {
    bottom: 16px;
    right: 12px
  }
  [dir="rtl"] .fab-wrap {
    right: auto;
    left: 12px
  }
}
/* ===== HERO SLIDER ===== */
.hero-img-wrap {
  height: 520px;
  position: relative
}
#hero-slider {
  position: absolute;
  inset: 0
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease
}
.hero-slide.active {
  opacity: 1
}
@media(max-width:991px) {
  .hero-img-wrap {
    height: 400px
  }
}

.badge-rejected {
  background: #F8D7DA;
  color: #842026;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700
}