/* ==========================================================================
   LUCKY DENTAL CARE — OFFICIAL DESIGN SYSTEM & STYLESHEET
   ESTD 1982 | 44 YEARS OF EXPERIENCE | SMILE FOR LIFE
   Color Identity: White + Deep Dental Crimson Red
   Typography: Hind Siliguri (Bengali) + Outfit (Latin/Numbers)
   ========================================================================== */

:root {
  /* Lucky Dental Care — Burnt-Orange Brand System (Main Accent) */
  --brand-primary: #c2410c;
  --brand-primary-rgb: 194, 65, 12;
  --brand-primary-dark: #9a3412;
  --brand-primary-deep: #7c2d12;
  --brand-primary-light: #ea580c;
  --brand-primary-soft: #fff7ed;
  --brand-primary-subtle: rgba(194, 65, 12, 0.08);
  --brand-primary-border: rgba(194, 65, 12, 0.25);
  --brand-primary-shadow: 0 10px 25px rgba(194, 65, 12, 0.20);
  --brand-primary-glow: rgba(194, 65, 12, 0.18);
  --bs-primary: #c2410c;
  --bs-primary-rgb: 194, 65, 12;

  /* Brand Accent Colors (Dynamically Synchronized with Settings) */
  --brand-red: var(--brand-primary);
  --brand-red-dark: var(--brand-primary-dark);
  --brand-red-deep: var(--brand-primary-deep);
  --brand-red-light: var(--brand-primary-light);
  --brand-red-soft: var(--brand-primary-soft);
  --brand-red-subtle: var(--brand-primary-subtle);
  --brand-red-glow: var(--brand-primary-glow);
  --brand-gold: #c59b27;
  --brand-gold-soft: #fef9ed;

  /* Neutral & Surface Colors */
  --brand-white: #ffffff;
  --brand-offwhite: #fafaf9;
  --brand-surface: #f4f5f7;
  --brand-surface-2: #eceef2;
  --brand-border: #e2e8f0;
  --brand-border-light: #f1f5f9;
  --brand-charcoal: #1a202c;
  --brand-dark: #0f172a;
  --brand-muted: #475569;
  --brand-muted-light: #64748b;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);
  --shadow-red: 0 10px 25px rgba(148, 19, 36, 0.25);
  --shadow-red-lg: 0 16px 36px rgba(148, 19, 36, 0.35);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.18s ease-in-out;
  --transition-normal: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-base: var(--font-bangla);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 40px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-base);
  background-color: var(--brand-offwhite);
  color: var(--brand-charcoal);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-dark);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
  color: var(--brand-muted);
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--brand-red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 28px;
}

@media (max-width: 992px) {
  .container {
    padding-inline: 20px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }
}

.section-spacing {
  padding-top: 85px;
  padding-bottom: 85px;
}

@media (max-width: 992px) {
  .section-spacing {
    padding-top: 65px;
    padding-bottom: 65px;
  }
}

@media (max-width: 640px) {
  .section-spacing {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Typography & Section Headers — Global System */
.section-header {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 19, 36, 0.15);
  margin-inline: auto;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.section-badge i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
  line-height: 1;
}

.section-badge.gold {
  background: var(--brand-gold-soft);
  color: #9a7812;
  border-color: rgba(197, 155, 39, 0.25);
}

.section-title {
  width: 100%;
  text-align: center;
  margin-inline: auto;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 14px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.section-subtitle {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--brand-muted);
  line-height: 1.75;
  word-break: normal;
}

.section-action {
  width: 100%;
  text-align: center;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clinic-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.clinic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 992px) {
  .section-header {
    margin-bottom: 38px;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .section-badge {
    font-size: 0.84rem;
    padding: 5px 15px;
  }
  .clinic-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .clinic-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .clinic-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 1.6rem;
    line-height: 1.35;
  }
  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .section-badge {
    font-size: 0.8rem;
    padding: 5px 13px;
    margin-bottom: 12px;
  }
  .section-action {
    margin-top: 28px;
  }
}

/* Buttons */
.btn-primary-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: var(--brand-white);
  padding: 13px 28px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-red);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary-red:hover {
  background: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 100%);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-lg);
}

.btn-secondary-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-white);
  color: var(--brand-charcoal);
  padding: 13px 28px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-secondary-white:hover {
  background: var(--brand-surface);
  color: var(--brand-red);
  border-color: rgba(148, 19, 36, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--brand-red);
  padding: 11px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--brand-red);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-outline-red:hover {
  background: var(--brand-red);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

/* ==========================================================================
   TOP INFO BAR
   ========================================================================== */
.top-info-bar {
  background: var(--brand-red-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
}

.top-bar-item a {
  color: rgba(255, 255, 255, 0.92);
}

.top-bar-item a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

.top-bar-badge {
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .top-info-bar {
    display: none; /* Keep clean on small mobile, sticky bottom bar handles direct call */
  }
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  transition: var(--transition-normal);
}

.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(148, 19, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-red);
  flex-shrink: 0;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--brand-red);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--brand-charcoal);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 8px 4px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--brand-red);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-appointment-btn {
  font-size: 0.92rem;
  padding: 10px 18px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-menu {
    gap: 8px;
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 6px 3px;
  }
  .brand-title {
    font-size: 1.08rem;
  }
  .brand-logo-frame {
    width: 44px;
    height: 44px;
  }
  .navbar-actions {
    gap: 8px;
  }
  .nav-appointment-btn {
    font-size: 0.80rem;
    padding: 8px 11px;
    gap: 6px;
  }
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--brand-dark);
}

.mobile-toggle-btn:focus {
  outline: 2px solid var(--brand-red);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: var(--brand-white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .mobile-drawer,
  .drawer-overlay,
  .mobile-overlay,
  .mobile-bottom-bar {
    display: none !important;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--brand-border);
  margin-bottom: 20px;
}

.drawer-close-btn {
  background: var(--brand-surface);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-dark);
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--brand-charcoal);
  font-weight: 600;
  text-decoration: none;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .nav-menu, .nav-appointment-btn {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--brand-offwhite) 100%);
  padding: 70px 0 90px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: var(--brand-red-soft);
  border: 1px solid rgba(148, 19, 36, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(148, 19, 36, 0.2);
}

.hero-badge-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-red);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.24;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
}

.hero-title .highlight-red {
  color: var(--brand-red);
  position: relative;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--brand-muted);
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--brand-border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.trust-item-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.3;
}

.trust-item-sub {
  font-size: 0.78rem;
  color: var(--brand-muted);
  display: block;
}

/* Hero Media Card */
.hero-visual-wrap {
  position: relative;
  z-index: 1;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-white);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--brand-white);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.floating-stat-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.floating-stat-num {
  font-family: var(--font-latin);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
}

.floating-stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.35;
}

.floating-brand-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand-red);
  color: var(--brand-white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-latin);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(148, 19, 36, 0.35);
  z-index: 3;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .hero-image-card img {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0 60px 0;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary-red, .btn-secondary-white {
    width: 100%;
  }
  .hero-image-card img {
    height: 300px;
  }
}

/* ==========================================================================
   STATISTICS & HERITAGE BAR
   ========================================================================== */
.stats-section {
  background: var(--brand-white);
  padding: 55px 0;
  border-top: 1px solid var(--brand-border-light);
  border-bottom: 1px solid var(--brand-border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px 15px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  background: var(--brand-offwhite);
  border: 1px solid var(--brand-border-light);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 19, 36, 0.15);
}

.stat-number {
  font-family: var(--font-latin);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1.15;
  margin-bottom: 8px;
}

.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--brand-muted);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-number {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background: var(--brand-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.clinic-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .clinic-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .clinic-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.about-visual {
  position: relative;
}

.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--brand-white);
  position: relative;
}

.about-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-frame:hover img {
  transform: scale(1.02);
}

.about-experience-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--brand-red);
  color: var(--brand-white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(148, 19, 36, 0.4);
  text-align: center;
}

.about-exp-number {
  font-family: var(--font-latin);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.about-exp-text {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.about-content {
  padding-left: 10px;
}

.about-content .section-badge,
.about-content .section-title {
  margin-inline: 0;
  text-align: left;
}

.story-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-charcoal);
  border-left: 4px solid var(--brand-red);
  padding-left: 18px;
  margin-bottom: 22px;
  line-height: 1.8;
}

.story-paragraph {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--brand-muted);
  margin-bottom: 28px;
}

.about-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 34px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-experience-card {
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 576px) {
  .about-feature-list {
    grid-template-columns: 1fr;
  }
  .about-image-frame img {
    height: 340px;
  }
}

/* ==========================================================================
   HERITAGE & TIMELINE SECTION
   ========================================================================== */
.heritage-section {
  background: var(--brand-white);
}

.heritage-lead-box {
  background: linear-gradient(135deg, var(--brand-red-deep) 0%, var(--brand-red) 100%);
  color: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 40px 45px;
  margin-bottom: 55px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.heritage-lead-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.heritage-lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.96);
  margin-bottom: 12px;
}

.heritage-lead-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.timeline-step {
  position: relative;
  background: var(--brand-offwhite);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: var(--transition-normal);
}

.timeline-step:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 19, 36, 0.3);
  box-shadow: var(--shadow-lg);
}

.timeline-step-badge {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.timeline-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
}

.timeline-step-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background: var(--brand-surface);
}

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

.service-card {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  position: relative;
  border: 1px solid var(--brand-border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(148, 19, 36, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.service-icon-box i {
  color: var(--brand-red);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.service-card:hover .service-icon-box {
  background: var(--brand-red);
  color: var(--brand-white);
  transform: scale(1.06);
}

.service-card:hover .service-icon-box i {
  color: var(--brand-white);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-card-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card-cta {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: auto;
  text-decoration: none;
  transition: var(--transition-fast);
}

.service-card-cta:hover {
  color: var(--brand-red-dark);
  gap: 12px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 28px 20px;
  }
}

/* ==========================================================================
   MODERN DIGITAL DENTISTRY SECTION
   ========================================================================== */
.digital-dentistry-section {
  background: var(--brand-white);
}

.digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.digital-content {
  padding-right: 10px;
}

.digital-points-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.digital-point-card {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  background: var(--brand-offwhite);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border-light);
  transition: var(--transition-fast);
}

.digital-point-card:hover {
  background: var(--brand-white);
  box-shadow: var(--shadow-sm);
  border-color: rgba(148, 19, 36, 0.2);
}

.point-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.point-info h4 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.point-info p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.digital-visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--brand-white);
  position: relative;
}

.digital-visual-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.digital-caption-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: var(--brand-white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .digital-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   WHY CHOOSE US SECTION — GLOBAL COMPONENT
   ========================================================================== */
.why-us-section,
.why-section {
  background: var(--brand-surface);
}

.why-us-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  padding: 34px 24px;
  border: 1px solid var(--brand-border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(148, 19, 36, 0.2);
}

.why-card-icon,
.why-icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  margin: 0 auto 20px auto;
  font-size: 1.5rem;
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.why-card-icon i,
.why-icon-bubble i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.why-card:hover .why-card-icon,
.why-card:hover .why-icon-bubble {
  background: var(--brand-red);
  color: var(--brand-white);
  transform: rotate(5deg) scale(1.08);
}

.why-card-title,
.why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
  line-height: 1.35;
}

.why-card-desc,
.why-desc {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin-bottom: 0;
  text-align: center;
  width: 100%;
  flex-grow: 1;
}

@media (max-width: 992px) {
  .why-us-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .why-us-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-card {
    padding: 28px 20px;
  }
}

.trust-quote-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.trust-quote-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px auto;
  font-size: 1.6rem;
}

.trust-quote-title {
  font-size: 1.7rem;
  color: var(--brand-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

.trust-quote-desc {
  font-size: 1.05rem;
  color: var(--brand-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 25px auto;
}

@media (max-width: 640px) {
  .trust-quote-card {
    padding: 30px 20px;
  }
  .trust-quote-title {
    font-size: 1.35rem;
  }
  .trust-quote-desc {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   MODERN SERVICE CARD COMPONENT & DIRECTORY (Adapted from service-div.html)
   ========================================================================== */
.tdc-dental-section-wrapper {
  width: 100%;
  margin: 0 auto;
}

.tdc-services-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .tdc-services-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .tdc-services-grid-container {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.tdc-service-card-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  background: var(--brand-white);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.tdc-service-card-item:hover {
  box-shadow: 0 12px 28px rgba(148, 19, 36, 0.12);
  transform: translateY(-4px);
  border-color: rgba(203, 4, 55, 0.35);
}

/* Image Hover Transition (Before & After) */
.tdc-card-image-box {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: #f1f5f9;
}

.tdc-card-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}

.tdc-img-after {
  opacity: 0;
}

.tdc-img-before {
  opacity: 1;
}

.tdc-service-card-item:hover .tdc-img-after {
  opacity: 1;
}

.tdc-service-card-item:hover .tdc-img-before {
  opacity: 0;
}

.tdc-service-card-item:hover .tdc-card-image-box img {
  transform: scale(1.03);
}

/* Before / After Floating Badge */
.tdc-image-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.tdc-service-card-item:hover .tdc-image-status-badge {
  background: var(--brand-red);
}

/* Card Content Body */
.tdc-card-content-body {
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tdc-service-heading {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 10px 0;
  line-height: 1.4;
  font-family: var(--font-bangla), sans-serif;
  transition: color 0.25s ease;
}

.tdc-service-card-item:hover .tdc-service-heading {
  color: var(--brand-red);
}

.tdc-meta-info {
  font-size: 0.9rem;
  color: var(--brand-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdc-meta-info i {
  color: var(--brand-red);
  font-size: 0.95rem;
}

.tdc-divider-line {
  height: 1px;
  background: var(--brand-border);
  margin: 10px 0 14px 0;
}

/* Price Box */
.tdc-price-box {
  margin-top: auto;
  padding-bottom: 14px;
}

.tdc-price-label {
  color: var(--brand-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  line-height: 1.2;
}

.tdc-price-value {
  color: var(--brand-red);
  font-weight: 800;
  font-size: 1.24rem;
  display: block;
  margin-top: 3px;
  line-height: 1.2;
  font-family: var(--font-latin), var(--font-bangla);
}

/* Card CTA Button */
.tdc-card-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background-color: var(--brand-red);
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  font-family: var(--font-bangla), sans-serif;
  box-shadow: 0 4px 14px rgba(148, 19, 36, 0.18);
}

.tdc-service-card-item:hover .tdc-card-cta-btn {
  background-color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(148, 19, 36, 0.28);
}

/* Service Filter Tabs */
.service-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 35px;
}

.service-filter-btn {
  background: var(--brand-white);
  color: var(--brand-charcoal);
  border: 1px solid var(--brand-border);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-bangla);
}

.service-filter-btn:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: var(--brand-primary-border);
}

.service-filter-btn.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.28);
}

/* ==========================================================================
   LUCKY DENTAL CARE — NEW MODERN EDITORIAL SERVICE SYSTEM
   Main Theme: #c2410c (Burnt-Orange)
   ========================================================================== */
.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

@media (max-width: 992px) {
  .services-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .services-grid-modern {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Modern Service Card */
.service-card-modern {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  position: relative;
}

.service-card-modern:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary-border);
  box-shadow: 0 14px 34px rgba(194, 65, 12, 0.14);
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary) 0%, #ea580c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.service-card-modern:hover::before {
  opacity: 1;
}

/* Media Area */
.service-card-media {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #f8fafc;
}

.service-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-img-before {
  opacity: 1;
  z-index: 1;
}

.service-card-img-after {
  opacity: 0;
  z-index: 2;
}

.service-card-modern:hover .service-card-img-after {
  opacity: 1;
}

.service-card-modern:hover .service-card-img-before {
  opacity: 0;
}

.service-card-modern:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  z-index: 3;
  pointer-events: none;
  transition: background-color 0.25s ease;
}

.service-card-modern:hover .service-card-badge {
  background: var(--brand-primary);
}

.service-card-category-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: var(--brand-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Card Body */
.service-card-body {
  padding: 22px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--brand-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.service-card-meta i {
  color: var(--brand-primary);
  font-size: 0.9rem;
}

.service-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 10px 0;
  line-height: 1.38;
  transition: color 0.2s ease;
}

.service-card-modern:hover .service-card-title {
  color: var(--brand-primary);
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--brand-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Card Footer */
.service-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--brand-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-price {
  display: flex;
  flex-direction: column;
}

.service-price-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.service-price-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  font-family: var(--font-latin), var(--font-bangla);
  line-height: 1.25;
  margin-top: 2px;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-primary);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.service-card-cta i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.service-card-modern:hover .service-card-cta {
  background: var(--brand-primary-dark);
  box-shadow: 0 5px 14px rgba(194, 65, 12, 0.32);
}

.service-card-modern:hover .service-card-cta i {
  transform: translateX(3px);
}

/* ==========================================================================
   SERVICE DETAIL PAGE DESIGN SYSTEM
   ========================================================================== */
.service-detail-section {
  padding: 36px 0 40px 0;
  background: var(--brand-offwhite);
}

.service-detail-section [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .service-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Detail Main Article */
.service-detail-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Media Showcase */
.service-detail-media-showcase {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-media-viewer {
  position: relative;
  width: 100%;
  padding-top: 55%;
  overflow: hidden;
  background: #f1f5f9;
}

.detail-media-viewer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-media-viewer:hover img {
  transform: scale(1.02);
}

.detail-media-caption {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--brand-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Quick Metadata Pills */
.service-quick-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.service-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
}

.service-meta-pill i {
  color: var(--brand-primary);
}

/* Content Blocks */
.detail-content-block {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-xs);
}

.detail-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid var(--brand-primary);
  padding-left: 12px;
}

.detail-section-title i {
  color: var(--brand-primary);
}

.detail-text-lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--brand-charcoal);
  margin-bottom: 14px;
}

.detail-text-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--brand-muted);
  margin-bottom: 0;
}

/* Treatment Step Cards */
.detail-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .detail-steps-grid {
    grid-template-columns: 1fr;
  }
}

.detail-step-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-step-card:hover {
  border-color: var(--brand-primary-border);
  transform: translateY(-2px);
}

.step-number-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

/* Benefits Checklist */
.detail-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .detail-benefits-list {
    grid-template-columns: 1fr;
  }
}

.detail-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--brand-surface);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--brand-charcoal);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.detail-benefit-item:hover {
  border-color: var(--brand-primary-border);
}

.detail-benefit-item i {
  color: var(--brand-primary);
  font-size: 1.05rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Aftercare Card */
.detail-aftercare-box {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
}

.detail-aftercare-box h4 {
  font-size: 1.15rem;
  color: var(--brand-primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-aftercare-list {
  margin: 0;
  padding-left: 20px;
  color: var(--brand-charcoal);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Sticky Sidebar */
.service-detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card-main {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-price-container {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-price-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.sidebar-price-tag {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary);
  font-family: var(--font-latin), var(--font-bangla);
  margin: 4px 0 2px 0;
}

.sidebar-price-disclaimer {
  font-size: 0.78rem;
  color: var(--brand-muted-light);
  display: block;
}

.sidebar-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-primary-burnt-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brand-primary);
  color: #ffffff !important;
  padding: 14px 24px;
  border-radius: 9999px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary-burnt-orange:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 65, 12, 0.38);
}

.btn-secondary-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: var(--brand-charcoal) !important;
  border: 1px solid var(--brand-border);
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.btn-secondary-phone:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft);
}

.sidebar-guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--brand-border-light);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--brand-muted);
}

.sidebar-guarantee-item i {
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.back-to-services-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-to-services-link:hover {
  color: var(--brand-primary-dark);
  transform: translateX(-4px);
}

/* Related Services Section */
.related-services-section {
  background: var(--brand-surface);
  padding: 40px 0 40px 0;
  border-top: 1px solid var(--brand-border);
}

/* ==========================================================================
   CLINIC EXTERIOR FEATURE & LOCATION GRID — GLOBAL COMPONENTS
   ========================================================================== */
.clinic-exterior-section {
  background: var(--brand-surface);
}

.exterior-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--brand-border);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.exterior-img-box {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.exterior-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exterior-info-box {
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exterior-info-box .section-badge {
  margin-inline: auto;
  margin-bottom: 14px;
}

.exterior-info-box h3 {
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 14px;
  text-align: center;
  width: 100%;
  line-height: 1.35;
}

.exterior-info-box p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--brand-muted);
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
}

.exterior-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  text-align: left;
}

.exterior-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--brand-charcoal);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.exterior-detail-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .exterior-card {
    grid-template-columns: 1fr;
  }
  .exterior-img-box {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }
  .exterior-info-box {
    padding: 32px 24px;
  }
  .exterior-info-box h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 640px) {
  .exterior-img-box {
    min-height: 220px;
  }
  .exterior-info-box {
    padding: 26px 18px;
  }
  .exterior-info-box h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   GOOGLE MAPS & CLINIC LOCATION SECTION — GLOBAL COMPONENT
   ========================================================================== */
.clinic-location-section,
.location-section,
.map-section {
  background: var(--brand-white);
}

.location-grid,
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.location-info-card,
.map-card-info {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.location-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-red-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
  border: 1px solid rgba(148, 19, 36, 0.15);
}

.location-brand-badge i {
  display: inline-flex;
  align-items: center;
  font-size: 0.95em;
}

.location-card-title,
.map-card-header h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 20px;
  line-height: 1.35;
}

.location-meta-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.location-meta-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.meta-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.meta-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.meta-content {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-content h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 2px;
  line-height: 1.35;
}

.meta-content p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--brand-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-content p a {
  color: var(--brand-red);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
}

.location-actions .btn-primary-red,
.location-actions .btn-secondary-white {
  flex: 1 1 180px;
  justify-content: center;
  text-align: center;
  padding: 12px 18px;
  font-size: 0.96rem;
}

.map-frame-box {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-border);
  aspect-ratio: 4 / 3;
  display: flex;
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 992px) {
  .location-grid,
  .map-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .location-info-card,
  .map-card-info {
    padding: 28px 22px;
  }
  .map-frame-box {
    min-height: 320px;
    aspect-ratio: 4 / 3;
  }
  .map-frame-box iframe {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .location-actions {
    flex-direction: column;
    gap: 10px;
  }
  .location-actions .btn-primary-red,
  .location-actions .btn-secondary-white {
    width: 100%;
    flex: none;
  }
  .meta-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .location-meta-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }
  .map-frame-box {
    min-height: 280px;
    aspect-ratio: 1 / 1;
  }
  .map-frame-box iframe {
    min-height: 280px;
  }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  background: var(--brand-surface);
}

.faq-container-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border-light);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: rgba(148, 19, 36, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-dark);
  transition: var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--brand-red);
}

.faq-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--brand-muted);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand-red);
  color: var(--brand-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px 24px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--brand-muted);
}

/* ==========================================================================
   GLOBAL APPOINTMENT CTA BANNER COMPONENT
   ========================================================================== */
.appointment-cta-banner {
  padding: 20px 0 40px 0;
  position: relative;
  overflow: hidden;
}

.service-directory-section {
  padding-bottom: 24px !important;
}

.service-estimator-promo-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
  border-radius: 16px;
  padding: 32px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 14px 36px rgba(194, 65, 12, 0.25);
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--brand-red-deep) 0%, var(--brand-red) 55%, var(--brand-red-dark) 100%);
  color: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-red-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--brand-white);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.cta-banner-badge i {
  display: inline-flex;
  align-items: center;
}

.cta-banner-title {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--brand-white);
  margin-bottom: 12px;
  line-height: 1.35;
  word-break: normal;
}

.cta-banner-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  max-width: 620px;
}

.cta-banner-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.cta-banner-actions .btn-primary-red,
.cta-main-btn {
  background: var(--brand-white);
  color: var(--brand-red);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.cta-banner-actions .btn-primary-red:hover,
.cta-main-btn:hover {
  background: var(--brand-surface);
  color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.cta-banner-actions .btn-primary-red i,
.cta-main-btn i {
  transition: transform 0.2s ease;
}

.cta-banner-actions .btn-primary-red:hover i,
.cta-main-btn:hover i {
  transform: translateX(3px);
}

.cta-banner-actions .btn-secondary-white,
.cta-call-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.cta-banner-actions .btn-secondary-white:hover,
.cta-call-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .cta-banner-card {
    grid-template-columns: 1fr;
    padding: 38px 28px;
    text-align: center;
    gap: 28px;
  }
  .cta-banner-badge {
    margin-inline: auto;
  }
  .cta-banner-title {
    font-size: 1.75rem;
  }
  .cta-banner-desc {
    font-size: 0.98rem;
    margin-inline: auto;
  }
  .cta-banner-actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .appointment-cta-banner {
    padding: 20px 0 45px 0;
  }
  .cta-banner-card {
    padding: 30px 18px;
    border-radius: var(--radius-md);
  }
  .cta-banner-title {
    font-size: 1.45rem;
    line-height: 1.35;
  }
  .cta-banner-actions {
    flex-direction: column;
    gap: 12px;
  }
  .cta-banner-actions .btn-primary-red,
  .cta-banner-actions .btn-secondary-white,
  .cta-main-btn,
  .cta-call-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.94rem;
    white-space: normal;
  }
}

/* Modal and Inline Form Legacy Support */
.appointment-cta-section {
  background: linear-gradient(135deg, var(--brand-red-deep) 0%, var(--brand-red) 100%);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.appointment-cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.appointment-text-box h2 {
  font-size: 2.6rem;
  color: var(--brand-white);
  margin-bottom: 16px;
}

.appointment-text-box p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.appointment-direct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.appointment-card-preview {
  background: var(--brand-white);
  color: var(--brand-charcoal);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.appointment-card-preview h4 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.appointment-card-preview p {
  font-size: 0.94rem;
  color: var(--brand-muted);
  margin-bottom: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-charcoal);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(148, 19, 36, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Appointment Modal */
.appointment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.appointment-modal.active {
  display: flex;
}

.modal-content-box {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand-surface);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-muted);
}

.modal-close-btn:hover {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

@media (max-width: 992px) {
  .appointment-cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FACEBOOK / COMMUNITY SECTION
   ========================================================================== */
.facebook-section {
  background: var(--brand-surface);
  padding: 60px 0;
}

.facebook-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 38px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.facebook-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.facebook-logo-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1877f2;
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.facebook-info h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.facebook-info p {
  font-size: 1.02rem;
  color: var(--brand-muted);
  margin-bottom: 0;
}

.btn-facebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1877f2;
  color: var(--brand-white);
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3);
  white-space: nowrap;
}

.btn-facebook:hover {
  background: #0d65d9;
  color: var(--brand-white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .facebook-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .facebook-left {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 75px 0 25px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-col .brand-logo-frame {
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.96rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
}

.footer-col-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--brand-red);
  border-radius: var(--radius-full);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-list a:hover {
  color: var(--brand-white);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-item i {
  color: var(--brand-red-light);
  margin-top: 4px;
}

.footer-bottom-bar {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   MOBILE STICKY ACTION BAR
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-white);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 1500;
  display: none;
  gap: 12px;
  border-top: 1px solid var(--brand-border);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.mobile-bar-btn.call-btn {
  background: var(--brand-surface);
  color: var(--brand-charcoal);
  border: 1px solid var(--brand-border);
}

.mobile-bar-btn.call-btn:hover {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.mobile-bar-btn.apt-btn {
  background: var(--brand-red);
  color: var(--brand-white);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 65px; /* Leave space for bottom bar */
  }
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--brand-red);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--brand-red-dark);
  transform: translateY(-3px);
}

/* ==========================================================================
   PAGE HERO & BREADCRUMBS
   ========================================================================== */
.page-header,
.page-hero {
  background-image: url('../img/header.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 68px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 1;
  pointer-events: none;
}

.page-header-inner,
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb-trail a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.breadcrumb-trail .active {
  color: var(--brand-white);
  font-weight: 600;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.page-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (max-width: 992px) {
  .page-header,
  .page-hero {
    padding: 65px 0 52px 0;
  }
  .page-hero-title {
    font-size: 2.3rem;
  }
  .page-hero-subtitle {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .page-header,
  .page-hero {
    padding: 48px 0 38px 0;
  }
  .page-hero-title {
    font-size: 1.85rem;
  }
  .page-hero-subtitle {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */
.page-fade-in {
  animation: pageFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-fading-out {
  opacity: 0 !important;
  transform: translateY(-6px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* ==========================================================================
   HERITAGE TIMELINE
   ========================================================================== */
.heritage-story-banner {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-left: 5px solid var(--brand-red);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 45px;
  box-shadow: var(--shadow-sm);
}

.heritage-lead-quote {
  font-size: 1.25rem;
  color: var(--brand-dark);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
}

.timeline-interactive {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand-red) 0%, rgba(148, 19, 36, 0.15) 100%);
  border-radius: 2px;
}

.timeline-item-block {
  position: relative;
  padding-left: 70px;
  margin-bottom: 45px;
}

.timeline-item-block:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 17px;
  top: 6px;
  width: 25px;
  height: 25px;
  background: var(--brand-white);
  border: 4px solid var(--brand-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-red-soft);
  z-index: 2;
}

.timeline-card-box {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-card-box:hover {
  border-color: rgba(148, 19, 36, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-year-chip {
  display: inline-block;
  padding: 3px 12px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.timeline-card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.timeline-card-desc {
  color: var(--brand-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   DIGITAL TECHNOLOGY SHOWCASE
   ========================================================================== */
.tech-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.tech-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-normal);
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 19, 36, 0.25);
  box-shadow: var(--shadow-md);
}

.tech-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tech-card-title {
  font-size: 1.35rem;
  color: var(--brand-dark);
}

.tech-card-desc {
  color: var(--brand-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.tech-feature-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-feature-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--brand-surface);
  color: var(--brand-muted);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .tech-editorial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   WHY CHOOSE US PILLARS
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 19, 36, 0.25);
}

.pillar-number {
  font-family: var(--font-latin);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 1.25rem;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

.pillar-desc {
  color: var(--brand-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   GALLERY PAGE SPECIFICS
   ========================================================================== */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION SYSTEM (IntersectionObserver Driven)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="fade-up"] {
  transform: translateY(28px);
}

[data-reveal="fade-down"] {
  transform: translateY(-28px);
}

[data-reveal="fade-left"] {
  transform: translateX(-28px);
}

[data-reveal="fade-right"] {
  transform: translateX(28px);
}

[data-reveal="zoom-in"] {
  transform: scale(0.94);
}

/* Revealed active state */
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Counter highlight */
.animated-counter-number {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   NATIVE 2-COLUMN TREATMENT PRICE ESTIMATOR & COMPARISON SLIDER
   ========================================================================== */
.estimator-section {
  background: var(--brand-surface);
  position: relative;
  overflow: hidden;
}

.tdc-calc-iso-container {
  width: 100%;
  margin-top: 36px;
}

.tdc-calc-2col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .tdc-calc-2col-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Calculator Card (Left Column) */
.tdc-calc-iso-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.tdc-calc-iso-h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 22px;
  line-height: 1.35;
  font-family: var(--font-bangla);
  border-bottom: 2px solid var(--brand-red-soft);
  padding-bottom: 12px;
}

.tdc-calc-iso-h2 span {
  color: var(--brand-red);
}

.tdc-calc-iso-group {
  margin-bottom: 18px;
}

.tdc-calc-iso-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 6px;
  font-family: var(--font-bangla);
}

.tdc-calc-iso-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-bangla), sans-serif;
  color: var(--brand-dark);
  background-color: var(--brand-offwhite);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  appearance: auto;
}

.tdc-calc-iso-select:focus {
  border-color: var(--brand-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(203, 4, 55, 0.12);
}

.tdc-calc-iso-hidden {
  display: none !important;
}

/* Price Display Section */
.tdc-calc-iso-price-section {
  background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
  border: 1.5px solid rgba(203, 4, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 14px;
}

.tdc-calc-iso-price-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tdc-calc-iso-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-red);
  font-family: var(--font-latin), var(--font-bangla);
  line-height: 1.2;
  margin: 6px 0;
  transition: transform 0.25s ease;
}

.tdc-animate-pulse {
  animation: tdcPulse 0.4s ease;
}

@keyframes tdcPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); color: var(--brand-maroon); }
  100% { transform: scale(1); }
}

.tdc-calc-iso-note {
  display: block;
  font-size: 0.82rem;
  color: var(--brand-muted);
  line-height: 1.4;
  margin-top: 6px;
}

.tdc-calc-cta-wrap {
  margin-top: 16px;
}

/* Multi-Item Treatment Basket / Estimator List */
.tdc-calc-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.tdc-btn-add-item {
  flex: 1;
  padding: 10px 14px;
  background-color: var(--brand-red-soft);
  color: var(--brand-red);
  border: 1.5px dashed var(--brand-red);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-bangla);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tdc-btn-add-item:hover {
  background-color: var(--brand-red);
  color: #ffffff;
  border-style: solid;
}

.tdc-basket-section {
  background: var(--brand-offwhite);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  display: none;
}

.tdc-basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--brand-border);
}

.tdc-basket-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.tdc-btn-clear-all {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.tdc-btn-clear-all:hover {
  background-color: #fee2e2;
}

.tdc-basket-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.tdc-basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 0.88rem;
}

.tdc-basket-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.tdc-basket-item-name {
  font-weight: 600;
  color: var(--brand-dark);
}

.tdc-basket-item-meta {
  font-size: 0.78rem;
  color: var(--brand-muted);
}

.tdc-basket-item-price {
  font-weight: 700;
  color: var(--brand-red);
  margin-inline: 10px;
  white-space: nowrap;
}

.tdc-basket-item-remove {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.tdc-basket-item-remove:hover {
  color: #dc2626;
}

/* Before / After Comparison Slider (Right Column) */
.tdc-slider-column-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.tdc-slider-header {
  margin-bottom: 14px;
  text-align: center;
}

.tdc-slider-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.tdc-slider-hint {
  font-size: 0.82rem;
  color: var(--brand-muted);
}

.tdc_final_slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--brand-border);
  user-select: none;
  touch-action: pan-y;
  background: #0f172a;
}

.tdc_final_slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tdc_final_resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #ffffff;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.35);
}

.tdc_slider_handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.tdc_slider_handle::before {
  content: "‹ ›";
  font-weight: 800;
  letter-spacing: -1px;
}

.tdc_range_input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

/* Floating labels inside slider */
.tdc-slider-tag {
  position: absolute;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 3;
}

.tdc-slider-tag-before {
  left: 12px;
}

.tdc-slider-tag-after {
  right: 12px;
}

@media (max-width: 576px) {
  .tdc-calc-iso-card {
    padding: 22px 18px;
  }
  .tdc-slider-column-card {
    padding: 16px;
  }
  .tdc-calc-iso-amount {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   LUCKY DENTAL CARE — COMPREHENSIVE CMS & UI/UX STYLES
   Viewport-Centered Auth Modal, Universal Inline Editing, Floating Dock,
   Undo/Redo, History Drawer, and Appointment Options Manager
   ========================================================================== */

/* 1. Viewport-Centered Modals Backdrop & Base Cards */
.cms-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  font-family: var(--font-base);
}

.cms-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cms-modal-card {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  animation: cmsModalFadeIn 0.25s ease-out;
  position: relative;
  box-sizing: border-box;
  color: var(--brand-dark);
}

.cms-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: cmsModalFadeIn 0.25s ease-out;
  font-family: var(--font-base);
  color: var(--brand-dark);
}

@keyframes cmsModalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Modal Branding Header */
.cms-auth-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.cms-auth-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fdf2f4;
  border: 1px solid #fecdd3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cms-auth-title-group h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.cms-auth-title-group span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  display: block;
}

/* Modal Inputs & Password Toggle */
.cms-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.cms-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.cms-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cms-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cms-input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.cms-password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cms-password-toggle:hover {
  color: var(--brand-red);
}

.cms-error-msg {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Modal Actions */
.cms-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.btn-cms-primary,
.btn-cms-secondary {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-cms-primary {
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.btn-cms-primary:hover:not(:disabled) {
  background: var(--brand-red-dark);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

.btn-cms-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-cms-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-cms-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* 2. Universal Inline Text Editing */
body.cms-edit-mode-active [contenteditable="true"],
body.cms-edit-mode-active .cms-editable-active {
  outline: 2px dashed rgba(211, 47, 47, 0.55) !important;
  outline-offset: 3px;
  cursor: text !important;
  position: relative;
  transition: outline-color 0.2s, background-color 0.2s;
  min-width: 12px;
}

body.cms-edit-mode-active [contenteditable="true"]:hover,
body.cms-edit-mode-active .cms-editable-active:hover {
  outline-color: rgba(211, 47, 47, 0.95) !important;
  background-color: rgba(211, 47, 47, 0.04);
}

body.cms-edit-mode-active [contenteditable="true"]:focus,
body.cms-edit-mode-active .cms-editable-active:focus {
  outline: 2px solid var(--brand-red) !important;
  outline-offset: 3px;
  background-color: rgba(211, 47, 47, 0.06);
}

/* Strict Link Navigation Lockout in Edit Mode */
body.cms-edit-mode-active a,
body.cms-edit-mode-active a:hover,
body.cms-edit-mode-active a * {
  cursor: text !important;
}

/* Prevent inner icons from capturing focus or edits */
body.cms-edit-mode-active [contenteditable="true"] i,
body.cms-edit-mode-active [contenteditable="true"] svg,
body.cms-edit-mode-active .cms-editable-active i,
body.cms-edit-mode-active .cms-editable-active svg {
  user-select: none;
  pointer-events: none;
}

/* Form inputs hover hint in Edit Mode */
body.cms-edit-mode-active input:not([type="submit"]):not([type="button"]):not([type="hidden"]),
body.cms-edit-mode-active textarea {
  cursor: context-menu !important;
}

/* Hover tag badges using pure CSS pseudo-element to avoid DOM text pollution */
body.cms-edit-mode-active [contenteditable="true"]::after,
body.cms-edit-mode-active .cms-editable-active::after {
  content: attr(data-cms-key);
  position: absolute;
  top: -19px;
  left: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-family: monospace;
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1000;
  white-space: nowrap;
}

body.cms-edit-mode-active [contenteditable="true"]:hover::after,
body.cms-edit-mode-active [contenteditable="true"]:focus::after,
body.cms-edit-mode-active .cms-editable-active:hover::after,
body.cms-edit-mode-active .cms-editable-active:focus::after {
  opacity: 1;
}

/* 3. Image Hover Replacement Trigger */
.cms-img-container,
.cms-img-container-relative {
  position: relative !important;
}

/* 4. Mini-Editor Popover for Input Placeholders */
.cms-editor-popover {
  position: absolute;
  z-index: 1000000;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  width: 320px;
  padding: 16px;
  font-family: inherit;
  box-sizing: border-box;
  animation: cmsPopoverFadeIn 0.2s ease-out;
}

@keyframes cmsPopoverFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cms-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cms-popover-header span {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cms-popover-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.cms-popover-close:hover {
  color: var(--brand-red);
}

.cms-popover-body label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.cms-popover-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

.cms-popover-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

.cms-popover-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn-cms-sm {
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
}

/* 5. Appointment "অন্যান্য (Other)" Dynamic Input Container */
#other-service-wrapper {
  display: none;
  margin-top: 12px;
  animation: cmsSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cmsSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cms-change-img-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.cms-change-img-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

/* 4. Sleek Floating Admin Bottom Dock */
.cms-floating-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 999990;
  font-family: var(--font-base);
  animation: cmsDockSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 95vw;
}

@keyframes cmsDockSlideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.cms-dock-btn {
  background: transparent;
  color: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cms-dock-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cms-dock-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cms-dock-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.cms-dock-save-btn {
  background: var(--brand-red);
  color: #ffffff;
  position: relative;
}

.cms-dock-save-btn:hover:not(:disabled) {
  background: var(--brand-red-dark);
}

.cms-dock-badge-count {
  background: #ffffff;
  color: var(--brand-red);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.cms-dock-exit-btn {
  color: #fca5a5;
}

.cms-dock-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fecaca;
}

/* 5. Version History Drawer */
.cms-history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-base);
}

.cms-history-drawer.open {
  transform: translateX(0);
}

.cms-history-header {
  padding: 18px 22px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cms-history-header h3 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-history-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.cms-history-close-btn:hover {
  color: #ffffff;
}

.cms-history-timeline {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cms-history-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cms-history-card:hover {
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cms-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #64748b;
}

.cms-history-meta strong {
  color: #0f172a;
}

.cms-history-changes {
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-cms-rollback {
  background: #fee2e2;
  color: var(--brand-red);
  border: 1px solid rgba(211, 47, 47, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}

.btn-cms-rollback:hover {
  background: var(--brand-red);
  color: #ffffff;
}

/* 6. Image Replacement Modal Tabs & Gallery */
.cms-tab-nav {
  display: flex;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 18px;
  gap: 8px;
}

.cms-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: all 0.2s;
}

.cms-tab-btn.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.cms-gallery-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}

.cms-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-gallery-thumb:hover {
  border-color: var(--brand-red);
}

.cms-gallery-thumb.selected {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}

/* 7. Appointment Dropdown Options Manager */
.cms-dropdown-gear-btn {
  background: #fee2e2;
  color: var(--brand-red);
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.78rem;
  margin-left: 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  vertical-align: middle;
}

body.cms-edit-mode-active .cms-dropdown-gear-btn {
  display: inline-flex;
}

.cms-dropdown-gear-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
}

.cms-opt-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.cms-opt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.cms-opt-item input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cms-opt-item button {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.cms-opt-item button:hover {
  color: var(--brand-red);
  background: #fee2e2;
}

/* 8. Conditional "অন্যান্য (Other)" Animation */
.conditional-other-box {
  display: none;
  overflow: hidden;
  margin-top: 12px;
  animation: slideDownFade 0.25s ease-out forwards;
}

.conditional-other-box.active {
  display: block;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 9. Footer "সম্পাদনা" Admin Entry Link */
.cms-admin-entry-link {
  color: var(--brand-muted);
  font-size: 0.78rem;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.cms-admin-entry-link:hover {
  opacity: 1;
  color: var(--brand-red);
}

@media (max-width: 640px) {
  .cms-floating-dock {
    padding: 6px 12px;
    gap: 4px;
    bottom: 16px;
  }
  .cms-dock-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .cms-modal-card {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   HOMEPAGE HERO CAROUSEL (Immediately After Navbar)
   ========================================================================== */
.hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.hero-carousel-container {
  position: relative;
  width: 100%;
  height: clamp(440px, 58vh, 620px);
  overflow: hidden;
}

.hero-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  z-index: 1;
}

.hero-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-carousel-slide.active img {
  transform: scale(1);
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

.hero-carousel-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.hero-carousel-caption {
  max-width: 820px;
  color: #ffffff;
}

.hero-carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-carousel-title {
  font-family: var(--font-latin), var(--font-bangla);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-carousel-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 680px;
  margin-inline: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-carousel-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Arrow controls */
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-carousel-arrow:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-arrow.prev {
  left: 24px;
}

.hero-carousel-arrow.next {
  right: 24px;
}

/* Indicators */
.hero-carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-carousel-dot.active {
  background: #ffffff;
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .hero-carousel-container {
    height: clamp(340px, 46vh, 420px);
  }
  .hero-carousel-arrow {
    width: 38px;
    height: 38px;
  }
  .hero-carousel-arrow.prev { left: 10px; }
  .hero-carousel-arrow.next { right: 10px; }
}

/* ==========================================================================
   SIMPLIFIED FOOTER GRID (Context Section 7 & 25)
   ========================================================================== */
.simplified-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 992px) {
  .simplified-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .simplified-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   SCROLL REVEAL & MICRO-ANIMATIONS (Section 19)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="fade-up"] {
  transform: translateY(28px);
}

[data-reveal="fade-down"] {
  transform: translateY(-28px);
}

[data-reveal="fade-left"] {
  transform: translateX(28px);
}

[data-reveal="fade-right"] {
  transform: translateX(-28px);
}

[data-reveal="zoom-in"] {
  transform: scale(0.95);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delay classes */
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* Page fade transition */
body.page-fade-in {
  animation: pageFadeIn 0.3s ease-out forwards;
}

body.page-fading-out {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DEDICATED CONTACT PAGE SYSTEM (Section 28, 29, 30)
   ========================================================================== */
.contact-intro-section {
  padding-top: 65px;
  padding-bottom: 25px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Contact Information Card */
.contact-info-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-header {
  border-bottom: 1px solid var(--brand-border-light);
  padding-bottom: 16px;
}

.contact-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.contact-info-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-red-soft);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-item-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.contact-item-content p {
  font-size: 0.92rem;
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-item-content a {
  color: var(--brand-red);
  font-weight: 600;
}

.contact-item-content a:hover {
  text-decoration: underline;
}

/* Quick Actions Group */
.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-border-light);
}

@media (max-width: 480px) {
  .contact-actions {
    grid-template-columns: 1fr;
  }
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  text-align: center;
  cursor: pointer;
}

.contact-action-btn-primary {
  background: var(--brand-red);
  color: #ffffff;
  border: 1px solid var(--brand-red);
  box-shadow: 0 4px 12px rgba(148, 19, 36, 0.2);
}

.contact-action-btn-primary:hover {
  background: var(--brand-red-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(148, 19, 36, 0.3);
}

.contact-action-btn-outline {
  background: var(--brand-white);
  color: var(--brand-dark);
  border: 1px solid var(--brand-border);
}

.contact-action-btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
  transform: translateY(-2px);
}

/* Appointment Form Card */
.contact-form-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .contact-form-card,
  .contact-info-card {
    padding: 26px 20px;
  }
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.contact-form-desc {
  font-size: 0.95rem;
  color: var(--brand-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Dedicated Map Section */
.contact-map-section {
  background: var(--brand-surface);
  padding: 65px 0;
}

.contact-map-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map-iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .contact-map-iframe {
    height: 320px;
  }
}

/* Clinic Exterior Section */
.contact-exterior-section {
  padding: 70px 0;
}

.contact-exterior-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .contact-exterior-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.contact-exterior-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.contact-exterior-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.contact-exterior-img-wrap:hover img {
  transform: scale(1.03);
}

.contact-exterior-content h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.contact-exterior-content p {
  color: var(--brand-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* Social Connect Section */
.contact-social-section {
  background: var(--brand-surface);
  padding: 60px 0;
}

.contact-social-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-social-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3);
}

/* Final Appointment CTA Section */
.contact-final-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--brand-red-deep) 0%, var(--brand-red-dark) 60%, var(--brand-red) 100%);
  color: #ffffff;
  text-align: center;
}

.contact-final-cta .section-title {
  color: #ffffff;
}

.contact-final-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.contact-final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
