/* =========================================================
   CIEMS Business Institute - Design System
   Corporate &amp; Institutional Style
   ========================================================= */

:root {
  /* Brand colors */
  --navy-900: #0a1f3d;
  --navy-800: #0f2a52;
  --navy-700: #173d72;
  --navy-600: #1f4d8f;
  --gold-500: #c9a96e;
  --gold-600: #b8985c;
  --gold-400: #d8be8a;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #dde2ea;
  --gray-300: #bcc4d0;
  --gray-500: #6b7383;
  --gray-700: #3a414e;
  --gray-900: #16192a;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 31, 61, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--navy-900); color: var(--gray-100); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

.divider {
  width: 60px; height: 3px; background: var(--gold-500);
  margin: 18px 0 28px;
}
.section-head .divider { margin-left: auto; margin-right: auto; }
.section-head.left .divider { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn--primary {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.btn--primary:hover {
  background: var(--gold-600); border-color: var(--gold-600);
  color: var(--navy-900); transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--outline {
  background: transparent; color: var(--navy-900); border-color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--gray-200);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.topbar a { color: var(--gray-200); }
.topbar a:hover { color: var(--gold-400); }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem; font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--navy-900);
  color: var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.05rem;
  border-radius: 3px;
  border: 1.5px solid var(--gold-500);
}
.logo small {
  display: block;
  font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.18em; color: var(--gold-600);
  text-transform: uppercase; font-weight: 500;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  position: relative;
}
.nav a.active, .nav a:hover { color: var(--navy-900); }
.nav a.active::after {
  content: ""; position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold-500);
}

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 14px; }

.lang-switch {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-switch button {
  border: 0; background: transparent;
  padding: 6px 14px; cursor: pointer;
  border-radius: 999px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.lang-switch button.active {
  background: var(--navy-900); color: var(--white);
}

.menu-toggle {
  display: none; background: transparent; border: 0;
  font-size: 1.5rem; cursor: pointer; color: var(--navy-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10,31,61,0.92) 0%, rgba(15,42,82,0.88) 100%),
    radial-gradient(ellipse at top right, rgba(201,169,110,0.15) 0%, transparent 60%);
  background-color: var(--navy-900);
  color: var(--gray-100);
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 30px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative; z-index: 2;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}
.hero h1 .gold { color: var(--gold-500); font-style: italic; }
.hero-lede {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 36px;
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.hero-stat .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem; font-weight: 700;
  color: var(--gold-500); line-height: 1;
}
.hero-stat .lbl {
  display: block; font-size: 0.85rem;
  color: rgba(255,255,255,0.7); margin-top: 8px;
  letter-spacing: 0.04em;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--gold-500);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb {
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-400); }
.breadcrumb span { margin: 0 10px; color: rgba(255,255,255,0.4); }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 0; background: var(--gold-500);
  transition: height var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card:hover::before { height: 100%; }
.card .icon {
  width: 56px; height: 56px;
  background: var(--navy-900); color: var(--gold-500);
  display: grid; place-items: center;
  font-size: 1.4rem; font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 22px; border-radius: 3px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 18px; }
.card .link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--navy-700); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card .link::after { content: " \2192"; transition: margin var(--transition); }
.card:hover .link::after { margin-left: 6px; }

/* Program card variant */
.program-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.program-card .ph {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  position: relative;
  display: grid; place-items: center;
  color: var(--gold-500); font-family: var(--font-serif);
  font-size: 2.5rem;
}
.program-card .ph::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,169,110,0.08) 0 1px, transparent 1px 20px);
}
.program-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.program-card .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--gold-600); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 10px;
}
.program-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.program-card p { color: var(--gray-500); font-size: 0.92rem; flex: 1; }
.program-card .meta {
  display: flex; gap: 14px; margin-top: 16px;
  font-size: 0.82rem; color: var(--gray-500);
  border-top: 1px solid var(--gray-100); padding-top: 14px;
}
.program-card .meta strong { color: var(--navy-900); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; }
.pillar {
  padding: 50px 36px;
  border-right: 1px solid var(--gray-200);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar .num {
  font-family: var(--font-serif);
  font-size: 3rem; color: var(--gold-500);
  line-height: 1; margin-bottom: 16px; font-weight: 600;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 12px; }
.pillar p { color: var(--gray-500); font-size: 0.95rem; }

/* About block */
.about-img {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--gold-500);
}
.about-img::before {
  content: ""; position: absolute; top: 30px; left: 30px;
  right: -30px; bottom: -30px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  z-index: -1;
}
.about-img-wrap { position: relative; padding: 0 30px 30px 0; }

/* Stats band */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; padding: 60px 0;
}
.stats-band .stat { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.stats-band .stat:last-child { border-right: 0; }
.stats-band .num {
  font-family: var(--font-serif);
  font-size: 3rem; color: var(--gold-500); line-height: 1;
  font-weight: 600;
}
.stats-band .lbl {
  margin-top: 10px; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* Testimonial */
.testimonial {
  background: var(--white); padding: 50px;
  border-left: 4px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial blockquote {
  margin: 0 0 24px; font-family: var(--font-serif);
  font-size: 1.4rem; line-height: 1.5;
  color: var(--navy-900); font-style: italic;
}
.testimonial blockquote::before { content: "\201C"; font-size: 3rem; color: var(--gold-500); line-height: 0; vertical-align: -10px; margin-right: 6px; }
.testimonial .author { display: flex; gap: 14px; align-items: center; }
.testimonial .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.1rem;
}
.testimonial .name { font-weight: 600; color: var(--navy-900); }
.testimonial .role { font-size: 0.88rem; color: var(--gray-500); }

/* Partners */
.partners {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 30px; align-items: center;
}
.partner {
  height: 80px; display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-weight: 600; color: var(--gray-500);
  font-size: 0.95rem; text-align: center;
  padding: 10px; transition: all var(--transition);
}
.partner:hover { color: var(--navy-900); border-color: var(--gold-500); }

/* News */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card .thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  position: relative;
  overflow: hidden;
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.04) brightness(0.92);
  transform: scale(1.01);
}
.news-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,27,51,0.02), rgba(7,27,51,0.24)),
    linear-gradient(90deg, rgba(199,164,93,0.12), transparent 48%);
  pointer-events: none;
}
.news-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-card .date {
  font-size: 0.78rem; color: var(--gold-600); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.news-card h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 12px; }
.news-card p { color: var(--gray-500); font-size: 0.92rem; flex: 1; }
.news-card .more { font-weight: 600; color: var(--navy-700); margin-top: 14px; font-size: 0.85rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-size: 0.85rem;
  color: var(--navy-900); font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem;
  color: var(--gray-700);
  transition: all var(--transition);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Contact info */
.contact-info {
  display: grid; gap: 24px;
}
.contact-info .item {
  display: flex; gap: 18px; align-items: flex-start;
}
.contact-info .ico {
  width: 48px; height: 48px;
  background: var(--navy-900); color: var(--gold-500);
  border-radius: 3px;
  display: grid; place-items: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info .label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 4px;
}
.contact-info .val { color: var(--navy-900); font-weight: 500; }

/* Timeline / Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; }
.process .step {
  text-align: center; padding: 30px 20px; position: relative;
}
.process .step::after {
  content: ""; position: absolute; top: 56px; right: -8px;
  width: 16px; height: 2px; background: var(--gold-500);
}
.process .step:last-child::after { display: none; }
.process .step .n {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: var(--white); border: 2px solid var(--gold-500);
  color: var(--navy-900); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
}
.process .step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process .step p { font-size: 0.88rem; color: var(--gray-500); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 200px; height: 4px; background: var(--gold-500);
  transform: translateX(-50%);
}
.cta-band h2 { color: var(--white); max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--gold-400); }
.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 18px; color: rgba(255,255,255,0.6); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  border-radius: 3px; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; transition: all var(--transition);
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900); }

.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.7s ease-out both; }
.fade-in.d1 { animation-delay: 0.1s; }
.fade-in.d2 { animation-delay: 0.2s; }
.fade-in.d3 { animation-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .pillars, .stats-band, .partners, .process {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .pillar { border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .stats-band .stat { border-right: 0; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .topbar-info { gap: 12px; font-size: 0.78rem; }
  .grid-3, .grid-4, .pillars, .stats-band, .partners, .process, .form .row {
    grid-template-columns: 1fr !important;
  }
  .hero { padding: 70px 0 80px; }
  .hero-stats { padding: 24px; }
  .testimonial { padding: 30px; }
  .testimonial blockquote { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .pillar { padding: 36px 20px; }
}

/* ---------- Language visibility ---------- */
[data-lang="en"] .lang-fr { display: none; }
[data-lang="fr"] .lang-en { display: none; }

/* ---------- Codex site improvements ---------- */
.skip-link {
  position: fixed;
  left: 24px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid rgba(201,169,110,0.75);
  outline-offset: 3px;
}
#main-content:focus { outline: none; }
.header .logo img { height: 82px; max-height: 82px; width: auto; }
.header .container { min-height: 96px; }
.nav a[aria-current="page"] { color: var(--navy-900); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold-500);
}
.card, .program-card, .news-card { height: 100%; }
.news-card .more::after { content: " ->"; transition: margin var(--transition); }
.news-card:hover .more::after { margin-left: 6px; }
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not(:focus),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(176, 50, 50, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 1024px) {
  .header .container { min-height: 92px; }
  .nav.open { align-items: stretch; }
  .nav a[aria-current="page"]::after { left: 12px; right: auto; width: 46px; }
}
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .topbar .container { align-items: flex-start; }
  .topbar-info { width: 100%; }
  .header .container { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .header .logo img { height: 72px; max-height: 72px; }
  .nav-actions { gap: 8px; margin-left: 0; }
  .lang-switch button { padding: 6px 10px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .program-card .meta { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}



/* ---------- CIEMS mobile readability improvements ---------- */
.section p,
.card p,
.program-card p,
.news-card p,
.pillar p,
.testimonial p,
.contact-info .val {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.section-head p,
.hero-lede,
.page-hero p,
.cta-band p,
.footer p {
  text-align: inherit;
}
@media (max-width: 760px) {
  body { font-size: 15px; line-height: 1.7; }
  .section { padding: 54px 0; }
  .container { padding: 0 16px; }
  .header .container { min-height: 82px; align-items: center; }
  .header .logo img { height: 72px; max-height: 72px; }
  .topbar { font-size: 0.76rem; }
  .topbar-info { gap: 8px; line-height: 1.45; }
  .nav { max-height: calc(100vh - 92px); overflow-y: auto; }
  .hero { padding: 56px 0 66px; }
  .hero-grid { gap: 30px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .hero-stat .num { font-size: 2.15rem; }
  .page-hero { padding: 70px 0 58px; }
  .section-head { margin-bottom: 36px; }
  .section-head.left, .section-head { text-align: left; }
  .section-head .divider { margin-left: 0; margin-right: 0; }
  .grid-2 { gap: 28px; }
  .card, .program-card .body, .news-card .body { padding: 24px; }
  .program-card .ph { height: 140px; }
  .pillars { margin-top: 32px; }
  .footer { padding-top: 48px; }
  .footer-grid { gap: 28px; }
  .btn { width: 100%; justify-content: center; padding: 13px 18px; }
  .lang-switch button { padding: 6px 9px; }
}
@media (max-width: 420px) {
  .header .logo img { height: 72px; max-height: 72px; }
  .nav-actions { gap: 6px; }
  .lang-switch button { padding: 5px 8px; font-size: 0.74rem; }
  .menu-toggle { font-size: 1.35rem; }
  h1 { font-size: clamp(1.85rem, 11vw, 2.4rem); }
  h2 { font-size: clamp(1.45rem, 8vw, 2rem); }
}
/* ---------- CIEMS visual refresh 2026 ---------- */
:root {
  --navy-900: #071b33;
  --navy-800: #0d2748;
  --navy-700: #143a66;
  --navy-600: #1e568f;
  --gold-500: #c7a45d;
  --gold-600: #af8c45;
  --gold-400: #e3c987;
  --gray-50: #f7f8fa;
  --gray-100: #edf1f6;
  --gray-200: #d9e1ec;
  --gray-500: #657286;
  --gray-700: #263241;
  --gray-900: #111827;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(7, 27, 51, 0.07);
  --shadow-md: 0 12px 34px rgba(7, 27, 51, 0.10);
  --shadow-lg: 0 26px 70px rgba(7, 27, 51, 0.15);
}
body { color: var(--gray-700); background: #fbfcfe; }
.header {
  border-bottom: 1px solid rgba(7, 27, 51, 0.08);
  box-shadow: 0 8px 28px rgba(7, 27, 51, 0.06);
}
.nav a {
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: rgba(199,164,93,0.10); }
.lang-switch { background: #eef3f8; border: 1px solid rgba(7,27,51,0.08); }
.hero {
  background:
    linear-gradient(120deg, rgba(7,27,51,0.96) 0%, rgba(13,39,72,0.92) 58%, rgba(20,58,102,0.82) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 34px);
  padding-top: 112px;
  padding-bottom: 118px;
}
.hero::before {
  background-image:
    linear-gradient(90deg, rgba(199,164,93,0.12), transparent 38%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 30px);
}
.hero-stats {
  background: rgba(255,255,255,0.075);
  border-color: rgba(227,201,135,0.28);
  box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}
.page-hero {
  background:
    linear-gradient(135deg, rgba(7,27,51,0.98) 0%, rgba(20,58,102,0.92) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 34px);
}
.section--alt { background: #f4f7fb; }
.card,
.program-card,
.news-card,
.testimonial,
.partner {
  border-color: rgba(7,27,51,0.08);
  box-shadow: 0 1px 0 rgba(7,27,51,0.03);
}
.card:hover,
.program-card:hover,
.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(199,164,93,0.42);
}
.program-card .ph,
.news-card .thumb {
  background:
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%),
    repeating-linear-gradient(45deg, rgba(199,164,93,0.10) 0 1px, transparent 1px 22px);
}
.btn { border-radius: 6px; }
.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(199,164,93,0.22);
}
.btn--outline:hover,
.btn--ghost:hover { box-shadow: var(--shadow-sm); }
.pillars { background: #fff; border: 1px solid rgba(7,27,51,0.07); border-radius: 6px; overflow: hidden; }
.pillar { background: #fff; }
.footer { background: #0b1220; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
.footer .logo img { max-height: 86px; width: auto; }
@media (max-width: 760px) {
  .hero { padding-top: 58px; padding-bottom: 68px; }
  .page-hero { padding-top: 64px; padding-bottom: 54px; }
  .pillars { border-radius: 0; border-left: 0; border-right: 0; }
  .card:hover, .program-card:hover, .news-card:hover { transform: none; }
  .footer-grid { grid-template-columns: 1fr; }
}




/* Official CIEMS Business Institute logo */
.header .logo { background: transparent; padding: 0; line-height: 0; }
.header .logo img { display: block; }


/* Publications section */
.publications-section { background: #fbfcfe; }
.publication-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  margin-bottom: 30px;
  border: 1px solid rgba(7,27,51,0.10);
  border-left: 5px solid var(--gold-500);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.publication-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.publication-feature h3 { margin-bottom: 8px; font-size: 1.35rem; }
.publication-feature p { margin: 0; color: var(--gray-500); }
.publication-groups {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  gap: 24px;
}
.publication-group {
  background: var(--white);
  border: 1px solid rgba(7,27,51,0.09);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(7,27,51,0.03);
}
.publication-group h3 { font-size: 1.12rem; margin-bottom: 18px; }
.publication-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.publication-list li {
  position: relative;
  padding-left: 18px;
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: left;
}
.publication-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
}
.publication-list.compact { gap: 10px; }
@media (max-width: 1024px) {
  .publication-groups { grid-template-columns: 1fr; }
  .publication-feature { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .publication-feature, .publication-group { padding: 22px; }
}

/* CIEMS AI hub */
.pillar-link,
.card-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-600);
  letter-spacing: 0.04em;
}
.pillar-link:hover,
.card-link:hover { color: var(--navy-900); }
.ciems-ai-section {
  background:
    linear-gradient(135deg, rgba(7,27,51,0.96), rgba(13,43,79,0.94)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 28px);
  color: var(--white);
}
.ciems-ai-section .eyebrow,
.ciems-ai-section .divider { color: var(--gold-400); }
.ciems-ai-section .divider { background: var(--gold-500); }
.ciems-ai-section h2 { color: var(--white); }
.ciems-ai-section p { color: rgba(255,255,255,0.78); }
.ai-capabilities {
  display: grid;
  gap: 14px;
}
.ai-capabilities > div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
}
.ai-capabilities strong {
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.ai-capabilities span {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}
@media (max-width: 760px) {
  .ai-capabilities > div { align-items: flex-start; }
}

/* Quick homepage paths */
.quick-paths {
  background: #ffffff;
  border-bottom: 1px solid rgba(7,27,51,0.08);
}
.quick-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.quick-path {
  display: grid;
  gap: 8px;
  padding: 24px 28px;
  border-right: 1px solid rgba(7,27,51,0.08);
  color: var(--navy-900);
  transition: all var(--transition);
}
.quick-path:last-child { border-right: 0; }
.quick-path span {
  color: var(--gold-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quick-path strong { font-size: 1rem; }
.quick-path:hover {
  background: #f6f8fb;
  color: var(--navy-900);
}
.publication-feature--full { margin-bottom: 34px; }
@media (max-width: 760px) {
  .quick-paths-grid { grid-template-columns: 1fr; }
  .quick-path { border-right: 0; border-bottom: 1px solid rgba(7,27,51,0.08); padding: 20px 16px; }
}

/* About page: more compact institutional headings */
.about-page .page-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
}

.about-page .section h2,
.about-page .section-head h2 {
  font-size: clamp(1.25rem, 1.95vw, 1.65rem);
  line-height: 1.22;
}

.about-page .cta-band h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  max-width: 680px;
}

@media (max-width: 760px) {
  .about-page .page-hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .about-page .section h2,
  .about-page .section-head h2,
  .about-page .cta-band h2 {
    font-size: clamp(1.15rem, 5.8vw, 1.45rem);
  }
}

/* Site-wide compact headings for interior pages */
.page-hero h1 {
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
  line-height: 1.16;
}

.section-head h2,
.grid-2 > div > h2,
.cta-band h2 {
  font-size: clamp(1.25rem, 1.95vw, 1.65rem);
  line-height: 1.22;
}

.article-content h2,
.article-body h2,
.news-article h2 {
  font-size: clamp(1.12rem, 1.65vw, 1.35rem);
  line-height: 1.25;
}

@media (max-width: 760px) {
  .page-hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .section-head h2,
  .grid-2 > div > h2,
  .cta-band h2 {
    font-size: clamp(1.15rem, 5.8vw, 1.45rem);
  }
}


/* Final compact heading override */
.page-hero h1,
.about-page .page-hero h1 {
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
  line-height: 1.16;
}

.section-head h2,
.grid-2 > div > h2,
.cta-band h2,
.about-page .section h2,
.about-page .section-head h2,
.about-page .cta-band h2 {
  font-size: clamp(1.25rem, 1.95vw, 1.65rem);
  line-height: 1.22;
}

.article-content h2,
.article-body h2,
.news-article h2 {
  font-size: clamp(1.12rem, 1.65vw, 1.35rem);
  line-height: 1.25;
}

@media (max-width: 760px) {
  .page-hero h1,
  .about-page .page-hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .section-head h2,
  .grid-2 > div > h2,
  .cta-band h2,
  .about-page .section h2,
  .about-page .section-head h2,
  .about-page .cta-band h2 {
    font-size: clamp(1.15rem, 5.8vw, 1.45rem);
  }
}

/* Mobile stability fixes */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 420px) {
  .header .container {
    gap: 10px;
  }

  .header .logo img {
    height: 64px;
    max-height: 64px;
  }

  .nav-actions {
    flex-shrink: 0;
  }

  .page-hero {
    padding-top: 54px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.15rem);
  }
}

/* Advisory page */
.advisory-practices .card {
  min-height: 100%;
}

.advisory-missions {
  display: grid;
  gap: 14px;
}

.advisory-mission {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(7,27,51,0.08);
  border-radius: 6px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(7,27,51,0.05);
}

.advisory-mission span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-500);
  font-weight: 700;
  font-size: 0.82rem;
}

.advisory-mission p {
  margin: 0;
  color: var(--gray-600);
}

@media (max-width: 760px) {
  .advisory-mission {
    grid-template-columns: 1fr;
  }
}
/* Mobile fix: CIEMS AI section on programs page */
@media (max-width: 760px) {
  .ciems-ai-section {
    padding: 52px 0 56px !important;
  }
  .ciems-ai-section .container.grid-2 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: min(100% - 32px, var(--container));
  }
  .ciems-ai-section h2 {
    font-size: clamp(1.35rem, 7vw, 1.9rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }
  .ciems-ai-section p {
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left !important;
    word-spacing: normal;
  }
  .ciems-ai-section .btn {
    width: 100%;
    justify-content: center;
    padding-inline: 14px;
  }
  .ai-capabilities {
    gap: 10px;
    width: 100%;
  }
  .ai-capabilities > div {
    align-items: flex-start !important;
    gap: 12px;
    padding: 14px;
    width: 100%;
  }
  .ai-capabilities strong {
    flex: 0 0 34px;
    font-size: 1.05rem;
    line-height: 1.35;
  }
  .ai-capabilities span {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

/* Homepage polish: tighter hero title and one-line quick DBA title */
.hero h1 {
  font-size: clamp(2.15rem, 4.25vw, 3.35rem);
  line-height: 1.08;
}
.quick-path:first-child strong {
  white-space: nowrap;
  font-size: 0.96rem;
}
@media (max-width: 920px) {
  .quick-path:first-child strong {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
  }
}
/* Site-wide content text justification */
.section p,
.article-body p,
.article-body li,
.card p,
.program-card p,
.news-card p,
.pillar p,
.process p,
.timeline p,
.publication-feature p,
.publication-list li,
.advisory-example p,
.contact-info .val {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.section-head p,
.hero-lede,
.page-hero p,
.cta-band p,
.footer p,
.footer li,
.btn,
.nav a,
.lang-switch,
.partner,
.date,
.tag,
.meta,
.socials a {
  text-align: inherit;
  hyphens: none;
}
@media (max-width: 760px) {
  .section p,
  .article-body p,
  .article-body li,
  .card p,
  .program-card p,
  .news-card p,
  .pillar p,
  .process p,
  .timeline p,
  .publication-list li {
    text-align: justify;
    text-justify: inter-word;
  }
}
/* Mobile content justification override */
@media (max-width: 760px) {
  .section p:not(.hero-lede),
  .article-body p,
  .article-body li,
  .card p,
  .program-card p,
  .news-card p,
  .pillar p,
  .process p,
  .timeline p,
  .publication-feature p,
  .publication-list li,
  .advisory-example p,
  .ciems-ai-section p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
  }

  .section-head p,
  .page-hero p,
  .cta-band p,
  .footer p,
  .footer li,
  .contact-info .val {
    text-align: inherit !important;
  }
}