/* === tokens.css === */
:root {
  /* Brand palette (extracted from dentexp.com) */
  --color-primary:      #19344D;  /* deep navy */
  --color-primary-700:  #122740;
  --color-primary-100:  #DDEDFA;  /* light sky blue */
  --color-accent:       #DDEDFA;
  --color-text:         #070707;
  --color-text-muted:   #69727D;
  --color-text-light:   #7F7F7F;
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F4F6F7;
  --color-border:       #E6E9EC;
  --color-success:      #5CB85C;
  --color-danger:       #D9534F;

  /* Typography */
  --font-heading: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent:  'DM Sans', var(--font-body);

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.5rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);

  /* Radii + shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(7, 7, 7, 0.06);
  --shadow-md: 0 8px 24px rgba(25, 52, 77, 0.08);
  --shadow-lg: 0 20px 40px rgba(25, 52, 77, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
}

@media (prefers-color-scheme: dark) {
  /* Brand site stays light. No dark mode for v1. */
}


/* === reset.css === */
/* Modern, opinionated reset (based on Andy Bell's & Josh Comeau's) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; }
html, body { overflow-x: clip; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* === base.css === */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, var(--fs-6xl)); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 4vw, var(--fs-4xl)); line-height: 1.15; }
h3 { font-size: var(--fs-2xl); line-height: 1.2; }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.05em; }

p { color: var(--color-text-muted); line-height: 1.65; }
p + p { margin-top: var(--space-4); }

a { color: var(--color-primary); transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--color-primary-700); }

/* Layout primitives */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-primary); color: white; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: white; }
.section--dark p { color: rgba(255, 255, 255, 0.85); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.section-header { text-align: center; max-width: 56rem; margin: 0 auto var(--space-7); }
.section-header p { margin-top: var(--space-3); }

/* RTL support for Arabic */
[dir="rtl"] body { font-family: 'IBM Plex Sans Arabic', var(--font-body); }


/* === components.css === */
/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--dur-med) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  border: 1.5px solid transparent;
}
.btn--small { padding: var(--space-2) var(--space-5); font-size: var(--fs-sm); }
.btn--primary {
  background: var(--color-primary);
  color: white;
}
.btn--primary:hover {
  background: var(--color-primary-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover { background: var(--color-primary); color: white; }
.btn--light {
  background: white;
  color: var(--color-primary);
}
.btn--light:hover { background: var(--color-primary-100); color: var(--color-primary-700); }
.btn--outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: white; border-color: white; }

.cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-6);
}
.site-header__logo img { height: 52px; width: auto; }
.site-header__nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.site-header__nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--color-text);
  position: relative;
}
.site-header__nav a:hover { color: var(--color-primary); }
.site-header__nav a.active { color: var(--color-primary); }
.site-header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}
.site-header__right {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.site-header__lang {
  display: flex;
  gap: var(--space-1);
  font-size: var(--fs-sm);
}
.site-header__lang a {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.site-header__lang a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.site-header__lang a.active { color: var(--color-primary); background: var(--color-primary-100); }
.site-header__mobile-toggle { display: none; }

@media (max-width: 1024px) {
  .site-header__nav { display: none; }
  .site-header__mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-2);
  }
  .site-header__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
  }
}

/* ===== Hero (video bg with overlay) ===== */
.hero--video {
  position: relative;
  min-height: 70vh;
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  color: white;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 52, 77, 0.92) 34%, rgba(25, 52, 77, 0.55) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 56rem;
}
.hero__title {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, var(--fs-lg));
  max-width: 48rem;
  margin: 0 auto var(--space-6);
}
.hero__cta-row {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.hero__badges img {
  height: 64px;
  width: auto;
  opacity: 0.95;
  filter: brightness(1.05);
  transition: opacity var(--dur-med) var(--ease);
}
.hero__badges img:hover { opacity: 1; }

/* ===== Split (text + image) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split__text h2 { margin-bottom: var(--space-4); }
.split__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ===== Rating row ===== */
.rating-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid #FFB400;
}
.rating-row__stars {
  color: #FFB400;
  font-size: var(--fs-lg);
  letter-spacing: 2px;
  flex-shrink: 0;
}
.rating-row__text {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.4;
  margin: 0;
}

/* ===== Why-us feature cards (with SVG icons) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.feature-card {
  background: white;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--dur-med) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-100);
}
.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-100);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon svg { width: 32px; height: 32px; }
.feature-card__title { margin-bottom: var(--space-3); font-size: var(--fs-lg); }
.feature-card__body { font-size: var(--fs-sm); }

/* ===== Service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.service-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--dur-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-100);
}
.service-card__image { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease); }
.service-card:hover .service-card__image img { transform: scale(1.05); }
.service-card__body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; gap: var(--space-3); }
.service-card__title { font-size: var(--fs-xl); }
.service-card__excerpt { color: var(--color-text-muted); font-size: var(--fs-sm); flex: 1; }
.service-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.service-card__link::after { content: '→'; transition: transform var(--dur-fast) var(--ease); }
.service-card:hover .service-card__link::after { transform: translateX(4px); }

/* ===== Carousel ===== */
.carousel {
  position: relative;
  margin-inline: calc(var(--container-pad) * -0.5);
  padding-inline: 56px;
}
@media (max-width: 600px) { .carousel { padding-inline: 8px; } }
.carousel__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: var(--space-3);
  padding-inline: var(--space-2);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
  flex: 0 0 calc((100% - var(--space-5) * 3) / 4);
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 1100px) { .carousel__track > * { flex-basis: calc((100% - var(--space-5) * 2) / 3); } }
@media (max-width: 800px)  { .carousel__track > * { flex-basis: calc((100% - var(--space-5)) / 2); } }
@media (max-width: 520px)  { .carousel__track > * { flex-basis: 88%; } }
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--color-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 5;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.carousel__btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-50%) scale(1.06);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
@media (max-width: 600px) {
  .carousel__btn { width: 36px; height: 36px; }
  .carousel__btn--prev { left: -4px; }
  .carousel__btn--next { right: -4px; }
}

/* ===== Doctors grid (used in dentist profile + index pages, not carousel) ===== */
.doctors-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
@media (min-width: 1100px) {
  .doctors-row { grid-template-columns: repeat(4, 1fr); }
}
.doctors-row--all {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

/* ===== Doctor card ===== */
.doctor-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-card__image { aspect-ratio: 1 / 1.1; overflow: hidden; background: var(--color-bg-alt); }
.doctor-card__image img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: var(--space-4); text-align: center; }
.doctor-card__name { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.doctor-card__role { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ===== Full-width CTA banner (with bg image / dark) ===== */
.cta-fullwidth {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
  color: white;
  overflow: hidden;
  text-align: center;
}
.cta-fullwidth::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(221, 237, 250, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(221, 237, 250, 0.08) 0%, transparent 50%);
  z-index: 0;
}
.cta-fullwidth__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}
.cta-fullwidth h2 { color: white; margin-bottom: var(--space-3); }
.cta-fullwidth p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); }

/* ===== Inline CTA banner (inside section) ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); }
.cta-banner--inline { margin: 0 auto; max-width: 56rem; }

/* ===== Find Us section (info + map) ===== */
.find-us {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.find-us__info { display: flex; flex-direction: column; justify-content: center; }
.find-us__info h2 { margin-bottom: var(--space-3); }
.find-us__detail { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.find-us__detail h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.find-us__detail p { color: var(--color-text); font-weight: 500; margin-bottom: 0; }
.find-us__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  background: var(--color-bg-alt);
}
.find-us__map iframe { width: 100%; height: 100%; min-height: 400px; display: block; }
@media (max-width: 900px) {
  .find-us { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-8) var(--space-5);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: white;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: white; }
.site-footer__logo img { height: 48px; width: auto; margin-bottom: var(--space-4); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  font-size: var(--fs-sm);
  text-align: center;
}
.site-footer__social { display: flex; gap: var(--space-3); }
.site-footer__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease);
}
.site-footer__social a:hover { background: rgba(255, 255, 255, 0.2); }


/* === pages.css === */
/* ===== Page hero (sub-pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg) 60%);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero--text { text-align: center; }
.page-hero__center {
  max-width: 56rem;
  margin: 0 auto;
}
.page-hero__center h1 { margin-bottom: var(--space-4); }
.page-hero__intro {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: 0 auto;
}
/* Legacy 2-col page hero (kept for other page types if needed) */
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero__text h1 { margin-bottom: var(--space-4); }
.page-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
}

/* ===== About: full-width chip variant + mvv grid + commitment section ===== */
.service-chip--full {
  grid-column: 1 / -1;
  justify-content: center;
}
.service-chip--full .service-chip__name { font-size: var(--fs-lg); }
@media (max-width: 500px) {
  .service-chip--full { justify-content: space-between; }
}

.commitment-section {
  position: relative;
  background: var(--color-primary);
  color: white;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.commitment-section__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/misc/why-bg-team.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.commitment-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,52,77,0.85) 0%, rgba(25,52,77,0.75) 100%);
  z-index: 1;
}
.commitment-section__inner { position: relative; z-index: 2; }
.commitment-section h2 { color: white; }
.commitment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  max-width: 1100px;
  margin-inline: auto;
}
.commitment-card {
  background: white;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.commitment-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.commitment-card__icon svg { width: 28px; height: 28px; }
.commitment-card h3 {
  color: var(--color-primary);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}
.commitment-card p { color: var(--color-text-muted); }
.commitment-section__why {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}
.commitment-section__why h3 {
  color: white;
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  margin-bottom: var(--space-3);
}
.commitment-section__why p {
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-6);
  font-size: var(--fs-lg);
}

/* Mission/Vision/Values 3-col grid */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.mvv-card {
  background: white;
  padding: clamp(2rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all var(--dur-med) var(--ease);
}
.mvv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-100);
}
.mvv-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-100);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mvv-card__icon svg { width: 28px; height: 28px; }
.mvv-card h3 { color: var(--color-primary); font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.mvv-card p { color: var(--color-text-muted); line-height: 1.7; }

/* Reverse split (image left, text right) */
.split--reverse > :first-child { order: 1; }
.split--reverse > :last-child { order: 0; }
@media (max-width: 900px) {
  .split--reverse > :first-child { order: 0; }
  .split--reverse > :last-child { order: 1; }
}

/* ===== Service page hero (image bg + navy overlay + breadcrumb + title) ===== */
.service-hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  text-align: center;
}
.service-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero/service-page-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,52,77,0.85) 0%, rgba(25,52,77,0.7) 100%);
  z-index: 1;
}
.service-hero__inner {
  position: relative;
  z-index: 2;
}
.service-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: white; }
.breadcrumb__sep { opacity: 0.6; }
.breadcrumb [aria-current="page"] { color: white; font-weight: 500; }

/* ===== Tagline section ===== */
.service-intro {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-bg) 100%);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.service-intro__center { max-width: 56rem; margin: 0 auto; }
.service-intro h2 { margin-bottom: var(--space-4); }
.service-intro p { font-size: var(--fs-lg); }

/* ===== Service chips (3-col navy grid) ===== */
.service-chips {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding-block: var(--space-5) var(--space-7);
}
.service-chips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 60rem;
  margin: 0 auto;
}
@media (max-width: 800px) { .service-chips__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .service-chips__grid { grid-template-columns: 1fr; } }
.service-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  text-align: left;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 100%, rgba(221,237,250,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.service-chip:hover {
  background: var(--color-primary-700);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-chip__name { position: relative; z-index: 1; }
.service-chip__arrow {
  position: relative;
  z-index: 1;
  font-size: var(--fs-lg);
  opacity: 0.7;
  transition: transform var(--dur-fast) var(--ease);
}
.service-chip:hover .service-chip__arrow { transform: translateX(4px); opacity: 1; }

/* ===== Treatment block (per-treatment full layout) ===== */
.treatment-block {
  padding-block: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 100px;
}
.treatment-block:nth-of-type(even) {
  background: var(--color-bg-alt);
}
.treatment-block__header {
  max-width: 56rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.treatment-block__header h2 {
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
  margin-bottom: var(--space-3);
}
.treatment-block__header p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}
.treatment-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}
.treatment-block__left,
.treatment-block__right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}
.treatment-block__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.treatment-block__image img { width: 100%; height: 100%; object-fit: cover; }
.treatment-block__about {
  background: white;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.treatment-block__about h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}
.treatment-block__about h3 + p { margin-bottom: var(--space-5); }
.treatment-block__about h3 + p:last-child { margin-bottom: 0; }

.treatment-block__card {
  background: white;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.treatment-block__card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}

/* Process steps (inset gray cards) */
.process-steps { display: flex; flex-direction: column; gap: var(--space-3); }
.process-step {
  background: var(--color-bg-alt);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
}
.process-step__name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Benefits bullet list */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.benefits-list li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--color-text);
  line-height: 1.5;
}
.benefits-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .treatment-block__grid { grid-template-columns: 1fr; }
}

/* ===== Index hero (navy + faded photo overlay + breadcrumb + huge title) ===== */
.index-hero {
  position: relative;
  background: var(--color-primary);
  color: white;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  text-align: center;
  overflow: hidden;
}
.index-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero/service-page-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.index-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,52,77,0.85) 0%, rgba(25,52,77,0.70) 100%);
  z-index: 1;
}
.index-hero__inner { position: relative; z-index: 2; }
.index-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  margin: 0;
}
.index-hero .breadcrumb { margin-bottom: var(--space-5); }

/* Tagline + intro (centered, between hero and 2-cards) */
.index-intro { padding-block: clamp(3rem, 6vw, 4.5rem); }
.index-intro .section-header { margin-bottom: 0; max-width: 64rem; }
.index-intro h2 {
  font-size: clamp(1.75rem, 4vw, var(--fs-3xl));
  margin-bottom: var(--space-4);
}
.index-intro p { font-size: var(--fs-lg); line-height: 1.7; }

/* ===== Trust + Experience 2-card section (services index page) ===== */
.trust-cards-wrap {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-100) 100%);
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  position: relative;
}
.trust-cards {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 800px) { .trust-cards { grid-template-columns: 1fr; } }
.trust-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  color: white;
  box-shadow: 0 20px 50px rgba(25, 52, 77, 0.12);
}
.trust-card--photo {
  background: var(--color-primary);
}
.trust-card__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.trust-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(25,52,77,0.85) 0%, rgba(25,52,77,0.55) 100%);
  z-index: 1;
}
.trust-card__inner {
  position: relative;
  z-index: 2;
  max-width: 32rem;
}
.trust-card--photo h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}
.trust-card--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
}
.trust-card--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 100% 100%, rgba(221,237,250,0.15) 0%, transparent 60%);
  z-index: 1;
}
.trust-card--cta .trust-card__inner {
  text-align: center;
  margin: 0 auto;
}
.trust-card--cta h3 {
  color: white;
  font-size: clamp(1.25rem, 2vw, var(--fs-2xl));
  margin-bottom: var(--space-5);
  line-height: 1.3;
}

/* ===== Simplified service card (used on /dental-services/ index) ===== */
.services-grid--simple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .services-grid--simple { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid--simple { grid-template-columns: 1fr; } }
.service-card--simple {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: all var(--dur-med) var(--ease);
  text-decoration: none;
}
.service-card--simple:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-100);
}
.service-card--simple .service-card__image {
  margin: var(--space-3) var(--space-3) 0;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
}
.service-card--simple__title,
.service-card__simple-title {
  padding: var(--space-5);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--color-primary);
}

/* ===== Dentist hero (solid navy + breadcrumb + huge name) ===== */
.dentist-hero {
  background: var(--color-primary);
  color: white;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  text-align: center;
}
.dentist-hero__inner { position: relative; }
.dentist-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  margin: 0;
}
.dentist-hero .breadcrumb {
  margin-bottom: var(--space-5);
}

/* ===== Dentist profile card (overlap onto next section) ===== */
.dentist-card-wrap {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-primary-100) 100%);
  padding-block: 0;
  position: relative;
  margin-top: -3rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.dentist-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(25, 52, 77, 0.10);
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1fr;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}
.dentist-card__photo {
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.dentist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dentist-card__info {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
.dentist-card__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
}
.dentist-card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-3) 0 var(--space-2);
  width: 80px;
}
.dentist-card__role {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}
.dentist-card__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dentist-card__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}
.dentist-card__icon {
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.dentist-card__contact a { color: var(--color-text); }
.dentist-card__contact a:hover { color: var(--color-primary); }
.dentist-card .btn { align-self: flex-start; }
@media (max-width: 800px) {
  .dentist-card { grid-template-columns: 1fr; }
  .dentist-card__photo { aspect-ratio: 3 / 2; }
}

/* ===== Dentist bio section (light blue bg) ===== */
.dentist-bio-section {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-bg) 100%);
  padding-top: 0;
}
.dentist-bio {
  max-width: 980px;
  margin: 0 auto;
}
.dentist-bio__intro {
  margin-bottom: var(--space-7);
}
.dentist-bio__intro h2 {
  font-size: clamp(1.75rem, 3vw, var(--fs-3xl));
  margin-bottom: var(--space-4);
}
.dentist-bio__intro p {
  font-size: var(--fs-lg);
  line-height: 1.7;
}
.dentist-bio__intro p + p { margin-top: var(--space-4); }

/* Bio accordions (re-styled FAQ-like) */
.bio-accordions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.bio-accordion {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(25, 52, 77, 0.08);
  overflow: hidden;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.bio-accordion:hover { box-shadow: var(--shadow-sm); }
.bio-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.bio-accordion summary::-webkit-details-marker { display: none; }
.bio-accordion summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}
.bio-accordion[open] summary::after {
  content: '−';
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.bio-accordion__body {
  padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
}
.bio-accordion__body p { line-height: 1.7; color: var(--color-text); }
.bio-accordion__body p + p { margin-top: var(--space-3); }
.bio-accordion__list {
  list-style: disc;
  padding-left: var(--space-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bio-accordion__list li::marker { color: var(--color-primary); }

/* Closing "Contact Dr. X" section */
.dentist-bio__contact-close {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
}
.dentist-bio__contact-close h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-3);
}
.dentist-bio__contact-close p { font-size: var(--fs-lg); line-height: 1.7; }

/* ===== Service FAQ + CTA (dark navy section, photo overlay) ===== */
.service-faq {
  position: relative;
  background: var(--color-primary);
  color: white;
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.service-faq__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/misc/why-bg-team.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}
.service-faq__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,52,77,0.88) 0%, rgba(25,52,77,0.78) 100%);
  z-index: 1;
}
.service-faq__inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}
.service-faq__title {
  text-align: center;
  color: white;
  margin-bottom: var(--space-6);
  font-size: clamp(1.75rem, 3vw, var(--fs-3xl));
}
.service-faq .faq-list .faq-item {
  background: white;
}
.service-faq__cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(25,52,77,0.9), rgba(18,39,64,0.9));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(4px);
}
.service-faq__cta h2 { color: white; margin-bottom: var(--space-3); }
.service-faq__cta p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-6); }

/* ===== FAQ ===== */
.faq-container { max-width: 56rem; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--dur-med) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-text-muted);
}
.faq-item__body p { margin: 0; }

/* ===== Page-specific tweaks ===== */

/* Final CTA section uses primary bg color */
.cta-final {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-700) 100%);
}
.cta-final .cta-banner {
  background: transparent;
  padding: 0;
}

/* ===== Why Us section (dark navy bg + faded team overlay + white cards + stats) ===== */
.why-us {
  position: relative;
  background: var(--color-primary);
  color: white;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.why-us__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/misc/why-bg-team.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: grayscale(0.3);
  z-index: 0;
}
.why-us__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 52, 77, 0.85) 0%, rgba(25, 52, 77, 0.7) 100%);
  z-index: 1;
}
.why-us__inner { position: relative; z-index: 2; }
.why-us .section-header h2 { color: white; }

/* White feature cards on the dark bg */
.why-us .feature-card {
  background: white;
  color: var(--color-text);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.why-us .feature-card:hover { box-shadow: var(--shadow-lg); }
.why-us .feature-card__title { color: var(--color-primary); }
.why-us .feature-card__body { color: var(--color-text-muted); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: white;
}
.stat-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.stat-item__icon svg { width: 100%; height: 100%; }
.stat-item__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: white;
}
.stat-item__label {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}
@media (max-width: 600px) {
  .stat-item { flex-direction: column; text-align: center; gap: var(--space-2); }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-bg-alt) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 {
  margin-bottom: var(--space-3);
}
.contact-info__intro {
  color: var(--color-text-muted, var(--color-text));
  margin-bottom: var(--space-5);
  line-height: 1.7;
}
.contact-info__list,
.contact-info__hours {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-info__list li,
.contact-info__hours li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-size: var(--fs-base);
}
.contact-info__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.contact-info__list a:hover { border-bottom-color: currentColor; }
.contact-info__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-info__icon svg { width: 100%; height: 100%; }
.contact-info__hours-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-5) 0 var(--space-3);
}

/* form card */
.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.08));
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-form__row { display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--color-bg-alt, #f4f6f9);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-form__submit {
  align-self: center;
  margin-top: var(--space-3);
  background: var(--color-primary);
  color: white;
  border: 0;
  padding: 1rem 3.5rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.contact-form__submit:hover:not(:disabled) {
  background: var(--color-primary-700, var(--color-primary));
  transform: translateY(-1px);
}
.contact-form__submit:disabled { opacity: 0.7; cursor: progress; }
.contact-form__footnote {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted, var(--color-text));
  font-style: italic;
  margin: 0;
}
.contact-form__status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
}
.contact-form__status--ok {
  background: #e7f7ee;
  color: #115e3a;
  border: 1px solid #c0e6d2;
}
.contact-form__status--err {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f3c5c5;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Map section with overlapping CTA */
.contact-map-section {
  position: relative;
  background: var(--color-bg-alt);
}
.contact-map {
  width: 100%;
  height: clamp(22rem, 50vw, 32rem);
  background: #e8eef5;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-map__cta-wrap {
  position: relative;
  margin-top: clamp(-8rem, -10vw, -6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  z-index: 2;
}
.contact-map__cta {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 72rem;
  margin: 0 auto;
}
.contact-map__cta h2 {
  color: white;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin: 0 0 var(--space-3);
  line-height: 1.25;
}
.contact-map__cta p {
  color: rgba(255,255,255,0.85);
  max-width: 60rem;
  margin: 0 auto var(--space-5);
  line-height: 1.7;
}
.contact-map__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* RTL form: keep inputs LTR for email/phone but text RTL */
[dir="rtl"] .contact-form input[type="email"],
[dir="rtl"] .contact-form input[type="tel"] {
  direction: ltr;
  text-align: right;
}

/* ===== APPOINTMENT (Schedule an Appointment) ===== */
.appointment-section {
  position: relative;
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-bg-alt) 100%);
  overflow: hidden;
}
.appointment-section__dots {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22%;
  background-image: radial-gradient(rgba(20, 47, 78, 0.18) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  background-position: right top;
  pointer-events: none;
  opacity: 0.55;
  mask-image: linear-gradient(to left, black, transparent);
  -webkit-mask-image: linear-gradient(to left, black, transparent);
}
[dir="rtl"] .appointment-section__dots {
  right: auto;
  left: 0;
  background-position: left top;
  mask-image: linear-gradient(to right, black, transparent);
  -webkit-mask-image: linear-gradient(to right, black, transparent);
}
.appointment-section__inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
}

.appointment-intro {
  text-align: center;
  margin-bottom: var(--space-6);
}
.appointment-intro h2 {
  margin-bottom: var(--space-3);
}
.appointment-intro__lead {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}
.appointment-intro__lead a {
  color: var(--color-primary);
  text-decoration: none;
}
.appointment-intro__lead a:hover { text-decoration: underline; }
.appointment-intro__body {
  color: var(--color-text-muted, var(--color-text));
  max-width: 56rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form card (reuses contact-form-card styling pattern) */
.appointment-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.08));
}
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.appointment-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 700px) {
  .appointment-form__grid { grid-template-columns: 1fr; }
}
.appointment-form__row { display: block; }
.appointment-form__row--full { width: 100%; }

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  background: var(--color-bg-alt, #f4f6f9);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.appointment-form input::placeholder,
.appointment-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}
.appointment-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='none' stroke='%23142F4E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.4);
}
.appointment-form select:has(option:checked:not([value=""])) { color: var(--color-text); }
[dir="rtl"] .appointment-form select {
  background-position: left 1.1rem center;
  padding-right: 1.1rem;
  padding-left: 2.5rem;
}
.appointment-form textarea {
  resize: vertical;
  min-height: 7rem;
}

/* Phone with country-code badge */
.appointment-form__phone {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--color-bg-alt, #f4f6f9);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.appointment-form__phone:focus-within {
  border-color: var(--color-primary);
  background: white;
}
.appointment-form__cc {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem 0 1.1rem;
  font-size: 1.1rem;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.appointment-form__phone input {
  background: transparent;
  border: 0;
  padding-left: 0.85rem;
  flex: 1;
}
.appointment-form__phone input:focus { background: transparent; }
[dir="rtl"] .appointment-form__cc {
  border-right: 0;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding: 0 1.1rem 0 0.85rem;
}
[dir="rtl"] .appointment-form__phone input {
  padding-left: 1.1rem;
  padding-right: 0.85rem;
  direction: ltr;
  text-align: right;
}

/* Centered contact info row (no card) */
.appointment-info {
  background: var(--color-bg-alt);
  padding-block: var(--space-6);
}
.appointment-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.appointment-info__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-size: var(--fs-base);
}
.appointment-info__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.appointment-info__list a:hover { border-bottom-color: currentColor; }

/* RTL: keep email/phone/dates LTR but right-aligned */
[dir="rtl"] .appointment-form input[type="email"],
[dir="rtl"] .appointment-form input[type="tel"],
[dir="rtl"] .appointment-form input[type="date"] {
  direction: ltr;
  text-align: right;
}

/* ===== GALLERY ===== */
.gallery-section {
  background: var(--color-bg-alt);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.06));
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 650;
  object-fit: cover;
  background: #eef2f6;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.12));
}
.gallery-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 31, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  animation: lb-fade 180ms ease-out;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }

.lightbox__stage {
  position: relative;
  max-width: min(92vw, 880px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #1a2436;
}
.lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 600px) {
  .lightbox__close { top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .lightbox__nav { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
}

/* ===== LATEST TECHNOLOGY ===== */
.tech-section {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-bg-alt) 100%);
}
.tech-intro {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto var(--space-6);
}
.tech-intro h2 {
  margin-bottom: var(--space-3);
}
.tech-intro p {
  color: var(--color-text-muted, var(--color-text));
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 900px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(20, 47, 78, 0.06));
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  display: flex;
  flex-direction: column;
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(20, 47, 78, 0.12));
}
.tech-card__image {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.tech-card__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tech-card__body {
  text-align: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 1rem clamp(1.5rem, 3vw, 2rem);
}
.tech-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--color-primary);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.tech-card__subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted, var(--color-text));
  margin: 0;
  line-height: 1.4;
}

/* ===== PUBLICATIONS ===== */
.publications-section {
  background: var(--color-bg-alt);
}
.publications-section__inner {
  max-width: 56rem;
}
.publications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.publications-list__item { display: block; }

.publication-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: white;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 2px 16px rgba(20, 47, 78, 0.06);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.publication-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-primary);
  line-height: 1.4;
  flex: 1;
}
.publication-card__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.publication-card__icon svg { width: 100%; height: 100%; }
.publication-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 47, 78, 0.12);
}
.publication-card--link:hover .publication-card__icon {
  opacity: 1;
  transform: translate(2px, -2px);
}
.publication-card--link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.publications-empty {
  text-align: center;
  color: var(--color-text-muted, var(--color-text));
  padding: var(--space-6) var(--space-4);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(20, 47, 78, 0.06);
}

/* ============================================================
   BLOG — Hub (filter + grid) + Post (article body + FAQs)
   ============================================================ */

.section--tight { padding: var(--space-7) 0 var(--space-6); }

/* Category filter row */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5) var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-7);
}
.blog-filter__btn {
  background: none;
  border: 0;
  padding: var(--space-2) 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}
.blog-filter__btn:hover { color: var(--color-primary); }
.blog-filter__btn.is-active {
  color: var(--color-primary);
  font-weight: 700;
}
.blog-filter__btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  height: 2px;
  background: var(--color-primary);
}

/* Blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 47, 78, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 47, 78, 0.12);
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-primary-100);
  background-image: url('/assets/images/logo/dec-logo-dark.png');
  background-size: 60% auto;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}
.blog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__image--fallback img { display: none; }
.blog-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.blog-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
  margin: 0;
}
.blog-card__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: auto;
}

/* Blog post — hero adds a byline under the H1 */
.blog-post-hero h1 {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}
.blog-post-hero .breadcrumb {
  justify-content: center;
  flex-wrap: wrap;
}
.blog-post-hero__byline {
  margin-top: var(--space-5);
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

/* Blog post — article body */
.blog-article { background: var(--color-bg-alt); }
.blog-article__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.blog-article__notice {
  background: var(--color-primary-100);
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
}
[dir="rtl"] .blog-article__notice {
  border-left: 0;
  border-right: 4px solid var(--color-primary);
}
.blog-article__inner h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-7) 0 var(--space-4);
  line-height: 1.25;
}
.blog-article__inner h2:first-child { margin-top: 0; }
.blog-article__inner h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-6) 0 var(--space-3);
}
.blog-article__inner p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 var(--space-5);
}
.blog-article__inner strong { color: var(--color-primary); font-weight: 700; }
.blog-article__inner em { font-style: italic; }
.blog-article__inner .article-list {
  margin: 0 0 var(--space-6);
  padding-inline-start: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.blog-article__inner .article-list li {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
}
.blog-article__inner .article-list li strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* FAQ block at end of post */
.blog-article__faqs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.blog-article__faq-q {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.blog-article__faq-a {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

/* ============================================================
   CHAT WIDGET — floating bubble + slide-up panel
   ============================================================ */

.dec-chat {
  position: fixed;
  z-index: 9999;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: 'Manrope', system-ui, sans-serif;
}
.dec-chat [hidden] { display: none !important; }
[dir="rtl"] .dec-chat,
.dec-chat[dir="rtl"] {
  right: auto;
  left: 1.25rem;
}

/* Floating bubble */
.dec-chat__bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(20, 47, 78, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.dec-chat__bubble:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 32px rgba(20, 47, 78, 0.45);
}
.dec-chat__bubble:focus-visible {
  outline: 3px solid var(--color-primary-100);
  outline-offset: 4px;
}
.dec-chat__bubble-icon {
  width: 26px;
  height: 26px;
  display: block;
}
.dec-chat__bubble-icon svg { width: 100%; height: 100%; }
.dec-chat__bubble-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-danger, #D9534F);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Bubble pulse when closed and there's a waiting reply */
.dec-chat[data-state="closed"] .dec-chat__bubble-badge:not([hidden]) ~ .dec-chat__bubble,
.dec-chat[data-state="closed"] .dec-chat__bubble:has(.dec-chat__bubble-badge:not([hidden])) {
  animation: dec-pulse 1.4s ease-in-out infinite;
}
@keyframes dec-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(20, 47, 78, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(20, 47, 78, 0.35), 0 0 0 12px rgba(20, 47, 78, 0.08); }
}

/* Chat panel */
.dec-chat__panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  height: 540px;
  max-height: calc(100vh - 7rem);
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(20, 47, 78, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dec-chat-pop 0.18s ease-out;
}
[dir="rtl"] .dec-chat__panel,
.dec-chat[dir="rtl"] .dec-chat__panel {
  right: auto;
  left: 0;
}
@keyframes dec-chat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile: full-screen overlay */
@media (max-width: 480px) {
  .dec-chat { bottom: 1rem; right: 1rem; }
  [dir="rtl"] .dec-chat,
  .dec-chat[dir="rtl"] { right: auto; left: 1rem; }
  .dec-chat__panel {
    position: fixed;
    inset: 0.75rem;
    bottom: 5.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
  }
}

/* Panel header */
.dec-chat__header {
  background: var(--color-primary);
  color: white;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.dec-chat__title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dec-chat__title strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.dec-chat__status {
  font-size: 0.78rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dec-chat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5CB85C;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.7);
  animation: dec-chat-dot 2s ease-in-out infinite;
}
@keyframes dec-chat-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(92, 184, 92, 0); }
}
.dec-chat__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.dec-chat__close:hover { background: rgba(255,255,255,0.2); }
.dec-chat__close svg { width: 16px; height: 16px; }

/* Message list */
.dec-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #F4F6F7;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scroll-behavior: smooth;
}
.dec-chat__messages::-webkit-scrollbar { width: 6px; }
.dec-chat__messages::-webkit-scrollbar-thumb {
  background: rgba(20, 47, 78, 0.15);
  border-radius: 3px;
}

.dec-chat__msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 4px;
}
.dec-chat__msg--visitor {
  align-self: flex-end;
  align-items: flex-end;
}
.dec-chat__msg--staff {
  align-self: flex-start;
  align-items: flex-start;
}

.dec-chat__msg-bubble {
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.dec-chat__msg--visitor .dec-chat__msg-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.dec-chat__msg--staff .dec-chat__msg-bubble {
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}
[dir="rtl"] .dec-chat__msg--visitor .dec-chat__msg-bubble {
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 4px;
}
[dir="rtl"] .dec-chat__msg--staff .dec-chat__msg-bubble {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}
.dec-chat__msg-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding: 0 0.4rem;
}

.dec-chat__system {
  align-self: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 0.25rem 0.75rem;
  text-align: center;
}

/* Composer */
.dec-chat__form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.dec-chat__input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 0.6rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  background: var(--color-bg-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dec-chat__input:focus {
  border-color: var(--color-primary);
  background: white;
}
.dec-chat__send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}
.dec-chat__send:hover { background: var(--color-primary-700); }
.dec-chat__send:active { transform: scale(0.94); }
.dec-chat__send svg { width: 18px; height: 18px; }
[dir="rtl"] .dec-chat__send svg { transform: scaleX(-1); }
