/* ================================================================
   LF3 ALUMNI — CLEAN REPLACEMENT STYLESHEET
   21 November 2026
   Covers navigation, homepage, directory, profiles, dashboard,
   Join the Network, About Us and responsive layouts.
   Keep mobile-responsive.css disabled if it contains older overrides.
   ================================================================ */

:root {
  --navy: #193b52;
  --navy2: #294f65;
  --sea: #237a8b;
  --paper: #fbfaf7;
  --ink: #233949;
  --muted: #6e808a;
  --line: #e4e9e9;
  --white: #fff;
  --peach: #f5e5d6;
  --sage: #e9f1f0;
  --shadow: 0 14px 40px rgba(36,60,72,.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.55 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
:focus-visible { outline: 3px solid #ba8768; outline-offset: 3px; }
a, button { transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s, color .2s; }
.shell { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 36px; }

/* ======================= HEADER ======================= */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e9ebea;
  box-shadow: 0 2px 20px rgba(49,81,101,.03);
  backdrop-filter: blur(15px);
}
.nav { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #284b62; font: 800 21px Manrope, sans-serif;
  letter-spacing: -.8px; white-space: nowrap; flex-shrink: 0;
}
.brand b { color: #328694; }
.brandmark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--navy); color: #fff; font-size: 24px;
}
.site-logo, .brand-logo {
  display: block; width: 38px; height: 38px; object-fit: contain;
  flex-shrink: 0; background: transparent; border: 0; box-shadow: none;
}
.navlinks {
  display: flex; align-items: center; gap: 25px;
  margin-left: auto; font-size: 12px; font-weight: 700; color: #778995;
}
.navlinks a { display: inline-flex; align-items: center; padding: 29px 0; white-space: nowrap; }
.navlinks a.active { color: #315e76; box-shadow: inset 0 -3px #e2ad85; }
.navlinks a:hover { color: #315e76; }
.navbutton, .primary {
  display: inline-block; padding: 12px 18px;
  border: 1px solid #315e79; border-radius: 8px;
  background: #315e79; color: #fff;
  font-size: 12px; font-weight: 800; text-align: center;
}
.navbutton { white-space: nowrap; flex-shrink: 0; }
.navbutton:hover, .request:hover, .button-sm.good:hover {
  background: #224a65; border-color: #224a65;
}
.primary { background: #fff7e8; border-color: #fff7e8; color: #1d4355; }
.primary.dark { background: #1b566e; border-color: #1b566e; color: #fff; }
.outline, .secondary-btn, .button-sm {
  display: inline-block; padding: 12px 17px;
  border: 1px solid #cddddd; border-radius: 8px;
  background: #fff; color: #2a5160;
  font-size: 12px; font-weight: 800;
}
.outline:hover, .secondary-btn:hover, .button-sm:hover {
  border-color: #769ba9; box-shadow: 0 7px 20px rgba(49,86,107,.08);
}
.ghost {
  display: inline-block; padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 8px;
  background: transparent; color: inherit; font-size: 12px; font-weight: 800;
}
.lf3-language-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; flex-shrink: 0; padding: 9px 13px;
  border: 1px solid #d8e2e6; border-radius: 9px;
  background: #fff; color: #294b65;
  font: 700 12px 'DM Sans',sans-serif; white-space: nowrap;
}
.lf3-language-button:hover { background: #f3f7f7; border-color: #9aafbb; }
.lf3-language-button img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.eyebrow { color: var(--sea); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }

/* ======================= HOME ======================= */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 535px; overflow: hidden; color: #fff;
  background: linear-gradient(90deg,#16364edc,#16364e90), linear-gradient(135deg,#536d79,#b9af91);
  background-size: cover; background-position: center 43%;
}
.hero::before, .country-hero::before { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: 850px; padding-block: 100px; text-align: center; }
.hero .eyebrow { color: #f8e7ce; letter-spacing: 2.7px; }
.hero h1 {
  margin: 21px 0 17px; color: #fff;
  font: 800 clamp(39px,5.6vw,67px)/1.12 Manrope,sans-serif;
  letter-spacing: -2.8px;
}
.hero p { max-width: 680px; margin: 0 auto 25px; color: #f0f4f5; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.hero .primary { background: #fff5e8; border-color: #fff5e8; color: #254961; }
.hero .primary:hover { background: #fff; }
.hero .ghost:hover { background: rgba(255,255,255,.14); }
.searchhero {
  display: flex; align-items: center; gap: 10px; width: min(550px,100%);
  margin: 0 auto 18px; padding: 10px 11px 10px 20px;
  background: #fff; color: #73808b; border-radius: 13px;
  box-shadow: 0 12px 36px rgba(22,46,59,.2);
}
.searchhero input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.searchhero .button-sm { background: #315e79; border-color: #315e79; color: #fff; padding: 11px 19px; }
.section { padding: 86px 0; }
.section.soft { background: #f0f5f4; }
.heading { margin: 0 auto 37px; text-align: center; }
.heading .eyebrow { color: #9a7664; letter-spacing: 2.4px; }
.heading h2 {
  margin: 12px 0; color: var(--navy);
  font: 800 clamp(27px,3.2vw,39px) Manrope,sans-serif; letter-spacing: -1.4px;
}
.heading p { max-width: 620px; margin: 6px auto; color: #758692; line-height: 1.75; }
.country-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.country-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 192px; padding: 27px 15px 24px;
  background: #fff; border: 1px solid #e4e9e7; border-radius: 15px;
  box-shadow: 0 7px 25px rgba(47,83,103,.035);
}
.country-card:hover { transform: translateY(-5px); border-color: #cbdad9; box-shadow: 0 18px 35px rgba(49,82,105,.09); }
.country-card img { filter: drop-shadow(0 3px 8px rgba(34,59,72,.08)); }
.flag { display: block; margin-bottom: 10px; font-size: 39px; }
.country-name, .country-card .country-name {
  margin-top: 14px; color: #31546c; font: 800 16px Manrope,sans-serif; text-align: center;
}
.country-number { margin-top: 5px; color: #94a1a8; font-size: 11px; }
.country-arrow { margin-top: 13px; color: #a77c5e; font-size: 12px; font-weight: 800; }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 28px; }
.feature { padding: 31px; background: #fff; border: 1px solid #e2eae8; border-radius: 16px; box-shadow: 0 10px 28px rgba(49,82,102,.035); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; background: #e9f2f1; border-radius: 14px; font-size: 25px; }
.feature h3 { margin-top: 22px; color: #25485a; font-size: 16px; }
.feature p { color: #73838d; font-size: 13px; line-height: 1.85; }

/* ======================= COUNTRY DIRECTORY ======================= */
.country-hero {
  position: relative; display: flex; align-items: center; min-height: 355px; color: #fff;
  background: linear-gradient(110deg,#35566bcf,#46677980), linear-gradient(130deg,var(--c1,#456e84),var(--c2,#d5b69b));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.country-hero .shell { width: 100%; max-width: 1460px; padding-block: 65px; }
.country-hero h1 { margin: 13px 0 6px; color: #fff; font: 800 clamp(38px,5vw,61px) Manrope,sans-serif; letter-spacing: -2px; }
.country-hero p { max-width: 640px; margin: 0; color: #eaf0f3; font-size: 14px; line-height: 1.7; }
.country-hero .flag { display: inline; margin: 0 9px 0 0; font-size: 32px; }
.crumb { display: inline-block; margin-bottom: 13px; color: #f6fbf9e0; font-size: 12px; font-weight: 700; }
.country-hero + .section { padding: 0 0 72px; }
.country-hero + .section > .shell { max-width: 1460px; }
.country-hero + .section .heading { display: none; }
.filterbar {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0,1fr) repeat(3,minmax(135px,180px));
  gap: 12px; margin: -24px 0 20px; padding: 12px;
  background: rgba(255,255,255,.98); border: 1px solid #edf0ee;
  border-radius: 18px; box-shadow: 0 9px 28px rgba(35,55,70,.08);
}
.search {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 50px; padding: 0 16px;
  background: #fff; border: 1px solid #e0e3e8; border-radius: 999px;
  color: #7b8794;
}
.search input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #203f50; font-size: 13px; }
.search input::placeholder { color: #98a0aa; }
.filter {
  width: 100%; min-width: 0; min-height: 50px; padding: 0 13px;
  border: 1px solid #e0e3e8; border-radius: 999px;
  background: #fff; color: #17294b; font-size: 13px;
}

/* Two-column horizontal doctor cards: scoped to directory only. */
#profileGrid.profiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; align-items: stretch; margin-top: 16px; }
#profileGrid .lf3-directory-card {
  display: grid; grid-template-columns: clamp(118px,11vw,160px) minmax(0,1fr) 23px;
  align-items: start; gap: clamp(13px,1.6vw,26px);
  min-width: 0; min-height: 186px; padding: 10px 14px 10px 10px;
  background: #fff; border: 1px solid #e7e9ee; border-radius: 15px;
  box-shadow: 0 3px 15px rgba(25,48,75,.045); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
#profileGrid .lf3-directory-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,48,75,.09); }
#profileGrid .lf3-directory-image { display: block; width: 100%; height: 166px; overflow: hidden; background: #e8eef1; border-radius: 10px; }
#profileGrid .lf3-directory-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
#profileGrid .lf3-directory-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #e5edf0; color: #294b65; font: 800 28px Manrope,sans-serif; }
#profileGrid .lf3-directory-info { min-width: 0; padding-top: 4px; }
#profileGrid .lf3-directory-info h3 { margin: 0 0 6px; color: #101f43; font: 800 clamp(17px,1.45vw,22px)/1.16 Manrope,sans-serif; letter-spacing: -.5px; }
#profileGrid .lf3-directory-specialty { display: inline-block; max-width: 100%; padding: 4px 12px; background: #dcefeb; border-radius: 999px; color: #17233d; font: 500 clamp(11px,.95vw,14px)/1.3 'DM Sans',sans-serif; overflow-wrap: anywhere; }
#profileGrid .tone-coral { background: #e99da4; }
#profileGrid .tone-blue { background: #a9c9fa; }
#profileGrid .tone-green { background: #bce6ce; }
#profileGrid .tone-purple { background: #ddc7f5; }
#profileGrid .tone-pink { background: #f4b4d7; }
#profileGrid .tone-yellow { background: #ffe5a0; }
#profileGrid .tone-teal { background: #dcefeb; }
#profileGrid .lf3-directory-hospital { margin-top: 7px; color: #101f43; font: 600 clamp(12px,1.03vw,16px)/1.35 'DM Sans',sans-serif; overflow-wrap: anywhere; }
#profileGrid .lf3-directory-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 8px 0 0; color: #73788b; font: 400 clamp(11px,.9vw,14px)/1.44 'DM Sans',sans-serif; }
#profileGrid .lf3-directory-arrow { align-self: center; justify-self: center; color: #344967; font: 300 30px/1 'DM Sans',sans-serif; }
#profileGrid .lf3-directory-arrow:hover { transform: translateX(3px); }

/* Legacy cards outside #profileGrid: preserve other views. */
.profiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.doctor-card { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e4e9e9; border-radius: 15px; box-shadow: 0 6px 20px rgba(25,48,75,.04); }
.doctor-card h3 { margin: 8px 0; color: var(--navy); }
.doctor-card .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 50%; background: #edf4f2; color: #3a7080; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #e6f1ee; color: #2d6071; font-size: 11px; font-weight: 700; }
.meta { color: #748691; font-size: 12px; }

/* ======================= FULL PROFILE ======================= */
.inner-page { min-height: 60vh; padding: 82px 0; }
.inner-page.narrow .shell { max-width: 860px; }
.inner-page h1 { color: #24495e; font: 800 clamp(32px,5vw,45px) Manrope,sans-serif; letter-spacing: -1.7px; }
.inner-page p { color: #607885; line-height: 1.9; }
.backlink { display: inline-block; margin: 0 0 24px; color: #397c8d; font-size: 12px; font-weight: 800; }
.profile-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.profile-panel, .panel { margin-bottom: 16px; padding: 34px; background: #fff; border: 1px solid #e2e9e7; border-radius: 17px; box-shadow: 0 10px 28px rgba(46,76,89,.03); }
.profile-panel h2, .panel h3 { color: #24495e; font: 800 19px Manrope,sans-serif; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 23px; padding-bottom: 22px; border-bottom: 1px solid #edf0ef; }
.profile-head .avatar { flex: 0 0 100px; width: 100px; height: 100px; font: 800 26px Manrope,sans-serif; }
.profile-head h1 { margin: 0 0 4px; font-size: 31px; }
.profile-panel .tag { margin-top: 15px; }
.details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
.details > div { padding: 19px; background: #f3f7f6; border: 1px solid #e9efed; border-radius: 12px; color: #6c8188; font-size: 12px; }
.details strong { display: block; margin-top: 6px; color: #2d5061; }
.profile-panel .buttonrow { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.request { padding: 11px 13px; background: #315e79; border: 1px solid #315e79; border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; }
.secondary-btn { padding: 11px 13px; font-size: 11px; }
.status { margin-left: auto; color: #68837f; font-size: 11px; align-self: center; }
.empty { grid-column: 1/-1; padding: 45px; background: #fff; border: 1px dashed #cfdddd; border-radius: 11px; color: #7b8c94; text-align: center; line-height: 1.8; }
.empty .outline { margin-top: 12px; }

/* ======================= CTA + FOOTER ======================= */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 55px; padding: 39px 43px; background: linear-gradient(105deg,#dfeef0,#f5e7d8); border: 1px solid #dfebea; border-radius: 18px; }
.cta h3 { margin: 0 0 7px; color: #24485b; font: 800 23px Manrope,sans-serif; letter-spacing: -.7px; }
.cta p { margin: 0; color: #6e858f; font-size: 13px; line-height: 1.75; }
.footer { padding: 32px 0; background: #fff; border-top: 1px solid #e4e9e9; color: #8a9ba2; font-size: 11px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.foot > div { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; }
.foot strong { color: #385866; }

/* ======================= MODAL / FORMS / DASHBOARD ======================= */
.shade { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 15px; background: rgba(19,46,62,.74); }
.shade.open { display: flex; }
.modal { position: relative; width: min(100%,520px); max-height: 90vh; overflow: auto; padding: 30px; background: #fff; border-radius: 17px; }
.close { position: absolute; top: 14px; right: 18px; width: 35px; height: 35px; background: #edf3f2; border: 0; border-radius: 50%; font-size: 21px; }
.modal h2 { margin: 10px 35px 5px 0; color: #284a5c; font: 800 24px Manrope,sans-serif; letter-spacing: -.8px; }
.modal p, .small { color: #768892; font-size: 12px; line-height: 1.75; }
.stack { display: grid; gap: 12px; margin-top: 16px; }
.formline { display: grid; gap: 7px; }
.formline label, .stack > label { color: #486574; font-size: 12px; font-weight: 800; }
.formline input, .formline textarea, .formline select { width: 100%; padding: 13px; background: #fff; border: 1px solid #d8e3e1; border-radius: 10px; color: #24485a; outline-color: #4a96a1; }
.formline textarea { min-height: 100px; resize: vertical; }
.stack > button[type=submit] { margin: 8px 0; }
.inline-msg { margin: 10px 0; padding: 12px; background: #eaf6ee; border-radius: 8px; color: #27614f; font-size: 12px; line-height: 1.65; }
.inline-msg.error { background: #fff1ed; color: #964a3d; }
.button-sm { padding: 9px 13px; }
.button-sm.good { background: #315e79; border-color: #315e79; color: #fff; }
.request-card { margin: 12px 0; padding: 18px; background: #fcfdfc; border: 1px solid #e3e9e8; border-radius: 12px; }
.request-card p { white-space: pre-wrap; }
.status-pill { padding: 4px 8px; background: #e5f2ee; border-radius: 20px; color: #417a73; font-size: 10px; font-weight: 800; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice { margin: 20px 0; padding: 15px; background: #fff8e7; border: 1px solid #f4e8d0; border-radius: 10px; color: #6e7776; font-size: 12px; line-height: 1.75; }
.dashgrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.dashgrid > .panel { align-self: start; margin: 0; }
.panel h3 { margin-top: 0; font-size: 19px; }
.full { grid-column: 1/-1; }

/* ======================= ABOUT + JOIN — SHARED ======================= */
.lf3-editorial { --lf3-navy: #183e57; --lf3-ink: #243f50; --lf3-muted: #607481; color: var(--lf3-ink); }
.lf3-editorial .lf3-hero { overflow: hidden; padding: 62px 0 0; background: linear-gradient(135deg,#edf3f2 0%,#f8f7f2 75%,#f8e9db 100%); }
.lf3-editorial .lf3-eyebrow { margin-bottom: 14px; color: #a17b65; font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.lf3-editorial .lf3-heading { max-width: 850px; margin: 0 auto; text-align: center; }
.lf3-editorial .lf3-heading h1 { margin: 0 0 18px; color: var(--lf3-navy); font-size: clamp(33px,4.8vw,58px); font-weight: 800; line-height: 1.13; letter-spacing: -.05em; }
.lf3-editorial .lf3-heading p { max-width: 650px; margin: 0 auto; color: #526b7b; font-size: clamp(15px,1.65vw,18px); line-height: 1.75; }

/* ABOUT US IMAGE: full-width banner, shorter, no stretching.
   Crop priority is toward the TOP to keep the standing row's heads visible.
   A short, edge-to-edge banner cannot display every pixel of a tall photo;
   change object-position if a particular face is near the crop boundary. */
.lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-art,
.lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-about-new-image img {
  display: block;
  position: relative; left: 50%; transform: translateX(-50%);
  width: 100vw; max-width: none;
  height: clamp(310px,37vw,465px);
  max-height: none;
  margin: 35px 0 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: none;
}
/* When an About image wrapper is present, allow the photo to span the viewport. */
.lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-about-new-image {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 100vw; max-width: none; margin: 35px 0 0;
  overflow: hidden; background: #faf7f2;
}
.lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-about-new-image img { margin: 0; }
/* Remove older masking that faded/cut off people's faces. */
.lf3-editorial .lf3-about-new-image img { -webkit-mask-image: none; mask-image: none; }

/* About Us body: centered intro + three actual cards, not a vertical list. */
.lf3-editorial .lf3-body { padding: 75px 0 90px; background: #faf7f2; }
.lf3-editorial .lf3-body > .shell { width: 100%; max-width: 1150px; margin-inline: auto; }
.lf3-editorial .lf3-lead { max-width: 850px; margin: 0 auto 46px; text-align: center; }
.lf3-editorial .lf3-lead h2 { margin: 0 0 17px; color: var(--lf3-navy); font-size: clamp(24px,3vw,35px); line-height: 1.25; }
.lf3-editorial .lf3-lead p { margin: 0 0 19px; color: #526575; font-size: 16px; line-height: 1.9; }
.lf3-editorial .lf3-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 22px; margin: 0 auto 40px; }
.lf3-editorial .lf3-tile { min-width: 0; height: 100%; padding: 30px 27px; background: #fff; border: 1px solid #e9e5df; border-radius: 16px; box-shadow: 0 8px 26px rgba(38,67,84,.035); }
.lf3-editorial .lf3-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; background: #f7e9dc; border-radius: 12px; color: #bd7650; font-size: 24px; }
.lf3-editorial .lf3-tile h3 { margin: 0 0 11px; color: #294b65; font-size: 18px; }
.lf3-editorial .lf3-tile p { margin: 0; color: #687783; font-size: 14px; line-height: 1.8; }
.lf3-editorial .lf3-note { max-width: 850px; margin: 24px auto 0; padding: 16px 20px; background: #fbf7f1; border-left: 3px solid #dbad8a; border-radius: 8px; color: #647783; font-size: 13px; line-height: 1.7; }

/* JOIN THE NETWORK: 54% text, 42% image, no overlap. */
.lf3-editorial .lf3-join-hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: 510px; padding: 70px 0; overflow: hidden; background: #faf7f2;
}
.lf3-editorial .lf3-join-hero::before {
  content: ''; position: absolute; z-index: 0;
  top: 0; right: 0; bottom: 0; width: 42%;
  background: url('./join-network.png') center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right,transparent 0%,#000 13%);
  mask-image: linear-gradient(to right,transparent 0%,#000 13%);
}
.lf3-editorial .lf3-join-hero > .shell { position: relative; z-index: 1; width: 100%; max-width: 1450px; margin-inline: auto; padding-inline: 5%; }
.lf3-editorial .lf3-join-hero .lf3-heading { width: 52%; max-width: 610px; margin: 0; text-align: left; }
.lf3-editorial .lf3-join-hero h1 { color: #294b65; font-size: clamp(42px,4.7vw,69px); line-height: 1.12; }
.lf3-editorial .lf3-join-hero .lf3-heading p { margin: 0; font-size: 16px; line-height: 1.85; }
.lf3-editorial .lf3-join-mobile-art { display: none; }
.lf3-editorial .lf3-join-hero + .lf3-body { padding-top: 65px; }
.lf3-editorial .lf3-join-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; max-width: 910px; margin: 26px auto 46px; }
.lf3-editorial .lf3-role { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 30px; background: #fff; border: 1px solid #dfe8ec; border-radius: 17px; box-shadow: 0 12px 30px rgba(44,79,101,.045); }
.lf3-editorial .lf3-role:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(44,79,101,.09); }
.lf3-editorial .lf3-role .lf3-symbol { margin-bottom: 3px; }
.lf3-editorial .lf3-role:last-child .lf3-symbol { background: #f9e9dd; color: #bf7158; }
.lf3-editorial .lf3-role h3 { margin: 0; color: var(--lf3-navy); font-size: 21px; }
.lf3-editorial .lf3-role p { flex: 1; margin: 0 0 17px; color: var(--lf3-muted); font-size: 14px; line-height: 1.7; }
.lf3-editorial .lf3-role button { width: 100%; margin-top: 8px; padding: 13px 22px; background: #315e79; border: 0; border-radius: 9px; color: #fff; font-weight: 700; }
.lf3-editorial .lf3-role button:hover { background: #236d89; }
.lf3-editorial .lf3-steps { max-width: 930px; margin: auto; padding: 38px; background: #f2f6f5; border: 1px solid #e3edeb; border-radius: 19px; }
.lf3-editorial .lf3-steps h2 { margin: 0 0 24px; color: var(--lf3-navy); font-size: 23px; text-align: center; }
.lf3-editorial .lf3-step-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.lf3-editorial .lf3-step { text-align: center; color: var(--lf3-navy); }
.lf3-editorial .lf3-step span { display: grid; place-items: center; width: 53px; height: 53px; margin: 0 auto 10px; background: #fff; border: 1px solid #dfebeb; border-radius: 50%; color: #547f90; font-size: 22px; }
.lf3-editorial .lf3-step strong { display: block; font-size: 15px; }
.lf3-editorial .lf3-step small { display: block; margin: 5px auto 0; color: var(--lf3-muted); font-size: 12px; line-height: 1.4; }
.lf3-editorial .lf3-step-arrow { color: #8baeba; font-size: 25px; }
.lf3-editorial .lf3-bottom-link { margin-top: 22px; padding-top: 7px; color: var(--lf3-muted); font-size: 14px; text-align: center; }
.lf3-editorial .lf3-bottom-link button { border: 0; background: none; color: #185a79; font: inherit; text-decoration: underline; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1150px) {
  .navlinks { gap: 15px; }
  .country-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #profileGrid .lf3-directory-card { grid-template-columns: 115px minmax(0,1fr) 16px; gap: 12px; min-height: 155px; }
  #profileGrid .lf3-directory-image { height: 138px; }
  #profileGrid .lf3-directory-bio { -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (max-width: 900px) {
  #profileGrid.profiles { grid-template-columns: 1fr; }
  #profileGrid .lf3-directory-card { grid-template-columns: 140px minmax(0,1fr) 20px; min-height: 165px; gap: 18px; }
  #profileGrid .lf3-directory-image { height: 145px; }
  .filterbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filterbar .search { grid-column: 1/-1; }
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .shell { padding-inline: 24px; }
  .navlinks { gap: 11px; }
  .brand { font-size: 18px; }
  .lf3-editorial .lf3-grid { grid-template-columns: 1fr; gap: 15px; max-width: 620px; }
  .lf3-editorial .lf3-join-hero h1 { font-size: clamp(37px,5vw,52px); }
}
@media (max-width: 700px) {
  .shell { padding-inline: 19px; }
  .nav { min-height: 66px; gap: 10px; }
  .navlinks { display: none; }
  .brand { font-size: 17px; }
  .site-logo, .brand-logo { width: 32px; height: 32px; }
  .navbutton { margin-left: auto; padding: 10px; font-size: 10px; }
  .lf3-language-button { padding: 7px 9px; font-size: 11px; }
  .hero { min-height: 460px; }
  .hero-inner { padding-block: 70px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.6px; }
  .hero p { font-size: 13px; }
  .section { padding: 58px 0; }
  .country-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .country-card { min-height: 165px; padding: 19px 10px; }
  .country-card img { max-width: 74px; }
  .features, .dashgrid, .profiles { grid-template-columns: 1fr; }
  .country-hero { min-height: 255px; }
  .country-hero .shell { padding-block: 43px; }
  .country-hero h1 { font-size: clamp(35px,9vw,52px); }
  .filterbar { grid-template-columns: 1fr; gap: 9px; margin-top: -16px; }
  .filterbar .search { grid-column: auto; }
  .profile-panel, .panel { padding: 24px; }
  .profile-head { flex-wrap: wrap; }
  .details { grid-template-columns: 1fr; }
  .cta { display: block; padding: 26px; margin-top: 32px; }
  .cta .navbutton { display: inline-block; margin: 18px 0 0; }
  .foot { align-items: flex-start; flex-direction: column; }
  .inner-page { padding: 42px 0; }

  /* Editorial mobile: clean flow and uncropped group portrait. */
  .lf3-editorial .lf3-hero { padding-top: 42px; }
  .lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-art,
  .lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-about-new-image img {
    height: auto; max-height: none; object-fit: contain; object-position: center;
    margin-top: 25px;
  }
  .lf3-editorial .lf3-hero:not(.lf3-join-hero) .lf3-about-new-image img { margin-top: 0; }
  .lf3-editorial .lf3-body { padding: 48px 0 60px; }
  .lf3-editorial .lf3-lead { margin-bottom: 30px; text-align: left; }
  .lf3-editorial .lf3-lead p { font-size: 15px; line-height: 1.85; }
  .lf3-editorial .lf3-tile, .lf3-editorial .lf3-role { padding: 22px; }
  .lf3-editorial .lf3-join-grid { grid-template-columns: 1fr; gap: 15px; }
  .lf3-editorial .lf3-steps { padding: 24px 10px; }
  .lf3-editorial .lf3-step-row { gap: 4px; }
  .lf3-editorial .lf3-step-arrow { font-size: 16px; }
  .lf3-editorial .lf3-step small { font-size: 11px; }
  .lf3-editorial .lf3-join-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 35px 0 15px; }
  .lf3-editorial .lf3-join-hero::before { display: none; }
  .lf3-editorial .lf3-join-hero > .shell { padding-inline: 22px; }
  .lf3-editorial .lf3-join-hero .lf3-heading { width: 100%; max-width: none; margin: 0; text-align: left; }
  .lf3-editorial .lf3-join-hero h1 { font-size: clamp(33px,8vw,44px); }
  .lf3-editorial .lf3-join-hero .lf3-heading p { font-size: 15px; }
  .lf3-editorial .lf3-join-hero .lf3-join-mobile-art { display: block; position: static; width: 100%; height: 235px; margin: 10px 0 0; object-fit: contain; }
  .lf3-editorial .lf3-join-hero + .lf3-body { padding-top: 28px; }
}
@media (max-width: 600px) {
  #profileGrid.profiles { grid-template-columns: 1fr; gap: 12px; }
  #profileGrid .lf3-directory-card { grid-template-columns: 100px minmax(0,1fr) 12px; gap: 11px; min-height: 143px; padding: 9px; }
  #profileGrid .lf3-directory-image { height: 125px; }
  #profileGrid .lf3-directory-info h3 { font-size: 16px; }
  #profileGrid .lf3-directory-specialty { padding: 3px 8px; font-size: 11px; }
  #profileGrid .lf3-directory-hospital { font-size: 12px; }
  #profileGrid .lf3-directory-bio { font-size: 11px; -webkit-line-clamp: 2; line-clamp: 2; }
  #profileGrid .lf3-directory-arrow { font-size: 23px; }
}
@media (max-width: 520px) {
  .country-hero h1 { font-size: 37px; }
  .country-hero .flag { font-size: 27px; }
  .searchhero { padding-left: 11px; }
  .searchhero .button-sm { padding: 9px 11px; }
  .hero h1 { font-size: 35px; }
  .profile-head h1 { font-size: 25px; }
  .modal { padding: 23px; }
}
@media (max-width: 380px) {
  #profileGrid .lf3-directory-card { grid-template-columns: 82px minmax(0,1fr) 12px; gap: 9px; }
  #profileGrid .lf3-directory-image { height: 112px; }
  .brand { font-size: 15px; }
  .lf3-language-button { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
