/* PLATFORM BASE STYLES */


:root {
  /* BRAND COLOURS — extracted from hero image */
  --ded-blue-ultra-light: #F8F9FF;
  --ded-blue-light: #e8ecff;
  --ded-blue-primary: #6BB7D6;     /* scrubs blue */
  --ded-blue-dark: #4A8CA8;        /* deeper clinical blue */

  --ded-yellow-ultra-light: #FFFEFA;
  --ded-yellow-light: #FCF6E2;           /* softer highlight yellow */
  --ded-yellow: #F2D77A;           /* soft highlight yellow */
  --ded-yellow-dark: #D9C067;      /* deeper golden variant */
  --ded-orange: #ff841e;
  --ded-orange-light: #ffbe89;

  /* NEUTRALS — clinic environment */
  --ded-white: #FFFFFF;
  --ded-grey-light: #E6E7E8;
  --ded-grey-mid: #BFC3C5;
  --ded-grey-dark: #141414;
  
  /* ============================================
     CS LAYER — TEAL COMMUNICATION THEME
     ============================================ */

  --cs-teal-ultra-light:  #e6f7f5;   /* header background */
  --cs-teal-primary:      #1aa39d;  /* border + icon tint */
  --cs-teal-dark:         #157f76;  /* darker variant for hover/focus */
  --cs-teal-shadow:       rgba(26, 163, 157, 0.25); /* soft shadow tint */

  /* OPTIONAL — if you want a text colour tuned for teal backgrounds */
  --cs-teal-text:         #0f4f4a;


  /* SEMANTIC COLOUR TOKENS */
  --ded-color-primary: var(--ded-blue-primary);
  --ded-color-primary-dark: var(--ded-blue-dark);

  --ded-color-accent: var(--ded-yellow);
  --ded-color-accent-dark: var(--ded-yellow-dark);

  --ded-color-surface: var(--ded-white);
  --ded-color-surface-alt: var(--ded-grey-light);

  --ded-color-border: rgba(0,0,0,0.08);
  --ded-color-shadow: 0 2px 10px rgba(0,0,0,0.06);

  --ded-color-text: var(--ded-grey-dark);
  --ded-color-text-light: #555555;

  /* SPACING SCALE */
  --ded-space-xs: 0.4rem;
  --ded-space-sm: 0.8rem;
  --ded-space-md: 1.2rem;
  --ded-space-lg: 2rem;
  --ded-space-xl: 3rem;

  /* RADIUS */
  --ded-radius-sm: 6px;
  --ded-radius-md: 12px;
  --ded-radius-lg: 20px;

  /* TRANSITIONS */
  --ded-transition: 0.2s ease;
}

:root {
    --smooth: 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
    transition:
        background-color var(--smooth),
        color var(--smooth),
        border-color var(--smooth),
        box-shadow var(--smooth),
        transform var(--smooth);
}



/* ----------------------------------------
   DED LOGO (HEADER)
----------------------------------------- */

.ded-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
  color: #111;
}

.ded-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.ded-logo:hover {
  opacity: 0.85;
}

/* Sidebar partner cards (inside article TOC) */
.ded-partner-card--sidebar {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  box-shadow: var(--ded-shadow-light);
  border-top-width: 3px;
  margin-bottom: 1rem;
  text-align: center;
  background: var(--ded-white);
}

/* Smaller logos for sidebar */
.ded-partner-card-logo--sidebar {
  width: 60px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
}

/* Sidebar grid (vertical stack) */
.ded-partner-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


html {
  scroll-behavior: smooth;
}

.toc a.active {
  font-weight: 600;
  color: #003d80;
  border-left: 3px solid #003d80;
  padding-left: 0.4rem;
}

#backToTop {
  position: fixed;
  bottom: 26px;
  right: 26px;

  /* Soft blue‑green tint */
  background: rgba(36, 101, 119, 0.75); /* #246577 at 75% opacity */
  color: #fff;

  border: none;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;

  /* Softer shadow */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  opacity: 0;
  pointer-events: none;
  transition: 
    opacity 0.3s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

/* Hover: slightly brighter + gentle lift */
#backToTop:hover {
  background: rgba(36, 101, 119, 0.9);
  transform: translateY(-2px);
}

/* Visible state */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}



body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}


header {
  background: linear-gradient(to bottom, #f7f9fb, #ffffff);
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0 0 12px 12px;
  margin-bottom: 1.5rem;
}

.ded-hero-label {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem; /* space for underline */
}

.ded-hero-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 140%;
  left: -20%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ded-yellow) 20%,
    var(--ded-yellow) 80%,
    transparent 100%
  );
  border-radius: 2px;
}


/* Layout */
main {
  max-width: 820px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}


.breadcrumb {
  margin: 1rem 0 2rem 0;
}

.breadcrumb-container {
  max-width: 1100px;      /* SAME width as your article grid */
  margin: 0 auto;         /* centers it */
  padding: 0 1.5rem;      /* SAME side padding as your layout */

  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;

  font-size: 15px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
}


.breadcrumb a {
  color: rgba(0,0,0,0.55);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: rgba(0,0,0,0.75);
}

.separator {
  color: rgba(0,0,0,0.35);
}

.breadcrumb span:last-child {
  color: rgba(0,0,0,0.90);  /* or whatever tint you prefer */
}

/* === GLOBAL HERO TITLE WITH TAPERED UNDERLINE === */

.ded-hero-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ded-grey-dark);
}

.ded-hero-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 140%;
  left: -20%;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ded-yellow) 20%,
    var(--ded-yellow) 80%,
    transparent 100%
  );
  border-radius: 2px;
}


/* TOC container */
.toc {
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  background: #ffffff;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 2rem;
  width: 240px;
  max-width: 240px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);

  z-index: 5;
  isolation: isolate; /* <-- THIS is the missing piece */
}



/* TOC title */
.toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.5rem;
}

/* TOC list */
.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.6rem;
  padding-left: 0.6rem;
  border-left: 2px solid #d9e2ec;
}

.toc a {
  display: block;
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 2px 0;
  white-space: normal;
  word-break: break-word;
}

.toc a:hover {
  text-decoration: underline;
}

/* Responsive: TOC becomes inline on mobile */
@media (max-width: 900px) {
  .toc {
    position: relative;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

.partner-showcase {
  background: #f7f9fc;
  border: 1px solid #e5e9f0;
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.partner-showcase h4 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.partner-showcase p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}


.content-layout {
  display: flex;
  gap: 2rem;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 260px; /* matches your TOC max-width */
  flex-shrink: 0; /* prevents collapsing */
}


/* Headings */
h1 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  color: #444;
}

h4 {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
  color: #444;
}

h5 {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
  color: #444;
}

/* Text */
p {
  margin-bottom: 1rem;
}

ul {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
}

li {
  margin-bottom: 0.4rem;
}

/* Dividers */
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2rem 0;
}

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Pre-Footer Block === */

.ded-prefooter {
  padding: 1rem 1.5rem;
  margin: 1rem auto 1rem auto;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.ded-prefooter h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.ded-prefooter-intro {
  font-size: 1.05rem;
  color: #444;
}

.ded-prefooter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.ded-prefooter-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ded-prefooter-item p {
  margin-bottom: 0.8rem;
  color: #555;
}

/* Button matches your existing soft, rounded style */
.ded-button {
    display: inline-block;
    padding: 12px 24px;
    background: #D9C067;
    border: 1px solid #ff8521;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.ded-btn:hover {
  background: #ff8521;
}

/* Desktop layout */
@media (min-width: 700px) {
  .ded-prefooter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Footer Base */
.site-footer {
  padding: 1.5rem 0;
  background: #f5f5f5;
  color: #555;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
  text-align: center; /* ensures everything is centered */
}


/* Footer Container */
.site-footer .container {
  max-width: 1100px;
  margin: 0 auto; /* centers the container */
  padding: 0 1.5rem;
}

/* Footer Navigation */
.footer-nav {
  margin-bottom: 1.5rem !important;
}

.footer-nav a {
  margin: 0px 0.75rem;
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #000;
  text-decoration: underline;
}

/* Footer Text */
.site-footer p {
  margin: 0.5rem;
  color: #777;
}

/* === DED-prefooter-image + Card Effect === */

.ded-prefooter-map::before {
  content: "";
  position: absolute;
  inset: 0;

  /* your image */
  background-image: url('/assets/DED-prefooter-image.jpg');
  border: 2px solid #ff8521;
  background-size: 200%;
  background-position: center;
  background-repeat: no-repeat;

  /* translucent card effect */
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);

  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Featured card with background image */
.ded-featured-card--map {
  position: relative;
  overflow: hidden;
}

/* Background layer */
.ded-featured-card--map::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('/articles/assets/world-map-light.webp');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.50;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure text stays above the background */
.ded-featured-card--map > * {
  position: relative;
  z-index: 1;
}

/* Featured card with communication background */
.ded-featured-card--communication {
  position: relative;
  overflow: hidden;
}

/* Background layer */
.ded-featured-card--communication::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('/articles/assets/patient-communication.webp');
  background-size: cover;
  background-position: 50% 20%;
  background-repeat: no-repeat;

  opacity: 0.45;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure text stays above the background */
.ded-featured-card--communication > * {
  position: relative;
  z-index: 1;
}


/* === Article Card: World Map Background === */

.ded-article-card--map {
  position: relative;
  overflow: hidden;
  background: transparent !important; /* KEY FIX */
}

/* Background layer */
.ded-article-card--map::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url('/assets/world-map-light.jpg');
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.50;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

/* Ensure text stays above the background */
.ded-article-card--map > * {
  position: relative;
  z-index: 1;
}

/* Content above the map */
.ded-prefooter * {
  position: relative;
  z-index: 1;
}



.ded-prefooter h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

.ded-prefooter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.ded-prefooter-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ded-prefooter-item p {
  margin-bottom: 0.8rem;
  color: #555;
}

.ded-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #D9C067;
    border: 1px solid #ff8521;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.ded-btn:hover {
  background: #ff8521;
}

@media (min-width: 700px) {
  .ded-prefooter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* === Article Section Blocks === */

.ded-section {
  position: relative;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  max-width: 900px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  backdrop-filter: blur(6px);

  overflow: hidden;
}

/* Ensure text/content sits above background visuals */
.ded-section * {
  position: relative;
  z-index: 1;
}

/* Base pseudo-element for map backgrounds */
.ded-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 200%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* === HOMEPAGE LAYOUT === */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ded-text-main);
}

.site-subtitle {
  font-size: 1.1rem;
  color: var(--ded-text-light);
  margin-top: 0.4rem;
}

.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--ded-text-main);
}

.hero p {
  font-size: 1.05rem;
  color: var(--ded-text-light);
  max-width: 700px;
  margin: 0 auto;
}

.nav-grid {
  margin: 2rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.nav-card {
  display: block;
  background: var(--ded-color-surface);
  border: 1px solid var(--ded-color-border);
  border-top: 4px solid var(--ded-yellow); /* BRAND ACCENT */
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ded-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border-color: var(--ded-blue-primary); /* BRAND HOVER */
  text-decoration: none !important;
}

.nav-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ded-text-main);
}

.nav-card p {
  margin: 0.6rem 0 0;
  color: var(--ded-text-light);
}

/* Mobile */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Background-enabled nav cards */
.nav-card--bg {
  position: relative;
  overflow: hidden;
}

/* Background layer */
.nav-card-bg {
  position: absolute;
  inset: 0;
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.50; /* adjust to taste */
  filter: blur(2px);
  z-index: 0;
}

/* Ensure text stays above */
.nav-card--bg h3,
.nav-card--bg p {
  position: relative;
  z-index: 1;
}


/* === HERO BANNER === */

.hero-banner {
  position: relative;
}



.hero-banner img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 30%;
}

.hero-text {
  position: absolute;
  bottom: 08%;
  left: 03.5%;
  color: var(--ded-white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-text h1 {
  font-size: 2.8rem;
  margin: 0;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-top: 0.4rem;
  font-weight: 400;
}

/* === MOBILE: move title + subtitle BELOW the image === */
@media (max-width: 700px) {
  .hero-text {
    position: static;
    padding: 1.2rem 1rem 0;
    color: var(--ded-text-main);
    text-shadow: none;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* === FEATURED SECTION === */

.ded-featured {
  margin: 3rem 0 2rem;
  max-width: 1100px;      /* NEW */
  margin-left: auto;      /* NEW */
  margin-right: auto;     /* NEW */
  padding: 0 1.5rem;      /* NEW */
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ded-text-main);
  display: inline-block;
  position: relative;        /* REQUIRED */
  padding-bottom: 4px;
  margin-bottom: 1.2rem;
  text-decoration: none;     /* optional, keeps it clean */
}

.section-title::after {
  content: "";
  position: absolute;
  left: -20%;                /* centers the extended underline */
  bottom: 0;
  width: 140%;               /* longer underline */
  height: 3px;               /* thickness */
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ded-yellow) 20%,
    var(--ded-yellow) 80%,
    transparent 100%
  );
  border-radius: 2px;        /* smooth taper */
}


.ded-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ded-featured-card {
  display: block;
  background: var(--ded-color-surface);
  border: 1px solid var(--ded-color-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  color: var(--ded-text-main);

  /* Top + bottom yellow bars */
  border-top: 4px solid var(--ded-yellow);
  border-bottom: 3px solid var(--ded-yellow);

  /* Slight elevation for Featured hierarchy */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);

  transition: transform var(--ded-transition),
              box-shadow var(--ded-transition),
              border-color var(--ded-transition);
}

.ded-featured-card:hover {
  transform: translateY(-3px);
  border-color: var(--ded-blue-primary); /* hover brand */
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.ded-featured-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.ded-featured-card p {
  margin: 0;
  color: var(--ded-text-light);
}


/* Mobile */
@media (max-width: 900px) {
  .ded-featured-grid {
    grid-template-columns: 1fr;
  }
}


/* === PARTNERS SECTION === */

.ded-partners {
  margin: 3rem 0 4rem;
  max-width: 1100px;      /* NEW */
  margin-left: auto;      /* NEW */
  margin-right: auto;     /* NEW */
  padding: 0 1.5rem;      /* NEW */
}

.ded-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ded-partner-card {
  display: block;
  text-align: center;
  background: var(--ded-color-surface);
  border: 1px solid var(--ded-color-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  color: var(--ded-text-main);

  /* Top + bottom yellow bars */
  border-top: 4px solid var(--ded-blue-primary);
  border-bottom: 3px solid var(--ded-blue-primary);

  /* Slight elevation for Featured hierarchy */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);

  transition: transform var(--ded-transition),
              box-shadow var(--ded-transition),
              border-color var(--ded-transition);
}

.ded-partner-card:hover {
  transform: translateY(-3px);
  border-color: var(--ded-yellow); /* hover brand */
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.ded-partner-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ded-text-main);
}

.ded-partner-card p {
  margin: 0;
  color: var(--ded-text-light);
}

.ded-partner-card img {
  width: 100px;        /* controls the logo size */
  height: auto;       /* keeps proportions correct */
  margin: 0 auto 12px;
  display: block;     /* centers the logo */
}


/* Family Dental override */
.ded-partner-card-logo--family {
  width: 60px !important;   /* or whatever size you want */
}

/* Mobile */
@media (max-width: 900px) {
  .ded-partners-grid {
    grid-template-columns: 1fr;
  }
}


/* === ARTICLES PAGE === */

.ded-breadcrumb {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  color: var(--ded-text-light);
  font-size: 0.9rem;
}

.ded-articles-header {
  max-width: 1100px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.5rem;
}

.ded-articles-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ded-text-main);
  margin: 0 0 0.5rem;
  border-bottom: 4px solid var(--ded-yellow);
  display: inline-block;
  padding-bottom: 6px;
}

.ded-articles-subtitle {
  margin: 0.5rem 0 0;
  color: var(--ded-text-light);
  font-size: 1.1rem;
}

.ded-articles {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.ded-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* === ARTICLE CARDS (matching DED homepage Featured cards) === */

.ded-article-card {
  position: relative;
  display: block;
  background: var(--ded-color-surface);
  border: 1px solid var(--ded-color-border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  text-decoration: none !important;
  color: var(--ded-text-main);

  /* Top + bottom yellow bars (DED signature) */
  border-top: 4px solid var(--ded-yellow);
  border-bottom: 3px solid var(--ded-yellow);

  /* Slight elevation */
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);

  overflow: hidden;
  transition: transform var(--ded-transition),
              box-shadow var(--ded-transition),
              border-color var(--ded-transition);
}

/* Background image layer (optional per card) */
.ded-article-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: blur(1px);
  z-index: 0;
}

/* Text stays above */
.ded-article-card h3,
.ded-article-card p {
  position: relative;
  z-index: 1;
}

.ded-article-card:hover {
  transform: translateY(-3px);
  border-color: var(--ded-blue-primary); /* hover brand */
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}


/* Mobile */
@media (max-width: 900px) {
  .ded-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* === ARTICLES HERO BANNER === */

.ded-articles-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);

  background-image: url('/articles/assets/articles-banner-01.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.ded-articles-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-articles-subtitle {
  font-size: 1.15rem;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}


/* === DIALOGUES PAGE THEME === */

/* === BASE HERO STYLING === */
.ded-dialogues-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.8;
}

/* === MAIN DIALOGUES PAGE === */
.page-dialogues .ded-dialogues-hero {
  background-image: url('/dialogues/assets/DED.webp');
  background-position: center;
}

/* === INDIVIDUAL ROLEPLAYS === */
.page-dlg01 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/crown-journey-banner.webp');
  background-position: center;
}

.page-dlg02 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/single-tooth-banner.webp');
  background-position: center calc(50% - 80px);
}

.page-dlg03 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/missing-teeth-banner.webp');
  background-position: center calc(50% - 40px);
}

.page-dlg04 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/all-on-4-banner2.webp');
  background-position: center calc(50% - 40px);
}

.page-dlg05 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/veneer-question.webp');
  background-position: center calc(50% - 80px);
}

.page-dlg06 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/smile-makeover-banner.webp');
  background-position: center;
}

.page-dlg07 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/functional-aesthitic.webp');
  background-position: center;
}

.page-dlg08 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/peridontal-banner.webp');
  background-position: center calc(50% - 80px);
}

.page-dlg09 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/failing-bridge-banner.webp');
  background-position: center calc(50% - 60px);
}

.page-dlg10 .ded-dialogues-hero {
  background-image: url('/dialogues/assets/total-smile-banner.webp');
  background-position: center;
}

.ded-dialogues-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-dialogues-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}


/* === SCENARIOS PAGE THEME === */

.ded-scenarios-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);

  background-image: url('/scenarios/assets/scenarios-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.ded-scenarios-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-scenarios-subtitle {
  font-size: 1.15rem;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}


/* === GLOSSARIES PAGE THEME === */

.ded-glossaries-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);

  background-image: url('/glossaries/assets/glossaries-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.ded-glossaries-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-glossaries-subtitle {
  font-size: 1.15rem;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}


/* === TOOLKIT PAGE THEME === */

.ded-toolkit-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);

  background-image: url('/toolkit/assets/toolkit-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.ded-toolkit-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-toolkit-subtitle {
  font-size: 1.15rem;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}


/* === COURSES PAGE THEME === */

.ded-courses-hero {
  position: relative;
  width: 100%;
  padding: 4rem 1.5rem;
  border-bottom: 2px solid var(--ded-yellow);

  background-image: url('/courses/assets/courses-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}

.ded-courses-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.ded-courses-subtitle {
  font-size: 1.15rem;
  color: var(--ded-text-light);
  margin-top: 0.5rem;
}



/* FORCE map background to appear */
.ded-article-card--map::before {
  display: block !important;
  content: "" !important;
}

/* === FIX: Prevent horizontal overflow === */

/* 1. Prevent hero text from pushing the page wider */
.hero-banner {
  overflow: hidden;
}

/* 2. Prevent blurred pseudo-elements from leaking outside */
.ded-featured-card--map,
.ded-article-card--map,
.ded-section,
.ded-prefooter {
  overflow: hidden;
}

/* 3. Global safety */
body {
  overflow-x: hidden;
}

