/* =====================================================
   Dr. Yousf Muhammad — Main stylesheet
   Editorial orthopedic theme · Red + Slate palette
   ===================================================== */

:root {
  --red: #9F1F26;
  --red-deep: #7A1218;
  --slate: #15192A;
  --slate-2: #2E3445;
  --ink-60: #535869;
  --ink-40: #8A8E9C;
  --line: #1A1F2E;
  --line-soft: #E5E2DC;
  --paper: #F5F1E9;
  --bone: #FBFAF4;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body { overflow-x: clip; }
img, video, iframe, table { max-width: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--slate);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Playfair Display", Georgia, serif; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400; vertical-align: middle; }
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow-line { display: inline-flex; align-items: center; gap: 16px; }
.eyebrow-line::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--red); }

/* ---- Masthead ---- */
header.masthead { border-bottom: 1px solid rgba(21,25,42,0.12); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.mast-row-1 { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 12px; color: var(--ink-60); letter-spacing: 0.04em; border-bottom: 1px solid rgba(21,25,42,0.08); }
.mast-row-1 .left { display: flex; gap: 24px; }
.mast-row-1 a { color: var(--slate-2); text-decoration: none; }
.mast-row-1 .lang-switch { display: inline-flex; gap: 6px; }
.mast-row-1 .lang-switch span { padding: 2px 6px; cursor: pointer; font-weight: 500; }
.mast-row-1 .lang-switch span.active { background: var(--slate); color: #fff; }
/* Polylang renders the switcher as <ul><li><a> — reset list bullets + style links */
.mast-row-1 .lang-switch ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 6px; }
.mast-row-1 .lang-switch li { list-style: none; margin: 0; }
.mast-row-1 .lang-switch a, .mast-row-1 .lang-switch li > * { text-decoration: none; color: var(--slate-2); padding: 2px 6px; text-transform: uppercase; display: inline-block; }
.mast-row-1 .lang-switch .current-lang > *, .mast-row-1 .lang-switch .current-lang a { background: var(--slate); color: #fff; }
.mast-row-2 { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; padding: 22px 0; }
.mast-brand { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 600; color: var(--slate); letter-spacing: -0.01em; line-height: 1; text-decoration: none; display: block; }
.mast-brand .small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; font-family: "Inter", sans-serif; display: block; margin-top: 6px; }
.mast-nav { display: flex; justify-content: center; gap: 26px; flex-wrap: nowrap; }
.mast-nav a { color: var(--slate-2); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.mast-nav a.active, .mast-nav a.current-menu-item, .mast-nav .current-menu-item > a { color: var(--red); }
.mast-cta { display: flex; gap: 12px; }
.mast-cta .btn { white-space: nowrap; }

/* Mobile menu (hamburger + drawer) */
.mast-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--slate); align-items: center; justify-content: center; }
.mast-burger .material-symbols-outlined { font-size: 30px; }
.mast-drawer { display: none; flex-direction: column; padding: 8px 32px 20px; border-top: 1px solid rgba(21,25,42,0.1); }
.mast-drawer a { padding: 14px 0; color: var(--slate-2); text-decoration: none; font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(21,25,42,0.07); }
.mast-drawer a.active { color: var(--red); }
.mast-drawer .drawer-call { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 600; border-bottom: 0; margin-top: 10px; }
body.nav-open .mast-drawer { display: flex; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 500; padding: 14px 22px; border: 1px solid transparent; cursor: pointer; transition: all .2s ease; letter-spacing: 0.02em; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-ghost:hover { background: var(--slate); color: #fff; }
.btn-tonal { background: var(--slate); color: #fff; }
.btn-tonal:hover { background: var(--red); }

/* ---- Hero ---- */
.hero { padding: 60px 0 0; }
.hero-num { font-family: "Playfair Display", serif; font-style: italic; font-size: 15px; color: var(--ink-40); letter-spacing: 0.02em; margin-bottom: 24px; }
h1.hero-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 108px; line-height: 0.98; letter-spacing: -0.03em; color: var(--slate); margin: 0; }
h1.hero-title .italic-red { color: var(--red); font-style: italic; font-weight: 500; }
h1.hero-title .ampersand { font-style: italic; font-weight: 400; }
.hero-bottom { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 60px; align-items: end; }
.hero-lede { font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.45; color: var(--slate-2); margin: 0; font-weight: 500; }
.hero-lede em { color: var(--red); font-style: italic; font-weight: 500; }
.hero-meta { display: flex; flex-direction: column; gap: 18px; }
.hero-meta .row { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-60); letter-spacing: 0.05em; }
.hero-meta .material-symbols-outlined { color: var(--red); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
.hero-img-bleed { margin-top: 80px; height: 440px; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0) 12px 24px), linear-gradient(180deg, #2A3245 0%, #15192A 100%); position: relative; overflow: hidden; }
.hero-img-bleed.has-image { background: none; }
.hero-img-bleed.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,25,42,0.2) 0%, rgba(21,25,42,0.55) 100%); pointer-events: none; }
.hero-img-bleed img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.hero-img-bleed .label { position: absolute; bottom: 32px; left: 56px; color: rgba(255,255,255,0.5); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; z-index: 2; }
.hero-img-bleed .caption-strip { position: absolute; top: 32px; right: 56px; left: 56px; display: flex; justify-content: space-between; align-items: flex-start; color: rgba(255,255,255,0.8); z-index: 2; }
.hero-img-bleed .caption-strip .name { font-family: "Playfair Display", serif; font-style: italic; font-size: 26px; font-weight: 500; }
.hero-img-bleed .caption-strip .desc { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 8px; }
.hero-img-bleed .credentials { text-align: right; font-size: 11.5px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); line-height: 1.8; text-transform: uppercase; }
.hero-img-bleed .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; z-index: 0; }
.hero-img-bleed .hero-scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(21,25,42,0.7) 0%, rgba(21,25,42,0.34) 26%, rgba(21,25,42,0) 50%); pointer-events: none; }
.hero-img-bleed .caption-strip, .hero-img-bleed .hero-quote { z-index: 2; }

/* hero sub-headline + quote card */
.hero-subhead { font-family: "Playfair Display", serif; font-style: italic; font-weight: 500; font-size: 52px; line-height: 1.04; color: var(--red); letter-spacing: -0.02em; margin: 16px 0 0; }
.hero-quote { position: absolute; right: 40px; bottom: 40px; max-width: 340px; background: rgba(21,25,42,0.62); border: 1px solid rgba(255,255,255,0.16); padding: 26px 30px 28px; backdrop-filter: blur(3px); }
.hero-quote .qmark { font-family: "Playfair Display", serif; font-size: 56px; line-height: 0.5; color: #FF8A8E; }
.hero-quote p { color: rgba(255,255,255,0.92); font-family: "Playfair Display", serif; font-style: italic; font-size: 19px; line-height: 1.42; margin: 6px 0 0; }
.hero-quote .qattr { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 16px; }
@media (max-width: 1000px) { .hero-subhead { font-size: 34px; } .hero-quote { position: static; max-width: none; margin-top: 0; } }

/* credentials strip */
.creds-strip { background: var(--slate); color: rgba(255,255,255,0.6); padding: 22px 0; overflow: hidden; }
.creds-row { display: flex; gap: 64px; justify-content: space-between; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; align-items: center; flex-wrap: nowrap; }
.creds-row span { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.creds-row .dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; }

/* ---- Section base ---- */
section.block { padding: 140px 0; }
.section-num { font-family: "Playfair Display", serif; font-style: italic; font-size: 14px; color: var(--red); margin-bottom: 10px; }
.section-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 84px; line-height: 0.98; letter-spacing: -0.025em; color: var(--slate); margin: 0; }
.section-title em { color: var(--red); font-style: italic; }

/* ---- Reviews ---- */
.reviews { background: var(--bone); border-top: 1px solid var(--line-soft); }
.reviews-grid { display: grid; grid-template-columns: 0.7fr 2fr; gap: 80px; align-items: start; }
.review-side .big-score { font-family: "Playfair Display", serif; font-size: 180px; line-height: 0.85; font-weight: 500; color: var(--slate); letter-spacing: -0.04em; margin-bottom: 16px; }
.review-side .big-score .slash { color: var(--ink-40); font-size: 80px; }
.review-side .label-line { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 8px; }
.review-side .total { font-family: "Playfair Display", serif; font-size: 20px; color: var(--slate-2); }
.review-side .stars { color: #B4884B; margin: 16px 0; font-size: 18px; }
.review-side .stars .material-symbols-outlined { font-variation-settings: 'FILL' 1; font-size: 22px; }
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item { display: grid; grid-template-columns: 60px 1fr 200px; gap: 40px; padding: 36px 0; border-top: 1px solid rgba(21,25,42,0.12); align-items: start; }
.review-item:last-child { border-bottom: 1px solid rgba(21,25,42,0.12); }
.review-item .idx { font-family: "Playfair Display", serif; font-style: italic; font-size: 16px; color: var(--ink-40); }
.review-item .body { font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.4; color: var(--slate); font-weight: 500; }
.review-item .author-block .name { font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.review-item .author-block .when { font-size: 11px; color: var(--ink-40); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.review-item .author-block .stars-mini { color: #B4884B; margin-top: 10px; font-size: 12px; }
.review-item .author-block .stars-mini .material-symbols-outlined { font-variation-settings: 'FILL' 1; font-size: 14px; }

/* ---- About ---- */
.bio { background: var(--paper); }
.bio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: start; }
.bio-text .pull { font-family: "Playfair Display", serif; font-style: italic; font-size: 42px; line-height: 1.2; color: var(--slate); margin: 0 0 48px; max-width: 620px; letter-spacing: -0.01em; }
.bio-text .pull em { color: var(--red); }
.bio-text p { font-size: 16.5px; color: var(--ink-60); line-height: 1.7; max-width: 540px; margin: 0 0 18px; }
.bio-side .portrait { aspect-ratio: 3/4; background: repeating-linear-gradient(135deg, rgba(21,25,42,0.05) 0 10px, rgba(21,25,42,0) 10px 20px), linear-gradient(180deg, #E9E5DC 0%, #D5CFC2 100%); margin-bottom: 24px; overflow: hidden; }
.bio-side .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-side .caption { display: flex; justify-content: space-between; align-items: flex-end; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); }
.bio-side .caption .sig { font-family: "Playfair Display", serif; font-style: italic; font-size: 28px; color: var(--slate); text-transform: none; letter-spacing: 0; }

/* ---- Specialties ---- */
.specs { background: var(--slate); color: #fff; }
.specs .section-title { color: #fff; }
.specs .section-title em { color: #FF8A8E; }
.specs .eyebrow { color: #FF8A8E; }
.specs-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: end; margin-bottom: 80px; }
.specs-head p { color: rgba(255,255,255,0.6); font-size: 16.5px; line-height: 1.6; max-width: 380px; margin: 0; justify-self: end; }
.specs-table { border-top: 1px solid rgba(255,255,255,0.15); }
.specs-row { display: grid; grid-template-columns: 80px 1.4fr 2fr 140px; gap: 40px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); align-items: baseline; transition: padding .25s ease; cursor: pointer; }
.specs-row:hover { padding-left: 16px; }
.specs-row:hover .specs-arrow { transform: translateX(8px); color: #fff; }
.specs-row .num { font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; color: #FF8A8E; }
.specs-row .name { font-family: "Playfair Display", serif; font-size: 38px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.specs-row .desc { color: rgba(255,255,255,0.62); font-size: 14.5px; line-height: 1.6; }
.specs-row .procs { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 8px; }
.specs-arrow { color: rgba(255,255,255,0.5); font-size: 28px; text-align: right; transition: all .25s ease; }

/* Conditions & Procedures — 10 cards */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.spec-card { display: flex; flex-direction: column; text-decoration: none; color: #fff; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.12); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.spec-card:hover { border-color: #FF8A8E; background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.spec-card-thumb { height: 248px; position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: #1B2030; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 10px, rgba(255,255,255,0) 10px 20px), linear-gradient(180deg, #2A3245 0%, #1B2030 100%); }
.spec-card-tag { position: absolute; top: 18px; left: 18px; background: var(--paper); color: var(--red); padding: 7px 12px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; z-index: 1; }
.spec-card-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.spec-card-body h3 { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; color: #fff; margin: 0 0 12px; }
.spec-card-body p { color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
.spec-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: #FF8A8E; }
.spec-card-link .material-symbols-outlined { font-size: 18px; transition: transform .2s ease; }
.spec-card:hover .spec-card-link .material-symbols-outlined { transform: translate(3px, -3px); }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---- Patient Education ---- */
.education { background: var(--bone); }
.edu-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.edu-feature { border: 1px solid var(--line-soft); background: var(--white); text-decoration: none; color: inherit; display: block; }
.edu-feature .media { height: 420px; background: repeating-linear-gradient(135deg, rgba(21,25,42,0.05) 0 10px, rgba(21,25,42,0) 10px 20px), linear-gradient(180deg, #E9E5DC 0%, #D5CFC2 100%); position: relative; overflow: hidden; }
.edu-feature .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-feature .play-big { position: absolute; bottom: 24px; left: 24px; width: 76px; height: 76px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.edu-feature .play-big .material-symbols-outlined { font-variation-settings: 'FILL' 1; font-size: 36px; }
.edu-feature .tag { position: absolute; top: 24px; left: 24px; background: var(--white); padding: 8px 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--red); z-index: 2; }
.edu-feature .body { padding: 40px 44px 44px; }
.edu-feature .meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-40); display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.edu-feature .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-40); }
.edu-feature h3 { font-family: "Playfair Display", serif; font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--slate); margin: 0 0 16px; }
.edu-feature p { font-size: 16px; color: var(--ink-60); line-height: 1.7; margin: 0 0 24px; }

.edu-list { display: flex; flex-direction: column; }
.edu-list-head { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-60); padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.edu-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: center; cursor: pointer; text-decoration: none; color: inherit; }
.edu-item:hover .edu-item-title { color: var(--red); }
.edu-item-thumb { height: 70px; background: repeating-linear-gradient(135deg, rgba(21,25,42,0.05) 0 8px, rgba(21,25,42,0) 8px 16px), linear-gradient(180deg, #E9E5DC 0%, #D5CFC2 100%); overflow: hidden; }
.edu-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-item-cat { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.edu-item-title { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--slate); transition: color .15s; }
.edu-item-meta { font-size: 11.5px; color: var(--ink-40); letter-spacing: 0.04em; }

/* ---- Languages ---- */
.langs { background: var(--paper); border-top: 1px solid rgba(21,25,42,0.08); }
.langs-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.langs h2.section-title { font-size: 64px; }
.lang-stack { display: flex; flex-direction: column; }
.lang-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 28px; padding: 28px 0; border-top: 1px solid rgba(21,25,42,0.12); align-items: center; }
.lang-row:last-child { border-bottom: 1px solid rgba(21,25,42,0.12); }
.lang-flag { width: 48px; height: 32px; background: #ccc; border: 1px solid rgba(21,25,42,0.1); }
.lang-row.de .lang-flag { background: linear-gradient(180deg, #000 33%, #DD0000 33% 66%, #FFCC00 66%); }
.lang-row.ar .lang-flag { background: linear-gradient(180deg, #CE1126 33%, #fff 33% 66%, #000 66%); }
.lang-row.en .lang-flag { background: #012169; position: relative; overflow: hidden; }
.lang-row.en .lang-flag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(-45deg, transparent 47%, #fff 47% 53%, transparent 53%); }
.lang-row.tr .lang-flag { background: #E30A17; }
.lang-name { font-family: "Playfair Display", serif; font-size: 32px; font-weight: 500; color: var(--slate); line-height: 1; letter-spacing: -0.01em; }
.lang-name .native { color: var(--ink-40); font-style: italic; font-size: 18px; margin-left: 12px; }
.lang-level { text-align: right; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); }
.lang-level .bar { display: inline-flex; gap: 4px; margin-left: 12px; vertical-align: middle; }
.lang-level .bar i { width: 8px; height: 8px; background: var(--ink-40); display: inline-block; }
.lang-level .bar i.full { background: var(--red); }

/* ---- Experience / CV / Timeline ---- */
.cv { background: var(--white); }
.cv-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 100px; align-items: start; }
.cv-side h2 { font-size: 64px; margin-bottom: 24px; }
.cv-side p { font-size: 15.5px; color: var(--ink-60); line-height: 1.7; max-width: 340px; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-year { font-family: "Playfair Display", serif; font-style: italic; font-size: 18px; color: var(--red); padding-top: 4px; }
.tl-title { font-family: "Playfair Display", serif; font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; color: var(--slate); margin-bottom: 6px; }
.tl-place { font-size: 13.5px; color: var(--ink-60); margin-bottom: 12px; letter-spacing: 0.02em; }
.tl-desc { font-size: 14.5px; color: var(--ink-60); line-height: 1.6; max-width: 540px; }

/* ---- Footer ---- */
footer.foot { background: var(--slate); color: rgba(255,255,255,0.6); padding: 100px 0 40px; position: relative; overflow: hidden; }
.foot-big { font-family: "Playfair Display", serif; font-size: 140px; font-weight: 500; line-height: 0.95; letter-spacing: -0.035em; color: #fff; margin: 0 0 80px; }
.foot-big em { color: var(--red); font-style: italic; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px; padding-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); }
.foot-grid h5 { color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin: 0 0 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: #fff; text-decoration: none; font-size: 14.5px; }
.foot-grid a:hover { color: #FF8A8E; }
.foot-block p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; max-width: 320px; margin: 12px 0 0; }
.foot-block .brand-line { font-family: "Playfair Display", serif; font-size: 22px; color: #fff; }
.foot-block .brand-sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 4px; }
.foot-bot { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

/* ---- Single news article ---- */
.single-news { background: var(--bone); padding: 120px 0; }
.single-news .single-inner { max-width: 760px; margin: 0 auto; }
.single-news .breadcrumb { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 24px; }
.single-news .breadcrumb a { color: var(--red); text-decoration: none; }
.single-news h1.post-title { font-family: "Playfair Display", serif; font-weight: 500; font-size: 64px; line-height: 1.05; letter-spacing: -0.025em; color: var(--slate); margin: 0 0 24px; }
.single-news .post-meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 56px; display: flex; gap: 18px; align-items: center; }
.single-news .post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-40); }
.single-news .post-thumb { margin: 0 -120px 56px; height: 480px; background: linear-gradient(180deg, #E9E5DC 0%, #D5CFC2 100%); overflow: hidden; }
.single-news .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-news .post-content { font-size: 18px; line-height: 1.75; color: var(--slate-2); }
.single-news .post-content h2 { font-family: "Playfair Display", serif; font-size: 36px; font-weight: 500; margin: 56px 0 16px; letter-spacing: -0.01em; color: var(--slate); }
.single-news .post-content h3 { font-family: "Playfair Display", serif; font-size: 26px; font-weight: 500; margin: 40px 0 12px; color: var(--slate); }
.single-news .post-content p { margin: 0 0 24px; }
.single-news .post-content a { color: var(--red); }
.single-news .post-content blockquote { border-left: 3px solid var(--red); padding: 8px 0 8px 24px; margin: 32px 0; font-family: "Playfair Display", serif; font-style: italic; font-size: 24px; line-height: 1.4; color: var(--slate); }
.single-news .post-content img, .single-news .post-content iframe, .single-news .post-content .wp-block-embed iframe { max-width: 100%; height: auto; display: block; margin: 32px 0; }
.single-news .post-content .wp-block-embed { margin: 32px 0; }
.single-news .post-content figure { margin: 32px 0; }
.single-news .post-content figcaption { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-60); margin-top: 8px; }

/* ---- News archive ---- */
.news-archive { padding: 120px 0; background: var(--bone); }
.news-archive-head { margin-bottom: 80px; }
.news-archive .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line-soft); }
.news-card .thumb { height: 240px; background: linear-gradient(180deg, #E9E5DC 0%, #D5CFC2 100%); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .body { padding: 28px 28px 32px; }
.news-card .cat { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.news-card h3 { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; color: var(--slate); margin: 0 0 12px; }
.news-card p { font-size: 14.5px; color: var(--ink-60); line-height: 1.6; margin: 0 0 16px; }
.news-card .meta { font-size: 11px; letter-spacing: 0.1em; color: var(--ink-40); text-transform: uppercase; }
.news-card:hover h3 { color: var(--red); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  h1.hero-title { font-size: 72px; }
  .section-title { font-size: 56px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { justify-self: start; justify-content: flex-start; }
  .reviews-grid, .bio-grid, .cv-grid, .langs-grid, .edu-layout, .specs-head { grid-template-columns: 1fr; gap: 40px; }
  .review-side .big-score { font-size: 120px; }
  .review-item { grid-template-columns: 40px 1fr; }
  .review-item .author-block { grid-column: 1 / -1; }
  .specs-row { grid-template-columns: 40px 1fr; }
  .specs-row .desc, .specs-arrow { grid-column: 1 / -1; }
  .news-archive .grid { grid-template-columns: 1fr; }
  .foot-big { font-size: 72px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mast-row-2 { grid-template-columns: 1fr auto; }
  .mast-nav { display: none; }
  .mast-cta { display: none; }
  .mast-burger { display: inline-flex; }
  .single-news .post-thumb { margin: 0 0 40px; height: 280px; }
}

/* ---- Tablet / large phone ---- */
@media (max-width: 760px) {
  section.block { padding: 76px 0; }
  .hero { padding: 40px 0 0; }
  h1.hero-title { font-size: 56px; }
  .hero-subhead { font-size: 30px; }
  .hero-num { font-size: 13px; }
  .hero-lede { font-size: 19px; }
  .section-title { font-size: 44px; }

  /* hero image card — caption pinned top, quote pinned bottom: no overlap */
  .hero-img-bleed { height: 480px; margin-top: 48px; }
  .hero-img-bleed .hero-scrim { background: linear-gradient(180deg, rgba(21,25,42,0.62) 0%, rgba(21,25,42,0.12) 40%, rgba(21,25,42,0.82) 100%); }
  .hero-img-bleed .caption-strip { top: 22px; left: 22px; right: 22px; flex-direction: column; gap: 12px; }
  .hero-img-bleed .caption-strip .name { font-size: 22px; }
  .hero-img-bleed .credentials { text-align: left; }
  .hero-img-bleed .hero-quote { position: absolute; left: 22px; right: 22px; bottom: 22px; max-width: none; margin: 0; padding: 20px 22px; }
  .hero-img-bleed .hero-quote p { font-size: 16.5px; }
  .hero-img-bleed .label { left: 22px; }

  .bio-text .pull { font-size: 30px; margin-bottom: 32px; }
  .specs-row .name { font-size: 28px; }
  .specs-head p { justify-self: start; }
  .langs h2.section-title, .cv-side h2 { font-size: 44px; }
  .lang-row { grid-template-columns: 44px 1fr; gap: 16px; }
  .lang-level { grid-column: 2 / -1; text-align: left; margin-top: 6px; }
  .lang-name { font-size: 26px; }
  .edu-feature .body { padding: 28px 26px 30px; }
  .edu-feature h3 { font-size: 30px; }
  .edu-feature .media { height: 300px; }
  .edu-item { grid-template-columns: 72px 1fr; }
  .edu-item-meta { display: none; }
  .single-news h1.post-title { font-size: 44px; }
  .single-news .post-content { font-size: 17px; }
}

/* ---- Small phone ---- */
@media (max-width: 480px) {
  .container { padding: 0 22px; }
  .mast-brand { font-size: 24px; }
  .mast-row-1 { font-size: 11px; }
  .mast-row-1 .left span:first-child { display: none; }
  h1.hero-title { font-size: 44px; }
  .hero-subhead { font-size: 25px; }
  .hero-lede { font-size: 18px; }
  .section-title { font-size: 36px; }
  .section-num { font-size: 13px; }
  .creds-row { flex-wrap: wrap; gap: 14px 22px; }
  .review-side .big-score { font-size: 96px; }
  .review-item .body { font-size: 19px; }
  .bio-text .pull { font-size: 26px; }
  .specs-row .name { font-size: 24px; }
  .specs-row .procs { display: none; }
  .foot-big { font-size: 46px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; gap: 12px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-img-bleed { height: 440px; }
}
