/* ===== Global variables ===== */
:root {
  --primary: #0b6efd;
  --primary-dark: #084298;
  --secondary: #16c7c9;
  --dark: #0b2545;
  --text: #52606d;
  --light: #f2f9ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
}

.container,
.container-fluid {
    overflow: visible !important;
}

h1,
h2,
h3,
h4 {
  color: var(--dark);
  font-family: "Fraunces", serif;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
}
h3 {
  font-size: 1.15rem;
}
a {
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}
img {
  max-width: 100%;
}
/* ===== Buttons ===== */
.btn {
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.25s;
}
.btn-main {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 0.65rem 1.4rem;
}
.btn-main:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 110, 253, 0.3);
}
.btn-outline-main {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-main:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
}
.btn i {
  transition: transform 0.25s;
}
.btn:hover i {
  transform: translateX(3px);
}
/* ===== Header ===== */
.offer-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  display: flex;
}

.offer-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  animation: offerScroll 30s linear infinite;
}

/* Smooth, slow scrolling */
.offer-track span {
  display: block;
  flex-shrink: 0;
}

/* Stop scrolling when hovering */
.offer-bar:hover .offer-track {
  animation-play-state: paused;
}

/* Scrolling animation */
@keyframes offerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Accessibility: Disable animation if requested */
@media (prefers-reduced-motion: reduce) {
  .offer-track {
    animation: none;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text b {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--dark);
}
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--primary);
}
.text-white .brand-text b {
  color: #fff;
}
.text-white .brand-text small {
  color: var(--secondary);
}
.nav-link {
  color: var(--dark);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1rem;
}
.nav-link:hover,
.nav-link.active {
  background: var(--light);
  color: var(--primary);
}
.menu-toggle {
  border: 0;
  background: var(--light);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--dark);
  font-size: 1.2rem;
}
/* ===== Sidebar ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.side-overlay.open {
  opacity: 1;
  visibility: visible;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 2001;
  transform: translateX(-100%);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}
.sidebar.open {
  transform: translateX(0);
  visibility: visible;
}
.side-head {
  background: var(--dark);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-close {
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.side-nav {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}
.side-link {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--dark);
  font-weight: 600;
  transition: 0.25s;
}
.side-link i {
  width: 22px;
  color: var(--primary);
}
.side-link:hover,
.side-link[aria-current] {
  background: var(--light);
  padding-left: 1.4rem;
  color: var(--primary);
}
.side-foot {
  padding: 1rem;
  border-top: 1px solid #e5eef6;
  background: var(--light);
}
.side-foot p {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}
.side-phone {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  color: var(--dark);
  font-weight: 700;
}
body.no-scroll {
  overflow: hidden;
}
/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--light), #fff);
  padding: 4rem 0 5rem;
  overflow: hidden;
}
.hero em {
  color: var(--primary);
  font-style: normal;
}
.badge-pill {
  display: inline-block;
  background: #e0f2ff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero .lead {
  margin: 1.2rem 0 1.8rem;
  max-width: 520px;
}
.hero-phone {
  display: inline-block;
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}
.hero-phone i {
  color: var(--secondary);
}
.hero-img {
  position: relative;
}
.hero-img::before {
  content: "";
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  background: radial-gradient(var(--secondary), transparent 70%);
  opacity: 0.35;
  right: -8%;
  top: -8%;
  border-radius: 50%;
}
.hero-img img {
  position: relative;
  border-radius: 28px;
  width: 100%;
  aspect-ratio: 4/3.3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.float-ico {
  position: absolute;
  top: -18px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.glass-card {
  position: absolute;
  left: -14px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stars {
  color: #f5b301;
  letter-spacing: 2px;
}
/* ===== Sections / Cards ===== */
.sec {
  padding: 5rem 0;
}
.bg-soft {
  background: var(--light);
}
.head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.narrow {
  max-width: 820px;
}



/* ========================================
   APEX DENTAL CARE - FAQ SECTION
======================================== */

.apex-faq-section {
  padding: 85px 0;
  background: linear-gradient(180deg, #f4faff 0%, #ffffff 100%);
}

.apex-faq-intro {
  position: sticky;
  top: 30px;
  padding: 15px 10px 15px 0;
}

.apex-faq-intro h2 {
  margin: 22px 0 18px;
  color: var(--dark);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 750;
  line-height: 1.25;
}

.apex-faq-intro h2 span {
  display: block;
  color: var(--primary);
}

.apex-faq-description {
  margin-bottom: 28px;
  color: #718096;
  font-size: 0.98rem;
  line-height: 1.9;
}

/* Left Side Highlights */
.apex-faq-highlights {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.apex-faq-highlight {
  display: flex;
  align-items: center;
  gap: 15px;
}

.apex-faq-highlight-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--primary);
  background: #e5f7fc;
  border-radius: 15px;
  font-size: 1.3rem;
}

.apex-faq-highlight h3 {
  margin: 0 0 5px;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
}

.apex-faq-highlight p {
  margin: 0;
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Buttons */
.apex-faq-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.apex-faq-primary-btn,
.apex-faq-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.apex-faq-primary-btn {
  color: #fff;
  background: var(--primary);
}

.apex-faq-primary-btn:hover {
  color: #fff;
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 67, 91, 0.15);
}

.apex-faq-secondary-btn {
  color: #168b63;
  background: #e8f8f0;
  border-color: #c9edda;
}

.apex-faq-secondary-btn:hover {
  color: #fff;
  background: #168b63;
  transform: translateY(-3px);
}

/* Contact Details */
.apex-faq-contact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 22px;
  border-top: 1px solid #e3ebf3;
}

.apex-faq-contact > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  background: #e5f7fc;
  border-radius: 50%;
  font-size: 1.1rem;
}

.apex-faq-contact span {
  display: block;
  margin-bottom: 3px;
  color: #718096;
  font-size: 0.82rem;
}

.apex-faq-contact a {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.apex-faq-contact a:hover {
  color: var(--primary);
}

/* Right Side FAQ Card */
.apex-faq-list {
  padding: 32px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(20, 67, 91, 0.07);
}

.apex-faq-heading {
  margin-bottom: 24px;
}

.apex-faq-heading > span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.apex-faq-heading h3 {
  margin: 10px 0;
  color: var(--dark);
  font-size: 1.65rem;
  font-weight: 750;
}

.apex-faq-heading p {
  margin: 0;
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Accordion */
.apex-faq-accordion .accordion-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 13px;
}

.apex-faq-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.apex-faq-accordion .accordion-button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  color: var(--dark);
  background: #fff;
  box-shadow: none;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.6;
}

.apex-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: #f3faff;
}

.apex-faq-accordion .accordion-button::after {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-size: 15px;
}

.apex-faq-accordion .accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
}

/* Question Icon */
.apex-faq-q-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  color: var(--primary);
  background: #e8f8fc;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* Answer */
.apex-faq-accordion .accordion-body {
  padding: 0 20px 20px 67px;
  color: #718096;
  background: #f3faff;
  font-size: 0.89rem;
  line-height: 1.85;
}

/* Tablet */
@media (max-width: 991.98px) {
  .apex-faq-section {
    padding: 65px 0;
  }

  .apex-faq-intro {
    position: static;
    padding: 0;
  }

  .apex-faq-list {
    padding: 26px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .apex-faq-section {
    padding: 50px 0;
  }

  .apex-faq-intro h2 {
    margin: 18px 0 14px;
    font-size: 2rem;
  }

  .apex-faq-description {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .apex-faq-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apex-faq-primary-btn,
  .apex-faq-secondary-btn {
    width: 100%;
  }

  .apex-faq-list {
    padding: 18px 13px;
    border-radius: 17px;
  }

  .apex-faq-heading {
    padding: 0 5px;
  }

  .apex-faq-heading h3 {
    font-size: 1.35rem;
  }

  .apex-faq-accordion .accordion-button {
    gap: 10px;
    padding: 13px 11px;
    font-size: 0.84rem;
  }

  .apex-faq-q-icon {
    width: 33px;
    height: 33px;
    border-radius: 9px;
    font-size: 0.85rem;
  }

  .apex-faq-accordion .accordion-body {
    padding: 0 15px 16px 54px;
    font-size: 0.82rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .apex-faq-primary-btn,
  .apex-faq-secondary-btn {
    transition: none;
  }
}



/* ===== Apex Testimonials ===== */
.apex-testimonials {
  padding: 80px 0;
  overflow: hidden;
}

.apex-testimonial-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 15px;
  border-radius: 50px;
  background: rgba(32, 201, 151, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.apex-testimonials .head h2 {
  margin-bottom: 12px;
  font-weight: 800;
}

.apex-testimonials .head p {
  max-width: 600px;
  margin: 0 auto;
  color: #687580;
  line-height: 1.7;
}

.apex-testimonial-carousel {
  padding: 8px 3px 45px;
}

.apex-testimonial-carousel .owl-stage {
  display: flex;
}

.apex-testimonial-carousel .owl-item {
  display: flex;
  height: auto;
}

.apex-testimonial-carousel .item {
  display: flex;
  width: 100%;
  padding: 0 3px;
}

.apex-review-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 285px;
  padding: 27px;
  border: 1px solid rgba(20, 50, 70, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 50, 70, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apex-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(20, 50, 70, 0.12);
}

.apex-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.apex-review-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(32, 201, 151, 0.12);
  color: var(--primary);
  font-size: 19px;
}

.apex-review-stars {
  color: #f5a623;
  font-size: 17px;
  letter-spacing: 2px;
}

.apex-review-text {
  flex-grow: 1;
  margin-bottom: 25px;
  color: #53616d;
  font-size: 15px;
  line-height: 1.8;
}

.apex-review-author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid #edf0f2;
}

.apex-review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.apex-review-author h5 {
  margin: 0 0 4px;
  color: #20303c;
  font-size: 15px;
  font-weight: 800;
}

.apex-review-author span {
  color: #7a8791;
  font-size: 12px;
}

/* Owl Carousel Navigation */
.apex-testimonial-carousel .owl-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.apex-testimonial-carousel .owl-nav button.owl-prev,
.apex-testimonial-carousel .owl-nav button.owl-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid #e2e9ed;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 23px;
  line-height: 1;
  transition: all 0.25s ease;
}

.apex-testimonial-carousel .owl-nav button.owl-prev:hover,
.apex-testimonial-carousel .owl-nav button.owl-next:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Owl Carousel Dots */
.apex-testimonial-carousel .owl-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 15px;
}

.apex-testimonial-carousel .owl-dots .owl-dot span {
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: 10px;
  background: #b8c4ca;
  transition: all 0.25s ease;
}

.apex-testimonial-carousel .owl-dots .owl-dot.active span {
  width: 25px;
  background: var(--primary);
}

.apex-testimonial-carousel .owl-dots .owl-dot:hover span {
  background: var(--primary);
}

/* Responsive */
@media (max-width: 767.98px) {
  .apex-testimonials {
    padding: 55px 0;
  }

  .apex-testimonials .head {
    margin-bottom: 30px !important;
  }

  .apex-review-card {
    min-height: 260px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apex-review-card,
  .apex-testimonial-carousel .owl-nav button,
  .apex-testimonial-carousel .owl-dots .owl-dot span {
    transition: none;
  }
}


/* ================================
   MODERN DENTAL STATS SECTION
================================ */

.stats {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding-bottom: 2rem;
}

.stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  min-height: 205px;
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid rgba(0, 153, 204, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(20, 67, 91, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Soft decorative background */
.stat::before {
  content: "";
  position: absolute;
  top: -45px;
  right: -45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 174, 218, 0.06);
  z-index: -1;
  transition: transform 0.4s ease;
}

/* Card hover effect */
.stat:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 174, 218, 0.3);
  box-shadow: 0 16px 40px rgba(20, 67, 91, 0.13);
}

.stat:hover::before {
  transform: scale(1.5);
}

/* Icon container */
.stat-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #e4f8ff, #d5f3f5);
  color: var(--primary);
  font-size: 1.35rem;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.stat:hover .stat-icon {
  transform: translateY(-3px) scale(1.06);
  background: var(--primary);
  color: #fff;
}

/* Statistics numbers */
.stat b {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-family: "Fraunces", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stat b i {
  font-style: normal;
}

/* Plus and unit text */
.stat-plus {
  margin-left: 2px;
  font-size: 0.85em;
}

.stat-unit {
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0;
}

/* Clinic hours */
.stat b.stat-hours {
  padding-top: 0.15rem;
  font-family: inherit;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.6px;
  white-space: nowrap;
}

/* Label */
.stat-label {
  display: block;
  color: #657786;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Bottom decorative line */
.stat-line {
  width: 35px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary), #45c4d9);
  transition: width 0.35s ease;
}

.stat:hover .stat-line {
  width: 65px;
}

/* Tablet and mobile */
@media (max-width: 767.98px) {
  .stats {
    margin-top: -1.5rem;
    padding-bottom: 1.5rem;
  }

  .stat {
    min-height: 185px;
    padding: 1.4rem 0.65rem 1.2rem;
    border-radius: 16px;
  }

  .stat-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.85rem;
    border-radius: 13px;
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-line {
    margin-top: 0.8rem;
  }
}

/* Small mobile screens */
@media (max-width: 380px) {
  .stat {
    min-height: 175px;
    padding: 1.2rem 0.4rem 1rem;
  }

  .stat b {
    font-size: 1.5rem;
  }

  .stat b.stat-hours {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .stat,
  .stat-icon,
  .stat::before,
  .stat-line {
    transition: none;
  }

  .stat:hover {
    transform: none;
  }
}
.shadow-soft {
  box-shadow: var(--shadow);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}
.checks li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.checks li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}
.svc {
  background: #fff;
  border: 1px solid #e3eef8;
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  transition: 0.3s;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: 0.3s;
}
.svc:hover .ico,
.ben:hover i {
  transform: rotate(-8deg) scale(1.1);
}

/* ========================================
   APEX DENTAL CARE - SERVICES SECTION
======================================== */

.apex-services {
  padding: 80px 0;
  background: #f5faff;
}

.apex-services .head h2 {
  margin-top: 15px;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
}

.apex-services .head > p {
  max-width: 650px;
  margin: 0 auto;
  color: #6b7b8c;
  line-height: 1.8;
}

/* Service Card */
.apex-service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(20, 67, 91, 0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.apex-service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 174, 218, 0.3);
  box-shadow: 0 18px 40px rgba(20, 67, 91, 0.12);
}

/* Service Image */
.apex-service-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf5fb;
}

.apex-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.apex-service-card:hover .apex-service-image img {
  transform: scale(1.06);
}

/* Number Badge */
.apex-service-number {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Card Content */
.apex-service-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.apex-service-content h3 {
  min-height: 52px;
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.apex-service-content p {
  flex: 1;
  margin: 0 0 22px;
  color: #6b7b8c;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Book Appointment Button */
.apex-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.apex-book-btn i {
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.apex-book-btn:hover {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: 0 6px 18px rgba(20, 67, 91, 0.16);
}

.apex-book-btn:hover i {
  transform: translateX(4px);
}

/* Bottom CTA Button */
.apex-all-services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  color: #fff;
  background: var(--primary);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.apex-all-services-btn:hover {
  color: #fff;
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(20, 67, 91, 0.15);
}

/* Tablet */
@media (max-width: 991.98px) {
  .apex-services {
    padding: 65px 0;
  }

  .apex-service-content {
    padding: 20px;
  }

  .apex-service-content h3 {
    font-size: 1.08rem;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .apex-services {
    padding: 50px 0;
  }

  .apex-services .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 16px;
  }

  .apex-service-card {
    border-radius: 15px;
  }

  .apex-service-image {
    aspect-ratio: 4 / 3;
  }

  .apex-service-number {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.75rem;
  }

  .apex-service-content {
    padding: 13px;
  }

  .apex-service-content h3 {
    min-height: 58px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .apex-service-content p {
    margin-bottom: 15px;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .apex-book-btn {
    gap: 6px;
    min-height: 43px;
    padding: 10px 5px;
    border-radius: 9px;
    font-size: 0.76rem;
  }

  .apex-book-btn i {
    font-size: 0.72rem;
  }

  .apex-all-services-btn {
    width: 100%;
    padding: 13px 15px;
    font-size: 0.9rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .apex-service-card,
  .apex-service-image img,
  .apex-book-btn,
  .apex-book-btn i,
  .apex-all-services-btn {
    transition: none;
  }

  .apex-service-card:hover,
  .apex-all-services-btn:hover {
    transform: none;
  }
}


.more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}
.more i {
  font-size: 0.7rem;
  transition: 0.25s;
}
.more:hover i {
  transform: translateX(4px);
}
.ben {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: 0.3s;
}
.ben:hover {
  transform: translateY(-5px);
}
.ben i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  transition: 0.3s;
}

/* ========================================
   WHY CHOOSE US - APEX DENTAL CARE
======================================== */

.apex-benefits {
  padding: 80px 0;
  background: linear-gradient(180deg, #f4faff 0%, #ffffff 100%);
}

.apex-benefits .head {
  max-width: 760px;
  margin: 0 auto 45px;
}

.apex-benefits .head h2 {
  margin: 16px 0 12px;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.apex-benefits .head p {
  max-width: 650px;
  margin: 0 auto;
  color: #718096;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Benefit Card */
.apex-benefit {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 30px 25px;
  background: #fff;
  border: 1px solid #e5edf5;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(20, 67, 91, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.apex-benefit::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 174, 218, 0.05);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.apex-benefit:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 174, 218, 0.3);
  box-shadow: 0 18px 40px rgba(20, 67, 91, 0.11);
}

.apex-benefit:hover::after {
  transform: scale(1.5);
}

/* Icon */
.apex-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  color: var(--primary);
  background: linear-gradient(135deg, #e4f8ff, #d8f3f4);
  border-radius: 18px;
  font-size: 1.6rem;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.apex-benefit:hover .apex-benefit-icon {
  color: #fff;
  background: var(--primary);
  transform: scale(1.06);
}

/* Heading */
.apex-benefit h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Description */
.apex-benefit p {
  margin: 0;
  color: #718096;
  font-size: 0.92rem;
  line-height: 1.8;
}

/* Appointment Button */
.apex-benefit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.apex-benefit-btn:hover {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(20, 67, 91, 0.15);
}

.apex-benefit-btn i {
  transition: transform 0.3s ease;
}

.apex-benefit-btn:hover i {
  transform: translateX(4px);
}

/* Tablet */
@media (max-width: 991.98px) {
  .apex-benefits {
    padding: 65px 0;
  }

  .apex-benefit {
    padding: 25px 20px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .apex-benefits {
    padding: 50px 0;
  }

  .apex-benefits .head {
    margin-bottom: 30px;
  }

  .apex-benefits .head p {
    font-size: 0.88rem;
  }

  .apex-benefits .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 14px;
  }

  .apex-benefit {
    padding: 19px 13px;
    border-radius: 15px;
  }

  .apex-benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    border-radius: 14px;
    font-size: 1.25rem;
  }

  .apex-benefit h3 {
    margin-bottom: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .apex-benefit p {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .apex-benefit-btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.9rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .apex-benefit,
  .apex-benefit::after,
  .apex-benefit-icon,
  .apex-benefit-btn,
  .apex-benefit-btn i {
    transition: none;
  }

  .apex-benefit:hover,
  .apex-benefit-btn:hover {
    transform: none;
  }
}

/* ========================================
   APEX DENTAL CARE - HOW IT WORKS
======================================== */

.apex-process {
  position: relative;
  overflow: hidden;
  padding: 85px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f3faff 100%);
}

/* Section Heading */
.apex-process .head {
  max-width: 760px;
  margin: 0 auto 55px;
}

.apex-process .head h2 {
  margin: 16px 0 12px;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.3;
}

.apex-process .head p {
  max-width: 650px;
  margin: 0 auto;
  color: #718096;
  font-size: 1rem;
  line-height: 1.8;
}

/* Steps Grid */
.apex-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

/* Connecting Line */
.apex-steps::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed rgba(0, 174, 218, 0.35);
}

/* Individual Step Card */
.apex-step {
  position: relative;
  z-index: 1;
  padding: 28px 22px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5eef5;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(20, 67, 91, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.apex-step:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 174, 218, 0.35);
  box-shadow: 0 18px 40px rgba(20, 67, 91, 0.11);
}

/* Step Number and Icon */
.apex-step-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 25px;
}

.apex-step-number {
  position: absolute;
  top: -12px;
  left: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--primary);
  background: #e7f8fc;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(20, 67, 91, 0.08);
}

.apex-step-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: var(--primary);
  background: linear-gradient(135deg, #e8f9ff, #d8f3f4);
  border: 6px solid #ffffff;
  border-radius: 26px;
  box-shadow: 0 6px 20px rgba(20, 67, 91, 0.08);
  font-size: 1.8rem;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.apex-step:hover .apex-step-icon {
  color: #ffffff;
  background: var(--primary);
  transform: scale(1.07);
}

/* Step Title */
.apex-step h3 {
  min-height: 54px;
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Step Description */
.apex-step p {
  margin: 0;
  color: #718096;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Bottom Button */
.apex-process-cta {
  margin-top: 42px;
}

.apex-process-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.apex-process-btn:hover {
  color: #ffffff;
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(20, 67, 91, 0.15);
}

.apex-process-btn i {
  transition: transform 0.3s ease;
}

.apex-process-btn:hover i {
  transform: translateX(4px);
}

/* Tablet */
@media (max-width: 991.98px) {
  .apex-process {
    padding: 65px 0;
  }

  .apex-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .apex-steps::before {
    display: none;
  }

  .apex-step {
    padding: 26px 20px;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .apex-process {
    padding: 50px 0;
  }

  .apex-process .head {
    margin-bottom: 32px;
  }

  .apex-process .head p {
    font-size: 0.9rem;
  }

  .apex-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .apex-step {
    padding: 20px 12px;
    border-radius: 16px;
  }

  .apex-step-top {
    margin-bottom: 18px;
  }

  .apex-step-number {
    top: -8px;
    left: -5px;
    width: 29px;
    height: 29px;
    font-size: 0.7rem;
  }

  .apex-step-icon {
    width: 66px;
    height: 66px;
    border-width: 4px;
    border-radius: 20px;
    font-size: 1.4rem;
  }

  .apex-step h3 {
    min-height: 63px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .apex-step p {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .apex-process-cta {
    margin-top: 30px;
  }

  .apex-process-btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.9rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .apex-step,
  .apex-step-icon,
  .apex-process-btn,
  .apex-process-btn i {
    transition: none;
  }

  .apex-step:hover,
  .apex-process-btn:hover {
    transform: none;
  }
}
/* ===== Gallery ===== */
/* =====================================
   APEX CLINIC GALLERY
===================================== */

.apex-clinic-gallery {
  padding: 80px 0;
  overflow: hidden;
}

.apex-cg-heading {
  text-align: center;
  margin-bottom: 42px;
}

.apex-cg-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 12px;
  border-radius: 50px;
  background: rgba(32, 201, 151, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.apex-cg-heading h2 {
  margin-bottom: 12px;
  font-weight: 800;
}

.apex-cg-heading p {
  max-width: 650px;
  margin: 0 auto;
  color: #687580;
  line-height: 1.8;
}

/* Gallery Grid */

.apex-cg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 18px;
}

.apex-cg-item {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #eaf1f5;
}

.apex-cg-item.apex-cg-large {
  grid-column: span 2;
  grid-row: span 2;
}

.apex-cg-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eaf1f5;
  text-align: left;
  cursor: pointer;
}

.apex-cg-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.apex-cg-trigger:hover img {
  transform: scale(1.07);
}

/* Gallery Overlay */

.apex-cg-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(5, 22, 36, 0.88),
    rgba(5, 22, 36, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.apex-cg-trigger:hover .apex-cg-overlay,
.apex-cg-trigger:focus-visible .apex-cg-overlay {
  opacity: 1;
}

.apex-cg-overlay > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.apex-cg-overlay small {
  color: #c6ffeb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.apex-cg-overlay strong {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.apex-cg-overlay > i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* Gallery Footer */

.apex-cg-footer {
  margin-top: 35px;
  text-align: center;
}

/* =====================================
   CUSTOM LIGHTBOX
===================================== */

.apex-cg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  background: rgba(0, 0, 0, 0.94);
  overflow: hidden;
}

.apex-cg-lightbox.apex-cg-open {
  display: flex;
}

/* Image Viewport */

.apex-cg-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.apex-cg-full-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

/* Close Button */

.apex-cg-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.8);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.apex-cg-close:hover {
  background: #333;
}

/* Previous / Next Buttons */

.apex-cg-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(25, 25, 25, 0.85);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.apex-cg-nav:hover {
  background: #333;
}

.apex-cg-prev {
  left: 20px;
}

.apex-cg-next {
  right: 20px;
}

/* Image Counter */

.apex-cg-counter {
  position: absolute;
  bottom: 15px;
  left: 50%;
  color: #fff;
  font-size: 13px;
  transform: translateX(-50%);
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 991.98px) {
  .apex-clinic-gallery {
    padding: 65px 0;
  }

  .apex-cg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 15px;
  }

  .apex-cg-item.apex-cg-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .apex-cg-overlay {
    padding: 16px;
    opacity: 1;
  }

  .apex-cg-lightbox {
    padding: 55px 60px;
  }

  .apex-cg-nav {
    width: 42px;
    height: 50px;
  }

  .apex-cg-prev {
    left: 10px;
  }

  .apex-cg-next {
    right: 10px;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 575.98px) {
  .apex-clinic-gallery {
    padding: 50px 0;
  }

  .apex-cg-heading {
    margin-bottom: 28px;
  }

  .apex-cg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
    gap: 10px;
  }

  .apex-cg-item,
  .apex-cg-item.apex-cg-large {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 12px;
  }

  .apex-cg-overlay {
    padding: 10px;
    gap: 5px;
  }

  .apex-cg-overlay small {
    font-size: 9px;
  }

  .apex-cg-overlay strong {
    font-size: 11px;
  }

  .apex-cg-overlay > i {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .apex-cg-lightbox {
    padding: 65px 10px;
  }

  .apex-cg-full-image {
    max-width: 100%;
    max-height: 100%;
  }

  .apex-cg-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 23px;
  }

  .apex-cg-nav {
    top: auto;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 17px;
    transform: none;
  }

  .apex-cg-prev {
    left: calc(50% - 52px);
  }

  .apex-cg-next {
    right: calc(50% - 52px);
  }

  .apex-cg-counter {
    bottom: 25px;
    font-size: 12px;
  }
}
/* ===== Testimonials / FAQ / CTA ===== */
.tm {
  text-align: center;
  background: #fff;
  padding: 2.5rem 1.5rem 3.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tm p {
  font-size: 1.15rem;
  color: var(--dark);
}
.av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 1rem auto 0.5rem;
  font-weight: 700;
}
.static-ind {
  bottom: -4px;
}
.static-ind button {
  background-color: var(--primary) !important;
}
.accordion-item {
  border-radius: 12px !important;
  margin-bottom: 0.7rem;
  border: 1px solid #e3eef8;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  color: var(--dark);
}
.accordion-button:not(.collapsed) {
  background: var(--light);
  color: var(--primary);
}
/* ==========================================
   APEX DENTAL CARE - CTA SECTION
========================================== */

.apex-cta-section {
  position: relative;
  padding: 85px 0;
  overflow: hidden;
  background: #f2f8fc;
  isolation: isolate;
}

.apex-cta-section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  z-index: -1;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(32, 201, 151, 0.08);
}

.apex-cta-section::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -120px;
  z-index: -1;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(45, 125, 210, 0.07);
}

.apex-cta-wrapper {
  position: relative;
  padding: 45px;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    var(--dark, #102a43),
    var(--primary-dark, #123e60)
  );
  box-shadow: 0 25px 65px rgba(16, 42, 67, 0.13);
}

/* ==========================================
   LEFT CONTENT
========================================== */

.apex-cta-content {
  padding: 15px 0;
}

.apex-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #aaf5dc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.apex-cta-badge i {
  font-size: 14px;
}

.apex-cta-content h2 {
  max-width: 620px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.apex-cta-content h2 span {
  color: #70e6bd;
}

.apex-cta-description {
  max-width: 540px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.9;
}

/* ==========================================
   CTA BUTTONS
========================================== */

.apex-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.apex-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.apex-cta-btn:hover {
  transform: translateY(-3px);
}

.apex-cta-btn i {
  font-size: 16px;
}

/* Appointment Button */

.apex-cta-btn-light {
  background: #fff;
  color: var(--dark, #102a43);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.apex-cta-btn-light:hover {
  background: #70e6bd;
  color: #102a43;
}

/* WhatsApp Button */

.apex-cta-btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.apex-cta-btn-whatsapp:hover {
  background: #1eb956;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

/* Call Button */

.apex-cta-btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.apex-cta-btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Trust Note */

.apex-cta-trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.8;
}

.apex-cta-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(112, 230, 189, 0.17);
  color: #70e6bd;
  font-size: 11px;
}

.apex-cta-trust b {
  padding: 0 3px;
  color: #70e6bd;
}

/* ==========================================
   CLINIC INFORMATION CARD
========================================== */

.apex-cta-info-card {
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

/* Card Header */

.apex-cta-card-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.apex-cta-clinic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 17px;
  background: rgba(32, 201, 151, 0.12);
  color: var(--primary, #20c997);
  font-size: 27px;
}

.apex-cta-card-label {
  display: block;
  margin-bottom: 4px;
  color: #778796;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.apex-cta-card-top h3 {
  margin: 0 0 5px;
  color: var(--dark, #102a43);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.apex-cta-card-top p {
  margin: 0;
  color: #788694;
  font-size: 13px;
}

/* Divider */

.apex-cta-divider {
  height: 1px;
  margin: 23px 0;
  background: #e8eef3;
}

/* Information Rows */

.apex-cta-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 23px;
}

.apex-cta-info-row:last-of-type {
  margin-bottom: 0;
}

.apex-cta-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #edf8f5;
  color: var(--primary, #20c997);
  font-size: 17px;
}

.apex-cta-info-text {
  min-width: 0;
  flex: 1;
}

.apex-cta-info-text h4 {
  margin: 1px 0 7px;
  color: var(--dark, #102a43);
  font-size: 14px;
  font-weight: 800;
}

.apex-cta-info-text p {
  margin: 0 0 6px;
  color: #6c7a89;
  font-size: 13px;
  line-height: 1.8;
}

.apex-cta-info-text strong {
  color: var(--dark, #102a43);
  font-size: 13px;
  font-weight: 800;
}

/* Card Links */

.apex-cta-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: #168b70;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.apex-cta-map-link:hover {
  color: #0e604d;
  text-decoration: underline;
}

.apex-cta-phone {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--dark, #102a43);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.apex-cta-phone:hover {
  color: var(--primary, #20c997);
}

/* Card Footer */

.apex-cta-card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #d7f2e7;
  border-radius: 12px;
  background: #f0fbf6;
  color: #26785e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.apex-cta-card-bottom i {
  flex-shrink: 0;
  font-size: 18px;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 991.98px) {
  .apex-cta-section {
    padding: 65px 0;
  }

  .apex-cta-wrapper {
    padding: 35px;
    border-radius: 25px;
  }

  .apex-cta-content {
    padding: 0;
  }

  .apex-cta-content h2 {
    font-size: 36px;
  }

  .apex-cta-info-card {
    padding: 24px;
  }
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 575.98px) {
  .apex-cta-section {
    padding: 45px 0;
  }

  .apex-cta-wrapper {
    padding: 25px 17px;
    border-radius: 20px;
  }

  .apex-cta-badge {
    margin-bottom: 17px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .apex-cta-content h2 {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .apex-cta-description {
    margin-bottom: 23px;
    font-size: 14px;
    line-height: 1.8;
  }

  .apex-cta-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .apex-cta-btn {
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
  }

  .apex-cta-trust {
    margin-top: 22px;
    font-size: 11px;
  }

  .apex-cta-info-card {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .apex-cta-clinic-icon {
    width: 51px;
    height: 51px;
    border-radius: 14px;
    font-size: 23px;
  }

  .apex-cta-card-top {
    gap: 12px;
  }

  .apex-cta-card-top h3 {
    font-size: 17px;
  }

  .apex-cta-info-row {
    gap: 11px;
    margin-bottom: 21px;
  }

  .apex-cta-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 15px;
  }

  .apex-cta-card-bottom {
    padding: 12px;
    font-size: 11px;
  }
}

/* Respect Reduced Motion Preferences */

@media (prefers-reduced-motion: reduce) {
  .apex-cta-btn {
    transition: none;
  }
}
/* ===== Page hero / Contact / Forms / Modal ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding: 4rem 0 3.5rem;
}
.page-hero h1 {
  color: #fff;
}
.breadcrumb a {
  color: var(--secondary);
}
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: #cfe3ff;
}
.info {
  display: flex;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.info > i {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--light);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.info p {
  margin: 0;
}
.form-control,
.form-select {
  border-radius: 12px;
  padding: 0.7rem 1rem;
}
.form-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}
.map {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 3rem;
}
.modal-content {
  border: 0;
  border-radius: 20px;
}
.modal-header {
  background: var(--light);
  border: 0;
  align-items: flex-start;
}
.toast-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3000;
}
.toast {
  border-left: 5px solid #25d366;
}
/* ===== Footer ===== */
/* ==========================================
   APEX DENTAL CLINIC FOOTER
========================================== */

.apex-footer {
  position: relative;
  padding: 70px 0 20px;
  overflow: hidden;
  background: var(--dark, #102a43);
  color: #b8c7d9;
}

.apex-footer a {
  color: inherit;
  text-decoration: none;
}

/* Brand */

.apex-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.apex-footer-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--primary, #20c997);
  color: #fff;
  font-size: 25px;
}

.apex-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.apex-footer-brand-text strong {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
}

.apex-footer-brand-text small {
  color: #9eebd3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Description */

.apex-footer-description {
  max-width: 350px;
  margin: 0 0 24px;
  color: #b8c7d9;
  font-size: 14px;
  line-height: 1.9;
}

/* Social Icons */

.apex-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.apex-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 17px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.apex-footer-social a:hover {
  background: var(--primary, #20c997);
  color: #fff;
  transform: translateY(-3px);
}

/* Column Headings */

.apex-footer-heading {
  position: relative;
  margin: 5px 0 25px;
  padding-bottom: 13px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.apex-footer-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 5px;
  background: var(--primary, #20c997);
  content: "";
}

/* Quick Links and Services */

.apex-footer-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apex-footer-links li {
  margin: 0;
  padding: 0;
}

.apex-footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: #b8c7d9;
  font-size: 13px;
  line-height: 1.6;
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.apex-footer-links a i {
  margin-top: 4px;
  color: var(--primary, #20c997);
  font-size: 11px;
}

.apex-footer-links a:hover {
  padding-left: 4px;
  color: #fff;
}

/* Contact Information */

.apex-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.apex-footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border: 1px solid rgba(32, 201, 151, 0.2);
  border-radius: 11px;
  background: rgba(32, 201, 151, 0.12);
  color: #72e6bd;
  font-size: 15px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

a.apex-footer-contact-item:hover .apex-footer-contact-icon {
  background: var(--primary, #20c997);
  color: #fff;
}

.apex-footer-contact-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}

.apex-footer-contact-text small {
  color: #8fa6bb;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.apex-footer-contact-text strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.apex-footer-contact-text > span {
  color: #b8c7d9;
  font-size: 12px;
  line-height: 1.6;
}

/* Footer Bottom */

.apex-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.apex-footer-bottom p {
  margin: 0;
  color: #aabbd0;
  font-size: 12px;
  line-height: 1.7;
}

.apex-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.apex-footer-legal a {
  color: #b8c7d9;
  transition: color 0.25s ease;
}

.apex-footer-legal a:hover {
  color: var(--primary, #20c997);
}

.apex-footer-separator {
  color: #62788d;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 991.98px) {
  .apex-footer {
    padding-top: 55px;
  }

  .apex-footer-heading {
    margin-top: 0;
  }

  .apex-footer-bottom {
    margin-top: 28px;
  }
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media (max-width: 575.98px) {
  .apex-footer {
    padding: 45px 0 18px;
  }

  .apex-footer-brand-icon {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    font-size: 22px;
  }

  .apex-footer-brand-text strong {
    font-size: 21px;
  }

  .apex-footer-description {
    font-size: 13px;
  }

  .apex-footer-heading {
    margin-bottom: 19px;
    font-size: 15px;
  }

  .apex-footer-links {
    gap: 11px;
  }

  .apex-footer-links a {
    gap: 7px;
    font-size: 12px;
  }

  .apex-footer-contact-item {
    gap: 9px;
    margin-bottom: 17px;
  }

  .apex-footer-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
  }

  .apex-footer-contact-text strong {
    font-size: 12px;
  }

  .apex-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 18px;
  }

  .apex-footer-bottom p,
  .apex-footer-legal {
    font-size: 11px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .apex-footer-social a,
  .apex-footer-links a,
  .apex-footer-contact-icon,
  .apex-footer-legal a {
    transition: none;
  }
}
/* ===== WhatsApp / Back to top ===== */
.wa-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1040;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  height: 56px;
  min-width: 56px;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;

}
.wa-float i {
  font-size: 1.7rem;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-3px);
}
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1040;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--dark);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: transform 0.3s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover{
    transform: translateY(-3px);
}


/* ================================
   DENTAL GALLERY
================================ */

.dental-gallery-section {
  padding: 60px 0;
  overflow: hidden;
}

.dental-gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.dental-gallery-filters button {
  border: 1px solid #dce8e9;
  background: #ffffff;
  color: #344b50;
  padding: 10px 23px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dental-gallery-filters button:hover,
.dental-gallery-filters button.active {
  background: var(--primary, #0d9488);
  color: #ffffff;
  border-color: var(--primary, #0d9488);
}

.dental-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dental-gallery-grid .g-item {
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f0f7f7;
  box-shadow: 0 5px 22px rgba(22, 55, 65, 0.08);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dental-gallery-grid .g-item.is-hidden {
  display: none;
}

.dental-gallery-grid .g-btn {
  display: block;
  position: relative;
  width: 100%;
  height: 270px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e8f0f1;
  cursor: zoom-in;
  text-align: left;
}

.dental-gallery-grid .g-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dental-gallery-grid .g-btn:hover img {
  transform: scale(1.07);
}

.dental-gallery-grid .g-ov {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 35px 18px 18px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0)
  );
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.dental-gallery-grid .g-btn:hover .g-ov,
.dental-gallery-grid .g-btn:focus-visible .g-ov {
  opacity: 1;
  transform: translateY(0);
}

.dental-gallery-grid .g-ov i {
  font-size: 17px;
}

.dental-gallery-grid .g-btn:focus-visible,
.dental-gallery-filters button:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}

/* ================================
   FULL-SCREEN LIGHTBOX
================================ */

.dental-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.dental-gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dental-gallery-lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.dental-gallery-close {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dental-gallery-close:hover {
  background: #e63946;
}

.dental-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.dental-gallery-nav:hover {
  background: var(--primary, #0d9488);
}

.dental-gallery-prev {
  left: 20px;
}

.dental-gallery-next {
  right: 20px;
}

/* Prevent page scrolling while lightbox is open */
body.dental-gallery-locked {
  overflow: hidden !important;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 991.98px) {
  .dental-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .dental-gallery-grid .g-btn {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .dental-gallery-section {
    padding: 40px 0;
  }

  .dental-gallery-filters {
    gap: 8px;
    margin-bottom: 25px;
  }

  .dental-gallery-filters button {
    padding: 9px 15px;
    font-size: 12px;
  }

  .dental-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dental-gallery-grid .g-btn {
    height: 250px;
  }

  .dental-gallery-grid .g-ov {
    opacity: 1;
    transform: translateY(0);
  }

  .dental-gallery-lightbox {
    padding: 12px;
  }

  .dental-gallery-lightbox img {
    max-width: 96vw;
    max-height: 85vh;
  }

  .dental-gallery-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .dental-gallery-nav {
    top: auto;
    bottom: 15px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .dental-gallery-prev {
    left: calc(50% - 52px);
  }

  .dental-gallery-next {
    right: calc(50% - 52px);
  }
}