/* =========================================================================
   DIGIMED GLOBAL — "Pulse of Research" design system
   Colours come from the logo: DigiMed navy + ECG red.
   ========================================================================= */
:root {
  --ink: #0e1e33;
  --ink-2: #33475e;
  --muted: #56687e;
  --navy-950: #031830;
  --navy-900: #062646;
  --navy-800: #0a3560;
  --blue: #005296;          /* logo blue */
  --blue-600: #0b63b4;
  --blue-100: #dbe8f6;
  --pulse: #c3141f;         /* ECG red on light */
  --pulse-hi: #ff5a64;      /* ECG red on navy */
  --ice: #eef4fa;
  --ice-2: #f6f9fc;
  --line: #d6e1ed;
  --paper: #ffffff;
  --ok: #137548;
  --ok-soft: #e3f4ec;
  --gold: #b9862b;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(6, 38, 70, .06), 0 2px 8px rgba(6, 38, 70, .05);
  --shadow-2: 0 2px 4px rgba(6, 38, 70, .06), 0 18px 40px -12px rgba(6, 38, 70, .22);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base (only on redesigned pages: body.dg) ---------- */
body.dg { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
.dg *, .dg *::before, .dg *::after, .dg-header *, .dg-drawer *, .dg-footer *, .dg-offer, .dg-wa * { box-sizing: border-box; }
:where(.dg) img { max-width: 100%; height: auto; display: block; }
:where(.dg) a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.dg) a:hover { color: var(--blue); }
:where(.dg) :where(h1, h2, h3, h4) { margin: 0; color: var(--ink); }
:where(.dg) p { margin: 0 0 1em; }
:where(.dg) :where(ul, ol) { margin: 0; }
:where(.dg) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.dg :focus-visible { outline: 3px solid #4d9cf0; outline-offset: 2px; border-radius: 4px; }
.dg ::selection { background: #ffd7da; color: var(--ink); }
@media (max-width: 600px) { body.dg { font-size: 16px; } }

.dg-skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 14px; z-index: 200; border-radius: 8px; }
.dg-skip:focus { left: 8px; }

.dg-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dg-wrap--narrow { max-width: 820px; }

/* ---------- type ---------- */
.dg-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.35rem, 6.2vw, 4.5rem); line-height: 1.03; letter-spacing: -.02em; font-optical-sizing: auto; }
.dg-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.85rem, 3.8vw, 2.85rem); line-height: 1.1; letter-spacing: -.015em; }
.dg-h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
.dg-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.dg-kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--pulse); margin-bottom: 14px; }
.dg-kicker svg { flex: none; }
.dg-muted { color: var(--muted); }

/* ---------- buttons ---------- */
.dg-btn { --bg: var(--pulse); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  border-radius: 10px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg) !important; font-weight: 700; font-size: 1rem;
  text-decoration: none !important; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.dg-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease); }
.dg-btn:hover::after { transform: translateX(120%); }
.dg-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(195, 20, 31, .55); }
.dg-btn:active { transform: translateY(0); }
.dg-btn--navy { --bg: var(--blue); }
.dg-btn--navy:hover { box-shadow: 0 10px 22px -8px rgba(0, 82, 150, .55); }
.dg-btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.dg-btn--ghost:hover { border-color: var(--blue); box-shadow: none; }
.dg-btn--ghost-light { --bg: rgba(255,255,255,.06); --fg: #fff; border-color: rgba(255,255,255,.28); }
.dg-btn--ghost-light:hover { border-color: #fff; box-shadow: none; background: rgba(255,255,255,.12); }
.dg-btn--wa { --bg: #1fae5b; }
.dg-btn--wa:hover { box-shadow: 0 10px 22px -8px rgba(31, 174, 91, .6); }
.dg-btn--block { width: 100%; }
.dg-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }

.dg-link { font-weight: 700; color: var(--blue) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; }
.dg-link span { border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.dg-link i { transition: transform .2s var(--ease); font-size: .85em; }
.dg-link:hover i { transform: translateX(4px); }

/* ---------- announcement bar ---------- */
.dg-offer { background: var(--pulse); color: #fff; font: 600 14px/1.3 var(--sans); text-align: center; padding: 9px 44px 9px 16px; position: relative; }
.dg-offer a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.dg-offer button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 6px; font-size: 16px; }
.dg-offer button:hover { background: rgba(255,255,255,.15); }
.dg-offer.is-hidden { display: none; }

/* ---------- header ---------- */
.dg-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; font-family: var(--sans); }
.dg-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(6,38,70,.5); }
.dg-header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dg-logo { display: block; flex: none; }
.dg-logo img { height: 40px; width: auto; display: block; }
.dg-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dg-nav a { position: relative; color: var(--ink) !important; text-decoration: none !important; font-weight: 600; font-size: .98rem; padding: 10px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.dg-nav a:hover { background: var(--ice); }
.dg-nav a[aria-current="page"] { color: var(--blue) !important; }
.dg-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--pulse); border-radius: 2px; }
.dg-header__cta { display: flex; align-items: center; gap: 10px; }
.dg-header__verify { font-weight: 600; font-size: .92rem; color: var(--ink-2) !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 8px; }
.dg-header__verify:hover { background: var(--ice); }
.dg-burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; cursor: pointer; position: relative; }
.dg-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.dg-burger span:nth-child(1) { top: 15px; } .dg-burger span:nth-child(2) { top: 22px; } .dg-burger span:nth-child(3) { top: 29px; }
.dg-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.dg-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dg-burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.dg-drawer { position: fixed; inset: var(--drawer-top, 68px) 0 0 0; z-index: 99; background: var(--paper); padding: 18px var(--gutter) 32px; overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; font-family: var(--sans); }
.dg-drawer.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.dg-drawer nav { display: grid; }
.dg-drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink) !important;
  text-decoration: none !important; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .35s var(--ease); }
.dg-drawer.is-open nav a { opacity: 1; transform: none; }
.dg-drawer nav a i { font-size: 14px; color: var(--muted); }
.dg-drawer nav a[aria-current="page"] { color: var(--blue) !important; }
.dg-drawer__actions { display: grid; gap: 10px; margin-top: 24px; }
.dg-drawer__contact { margin-top: 26px; color: var(--muted); font-size: .95rem; display: grid; gap: 8px; }
.dg-drawer__contact a { color: var(--ink-2) !important; text-decoration: none !important; }
body.dg-lock { overflow: hidden; }

@media (max-width: 1060px) {
  .dg-nav, .dg-header__cta { display: none; }
  .dg-burger { display: block; }
  .dg-logo img { height: 36px; }
}

/* ---------- sections ---------- */
.dg-section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.dg-section--ice { background: var(--ice); }
.dg-section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.dg-section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.dg-section__head > div { max-width: 640px; }
.dg-section__head .dg-lede { margin: 12px 0 0; }

/* ECG grid paper — used on navy surfaces */
.dg-grid-paper {
  background-color: var(--navy-950);
  background-image:
    linear-gradient(rgba(120, 170, 230, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 230, .10) 1px, transparent 1px),
    linear-gradient(rgba(120, 170, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 230, .045) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}

/* ---------- HERO ---------- */
.dg-hero { position: relative; color: #fff; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 0; }
.dg-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 10%, rgba(11, 99, 180, .45), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(195, 20, 31, .18), transparent 70%); pointer-events: none; }
.dg-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dg-hero .dg-h1 { color: #fff; }
.dg-hero__h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.dg-hero__h1 .ln > span { display: inline-block; transform: translateY(105%); animation: dg-rise .9s var(--ease) forwards; }
.dg-hero__h1 .ln:nth-child(2) > span { animation-delay: .12s; }
.dg-hero__h1 .ln:nth-child(3) > span { animation-delay: .24s; }
.dg-hero__h1 em { font-style: italic; color: #ffd2d5; }
.dg-hero__lede { color: rgba(225, 236, 248, .86); font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 56ch; margin: 22px 0 30px; opacity: 0; animation: dg-fade .8s .45s var(--ease) forwards; }
.dg-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: dg-fade .8s .6s var(--ease) forwards; }
.dg-hero__kicker { color: #ffb3b8; opacity: 0; animation: dg-fade .6s .1s forwards; }

.dg-ecg { position: relative; margin-top: clamp(36px, 6vw, 64px); height: 120px; }
.dg-ecg svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.dg-ecg__trace { fill: none; stroke: var(--pulse-hi); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 90, 100, .65));
  stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); animation: dg-draw 2.6s .3s cubic-bezier(.45, .05, .3, 1) forwards; }
.dg-ecg__ghost { fill: none; stroke: rgba(255, 90, 100, .16); stroke-width: 1.2; }
.dg-ecg__dot { fill: #fff; filter: drop-shadow(0 0 8px #ff5a64) drop-shadow(0 0 3px #fff); opacity: 0; }

.dg-hero__base { position: relative; border-top: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dg-stat { padding: 22px 20px 26px; border-right: 1px solid rgba(255,255,255,.12); }
.dg-stat:last-child { border-right: 0; }
.dg-stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dg-stat > span { display: block; margin-top: 8px; color: rgba(214, 228, 244, .78); font-size: .92rem; line-height: 1.35; }

/* featured course on hero */
.dg-feature { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); overflow: hidden;
  opacity: 0; transform: translateY(24px) rotate(1.2deg); animation: dg-card-in 1s .55s var(--ease) forwards; }
.dg-feature__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.dg-feature__body { padding: 20px 22px 22px; }
.dg-feature__flag { position: absolute; top: 14px; left: 14px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-1); display: inline-flex; gap: 6px; align-items: center; }
.dg-feature__flag i { color: var(--gold); }
.dg-feature h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin: 0 0 10px; }
.dg-feature__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

@keyframes dg-rise { to { transform: none; } }
@keyframes dg-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dg-draw { to { stroke-dashoffset: 0; } }
@keyframes dg-card-in { to { opacity: 1; transform: rotate(1.2deg); } }

@media (max-width: 900px) {
  .dg-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .dg-feature { max-width: 460px; transform: translateY(24px); animation-name: dg-card-in-flat; }
  @keyframes dg-card-in-flat { to { opacity: 1; transform: none; } }
  .dg-hero__base { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-stat:nth-child(2) { border-right: 0; }
  .dg-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .dg-ecg { height: 90px; margin-top: 40px; }
}
@media (max-width: 560px) {
  .dg-facts { gap: 8px; }
  .dg-facts li { font-size: .85rem; padding: 7px 11px; gap: 7px; }
  .dg-course-hero__ctas .dg-btn { flex: 1 1 auto; }
  .dg-hero__ctas .dg-btn { flex: 1 1 100%; }
  .dg-stat { padding: 18px 14px 20px; }
}

/* ---------- trust strip ---------- */
.dg-trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.dg-trust__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; padding: 22px 0; }
.dg-trust__label { font-weight: 600; color: var(--muted); font-size: .95rem; max-width: 18ch; line-height: 1.35; }
.dg-trust__logos { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.dg-trust__logos figure { margin: 0; display: flex; align-items: center; gap: 10px; }
.dg-trust__logos img { height: 58px; width: auto; }
.dg-trust__logos figcaption { font-size: .85rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; max-width: 13ch; }
@media (max-width: 760px) {
  .dg-trust__in { grid-template-columns: 1fr; gap: 14px; }
  .dg-trust__label { max-width: none; }
  .dg-trust__logos { display: grid; grid-template-columns: repeat(2, 1fr); justify-content: start; }
  .dg-trust__logos img { height: 46px; }
}

/* ---------- course cards ---------- */
.dg-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dg-ccard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.dg-ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.dg-ccard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--ice); }
.dg-ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dg-ccard:hover .dg-ccard__media img { transform: scale(1.05); }
.dg-ccard__tag { position: absolute; top: 12px; right: 12px; background: var(--pulse); color: #fff; font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 999px; }
.dg-ccard__tag.is-free { background: var(--ok); }
.dg-ccard__tag.is-soon { background: var(--navy-900); }
.dg-ccard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.dg-ccard__cat { font-size: .85rem; font-weight: 600; color: var(--blue); margin: 0 0 6px; }
.dg-ccard__title { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; }
.dg-ccard__title a { color: var(--ink) !important; text-decoration: none !important; }
.dg-ccard__title a::after { content: ""; position: absolute; inset: 0; }
.dg-ccard { position: relative; width: 100%; }
.dg-ccard__desc { color: var(--muted); font-size: .96rem; line-height: 1.55; flex: 1; margin: 0 0 16px; }
.dg-ccard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dg-price { margin: 0 !important; font-size: 1.15rem; }
.dg-price strong { font-weight: 800; color: var(--ink); }
.dg-price s { color: #8a99ab; font-size: .88rem; margin-left: 4px; }
.dg-ccard__go { font-weight: 700; font-size: .92rem; color: var(--pulse); display: inline-flex; align-items: center; gap: 6px; }
.dg-ccard__go::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.dg-ccard:hover .dg-ccard__go::after { width: 28px; }
.dg-ccard.is-hidden { display: none; }

@media (max-width: 980px) { .dg-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .dg-courses--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
  .dg-courses--scroll::-webkit-scrollbar { display: none; }
  .dg-courses--scroll > * { flex: 0 0 min(84%, 340px); scroll-snap-align: center; }
  .dg-courses--scroll > * > .dg-ccard { width: 100%; }
}
@media (max-width: 640px) { .dg-courses:not(.dg-courses--scroll) { grid-template-columns: 1fr; } }
.dg-scrollhint { display: none; }
@media (max-width: 980px) { .dg-scrollhint { display: flex; justify-content: center; gap: 6px; margin-top: 4px; } .dg-scrollhint span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; } .dg-scrollhint span.is-on { background: var(--pulse); width: 18px; border-radius: 3px; } }

/* filter chips */
.dg-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); font-weight: 600; font-size: .94rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.dg-chip:hover { border-color: var(--blue); color: var(--blue); }
.dg-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (max-width: 640px) { .dg-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; } .dg-filters::-webkit-scrollbar { display: none; } .dg-chip { flex: none; } }

.dg-search { position: relative; max-width: 420px; flex: 1 1 260px; }
.dg-search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 1rem; }
.dg-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 99, 180, .14); }
.dg-search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dg-empty { display: none; text-align: center; padding: 40px 16px; color: var(--muted); }
.dg-empty.is-on { display: block; }

/* ---------- learning path (sequence) ---------- */
.dg-path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.dg-path::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.dg-path li { position: relative; padding: 0 22px 0 0; counter-increment: step; }
.dg-path__n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 18px; transition: background .3s, color .3s; }
.dg-path li.is-in .dg-path__n { background: var(--blue); color: #fff; }
.dg-path li:last-child .dg-path__n { border-color: var(--pulse); color: var(--pulse); }
.dg-path li:last-child.is-in .dg-path__n { background: var(--pulse); color: #fff; }
.dg-path h3 { font-weight: 700; font-size: 1.12rem; margin-bottom: 6px; }
.dg-path p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 820px) {
  .dg-path { grid-template-columns: 1fr; gap: 26px; }
  .dg-path::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .dg-path li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0; }
  .dg-path__n { margin: 0; grid-row: span 2; }
  .dg-path h3 { align-self: end; margin-top: 4px; }
}

/* ---------- about ---------- */
.dg-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.dg-about__quote { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; font-weight: 400; color: var(--ink); margin: 18px 0 0; }
.dg-about__text p { color: var(--ink-2); font-size: 1.05rem; }
.dg-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.dg-mv > div { padding: 18px 20px 4px 0; }
.dg-mv > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.dg-mv h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 8px; }
.dg-mv p { color: var(--muted); font-size: .98rem; }
.dg-pillars { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.dg-pillars li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dg-pillars i { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); }
@media (max-width: 860px) { .dg-about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .dg-mv { grid-template-columns: 1fr; } .dg-mv > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .dg-pillars { grid-template-columns: 1fr; } }

/* ---------- affiliation cards ---------- */
.dg-affil { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.dg-affil article { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.dg-affil img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.dg-affil h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.dg-affil p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 700px) { .dg-affil { grid-template-columns: 1fr; } .dg-affil img { width: 72px; height: 72px; } }

/* ---------- navy numbers band ---------- */
.dg-band { color: #fff; position: relative; overflow: hidden; }
.dg-band .dg-h2 { color: #fff; }
.dg-band .dg-lede { color: rgba(214, 228, 244, .82); }

/* ---------- faculty marquee ---------- */
.dg-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.dg-marquee__track { display: flex; gap: 18px; width: max-content; animation: dg-marquee var(--dur, 60s) linear infinite; }
.dg-marquee:hover .dg-marquee__track, .dg-marquee:focus-within .dg-marquee__track { animation-play-state: paused; }
.dg-marquee--rev .dg-marquee__track { animation-direction: reverse; }
@keyframes dg-marquee { to { transform: translateX(-50%); } }

.dg-fac { width: 210px; flex: none; margin: 0; }
.dg-fac__img { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, var(--ice), var(--blue-100)); }
.dg-fac__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform .5s var(--ease), filter .4s; }
.dg-fac:hover .dg-fac__img img { transform: scale(1.04); filter: none; }
.dg-fac figcaption { padding: 12px 2px 0; }
.dg-fac b { display: block; font-size: 1rem; line-height: 1.3; }
.dg-fac span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 3px; }
@media (max-width: 560px) { .dg-fac { width: 158px; } }

/* ---------- testimonials ---------- */
.dg-quotes { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 24px; scrollbar-width: none; scroll-behavior: smooth; }
.dg-quotes::-webkit-scrollbar { display: none; }
.dg-quote { flex: 0 0 min(560px, 86%); scroll-snap-align: start; background: var(--paper); border-radius: var(--r-lg); padding: 30px 30px 26px; margin: 0; box-shadow: var(--shadow-1); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dg-quote blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--ink); flex: 1; position: relative; }
.dg-quote blockquote::before { content: "“"; position: absolute; left: -6px; top: -34px; font-size: 4.2rem; color: var(--pulse); font-family: var(--serif); line-height: 1; opacity: .9; }
.dg-quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.dg-quote figcaption img, .dg-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.dg-avatar { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; }
.dg-quote figcaption small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; }
.dg-slider-nav { display: flex; gap: 10px; }
.dg-round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.dg-round:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 560px) { .dg-quote { padding: 26px 20px 20px; } }

/* ---------- milestones ---------- */
.dg-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg-gallery figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.dg-gallery figure:nth-child(1), .dg-gallery figure:nth-child(6) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.dg-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dg-gallery figure:hover img { transform: scale(1.06); }
.dg-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 700; font-size: .95rem; background: linear-gradient(transparent, rgba(3, 24, 48, .88)); }
@media (max-width: 860px) { .dg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dg-gallery figure:nth-child(1), .dg-gallery figure:nth-child(6) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; } .dg-gallery figcaption { font-size: .85rem; padding: 24px 10px 9px; } }

/* ---------- partner logos ---------- */
.dg-logo-tile { flex: none; width: 150px; height: 96px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.dg-logo-tile img { max-height: 76px; width: auto; object-fit: contain; }

/* ---------- blog cards ---------- */
.dg-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.dg-post { position: relative; display: flex; flex-direction: column; }
.dg-post__img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; background: var(--ice); }
.dg-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.dg-post:hover .dg-post__img img { transform: scale(1.05); }
.dg-post__meta { font-size: .88rem; color: var(--muted); margin: 0 0 8px !important; display: flex; gap: 12px; flex-wrap: wrap; }
.dg-post__meta b { color: var(--blue); font-weight: 700; }
.dg-post h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; line-height: 1.25; margin-bottom: 8px; }
.dg-post h3 a { color: var(--ink) !important; text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.dg-post:hover h3 a { background-size: 100% 1.5px; }
.dg-post h3 a::after { content: ""; position: absolute; inset: 0; }
.dg-post p.dg-post__ex { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .dg-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dg-posts { grid-template-columns: 1fr; } }
.dg-post--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.dg-post--lead .dg-post__img { margin: 0; }
.dg-post--lead h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
@media (max-width: 760px) { .dg-post--lead { grid-template-columns: 1fr; gap: 0; } .dg-post--lead .dg-post__img { margin-bottom: 16px; } }

/* ---------- CTA band ---------- */
.dg-cta { color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 6vw, 64px); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.dg-cta .dg-h2 { color: #fff; }
.dg-cta p { color: rgba(214, 228, 244, .85); margin: 12px 0 0; max-width: 52ch; }
.dg-cta__actions { display: grid; gap: 10px; min-width: 260px; }
.dg-cta__ecg { position: absolute; left: 0; right: 0; bottom: 14px; height: 60px; opacity: .55; pointer-events: none; }
.dg-cta__ecg path { fill: none; stroke: var(--pulse-hi); stroke-width: 1.6; }
@media (max-width: 760px) { .dg-cta { grid-template-columns: 1fr; padding-bottom: 72px; } .dg-cta__actions { min-width: 0; } }

/* ---------- page hero (inner pages) ---------- */
.dg-phero { color: #fff; padding: clamp(40px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.dg-phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(11, 99, 180, .4), transparent 70%); pointer-events: none; }
.dg-phero > * { position: relative; }
.dg-phero .dg-h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); }
.dg-phero .dg-lede { color: rgba(214, 228, 244, .86); margin: 16px 0 0; }
.dg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; margin: 0 0 18px; padding: 0; list-style: none; color: rgba(214, 228, 244, .7); }
.dg-crumbs a { color: rgba(214, 228, 244, .9) !important; text-decoration: none !important; }
.dg-crumbs a:hover { color: #fff !important; text-decoration: underline !important; }
.dg-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* ---------- course page ---------- */
.dg-course-hero { padding-bottom: clamp(40px, 6vw, 64px); }
.dg-course-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: center; }
.dg-course-hero .dg-h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; }
.dg-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dg-facts li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .93rem; font-weight: 600; color: #e7effa; }
.dg-facts i { color: var(--pulse-hi); }
.dg-course-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.dg-pricecard { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); overflow: hidden; }
.dg-pricecard__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.dg-pricecard__body { padding: 22px 22px 24px; }
.dg-pricecard__label { font-weight: 700; color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.dg-pricecard__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.dg-pricecard__price strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.dg-pricecard__price s { color: #8a99ab; font-size: 1.05rem; }
.dg-pricecard__off { display: inline-block; background: #ffe5e7; color: var(--pulse); font-weight: 800; font-size: .82rem; padding: 4px 9px; border-radius: 6px; }
.dg-pricecard ul { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 9px; }
.dg-pricecard li { display: flex; gap: 10px; font-size: .96rem; color: var(--ink-2); }
.dg-pricecard li i { color: var(--ok); margin-top: 4px; }
.dg-pricecard__note { font-size: .86rem; color: var(--muted); text-align: center; margin: 12px 0 0 !important; }

.dg-tabs { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.dg-tabs__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dg-tabs__in::-webkit-scrollbar { display: none; }
.dg-tabs a { flex: none; padding: 16px 14px 14px; font-weight: 600; font-size: .96rem; color: var(--muted) !important; text-decoration: none !important; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.dg-tabs a:hover { color: var(--ink) !important; }
.dg-tabs a.is-active { color: var(--ink) !important; border-color: var(--pulse); }

.dg-course-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.dg-course-body__aside { position: sticky; top: calc(var(--header-h) + 76px); }
.dg-csec { padding: clamp(40px, 6vw, 64px) 0 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.dg-csec:first-child { padding-top: clamp(36px, 5vw, 56px); }
.dg-csec > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; margin-bottom: 18px; }
.dg-csec p { color: var(--ink-2); font-size: 1.04rem; max-width: 70ch; }
.dg-csec h3 { font-size: 1.12rem; font-weight: 700; margin: 22px 0 10px; }
.dg-ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.dg-ticks li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.5; }
.dg-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23137548' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.dg-ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 600px) { .dg-ticks--2 { grid-template-columns: 1fr; } }

.dg-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.dg-feats > div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); }
.dg-feats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.dg-feats > div:nth-child(even) { padding-left: 20px; }
.dg-feats i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); font-size: 18px; transition: background .3s, color .3s, transform .3s var(--ease); }
.dg-feats > div:hover i { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.dg-feats h3 { margin: 0 0 4px !important; font-size: 1.04rem !important; }
.dg-feats p { margin: 0; font-size: .96rem !important; color: var(--muted) !important; }
@media (max-width: 640px) { .dg-feats { grid-template-columns: 1fr; } .dg-feats > div:nth-child(odd) { border-right: 0; } .dg-feats > div:nth-child(even) { padding-left: 0; } }

.dg-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.dg-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; position: relative; padding-bottom: 22px; }
.dg-steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; background: var(--paper); position: relative; z-index: 1; }
.dg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.dg-steps h3 { margin: 9px 0 4px !important; font-size: 1.04rem !important; }
.dg-steps p { margin: 0; color: var(--muted) !important; font-size: .96rem !important; }

/* accordion (curriculum) */
.dg-acc { border-top: 1px solid var(--line); }
.dg-acc details { border-bottom: 1px solid var(--line); }
.dg-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px 2px; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.dg-acc summary::-webkit-details-marker { display: none; }
.dg-acc summary small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.dg-acc summary .dg-plus { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; transition: transform .3s var(--ease), background .2s, border-color .2s; }
.dg-acc summary .dg-plus::before, .dg-acc summary .dg-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .3s var(--ease), background .2s; }
.dg-acc summary .dg-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.dg-acc details[open] summary .dg-plus { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.dg-acc details[open] summary .dg-plus::before, .dg-acc details[open] summary .dg-plus::after { background: #fff; }
.dg-acc details[open] summary .dg-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.dg-acc summary:hover { color: var(--blue); }
.dg-acc__body { padding: 0 2px 20px; overflow: hidden; }
.dg-acc__body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dg-acc__body li { display: flex; gap: 12px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.dg-acc__body li i { color: var(--blue); font-size: 13px; margin-top: 5px; width: 14px; flex: none; }
.dg-acc__body p { margin: 0; color: var(--ink-2); }
.dg-acc details[open] .dg-acc__body { animation: dg-open .35s var(--ease); }
@keyframes dg-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dg-acc-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px 0 12px; color: var(--muted); font-size: .94rem; }
.dg-acc-tools button { background: none; border: 0; color: var(--blue); font-weight: 700; cursor: pointer; padding: 6px 0; }

.dg-note { border-left: 3px solid var(--gold); background: #fbf6ec; padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font-size: .97rem; margin: 18px 0 0; }

/* tiers (drug discovery) */
.dg-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.dg-tier { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; display: flex; flex-direction: column; background: var(--paper); position: relative; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.dg-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.dg-tier.is-best { border-color: var(--blue); }
.dg-tier__flag { position: absolute; top: -12px; left: 22px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.dg-tier h3 { margin: 0 0 4px !important; font-size: 1.12rem !important; }
.dg-tier .dg-muted { font-size: .92rem; margin: 0 0 14px; }
.dg-tier__price { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.dg-tier__price s { font-size: .95rem; color: #8a99ab; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.dg-tier__sch { color: var(--ok); font-weight: 700; font-size: .9rem; margin: 8px 0 16px; }
.dg-tier ul { flex: 1; margin-bottom: 20px; }
@media (max-width: 900px) { .dg-tiers { grid-template-columns: 1fr; } }

/* faq */
.dg-faq summary { font-weight: 600; }

/* brochure form */
.dg-form { display: grid; gap: 14px; }
.dg-field { display: grid; gap: 6px; }
.dg-field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.dg-field input, .dg-field textarea, .dg-field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.dg-field textarea { min-height: 140px; resize: vertical; }
.dg-field input:focus, .dg-field textarea:focus, .dg-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 99, 180, .14); }
.dg-field input:user-invalid, .dg-field textarea:user-invalid { border-color: var(--pulse); }
.dg-brochure { background: var(--ice); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.dg-brochure h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.dg-brochure p { color: var(--muted); margin: 0; }
.dg-brochure__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--pulse); font-size: 24px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
@media (max-width: 760px) { .dg-brochure { grid-template-columns: 1fr; } }

/* mobile sticky enrol bar */
.dg-enrolbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(6, 38, 70, .3);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(110%); transition: transform .35s var(--ease); }
.dg-enrolbar.is-on { transform: none; }
.dg-enrolbar .dg-price { font-size: 1.2rem; line-height: 1.2; }
.dg-enrolbar .dg-price small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.dg-enrolbar .dg-btn { min-height: 48px; padding: 10px 22px; }
@media (max-width: 1000px) {
  .dg-course-hero__grid, .dg-course-body { grid-template-columns: minmax(0, 1fr); }
  .dg-course-body__aside { position: static; display: none; }
  .dg-pricecard { max-width: 520px; }
  .dg-enrolbar { display: flex; }
  body.has-enrolbar .dg-wa { bottom: 84px; }
  body.has-enrolbar .dg-footer { padding-bottom: 80px; }
}

/* ---------- article (blogs + policies) ---------- */
.dg-article-hero { padding-bottom: 0; }
.dg-article-hero .dg-h1 { max-width: 22ch; }
.dg-article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: rgba(214, 228, 244, .8); font-size: .94rem; }
.dg-article-meta b { color: #fff; }
.dg-article-cover { margin: 36px auto 0; max-width: 820px; padding: 0 var(--gutter); position: relative; z-index: 1; }
.dg-article-cover img { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 3 / 2; object-fit: cover; }

.dg-prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.72; color: #1d2c40; max-width: 70ch; margin: 0 auto; }
.dg-prose > * + * { margin-top: 1.1em; }
.dg-prose p { margin: 0; }
.dg-prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.2; margin-top: 1.9em; color: var(--ink); }
.dg-prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.22rem; line-height: 1.35; margin-top: 1.7em; color: var(--ink); }
.dg-prose h4 { font-family: var(--sans); font-weight: 700; font-size: 1.04rem; margin-top: 1.3em; color: var(--ink); }
.dg-prose ul, .dg-prose ol { padding-left: 1.3em; }
.dg-prose li + li { margin-top: .45em; }
.dg-prose li::marker { color: var(--pulse); }
.dg-prose strong { color: var(--ink); }
.dg-prose a { color: var(--blue-600); }
.dg-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .96rem; }
.dg-prose th, .dg-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.dg-prose th { background: var(--ice); }
.dg-prose blockquote, .dg-prose .quote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--pulse); font-style: italic; color: var(--ink-2); }
.dg-prose .highlight-box, .dg-prose .note-box { background: var(--ice); border-radius: var(--r); padding: 22px 24px; font-size: 1.12rem; }
.dg-prose .highlight-box > * + *, .dg-prose .note-box > * + * { margin-top: .8em; }
/* legacy article components restyled */
.dg-prose .imrad-section { margin-top: 2.4em; }
.dg-prose .section-header { display: flex; align-items: center; gap: 16px; margin-bottom: .6em; }
.dg-prose .section-number { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.dg-prose .section-header h2, .dg-prose .section-header h3, .dg-prose .section-title-sm { margin: 0 !important; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.dg-prose .section-content > * + * { margin-top: 1em; }
.dg-prose .content-list { list-style: none; padding: 0; }
.dg-prose .content-list > li { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.dg-prose .content-list > li > strong:first-child { display: block; font-family: var(--sans); font-size: 1.08rem; margin-bottom: 4px; }
.dg-prose .tip-card, .dg-prose .strategy-card, .dg-prose .reason-card, .dg-prose .application-card, .dg-prose .sidebar-card, .dg-prose .stat-card, .dg-prose .career-level, .dg-prose .checklist-item {
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--paper); margin-top: 12px; }
.dg-prose .tip-card { background: #fff8e8; border-color: #f1dfb5; }
.dg-prose .tip-card h4 { margin: 0 0 4px; font-size: .95rem; color: #8a5a00; display: flex; gap: 8px; align-items: center; }
.dg-prose .tip-card p { margin: 0; }
.dg-prose .strategy-cards, .dg-prose .reason-cards, .dg-prose .tips-grid, .dg-prose .applications-grid, .dg-prose .stats-grid, .dg-prose .career-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dg-prose .strategy-card h3, .dg-prose .strategy-card h4, .dg-prose .reason-card h3, .dg-prose .reason-card h4, .dg-prose .application-card h3, .dg-prose .application-card h4, .dg-prose .career-level h3, .dg-prose .career-level h4, .dg-prose .sidebar-card h3, .dg-prose .sidebar-card h4 { margin: 0 0 6px; font-size: 1.04rem; }
.dg-prose .strategy-card i, .dg-prose .reason-card i, .dg-prose .application-card i { color: var(--blue); margin-right: 6px; }
.dg-prose .stat-number { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--blue); line-height: 1; }
.dg-prose .stat-label { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.dg-prose .checklist-item { display: flex; gap: 12px; align-items: flex-start; }
.dg-prose .checklist-icon { color: var(--ok); flex: none; }
.dg-prose .two-column { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dg-prose img { border-radius: var(--r); margin: 1.4em auto; }
.dg-prose .fas, .dg-prose .fa-solid { font-family: "Font Awesome 6 Free"; }
@media (max-width: 600px) { .dg-prose { font-size: 1.1rem; line-height: 1.68; } .dg-prose h2 { font-size: 1.55rem; } .dg-prose .section-header h3, .dg-prose .section-title-sm { font-size: 1.32rem; } .dg-prose .section-number { width: 38px; height: 38px; } }

.dg-article-body { padding: clamp(36px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }
.dg-share { max-width: 70ch; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; }
.dg-share div { display: flex; gap: 8px; }

/* reading progress */
.dg-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--pulse); z-index: 120; }

/* ---------- contact ---------- */
.dg-contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.dg-contact__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-1); }
.dg-contact__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 4px; }
.dg-contact__list a, .dg-contact__list div { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.dg-contact__list i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ice); color: var(--blue); font-size: 18px; flex: none; transition: background .2s, color .2s; }
.dg-contact__list a:hover i { background: var(--blue); color: #fff; }
.dg-contact__list small { display: block; color: var(--muted); font-size: .86rem; }
.dg-contact__list b { font-weight: 700; word-break: break-word; }
.dg-alert { padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.dg-alert--ok { background: var(--ok-soft); color: var(--ok); }
.dg-alert--err { background: #fdecee; color: var(--pulse); }
@media (max-width: 860px) { .dg-contact { grid-template-columns: 1fr; } }
.g-recaptcha { transform-origin: 0 0; }
@media (max-width: 360px) { .g-recaptcha { transform: scale(.88); } }

/* ---------- brands ---------- */
.dg-brands { display: grid; gap: 22px; }
.dg-brand { display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: box-shadow .3s, transform .3s var(--ease); }
.dg-brand:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.dg-brand__logo { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--ice-2); border-radius: var(--r); padding: 12px; }
.dg-brand__logo img { max-height: 120px; width: auto; }
.dg-brand h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 8px; }
.dg-brand p { color: var(--muted); margin: 0; max-width: 60ch; }
@media (max-width: 800px) { .dg-brand { grid-template-columns: 1fr; gap: 16px; } .dg-brand__logo { max-width: 260px; } }

/* ---------- events ---------- */
.dg-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dg-event { display: grid; grid-template-columns: 200px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--paper); }
.dg-event img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.dg-event h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin: 6px 0 10px; }
.dg-event__when { display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; margin-bottom: 18px; }
.dg-event__when i { color: var(--pulse); width: 18px; }
.dg-event__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dg-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--ink-2); }
.dg-emptystate { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px); display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--ice-2); }
.dg-emptystate i.fa-calendar-plus { font-size: 34px; color: var(--blue); }
.dg-emptystate h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.dg-emptystate p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .dg-events { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dg-event { grid-template-columns: 1fr; } .dg-event img { aspect-ratio: 4 / 3; } .dg-emptystate { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.dg-footer { color: rgba(214, 228, 244, .82); font-family: var(--sans); font-size: 16px; line-height: 1.6; position: relative; }
.dg-footer a { color: rgba(225, 236, 248, .88); text-decoration: none; }
.dg-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dg-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(48px, 7vw, 80px) 0 40px; }
.dg-footer__brand img { height: 46px; width: auto; margin-bottom: 18px; }
.dg-footer__brand p { max-width: 34ch; margin: 0 0 20px; }
.dg-footer h3 { color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.dg-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.dg-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.dg-footer__contact i { color: var(--pulse-hi); margin-top: 5px; width: 16px; }
.dg-social { display: flex; gap: 10px; }
.dg-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.dg-social a:hover { background: var(--pulse); border-color: var(--pulse); transform: translateY(-2px); text-decoration: none; }
.dg-newsletter { display: flex; gap: 8px; margin-top: 4px; }
.dg-newsletter input { flex: 1; min-width: 0; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; font: inherit; }
.dg-newsletter input::placeholder { color: rgba(214, 228, 244, .55); }
.dg-newsletter input:focus { outline: none; border-color: #fff; }
.dg-newsletter button { height: 46px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--pulse); color: #fff; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.dg-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; }
.dg-footer__ecg { display: block; width: 100%; height: 40px; }
.dg-footer__ecg path { fill: none; stroke: rgba(255, 90, 100, .55); stroke-width: 1.5; }
@media (max-width: 900px) { .dg-footer__top { grid-template-columns: 1fr 1fr; } .dg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .dg-footer__top { grid-template-columns: 1fr 1fr; gap: 30px 20px; } .dg-footer__contact-col, .dg-footer__news { grid-column: 1 / -1; } }

/* WhatsApp */
.dg-wa { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; align-items: center; gap: 10px; text-decoration: none !important; font-family: var(--sans); transition: bottom .35s var(--ease); }
.dg-wa__bubble { background: var(--paper); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 999px; box-shadow: var(--shadow-2); opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap; }
.dg-wa.is-hint .dg-wa__bubble { opacity: 1; transform: none; }
.dg-wa__btn { width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 24px -8px rgba(18, 140, 70, .7); position: relative; }
.dg-wa__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: dg-ping 2.4s var(--ease) infinite; }
@keyframes dg-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) { .dg-wa__bubble { display: none; } .dg-wa__btn { width: 54px; height: 54px; font-size: 28px; } }

/* ---------- scroll reveal ---------- */
.dg-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.dg-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 404 / misc ---------- */
.dg-center { text-align: center; }
.dg-mt { margin-top: 32px; }
.dg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dg *, .dg *::before, .dg *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .dg-marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .dg-marquee__track [aria-hidden="true"] { display: none; }
  .dg-js [data-reveal] { opacity: 1; transform: none; }
  .dg-hero__h1 .ln > span { transform: none; }
}

@media print {
  .dg-header, .dg-offer, .dg-footer, .dg-wa, .dg-enrolbar, .dg-tabs, .dg-progress { display: none !important; }
}

/* faculty grid (course pages) */
.dg-faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 22px 16px; margin-top: 8px; }
.dg-faculty-grid .dg-fac { width: auto; }
.dg-faculty-grid .dg-fac[hidden] { display: none; }
@media (max-width: 420px) { .dg-faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }

/* more legacy article components */
.dg-prose .intro-text { font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
.dg-prose .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dg-prose .stat-card { text-align: left; }
.dg-prose .feature-list { list-style: none; padding: 0; }
.dg-prose .feature-item { display: flex; gap: 12px; align-items: flex-start; margin-top: .55em; }
.dg-prose .feature-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--ice); color: var(--blue); display: grid; place-items: center; font-size: 15px; margin-top: 2px; }
.dg-prose .tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-prose .tech-item { font-family: var(--sans); font-size: .92rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--ice); color: var(--ink-2); }
.dg-prose .career-path { display: grid; gap: 8px; }
.dg-prose .career-level { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0; }
.dg-prose .career-title { font-weight: 600; }
.dg-prose .career-salary { font-weight: 800; color: var(--ok); white-space: nowrap; }
.dg-prose .card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-family: var(--sans); font-size: 1rem; }
.dg-prose .card-title { margin-top: 0 !important; }
.dg-prose .final-thoughts { border-top: 2px solid var(--ink); padding-top: 1.2em; margin-top: 2.4em; }
.dg-prose .source-link { font-family: var(--sans); font-size: .7em; vertical-align: super; text-decoration: none; margin-left: 2px; color: var(--blue-600); }
.dg-prose .applications-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dg-prose .application-card p + p { margin-top: .6em; }
@media (min-width: 700px) { .dg-prose .two-column { grid-template-columns: 1fr 1fr; } }

/* legal pages */
.dg-prose--legal { font-family: var(--sans); font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.dg-prose--legal h2 { font-family: var(--serif); font-size: 1.45rem; margin-top: 1.8em; }
.dg-prose--legal h3, .dg-prose--legal h4 { font-size: 1.05rem; margin-top: 1.4em; }
.dg-prose--legal > * + * { margin-top: .9em; }

/* reviews page */
.dg-reviews { columns: 2 360px; column-gap: 22px; }
.dg-reviews .dg-quote { break-inside: avoid; margin: 0 0 22px; width: 100%; }
