/* ============================================================
   AI CERTIFICATIONS & DIGITAL BADGES — EXECUTIVE PORTFOLIO PAGE
   Design system matches homepage: Navy / Royal Blue / Gold
   Fonts: Playfair Display (headings) + Inter (body/UI)
============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2f5e;
  --navy-dark: #0d1b38;
  --blue: #2d5be3;
  --blue-light: #4a7bd1;
  --gold: #c8922a;
  --gold-light: #e8b84b;
  --ref-navy: #2c1e8f;
  --ref-red: #d4283c;
  --cream: #faf8f4;
  --text: #2d3f6b;
  --muted: #6b7898;
  --border: #e2e8f0;
  --white: #fff;
  --sky: #1e90d4;
  --sky-light: #3ab4f2;
  --radius: 16px;
  --shadow-soft: 0 8px 28px rgba(13, 27, 56, 0.08);
  --shadow-hover: 0 16px 40px rgba(13, 27, 56, 0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   TOP NAV
============================================================ */
.topnav {
  background: linear-gradient(90deg, #0a1628 0%, #0e3a6e 20%, #1565c0 40%, #1e90d4 55%, #1565c0 70%, #0e3a6e 85%, #0a1628 100%);
  display: flex;
  align-items: center;
  padding: 0 30px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(21, 101, 192, 0.5), 0 1px 0 rgba(30, 144, 212, 0.3);
}
.topnav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 14px 12px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: .2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.topnav a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.topnav .div { color: rgba(255, 255, 255, 0.3); font-size: 10px; padding: 0 2px; }

/* ============================================================
   HERO — two-column: photo (left) + identity/title text (right)
============================================================ */
.hero {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--gold), var(--blue), var(--gold));
}

.hero-grid {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text-col {
  flex: 1;
  min-width: 320px;
  padding: 22px 24px 24px 40px;
  text-align: left;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--ref-navy);
  line-height: 1.05;
  margin: 0 0 4px;
}
.hero-name em { font-style: italic; color: var(--ref-red); }

.hero-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ref-navy);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-title .word-navy { color: var(--ref-navy); }
.hero-title .word-red { color: var(--ref-red); }
.hero-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ref-navy);
  margin-bottom: 4px;
}
.hero-tagline {
  font-size: 11.5px;
  color: var(--ref-red);
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.hero-blurb {
  font-size: 12.5px;
  color: #5a6178;
  line-height: 1.55;
  max-width: none;
  margin-bottom: 14px;
}

/* Photo column — sits as a right-side panel on desktop (fills the
   empty space beside the text), becomes a compact horizontal strip
   on mobile so the title/CTA stay visible without scrolling */
.hero-photo-col {
  flex: 0 0 240px;
  max-height: 260px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 0 0 0 24px;
}
.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(120deg, var(--ref-navy), var(--ref-red));
  color: white;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(44, 30, 143, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 40, 60, 0.4); }

/* ============================================================
   STATS STRIP
============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 22px 24px;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  background: linear-gradient(120deg, var(--ref-navy), var(--ref-red));
  border: none;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(13, 27, 56, 0.25);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 27, 56, 0.35); }
.stat-icon { font-size: 22px; }
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.stat-num-sm { font-size: 17px; }
.stat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* ============================================================
   WRAP / FILTER BAR
============================================================ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 48px 32px 20px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: white;
  border: 2px solid var(--border);
  padding: 13px 26px;
  border-radius: 28px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 3px 12px rgba(13, 27, 56, 0.07);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover:not(:disabled) { border-color: var(--blue-light); color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(45, 91, 227, 0.18); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(45, 91, 227, 0.35);
}
.filter-icon { font-size: 16px; line-height: 1; }
.filter-btn.filter-soon { color: var(--muted); cursor: not-allowed; opacity: .85; border-style: dashed; }
.soon-tag {
  display: inline-block;
  font-size: 9.5px;
  background: var(--gold);
  color: white;
  padding: 3px 9px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 800;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

/* ============================================================
   PROVIDER SECTIONS
============================================================ */
.provider-section { margin-bottom: 56px; animation: fadeIn .5s ease; }
.provider-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.provider-logo { height: 28px; object-fit: contain; }
.provider-hdr h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
}
.provider-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  background: var(--cream);
  padding: 5px 14px;
  border-radius: 16px;
}

/* ============================================================
   CERTIFICATE GRID & CARDS
============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cert-card {
  background: white;
  border-radius: var(--radius);
  overflow: visible;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  outline: none;
}
.cert-card:hover, .cert-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Image sits in a square-cornered frame inset within the rounded card
   shell, so the certificate itself never gets clipped by border-radius */
.cert-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
}
.cert-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .4s ease;
  display: block;
  background: white;
}
.cert-card:hover .cert-img-wrap img { transform: scale(1.04); }
.cert-img-badge { aspect-ratio: 1/1; }
.cert-img-badge img { object-fit: contain; padding: 14px; background: white; }

.cert-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 56, 0.55), rgba(13, 27, 56, 0) 60%);
  color: white;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.cert-card:hover .cert-overlay, .cert-card:focus-visible .cert-overlay { opacity: 1; }

.cert-body { padding: 18px 20px 20px; }

/* Provider gradient badge — each provider gets its own color pairing,
   set inline per-card via data-provider-gradient in script.js */
.cert-provider-badge {
  display: inline-block;
  color: white;
  font-weight: 600;
  font-size: 11.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cert-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 40px;
}
.cert-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cert-meta span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Gradient CTA button — mirrors the card's provider gradient */
.cert-view-btn {
  display: block;
  width: 100%;
  border: none;
  color: white;
  font-weight: 700;
  font-size: 12.5px;
  padding: 11px 0;
  border-radius: 24px;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.cert-card:hover .cert-view-btn { transform: translateY(-1px); }

/* ============================================================
   COMING SOON STRIP
============================================================ */
.coming-soon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 28px 0 50px;
  opacity: .55;
}
.coming-soon-strip span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 18px;
  border: 1px dashed var(--border);
}
.coming-soon-strip .cs-label {
  background: none; border: none; font-style: italic; font-weight: 400;
}

/* ============================================================
   LEARNING PHILOSOPHY
============================================================ */
.philosophy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 64px 32px;
  text-align: center;
}
.philosophy-inner { max-width: 680px; margin: 0 auto; }
.sec-lbl {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
}
.philosophy blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: white;
  line-height: 1.6;
  margin-bottom: 18px;
}
.philosophy cite {
  font-size: 12.5px;
  color: var(--gold-light);
  font-weight: 600;
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 16, 30, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease;
  backdrop-filter: blur(4px);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-content {
  max-width: 880px; width: 90%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 88vh;
  animation: lbZoom .3s ease;
}
.lb-content img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--cream); }
.lb-info { padding: 22px 28px; text-align: left; }
.lb-info h3 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.lb-meta span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lb-id { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 0.4px; }

.lb-close {
  position: absolute; top: 22px; right: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: none; color: white;
  font-size: 28px; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; transition: background .2s ease;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.2); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none; color: white;
  font-size: 32px; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ============================================================
   FOOTER
============================================================ */
.footer { background: var(--navy-dark); padding: 36px 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.footer-inner p { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.footer-social a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 12px; font-weight: 600; }
.footer-social a:hover { color: var(--gold-light); }
.footer-social .div { color: rgba(255, 255, 255, 0.3); margin: 0 8px; }
.footer-home-btn {
  background: linear-gradient(135deg, var(--gold), #d9a23e);
  color: var(--navy-dark);
  font-size: 12px; font-weight: 700;
  padding: 10px 20px; border-radius: 20px;
  text-decoration: none;
  transition: transform .2s ease;
}
.footer-home-btn:hover { transform: translateY(-2px); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lbZoom { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-photo-col { flex: 0 0 220px; max-height: 280px; }
  .hero-photo { height: 280px; }
}
@media (max-width: 768px) {
  .hero-grid { flex-direction: column; }
  .hero-text-col { padding: 24px 24px 4px; text-align: center; }
  .hero-role { text-align: center; }
  .hero-blurb { margin-left: auto; margin-right: auto; }
  .hero-photo-col {
    flex: none; width: 100%; max-height: 200px;
    border-radius: 0;
  }
  .hero-photo { height: 200px; width: auto; }
}
@media (max-width: 640px) {
  .cert-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 28px; }
  .hero-title { font-size: 24px; }
  .wrap { padding: 36px 18px 10px; }
  .provider-hdr { flex-wrap: wrap; }
  .provider-count { margin-left: 0; }
  .lb-nav { width: 40px; height: 40px; font-size: 24px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
