/* ==========================================================================
   Andheri Smiles Multi-Speciality Dental Clinic – Main Stylesheet
   --------------------------------------------------------------------------
   1. Fonts (local Poppins)
   2. Design tokens
   3. Base & utilities
   4. Navbar
   5. Hero slider
   6. Section headings
   7. About
   8. Services
   9. Why choose us
   10. Doctor
   11. Gallery + lightbox
   12. Contact + form
   13. Footer
   14. Floating buttons
   15. Scroll reveal
   16. Responsive tweaks
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* 2. Design tokens -------------------------------------------------------- */
:root {
  --as-primary: #087F8C;
  --as-primary-dark: #066a75;
  --as-secondary: #123B50;
  --as-secondary-dark: #0c2a3a;
  --as-accent: #DDF4F2;
  --as-white: #FFFFFF;
  --as-light: #F5FAFA;
  --as-text: #343A40;
  --as-muted: #6c757d;
  --as-whatsapp: #25D366;

  --as-radius-sm: 12px;
  --as-radius: 18px;
  --as-radius-lg: 28px;
  --as-shadow-sm: 0 4px 14px rgba(18, 59, 80, .06);
  --as-shadow: 0 12px 34px rgba(18, 59, 80, .10);
  --as-shadow-lg: 0 24px 60px rgba(18, 59, 80, .16);
  --as-ease: cubic-bezier(.22, .61, .36, 1);
  --as-nav-h: 84px;

  /* Bootstrap overrides */
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--as-text);
  --bs-primary: var(--as-primary);
  --bs-primary-rgb: 8, 127, 140;
  --bs-link-color: var(--as-primary);
  --bs-link-color-rgb: 8, 127, 140;
  --bs-link-hover-color: var(--as-secondary);
}

/* 3. Base & utilities ----------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--as-nav-h) - 4px); }
body { font-family: var(--bs-body-font-family); color: var(--as-text); background: var(--as-white); line-height: 1.75; font-size: 1rem; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { color: var(--as-secondary); font-weight: 600; line-height: 1.25; }
img { max-width: 100%; height: auto; }
a { transition: color .25s var(--as-ease); }
::selection { background: var(--as-primary); color: #fff; }

.section { padding: 100px 0; position: relative; }
.bg-light-as { background: var(--as-light); }
.bg-accent-as { background: var(--as-accent); }
.text-primary-as { color: var(--as-primary) !important; }
.text-secondary-as { color: var(--as-secondary) !important; }

/* Buttons */
.btn { font-weight: 500; border-radius: 50px; padding: .72rem 1.6rem; transition: all .3s var(--as-ease); letter-spacing: .1px; }
.btn-sm { padding: .5rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }
.btn-as-primary { background: var(--as-primary); color: #fff; border: 2px solid var(--as-primary); box-shadow: 0 8px 20px rgba(8, 127, 140, .25); }
.btn-as-primary:hover, .btn-as-primary:focus-visible { background: var(--as-secondary); border-color: var(--as-secondary); color: #fff; transform: translateY(-2px); }
.btn-as-outline { background: transparent; color: var(--as-primary); border: 2px solid var(--as-primary); }
.btn-as-outline:hover, .btn-as-outline:focus-visible { background: var(--as-primary); color: #fff; transform: translateY(-2px); }
.btn-as-light { background: #fff; color: var(--as-secondary); border: 2px solid #fff; }
.btn-as-light:hover, .btn-as-light:focus-visible { background: transparent; color: #fff; transform: translateY(-2px); }
.btn-as-ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-as-ghost:hover, .btn-as-ghost:focus-visible { background: #fff; color: var(--as-secondary); transform: translateY(-2px); }
.btn-whatsapp { background: var(--as-whatsapp); color: #fff; border: 2px solid var(--as-whatsapp); }
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1ebe5b; border-color: #1ebe5b; color: #fff; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(8,127,140,.35); outline-offset: 2px; }

/* 4. Navbar --------------------------------------------------------------- */
.topbar { background: var(--as-secondary); color: rgba(255,255,255,.85); font-size: .84rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar i { color: #7fd6d0; margin-right: .35rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 1px 0 rgba(18,59,80,.06); transition: box-shadow .3s var(--as-ease); }
.site-header.scrolled { box-shadow: var(--as-shadow); }
.site-header .navbar { min-height: var(--as-nav-h); padding: .6rem 0; transition: min-height .3s var(--as-ease); }
.site-header.scrolled .navbar { min-height: 70px; }
.navbar-brand img { height: 56px; width: auto; transition: height .3s var(--as-ease); }
.site-header.scrolled .navbar-brand img { height: 48px; }
.navbar .nav-link { color: var(--as-secondary); font-weight: 500; font-size: .94rem; padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--as-primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--as-ease); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--as-primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }

/* Custom hamburger */
.navbar-toggler { border: 0; padding: .5rem; width: 46px; height: 46px; border-radius: 12px; background: var(--as-accent); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(8,127,140,.25); }
.navbar-toggler .bar { display: block; width: 22px; height: 2px; background: var(--as-secondary); border-radius: 2px; transition: transform .3s var(--as-ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Hero slider ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--as-secondary); }
.hero-slider .carousel-item { position: relative; min-height: calc(100vh - var(--as-nav-h) - 36px); min-height: calc(100svh - var(--as-nav-h) - 36px); }
.hero-slider .carousel-item.active, .hero-slider .carousel-item-next, .hero-slider .carousel-item-prev { display: flex; align-items: center; }
/* Background image layer of each slide */
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,42,58,.94) 0%, rgba(18,59,80,.86) 38%, rgba(8,127,140,.45) 70%, rgba(8,127,140,.15) 100%); }
.hero-slider .carousel-item.active .hero-bg { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 120px; }
/* Per-slide text animates in each time a slide becomes active */
.hero-slider .carousel-item.active .hero-anim { animation: heroFadeUp .8s var(--as-ease) both; }
.hero-slider .carousel-item.active .hero-anim:nth-child(2) { animation-delay: .12s; }
.hero-slider .carousel-item.active .hero-anim:nth-child(3) { animation-delay: .24s; }
.hero-slider .carousel-item.active .hero-anim:nth-child(4) { animation-delay: .36s; }
.hero-slider .carousel-item.active .hero-anim:nth-child(5) { animation-delay: .48s; }
.hero-slider .carousel-item.active .hero-anim:nth-child(6) { animation-delay: .6s; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* Static card floating over the slider */
.hero-side { position: absolute; inset: 0; z-index: 3; align-items: center; pointer-events: none; padding-bottom: 50px; }
.hero-side .hero-card { pointer-events: auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 50px; padding: .4rem 1rem; font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); margin-bottom: 1.25rem; }
.hero-eyebrow i { color: #8fe3dc; }
.hero-clinic { font-size: 1rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #8fe3dc; margin-bottom: .75rem; }
.hero-title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.2rem; }
.hero-title span { color: #8fe3dc; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 580px; margin-bottom: 1.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero-trust-item { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .55rem 1rem; border-radius: 14px; font-size: .88rem; font-weight: 500; backdrop-filter: blur(6px); }
.hero-trust-item i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--as-primary); color: #fff; font-size: .95rem; flex-shrink: 0; }

/* Hero side card (quick contact) */
.hero-card { background: rgba(255,255,255,.96); color: var(--as-text); border-radius: var(--as-radius-lg); padding: 2rem; box-shadow: var(--as-shadow-lg); position: relative; }
.hero-card .exp-badge { position: absolute; top: -26px; right: 26px; background: var(--as-primary); color: #fff; border-radius: 18px; padding: .7rem 1.1rem; text-align: center; box-shadow: 0 10px 24px rgba(8,127,140,.4); line-height: 1.1; }
.hero-card .exp-badge strong { display: block; font-size: 1.7rem; font-weight: 700; }
.hero-card .exp-badge small { font-size: .72rem; letter-spacing: .5px; }
.hero-card h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.hero-card .hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(18,59,80,.12); font-size: .9rem; }
.hero-card .hours li:last-child { border-bottom: 0; }
.hero-card .hours span:last-child { font-weight: 500; color: var(--as-secondary); text-align: right; }

.hero-indicators { z-index: 4; margin-bottom: 2rem; }
.hero-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; opacity: .5; transition: all .3s; }
.hero-indicators .active { width: 46px; opacity: 1; background: #8fe3dc; }
.hero-control { z-index: 4; width: 52px; height: 52px; top: auto; bottom: 1.4rem; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); opacity: 1; backdrop-filter: blur(6px); transition: background .3s; }
.hero-control:hover { background: var(--as-primary); }
.hero-control.carousel-control-prev { right: auto; left: calc(50% - 160px); }
.hero-control.carousel-control-next { left: auto; right: calc(50% - 160px); }
.hero-control .carousel-control-prev-icon, .hero-control .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }

/* 6. Section headings ----------------------------------------------------- */
.section-tag { display: inline-flex; align-items: center; gap: .5rem; color: var(--as-primary); background: var(--as-accent); font-weight: 600; font-size: .8rem; letter-spacing: 1.6px; text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 700; margin-bottom: 1rem; }
.section-title span { color: var(--as-primary); }
.section-subtitle { color: var(--as-muted); max-width: 720px; margin: 0 auto; font-size: 1.04rem; }
.title-divider { width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--as-primary), #5cc8c0); margin: 1rem 0 1.5rem; }
.text-center .title-divider { margin-left: auto; margin-right: auto; }

/* 7. About ---------------------------------------------------------------- */
.about-media { position: relative; padding: 0 2.5rem 3rem 0; }
.about-media .main-img { border-radius: var(--as-radius-lg); box-shadow: var(--as-shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media .inset-img { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--as-radius); border: 6px solid #fff; box-shadow: var(--as-shadow-lg); }
.about-media::before { content: ""; position: absolute; top: -24px; left: -24px; width: 140px; height: 140px; border-radius: 30px; background: radial-gradient(var(--as-primary) 2px, transparent 2.5px) 0 0 / 16px 16px; opacity: .35; z-index: -1; }
.exp-highlight { position: absolute; top: 30px; left: -20px; background: linear-gradient(135deg, var(--as-primary), var(--as-secondary)); color: #fff; padding: 1.2rem 1.4rem; border-radius: var(--as-radius); box-shadow: 0 16px 36px rgba(8,127,140,.35); display: flex; align-items: center; gap: .9rem; animation: floatY 5s ease-in-out infinite; }
.exp-highlight strong { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.exp-highlight span { font-size: .85rem; line-height: 1.3; font-weight: 500; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-content p { color: #4a5259; }
.about-content .lead-para { font-size: 1.1rem; color: var(--as-secondary); font-weight: 500; }
.about-signoff { border-left: 4px solid var(--as-primary); background: var(--as-light); padding: 1rem 1.25rem; border-radius: 0 var(--as-radius-sm) var(--as-radius-sm) 0; color: var(--as-secondary); margin: 1.5rem 0; }

/* 8. Services ------------------------------------------------------------- */
.service-card { background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow-sm); border: 1px solid rgba(18,59,80,.06); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .4s var(--as-ease), box-shadow .4s var(--as-ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--as-shadow-lg); }
.service-img { position: relative; overflow: hidden; aspect-ratio: 378 / 330; background: var(--as-accent); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--as-ease); }
.service-card:hover .service-img img { transform: scale(1.07); }
.service-num { position: absolute; bottom: 14px; right: 14px; width: 46px; height: 46px; border-radius: 14px; background: var(--as-primary); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 8px 18px rgba(8,127,140,.4); }
/* Facial aesthetics illustrated panel (no photograph supplied) */
.service-img.aesthetic-panel { background: radial-gradient(circle at 25% 20%, rgba(143,227,220,.55), transparent 55%), linear-gradient(140deg, var(--as-secondary) 0%, var(--as-primary) 100%); display: flex; flex-direction: column; justify-content: center; padding: 2rem; color: #fff; }
.aesthetic-panel .ap-icon { width: 74px; height: 74px; border-radius: 22px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 2rem; margin-bottom: 1.1rem; transition: transform .6s var(--as-ease); }
.service-card:hover .aesthetic-panel .ap-icon { transform: rotate(-8deg) scale(1.08); }
.aesthetic-panel .ap-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: .4rem; }
.aesthetic-panel .ap-sub { opacity: .85; font-size: .95rem; }
.aesthetic-panel .ap-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.aesthetic-panel .ap-tags span { font-size: .75rem; padding: .25rem .7rem; border-radius: 50px; background: rgba(255,255,255,.16); }

.service-body { padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-body h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: .3px; margin-bottom: 1rem; }
.service-list { list-style: none; padding: 0; margin: 0 0 1.4rem; flex-grow: 1; }
.service-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; font-size: .93rem; color: #4a5259; line-height: 1.6; }
.service-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--as-primary); font-size: 1.05rem; }
.service-list li strong { color: var(--as-secondary); font-weight: 600; }
.service-actions { display: flex; gap: .6rem; padding-top: 1.1rem; border-top: 1px solid rgba(18,59,80,.08); }
.service-actions .btn { flex: 1; }

.services-cta { background: linear-gradient(120deg, var(--as-secondary), var(--as-primary)); border-radius: var(--as-radius-lg); padding: 2.4rem; color: #fff; box-shadow: var(--as-shadow); }
.services-cta h3 { color: #fff; }

/* 9. Why choose us -------------------------------------------------------- */
.why-section { background: linear-gradient(180deg, var(--as-accent) 0%, var(--as-light) 100%); overflow: hidden; }
.why-section::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(8,127,140,.07); top: -140px; right: -120px; }
.why-card { background: #fff; border-radius: var(--as-radius); padding: 2rem 1.75rem; height: 100%; box-shadow: var(--as-shadow-sm); border: 1px solid rgba(8,127,140,.08); position: relative; overflow: hidden; transition: transform .4s var(--as-ease), box-shadow .4s var(--as-ease); }
.why-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--as-primary), #5cc8c0); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--as-ease); }
.why-card:hover { transform: translateY(-8px); box-shadow: var(--as-shadow-lg); }
.why-card:hover::after { transform: scaleX(1); }
.why-icon { width: 66px; height: 66px; border-radius: 20px; background: var(--as-accent); color: var(--as-primary); display: grid; place-items: center; font-size: 1.75rem; margin-bottom: 1.3rem; transition: all .4s var(--as-ease); }
.why-card:hover .why-icon { background: var(--as-primary); color: #fff; transform: rotate(-6deg); }
.why-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0; line-height: 1.5; }
.why-num { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 2.6rem; font-weight: 700; color: rgba(8,127,140,.08); line-height: 1; }
.why-cta-card { background: linear-gradient(140deg, var(--as-secondary), var(--as-primary)); color: #fff; border-radius: var(--as-radius); padding: 2rem 1.75rem; height: 100%; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--as-shadow); position: relative; overflow: hidden; }
.why-cta-card::before { content: "\F1F6"; font-family: "bootstrap-icons"; position: absolute; right: -10px; bottom: -30px; font-size: 9rem; opacity: .08; }
.why-cta-card h3 { color: #fff; font-size: 1.5rem; font-weight: 700; }

/* 10. Doctor -------------------------------------------------------------- */
.doctor-photo-wrap { position: sticky; top: calc(var(--as-nav-h) + 20px); }
.doctor-photo { position: relative; border-radius: var(--as-radius-lg); overflow: hidden; box-shadow: var(--as-shadow-lg); }
.doctor-photo img { width: 100%; aspect-ratio: 770 / 948; object-fit: cover; display: block; transition: transform .8s var(--as-ease); }
.doctor-photo:hover img { transform: scale(1.04); }
.doctor-photo::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(180deg, transparent, rgba(12,42,58,.92)); }
.doctor-nameplate { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 2; color: #fff; }
.doctor-nameplate h3 { color: #fff; font-size: 1.45rem; margin-bottom: .15rem; }
.doctor-nameplate p { margin: 0; color: #8fe3dc; font-weight: 500; font-size: .92rem; }
.doctor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.doctor-stat { background: #fff; border-radius: var(--as-radius); padding: 1.1rem; text-align: center; box-shadow: var(--as-shadow-sm); border: 1px solid rgba(8,127,140,.1); }
.doctor-stat strong { display: block; font-size: 1.9rem; color: var(--as-primary); line-height: 1.1; font-weight: 700; }
.doctor-stat span { font-size: .82rem; color: var(--as-muted); }
.doctor-name { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin-bottom: .2rem; }
.doctor-quals { color: var(--as-primary); font-weight: 600; font-size: 1rem; margin-bottom: 1.2rem; }
.doctor-content p { color: #4a5259; }
.doctor-block { background: #fff; border-radius: var(--as-radius); padding: 1.6rem 1.75rem; box-shadow: var(--as-shadow-sm); border: 1px solid rgba(18,59,80,.06); margin-bottom: 1.4rem; }
.doctor-block h4 { font-size: 1.08rem; font-weight: 600; display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.doctor-block h4 i { width: 40px; height: 40px; border-radius: 12px; background: var(--as-accent); color: var(--as-primary); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.edu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.edu-list li { display: flex; align-items: center; gap: .75rem; background: var(--as-light); border-radius: var(--as-radius-sm); padding: .7rem 1rem; font-weight: 500; color: var(--as-secondary); font-size: .95rem; }
.edu-list li i { color: var(--as-primary); font-size: 1.15rem; }
.philosophy { background: linear-gradient(135deg, var(--as-secondary), var(--as-primary)); color: #fff; border-radius: var(--as-radius); padding: 2rem 1.9rem; position: relative; overflow: hidden; margin-bottom: 1.4rem; }
.philosophy::before { content: "\F6B0"; font-family: "bootstrap-icons"; position: absolute; right: 18px; top: -6px; font-size: 6rem; opacity: .12; }
.philosophy h4 { color: #8fe3dc; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.philosophy blockquote { font-size: 1.3rem; font-weight: 500; font-style: italic; margin: .5rem 0 0; line-height: 1.5; }
.doctor-closing { font-weight: 600; color: var(--as-secondary); }

/* 11. Gallery ------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.gallery-filters button { border: 1px solid rgba(8,127,140,.25); background: #fff; color: var(--as-secondary); padding: .5rem 1.3rem; border-radius: 50px; font-weight: 500; font-size: .9rem; transition: all .3s var(--as-ease); }
.gallery-filters button:hover { border-color: var(--as-primary); color: var(--as-primary); }
.gallery-filters button.active { background: var(--as-primary); border-color: var(--as-primary); color: #fff; box-shadow: 0 8px 18px rgba(8,127,140,.25); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.gallery-item { margin: 0; display: block; position: relative; border-radius: var(--as-radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--as-shadow-sm); border: 0; padding: 0; width: 100%; background: var(--as-accent); }
.gallery-item img { width: 100%; display: block; transition: transform .7s var(--as-ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,42,58,.85)); opacity: 0; transition: opacity .4s var(--as-ease); }
.gallery-item .g-caption { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; color: #fff; font-weight: 500; font-size: .9rem; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: .6rem; opacity: 0; transform: translateY(10px); transition: all .4s var(--as-ease); }
.gallery-item .g-caption i { width: 36px; height: 36px; border-radius: 50%; background: var(--as-primary); display: grid; place-items: center; flex-shrink: 0; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.08); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .g-caption, .gallery-item:focus-visible .g-caption { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 3px solid var(--as-primary); outline-offset: 3px; }
.gallery-item.is-hidden { display: none; }

/* Lightbox (Bootstrap modal) */
.lightbox-modal .modal-content { background: transparent; border: 0; }
.lightbox-modal .modal-backdrop, .modal-backdrop.show { --bs-backdrop-opacity: .9; }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.lightbox-stage img { max-height: 82vh; max-width: 100%; border-radius: var(--as-radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lbIn .35s var(--as-ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox-caption { color: #fff; text-align: center; margin-top: 1rem; font-weight: 500; }
.lightbox-caption small { color: rgba(255,255,255,.6); margin-left: .5rem; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; display: grid; place-items: center; transition: background .3s; z-index: 2; }
.lb-btn:hover { background: var(--as-primary); }
.lb-prev { left: -10px; }
.lb-next { right: -10px; }
.lb-close { position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; display: grid; place-items: center; z-index: 1060; transition: background .3s; }
.lb-close:hover { background: #dc3545; }

/* 12. Contact ------------------------------------------------------------- */
.contact-info-card { background: linear-gradient(160deg, var(--as-secondary) 0%, #17506b 100%); color: #fff; border-radius: var(--as-radius-lg); padding: 2.4rem; height: 100%; box-shadow: var(--as-shadow); position: relative; overflow: hidden; }
.contact-info-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(8,127,140,.35); bottom: -110px; right: -90px; }
.contact-info-card > * { position: relative; }
.contact-info-card h3 { color: #fff; font-size: 1.35rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-item .ci-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.2rem; color: #8fe3dc; flex-shrink: 0; }
.contact-item h4 { color: rgba(255,255,255,.65); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: .2rem; font-weight: 500; }
.contact-item a, .contact-item p { color: #fff; text-decoration: none; margin: 0; font-size: .97rem; line-height: 1.6; word-break: break-word; }
.contact-item a:hover { color: #8fe3dc; }
.contact-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.map-wrap { border-radius: var(--as-radius); overflow: hidden; box-shadow: var(--as-shadow-sm); border: 4px solid #fff; margin-top: 1.5rem; aspect-ratio: 16 / 9; background: var(--as-accent); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: #fff; border-radius: var(--as-radius-lg); padding: 2.4rem; box-shadow: var(--as-shadow); border: 1px solid rgba(18,59,80,.06); height: 100%; }
.form-card h3 { font-size: 1.4rem; }
.form-label { font-weight: 500; color: var(--as-secondary); font-size: .9rem; margin-bottom: .35rem; }
.form-label .req { color: #dc3545; }
.form-control, .form-select { border-radius: var(--as-radius-sm); border: 1.5px solid #dfe8ea; padding: .78rem 1rem; font-size: .95rem; background-color: var(--as-light); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.form-control:focus, .form-select:focus { border-color: var(--as-primary); box-shadow: 0 0 0 4px rgba(8,127,140,.12); background-color: #fff; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--as-primary); pointer-events: none; z-index: 4; }
.input-icon .form-control, .input-icon .form-select { padding-left: 2.7rem; }
.input-icon.textarea > i { top: 1.05rem; transform: none; }
/* keep icon aligned when invalid-feedback appears below the field */
.input-icon .invalid-feedback { margin-left: .2rem; }
.input-icon:has(.is-invalid) > i, .input-icon:has(:user-invalid) > i { top: calc((2.9rem) / 2); }
.input-icon.textarea:has(.is-invalid) > i { top: 1.05rem; }
.form-note { font-size: .8rem; color: var(--as-muted); }
.form-alert { border-radius: var(--as-radius-sm); font-size: .92rem; display: flex; gap: .7rem; align-items: flex-start; }
.form-alert i { font-size: 1.2rem; line-height: 1.4; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 13. Footer -------------------------------------------------------------- */
.cta-band { background: linear-gradient(180deg, var(--as-white) 50%, var(--as-secondary-dark) 50%); }
.footer-cta { background: linear-gradient(120deg, var(--as-primary), #0a95a3); color: #fff; border-radius: var(--as-radius-lg); padding: 2.4rem 2.6rem; position: relative; z-index: 2; box-shadow: var(--as-shadow-lg); }
.site-footer h5.footer-name { font-size: 1.1rem; }
.site-footer h5.footer-name::after { display: none; }
.footer-cta h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 .3rem; }
.site-footer { background: var(--as-secondary-dark); color: rgba(255,255,255,.72); padding: 70px 0 0; font-size: .94rem; }
.footer-logo { background: #fff; border-radius: var(--as-radius-sm); padding: .6rem .9rem; display: inline-block; margin-bottom: 1.2rem; }
.footer-logo img { height: 50px; width: auto; display: block; }
.site-footer h5 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 1.3rem; position: relative; padding-bottom: .7rem; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--as-primary); }
.footer-tagline { color: #8fe3dc; font-weight: 500; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; transition: color .25s, transform .25s; }
.footer-links a i { font-size: .7rem; color: var(--as-primary); }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; }
.footer-contact i { color: #8fe3dc; font-size: 1.05rem; margin-top: .15rem; }
.footer-contact a { color: rgba(255,255,255,.85); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: #fff; }
.social-links { display: flex; gap: .55rem; margin-top: 1.2rem; }
.social-links a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; text-decoration: none; transition: all .3s var(--as-ease); }
.social-links a:hover { background: var(--as-primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.4rem 0; font-size: .86rem; }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }

/* 14. Floating buttons ---------------------------------------------------- */
.float-btn { position: fixed; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .3s var(--as-ease); }
.float-btn:hover { color: #fff; transform: scale(1.08); }
.float-whatsapp { right: 22px; bottom: 22px; background: var(--as-whatsapp); }
.float-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--as-whatsapp); z-index: -1; animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.float-call { right: 22px; bottom: 92px; background: var(--as-primary); }
.back-to-top { right: 29px; bottom: 162px; width: 44px; height: 44px; font-size: 1.1rem; background: var(--as-secondary); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--as-ease); border: 0; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* 15. Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--as-ease), transform .8s var(--as-ease); transition-delay: var(--reveal-delay, 0s); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: none; }
/* If JS is unavailable, show everything */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 16. Responsive ---------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .navbar .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
  .navbar .nav-link::after { left: .6rem; right: .6rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  :root { --as-nav-h: 72px; }
  .section { padding: 80px 0; }
  .navbar-brand img, .site-header.scrolled .navbar-brand img { height: 46px; }
  .navbar-collapse { background: #fff; border-radius: var(--as-radius); box-shadow: var(--as-shadow); padding: 1rem; margin-top: .8rem; max-height: calc(100vh - 110px); overflow-y: auto; }
  .navbar .nav-link { padding: .75rem 1rem !important; border-radius: 10px; font-size: .98rem; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active, .navbar .nav-link:hover { background: var(--as-accent); }
  .hero-slider .carousel-item { min-height: 640px; }
  .hero-content { padding-top: 56px; padding-bottom: 110px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(12,42,58,.9) 0%, rgba(18,59,80,.82) 60%, rgba(8,127,140,.7) 100%); }
  .about-media { max-width: 560px; margin: 0 auto 1rem; }
  .doctor-photo-wrap { position: static; max-width: 480px; margin: 0 auto; }
  .footer-cta { text-align: center; }
}
@media (max-width: 767.98px) {
  .topbar { display: none; }
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .gallery-item { margin: 0; }
  .gallery-item .g-caption { opacity: 1; transform: none; font-size: .78rem; }
  .gallery-item .g-caption i { display: none; }
  .gallery-item::after { opacity: .9; background: linear-gradient(180deg, transparent 60%, rgba(12,42,58,.85)); }
  .hero-control { display: none; }
  .hero-trust-item { width: 100%; }
  .about-media { padding: 0 1.5rem 2rem 0; }
  .exp-highlight { left: -8px; top: 18px; padding: .9rem 1rem; }
  .exp-highlight strong { font-size: 2rem; }
  .contact-info-card, .form-card { padding: 1.75rem 1.4rem; }
  .footer-cta { padding: 2rem 1.4rem; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-btn { width: 44px; height: 44px; }
  /* leave room for floating call button */
  .site-footer .footer-bottom { padding-bottom: 5.5rem; }
}
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.85rem; }
  .hero-lead { font-size: 1rem; }
  .hero .btn-lg { width: 100%; }
  .service-actions .btn { padding: .55rem .6rem; }
  .why-card, .why-cta-card { padding: 1.6rem 1.4rem; }
  .doctor-block { padding: 1.3rem 1.2rem; }
  .philosophy blockquote { font-size: 1.12rem; }
}

/* ==========================================================================
   17. Multi-page additions
   ========================================================================== */

/* Inner-page banner with background image */
.page-banner { position: relative; padding: 110px 0 100px; background-size: cover; background-position: center; color: #fff; text-align: center; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(12,42,58,.92) 0%, rgba(18,59,80,.82) 50%, rgba(8,127,140,.72) 100%); }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--as-white); clip-path: ellipse(60% 100% at 50% 100%); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; margin-bottom: .8rem; }
.page-banner .breadcrumb { justify-content: center; margin: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); display: inline-flex; padding: .45rem 1.2rem; border-radius: 50px; backdrop-filter: blur(6px); font-size: .9rem; --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: #8fe3dc; }
.page-banner .breadcrumb a { color: #fff; text-decoration: none; }
.page-banner .breadcrumb a:hover { color: #8fe3dc; }

/* Home – compact service cards */
.svc-mini { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--as-radius); overflow: hidden; text-decoration: none; box-shadow: var(--as-shadow-sm); border: 1px solid rgba(18,59,80,.06); transition: transform .4s var(--as-ease), box-shadow .4s var(--as-ease); }
.svc-mini:hover { transform: translateY(-6px); box-shadow: var(--as-shadow-lg); }
.svc-mini-img { aspect-ratio: 378 / 330; overflow: hidden; background: var(--as-accent); }
.svc-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--as-ease); }
.svc-mini:hover .svc-mini-img img { transform: scale(1.07); }
.svc-mini-img.aesthetic-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: #fff; text-align: center; padding: 1rem; background: radial-gradient(circle at 25% 20%, rgba(143,227,220,.55), transparent 55%), linear-gradient(140deg, var(--as-secondary), var(--as-primary)); }
.aesthetic-mini i { font-size: 2.6rem; }
.aesthetic-mini span { font-size: .85rem; opacity: .9; }
.svc-mini-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.svc-mini-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .7rem; flex-grow: 1; }
.svc-mini-link { color: var(--as-primary); font-weight: 500; font-size: .88rem; }
.svc-mini-link i { transition: transform .3s var(--as-ease); display: inline-block; }
.svc-mini:hover .svc-mini-link i { transform: translateX(4px); }

/* Home – why choose us list */
.why-list li { display: flex; align-items: center; gap: 1.1rem; background: #fff; border-radius: var(--as-radius); padding: 1rem 1.3rem; margin-bottom: .9rem; box-shadow: var(--as-shadow-sm); font-weight: 500; color: var(--as-secondary); transition: transform .35s var(--as-ease), box-shadow .35s var(--as-ease); }
.why-list li:hover { transform: translateX(6px); box-shadow: var(--as-shadow); }
.why-list .why-icon { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 16px; margin: 0; flex-shrink: 0; }
.why-list li:hover .why-icon { background: var(--as-primary); color: #fff; }

/* Home / why page – uniform gallery tiles */
.home-gallery .gallery-item { margin: 0; aspect-ratio: 3 / 4; }
.home-gallery .gallery-item img { height: 100%; object-fit: cover; }

/* Home – doctor stats inline */
.doctor-stats-inline { max-width: 420px; }

/* Home – quick contact cards */
.quick-card { display: block; height: 100%; text-align: center; background: #fff; border-radius: var(--as-radius); padding: 2rem 1.4rem; text-decoration: none; box-shadow: var(--as-shadow-sm); border: 1px solid rgba(18,59,80,.06); transition: transform .4s var(--as-ease), box-shadow .4s var(--as-ease); }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--as-shadow-lg); }
.quick-card .qc-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--as-accent); color: var(--as-primary); display: inline-grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; transition: all .4s var(--as-ease); }
.quick-card .qc-icon.qc-wa { background: #dcf8e6; color: #1ebe5b; }
.quick-card:hover .qc-icon { background: var(--as-primary); color: #fff; }
.quick-card:hover .qc-icon.qc-wa { background: var(--as-whatsapp); }
.quick-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.quick-card p { color: var(--as-muted); margin: 0; font-size: .92rem; }

/* About – doctor teaser */
.doctor-teaser { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; background: #fff; border-radius: var(--as-radius-lg); padding: 1.6rem 2rem; box-shadow: var(--as-shadow); }
.doctor-teaser img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--as-accent); }

@media (max-width: 991.98px) {
  .page-banner { padding: 80px 0 80px; }
}
@media (max-width: 575.98px) {
  .page-banner { padding: 64px 0 72px; }
  .svc-mini-body { padding: 1rem; }
  .svc-mini-body h3 { font-size: .9rem; }
  .doctor-teaser { padding: 1.4rem; text-align: center; justify-content: center; }
}
/* Banner curve takes the colour of the section that follows it */
.page-banner:has(+ .bg-light-as)::after { background: var(--as-light); }
.page-banner:has(+ .why-section)::after { background: var(--as-accent); }

/* ==========================================================================
   18. Services slider (home) – background-image cards
   ========================================================================== */
.svc-arrows { display: inline-flex; gap: .6rem; }
.svc-nav { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(8,127,140,.35); background: #fff; color: var(--as-primary); font-size: 1.2rem; display: grid; place-items: center; transition: all .3s var(--as-ease); }
.svc-nav:hover { background: var(--as-primary); border-color: var(--as-primary); color: #fff; }
.svc-slider { position: relative; }
.svc-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 2px 18px; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-track:focus-visible { outline: 3px solid rgba(8,127,140,.3); outline-offset: 4px; border-radius: var(--as-radius); }
.svc-slide { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.svc-bgcard { position: relative; height: 440px; border-radius: var(--as-radius); overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--as-shadow); isolation: isolate; }
.svc-bgcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; background-position: center; transition: transform .8s var(--as-ease); }
.svc-bgcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,42,58,.05) 15%, rgba(12,42,58,.55) 50%, rgba(12,42,58,.95) 100%); transition: background .4s var(--as-ease); }
.svc-bgcard:hover::before { transform: scale(1.08); }
.svc-bgcard:hover::after { background: linear-gradient(180deg, rgba(8,127,140,.2) 0%, rgba(12,42,58,.7) 45%, rgba(12,42,58,.97) 100%); }
.svc-letter { position: absolute; top: 18px; left: 18px; width: 46px; height: 46px; border-radius: 14px; background: var(--as-primary); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(8,127,140,.45); }
.svc-bgcard-body { padding: 1.6rem; width: 100%; }
.svc-bgcard h3 { color: #fff; font-size: 1.22rem; font-weight: 600; margin-bottom: .7rem; }
.svc-points { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.svc-points li { position: relative; padding-left: 1.4rem; font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.55; margin-bottom: .3rem; }
.svc-points li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: #8fe3dc; }
.svc-bgcard-actions { display: flex; gap: .5rem; align-items: center; }
.svc-bgcard-actions .btn-sm { padding: .5rem 1rem; }
.btn-call-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.5); color: #fff; flex-shrink: 0; }
.btn-call-icon:hover { background: #fff; color: var(--as-primary); }
.svc-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.svc-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(8,127,140,.25); transition: all .3s var(--as-ease); }
.svc-dots button.active { width: 32px; background: var(--as-primary); }

@media (max-width: 991.98px) {
  .svc-slide { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 575.98px) {
  .svc-track { gap: 14px; }
  .svc-slide { flex-basis: 88%; }
  .svc-bgcard { height: 420px; }
  .svc-bgcard-actions .btn-sm { padding: .45rem .8rem; font-size: .8rem; }
}

/* ==========================================================================
   19. Gallery grid tiles (sequence order, uniform squares)
   ========================================================================== */
.gallery-grid .gallery-item { aspect-ratio: 378 / 337; }
.gallery-grid .gallery-item img { height: 100%; object-fit: cover; }
.gallery-grid .gallery-item img[src$="17.jpeg"] { object-position: left center; }

/* ==========================================================================
   20. Mobile horizontal-overflow fixes
   ========================================================================== */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
@media (max-width: 991.98px) {
  /* Bootstrap g-5 gutters are wider than the container padding – reduce them */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  /* side-slide reveals start off-screen; use vertical reveal on small screens */
  .reveal.reveal-left, .reveal.reveal-right { transform: translateY(32px); }
  .reveal.reveal-left.is-visible, .reveal.reveal-right.is-visible { transform: none; }
  .about-media::before { left: 0; }
  .exp-highlight { left: 0; }
}
.footer-bottom { padding-right: 80px; }
@media (max-width: 767.98px) { .footer-bottom { padding-right: 0; } }
.svc-bgcard-actions .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .svc-bgcard-body { padding: 1.25rem 1.1rem; }
  .svc-bgcard-actions { gap: .4rem; }
  .svc-bgcard-actions .btn-sm { padding: .45rem .75rem; font-size: .78rem; }
  .btn-call-icon { width: 36px; height: 36px; }
}

/* ==========================================================================
   21. Dental team (doctor page)
   ========================================================================== */
.team-card { background: #fff; border-radius: var(--as-radius-lg); overflow: hidden; box-shadow: var(--as-shadow); border: 1px solid rgba(18,59,80,.06); }
.team-photo { position: relative; height: 100%; min-height: 340px; background: radial-gradient(circle at 30% 20%, rgba(143,227,220,.5), transparent 55%), linear-gradient(150deg, var(--as-secondary), var(--as-primary)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 2rem; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-initials { width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.14); border: 3px solid rgba(255,255,255,.45); color: #fff; font-size: 3.6rem; font-weight: 700; letter-spacing: 2px; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.team-role { position: relative; z-index: 1; background: #fff; color: var(--as-primary); font-weight: 600; font-size: .85rem; padding: .45rem 1.1rem; border-radius: 50px; box-shadow: var(--as-shadow-sm); }
.team-photo img ~ .team-role { position: absolute; bottom: 1.4rem; }
.team-body { padding: 2.4rem 2.6rem; }
.team-body p { color: #4a5259; }
@media (max-width: 991.98px) {
  .team-photo { min-height: 280px; }
  .team-body { padding: 1.8rem 1.4rem; }
}
/* Photo supplied as a mirrored selfie – flip so the name on the uniform reads correctly */
.img-mirror { transform: scaleX(-1); }
.team-photo img { object-position: center 25%; transition: transform .8s var(--as-ease); }
.team-card:hover .team-photo img.img-mirror { transform: scaleX(-1) scale(1.04); }
.team-photo { overflow: hidden; }
@media (max-width: 991.98px) { .team-photo { min-height: 420px; } }

/* ==========================================================================
   22. Clinic timings highlight
   ========================================================================== */
.topbar-hours strong { color: #fff; font-weight: 600; }
.topbar-hours .sep { opacity: .4; margin: 0 .35rem; }

.timings-section { padding: 0; position: relative; z-index: 5; }
main > .hero + .timings-section { margin-top: -46px; }            /* home: overlaps the hero edge */
main > .timings-section:last-child { padding: 70px 0 30px; }      /* inner pages: above footer CTA */
.timings-band { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; gap: 1.5rem; background: linear-gradient(120deg, var(--as-secondary) 0%, #0f5a6e 55%, var(--as-primary) 100%); color: #fff; border-radius: var(--as-radius-lg); padding: 1.7rem 2rem; box-shadow: var(--as-shadow-lg); border: 1px solid rgba(143,227,220,.25); position: relative; overflow: hidden; }
.timings-band::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(143,227,220,.12); right: -60px; top: -90px; }
.timings-band > * { position: relative; }
.tb-head { display: flex; align-items: center; gap: 1rem; }
.tb-icon { width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 1.7rem; color: #8fe3dc; flex-shrink: 0; animation: tbPulse 2.6s ease-in-out infinite; }
@keyframes tbPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(143,227,220,.45); } 50% { box-shadow: 0 0 0 10px rgba(143,227,220,0); } }
.tb-label { display: block; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; color: #8fe3dc; font-weight: 600; }
.tb-title { color: #fff; font-size: 1.25rem; font-weight: 700; margin: .15rem 0 0; }
.tb-slot { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--as-radius); padding: .9rem 1.1rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.tb-day { font-size: .82rem; color: rgba(255,255,255,.75); font-weight: 500; margin-bottom: .2rem; }
.tb-day i { color: #8fe3dc; margin-right: .3rem; }
.tb-time { font-size: 1.12rem; font-weight: 700; color: #fff; line-height: 1.35; }
.tb-time em { font-style: normal; color: #8fe3dc; font-weight: 500; }
.tb-note { font-size: .98rem; font-weight: 600; }
.tb-actions { display: flex; flex-direction: column; gap: .5rem; }
.tb-actions .btn { padding: .6rem 1.2rem; font-size: .9rem; white-space: nowrap; }

@media (max-width: 1199.98px) {
  .timings-band { grid-template-columns: 1fr 1fr; }
  .tb-head { grid-column: 1 / -1; }
  .tb-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
  main > .hero + .timings-section { margin-top: -30px; }
  .timings-band { grid-template-columns: 1fr; padding: 1.4rem 1.2rem; gap: 1rem; }
  .tb-actions .btn { flex: 1; }
  .tb-title { font-size: 1.1rem; }
}
/* quick contact card that holds two number links */
div.quick-card a { color: var(--as-muted); text-decoration: none; }
div.quick-card a:hover { color: var(--as-primary); }
/* keep slider arrows/dots clear of the timings band that overlaps the hero bottom */
.hero-indicators { margin-bottom: 4.6rem; }
.hero-control { bottom: 3.9rem; }
.hero-content { padding-bottom: 150px; }
@media (max-width: 575.98px) { .hero-indicators { margin-bottom: 3.4rem; } .hero-content { padding-bottom: 120px; } }
