:root {
  --bg: #f4f6f2;
  --paper: #ffffff;
  --ink: #102030;
  --muted: #64707d;
  --line: #d9dfd4;
  --gold: #bd8735;
  --teal: #16706f;
  --sage: #dce7dc;
  --coral: #c9614a;
  --navy: #122033;
  --navy-2: #0d1624;
  --blue: #2d6076;
  --shadow: 0 20px 58px rgba(16, 32, 48, 0.12);
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(13, 22, 36, 0.94);
  border-bottom: 1px solid rgba(244, 201, 128, 0.22);
  color: #f4c980;
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #f4c980;
  color: var(--navy-2);
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { color: rgba(244, 201, 128, 0.72); font-size: 0.78rem; }
nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(244, 201, 128, 0.66);
  font-size: 0.9rem;
  white-space: nowrap;
}
nav a {
  position: relative;
  padding-block: 8px;
  transition: color 180ms ease;
}
nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #f4c980;
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}
nav a:hover,
nav a.is-active {
  color: #f4c980;
}
nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.button, .lang-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
    .button.primary,
    .button.secondary,
    .button.ghost {
        position: relative;
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45), 0 0 12px rgba(212, 175, 55, 0.35), 0 0 26px rgba(212, 175, 55, 0.18);
        transition: all 0.3s ease;
    }

        .button.primary:hover,
        .button.secondary:hover,
        .button.ghost:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.75), 0 0 16px rgba(255, 215, 0, 0.6), 0 0 34px rgba(255, 215, 0, 0.4), 0 8px 22px rgba(0, 0, 0, 0.28);
        }
.site-header .lang-toggle {
  background: rgba(244, 201, 128, 0.08);
  border-color: rgba(244, 201, 128, 0.34);
  color: #f4c980;
}
.site-header .lang-toggle:hover {
  background: rgba(244, 201, 128, 0.16);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.15fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 72px) 26px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 10% -12% auto auto;
  width: 42vw;
  height: 42vw;
  background:
    radial-gradient(circle, rgba(22, 112, 111, 0.2), transparent 58%),
    radial-gradient(circle at 70% 70%, rgba(201, 97, 74, 0.12), transparent 52%);
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}
.overline {
  margin: 0 0 18px;
  color: #8a672f;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
html[dir="rtl"] .overline { text-transform: none; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.2vw, 5.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.9vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}
h3 { margin-bottom: 8px; font-size: 1.32rem; line-height: 1.25; }
.hero-lede {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}
.hero-actions, .footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #d9d7cf;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.metrics,
.profile-section,
.expertise-band,
.experience-section,
.achievements,
.media-section,
.testimonials,
.companies-section,
.credentials,
.site-footer {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 72px);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: clamp(22px, 4vw, 38px);
}
.metrics article {
  min-height: 132px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.metrics strong {
  display: block;
  color: var(--navy);
  font-size: clamp(2.8rem, 5.2vw, 5.4rem);
  line-height: 0.95;
}
.metrics strong::after { content: "+"; }
.metrics article:nth-child(2) strong::before { content: ""; }
.metrics article:nth-child(2) strong::after { content: "M+"; }
.metrics article:nth-child(3) strong::after { content: "%+"; }
.metrics article:nth-child(4) strong::after { content: ""; }
.metrics span { color: var(--muted); font-weight: 800; }

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(34px, 6vw, 92px);
  background:
    linear-gradient(120deg, rgba(22,112,111,0.08), transparent 38%),
    var(--paper);
}
.profile-text p, .section-heading p { color: var(--muted); font-size: 1.08rem; }
.profile-section .profile-text p {
  font-size: clamp(1.18rem, 1.45vw, 1.34rem);
  line-height: 1.75;
}
.profile-section .profile-text h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.6rem);
}
.profile-section .signature-line span {
  font-size: 1.12rem;
}
.signature-line {
  margin-top: 34px;
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, #fbf7ee, #eef6f4);
}
html[dir="rtl"] .signature-line { border-left: 0; border-right: 4px solid var(--gold); }
.signature-line span { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 900; }
.signature-line p { margin-bottom: 0; }
.profile-summary {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.contact-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
  box-shadow: 0 20px 60px rgba(17,24,39,0.08);
}
.contact-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  background: #101820;
}
.contact-card h3 { padding: 24px 24px 0; }
.contact-card a, .contact-card span {
  display: block;
  margin: 0 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.expertise-band {
  background:
    linear-gradient(135deg, rgba(22,112,111,0.12), transparent 42%),
    linear-gradient(315deg, rgba(201,97,74,0.07), transparent 38%),
    var(--bg);
}
.section-heading { max-width: 820px; margin-bottom: 24px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-cloud span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease;
}
.skill-cloud span:hover { transform: translateY(-3px); border-color: var(--gold); }

.experience-stack { display: grid; gap: 18px; }
.experience-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.experience-card time { color: #8a672f; font-weight: 900; }
.experience-card p { color: var(--muted); font-weight: 800; }
.experience-card ul {
  grid-column: 2;
  margin: -12px 0 0;
  padding-inline-start: 20px;
  color: var(--muted);
}
.experience-card li + li { margin-top: 7px; }
.early-career-card .early-list {
  grid-column: 2;
  display: grid;
  gap: 10px;
}
.early-list p {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.early-list strong { color: var(--gold); }
.early-list span { color: var(--muted); }

.achievements, .testimonials, .site-footer {
  background:
    radial-gradient(circle at 15% 20%, rgba(22,112,111,0.45), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(189,135,53,0.24), transparent 28%),
    var(--navy-2);
  color: #fff;
}
.achievements .section-heading p, .testimonials .section-heading p, .site-footer p { color: rgba(255,255,255,0.72); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.impact-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035));
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
}
.impact-card span {
  display: block;
  margin-bottom: 26px;
  color: #f4c980;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: 0.9;
}
.impact-card h3 { color: #fff; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.media-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.media-card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22,112,111,0.14), rgba(189,135,53,0.12)),
    #eef4f1;
  background-position: center;
  background-size: cover;
}
.media-card:nth-child(1)::before { background-image: url("assets/media-manhom.jpg"), linear-gradient(135deg, rgba(22,112,111,0.14), rgba(189,135,53,0.12)); }
.media-card:nth-child(2)::before { background-image: url("assets/media-executives.jpg"), linear-gradient(135deg, rgba(22,112,111,0.14), rgba(189,135,53,0.12)); }
.media-card:nth-child(3)::before { background-image: url("assets/media-milestones.jpg"), linear-gradient(135deg, rgba(22,112,111,0.14), rgba(189,135,53,0.12)); }
.media-card:nth-child(4)::before { background-image: url("assets/media-iqraa.jpg"), linear-gradient(135deg, rgba(22,112,111,0.14), rgba(189,135,53,0.12)); }
.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.media-card span { color: var(--gold); font-weight: 900; }
.media-card strong { font-size: 1.35rem; }
.media-card em { color: var(--muted); font-style: normal; font-weight: 800; }
.affiliation-panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #faf8f1;
}
.affiliation-panel ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
}
.affiliation-panel li + li { margin-top: 8px; }

.testimonial-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,0.14);
  direction: ltr;
  cursor: grab;
}
.testimonial-marquee:active { cursor: grabbing; }
.testimonial-marquee:active .testimonial-track { animation-play-state: paused; }
.testimonial-marquee.is-paused .testimonial-track { animation-play-state: paused; }
.testimonial-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 92s linear infinite;
  will-change: transform;
}
.testimonial-track article {
  flex: 0 0 auto;
  width: min(520px, 82vw);
  min-height: 320px;
  margin-inline-end: 14px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  direction: ltr;
}
html[dir="rtl"] .testimonial-track article { direction: rtl; }
.testimonial-track p { color: rgba(255,255,255,0.86); }
.testimonial-track strong, .testimonial-track span { display: block; }
.testimonial-track strong { margin-top: 18px; color: #fff; }
.testimonial-track span { color: rgba(255,255,255,0.58); }

.companies-section { background: var(--paper); overflow: hidden; }
.logo-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fbfaf7;
  direction: ltr;
  cursor: grab;
}
.logo-marquee:active { cursor: grabbing; }
.logo-marquee:active .logo-track { animation-play-state: paused; }
.logo-marquee.is-paused .logo-track { animation-play-state: paused; }
.logo-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.logo-track a, .logo-track > span {
  flex: 0 0 auto;
  width: 230px;
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border-inline-end: 1px solid var(--line);
  background: var(--paper);
}
.logo-track img { max-width: 160px; max-height: 68px; object-fit: contain; filter: saturate(0.9); }
.logo-track span span, .logo-track a span { color: var(--muted); font-weight: 800; text-align: center; }

.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(22,112,111,0.08), transparent 42%),
    linear-gradient(315deg, rgba(201,97,74,0.08), transparent 38%),
    var(--paper);
}
.education-highlight {
  grid-template-columns: minmax(0, 1fr);
}
.support-credentials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.credentials article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f7fbf8);
  box-shadow: 0 18px 48px rgba(16,32,48,0.08);
}
.education-highlight article {
  border-color: rgba(244,201,128,0.32);
  background:
    radial-gradient(circle at 12% 10%, rgba(22,112,111,0.36), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(189,135,53,0.28), transparent 30%),
    var(--navy-2);
  box-shadow: 0 24px 70px rgba(13,22,36,0.22);
}
.education-highlight article h2 {
  color: #f4c980;
  font-size: clamp(2.25rem, 3.2vw, 3.4rem);
}
.education-highlight article p {
  color: #f4c980;
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  font-weight: 800;
}
.support-credentials article {
  background:
    linear-gradient(145deg, rgba(22,112,111,0.1), transparent 42%),
    #fff;
}
.support-credentials article:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(201,97,74,0.08), transparent 40%),
    #fff;
}
.support-credentials p {
  padding: 12px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.support-credentials p:last-child { border-bottom: 0; }
.credentials h2 { color: var(--navy); font-size: 1.95rem; }
.credentials p { color: var(--muted); }

.brand small { font-size: 0.92rem; }
nav { font-size: 1rem; }
.button, .lang-toggle { font-size: 1rem; }
.overline { font-size: 1rem; }
.hero-lede { font-size: clamp(1.16rem, 1.65vw, 1.36rem); }
.metrics span { font-size: 1.05rem; }
.section-heading p { font-size: clamp(1.14rem, 1.35vw, 1.28rem); }
.contact-card a, .contact-card span { font-size: 1.06rem; }
.skill-cloud span { font-size: 1.05rem; }
.experience-card p,
.experience-card li,
.early-list span,
.early-list strong {
  font-size: 0.80rem;
}
.impact-card p { font-size: 1.08rem; }
.media-card em,
.affiliation-panel li {
  font-size: 1.06rem;
}
.testimonial-track p { font-size: 1.04rem; line-height: 1.72; }
.testimonial-track span { font-size: 0.98rem; }
.logo-track span span,
.logo-track a span {
  font-size: 1.02rem;
}
.support-credentials p,
.credentials p {
  font-size: 1.08rem;
  line-height: 1.7;
}
.site-footer p { font-size: 1.12rem; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

.js-enabled .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms ease;
}
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, 5%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .hero, .profile-section, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-media { max-width: 760px; }
  .metrics, .impact-grid, .media-grid, .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; gap: 12px; }
  .brand small { display: none; }
  nav { gap: 18px; font-size: 0.85rem; }
  .hero,
  .metrics,
  .profile-section,
  .expertise-band,
  .experience-section,
  .achievements,
  .media-section,
  .testimonials,
  .companies-section,
  .credentials,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .metrics, .impact-grid, .media-grid, .credentials { grid-template-columns: 1fr; }
  .experience-card { grid-template-columns: 1fr; padding: 24px; }
  .experience-card ul, .early-career-card .early-list { grid-column: 1; }
  .early-list p { grid-template-columns: 1fr; gap: 2px; }
  .button, .lang-toggle { width: 100%; }
  .hero-actions, .footer-actions { width: 100%; }
    body {
        background: var(--bg);
        color: var(--ink);
    }

    .site-header {
        background: rgba(13, 22, 36, 0.94);
        border-bottom: 1px solid rgba(244, 201, 128, 0.22);
        color: #f4c980;
    }

    .profile-section {
        background: linear-gradient(120deg, rgba(22,112,111,0.08), transparent 38%), var(--paper);
    }

    .expertise-band {
        background: linear-gradient(135deg, rgba(22,112,111,0.12), transparent 42%), linear-gradient(315deg, rgba(201,97,74,0.07), transparent 38%), var(--bg);
    }

    .achievements,
    .testimonials,
    .site-footer {
        background: radial-gradient(circle at 15% 20%, rgba(22,112,111,0.45), transparent 32%), radial-gradient(circle at 82% 18%, rgba(189,135,53,0.24), transparent 28%), var(--navy-2);
        color: #fff;
    }

    .contact-card,
    .media-card,
    .metrics article,
    .experience-card,
    .logo-track a,
    .logo-track > span {
        background: var(--paper);
        color: var(--ink);
        border-color: var(--line);
    }

    .button,
    .lang-toggle {
        background: var(--paper);
        color: var(--ink);
        border-color: var(--line);
    }

    .site-header .lang-toggle {
        background: rgba(244, 201, 128, 0.08);
        color: #f4c980;
        border-color: rgba(244, 201, 128, 0.34);
    }
}
.contact-card-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 18px 24px 24px;
    width: 100%;
}

    .contact-card-actions .button {
        flex: 1;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45), 0 0 12px rgba(212, 175, 55, 0.35), 0 0 26px rgba(212, 175, 55, 0.18);
    }

        .contact-card-actions .button:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.8), 0 0 16px rgba(255, 215, 0, 0.55), 0 0 34px rgba(255, 215, 0, 0.35), 0 8px 22px rgba(0, 0, 0, 0.22);
        }
.profile-summary {
    white-space: pre-line;
}
.private-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 0;
    max-width: max-content;
    margin-top: 18px;
    padding: 3px 7px;
    font-size: 9px;
    line-height: 1;
    border: 1px solid rgba(244, 201, 128, 0.35);
    border-radius: 999px;
    color: rgba(244, 201, 128, 0.55);
    background: transparent;
    opacity: 0.45;
    transition: all 0.2s ease;
}

    .private-login-btn:hover {
        opacity: 1;
        color: #f4c980;
        border-color: rgba(244, 201, 128, 0.75);
        box-shadow: 0 0 8px rgba(244, 201, 128, 0.25);
    }

.internal-links-section {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}
.internal-links-section h2 { margin-bottom: 12px; }
.internal-links-section p { max-width: 760px; color: var(--muted); }
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.internal-links-grid a {
  display: flex;
  min-height: 110px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(16, 32, 48, 0.08);
  transition: all 0.25s ease;
}
.internal-links-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(16, 32, 48, 0.13);
}
@media (max-width: 900px) { .internal-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .internal-links-grid { grid-template-columns: 1fr; } }

.article-page {
  padding: clamp(30px, 5vw, 70px) clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, rgba(22,112,111,0.08), transparent 42%), var(--bg);
}
.article-container {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.article-container h1 {
  max-width: 14ch;
}
.article-container h2 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 2.6vw, 2.7rem);
}
.article-container p, .article-container li {
  color: var(--muted);
  font-size: 1.08rem;
}
.article-lede {
  color: var(--navy) !important;
  font-size: clamp(1.15rem, 1.7vw, 1.32rem) !important;
  font-weight: 700;
}
.article-cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22,112,111,0.1), rgba(189,135,53,0.12));
}
.article-index-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.article-index-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
}
.article-index-grid span {
  color: var(--gold);
  font-weight: 900;
}
.article-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 720px) {
  .article-container h1 { max-width: none; font-size: clamp(2.1rem, 10vw, 3rem); }
  .article-link-row .button { width: 100%; }
}


.language-switch {
  margin: 18px 0 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 900;
}
.language-switch a:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(16,32,48,0.1);
}
.case-sub-links {
  margin-top: 24px;
}
.case-sub-links h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}


/* Final SEO content and dropdown navigation updates */
.primary-nav,
.site-header nav {
  align-items: center;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-inline-start: 6px;
  font-size: 0.72em;
  opacity: 0.85;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(244, 201, 128, 0.22);
  border-radius: 12px;
  background: rgba(13, 22, 36, 0.98);
  box-shadow: 0 22px 48px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.18s ease;
  z-index: 80;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(244, 201, 128, 0.82);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(244, 201, 128, 0.10);
  color: #f4c980;
}

.article-page,
.content-index-page {
  background: var(--bg);
}

.article-hero {
  padding: clamp(46px, 7vw, 90px) clamp(18px, 6vw, 96px) clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 15% 18%, rgba(22,112,111,0.12), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(189,135,53,0.16), transparent 30%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  margin-bottom: 12px;
  color: #8a672f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[dir="rtl"] .article-kicker {
  text-transform: none;
}

.article-hero h1 {
  max-width: 980px;
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
}

.article-hero p {
  max-width: 860px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--navy);
  font-weight: 800;
}

.article-body {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) clamp(18px, 4vw, 36px);
  color: var(--ink);
}

.article-body h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-body ul {
  padding-inline-start: 22px;
}

.article-body li + li {
  margin-top: 8px;
}

.content-index-section {
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 72px);
}

.content-index-section h2 {
  margin-bottom: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(16, 32, 48, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 48px rgba(16, 32, 48, 0.14);
}

.content-card span {
  color: #8a672f;
  font-weight: 900;
}

.content-card strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.25;
}

.content-card p {
  margin: 0;
  color: var(--muted);
}

.subpage-lang {
  white-space: nowrap;
}

.subpage-footer {
  margin-top: 20px;
}

@media (max-width: 980px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-dropdown-menu { position: static; display: none; box-shadow: none; margin-top: 8px; }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: grid; }
}

@media (max-width: 640px) {
  .content-grid { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 1fr; }
  .subpage-lang { width: fit-content !important; }
}


/* Northwest Bus case study gallery */
.case-study-gallery {
  margin: 28px 0 34px;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
  box-shadow: 0 14px 30px rgba(16, 32, 48, 0.07);
}

.case-study-gallery h2 {
  margin-top: 0;
}

.case-study-gallery p {
  margin-bottom: 18px;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-gallery-item {
  margin: 0;
}

.case-gallery-item img,
.case-gallery-wide img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 32, 48, 0.09);
}

.case-gallery-logo img {
  object-fit: contain;
  padding: 18px;
}

.case-gallery-wide {
  grid-column: auto;
}

.case-gallery-full {
  grid-column: 1 / -1;
}

.case-gallery-full img {
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #ffffff;
}

.case-gallery-item figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }

  .case-gallery-item img,
  .case-gallery-wide img {
    height: 190px;
  }

  .case-gallery-full img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}


/* SEO breadcrumb navigation */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px clamp(18px, 5vw, 72px) 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumb a { color: var(--gold); font-weight: 800; }
.breadcrumb span::before { content: "/"; margin-inline-end: 8px; color: var(--muted); }
html[dir="rtl"] .breadcrumb span::before { content: "\"; }


.social-share {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.social-share p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
}
.social-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-share-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(244,201,128,0.34);
  border-radius: 999px;
  color: #f4c980;
  background: rgba(244,201,128,0.07);
  font-size: 0.86rem;
  font-weight: 800;
}
.social-share-actions a:hover {
  background: rgba(244,201,128,0.16);
  box-shadow: 0 0 12px rgba(244,201,128,0.22);
}
