﻿/* ============================================================
   IBRAM — International Board of Regenerative & Aesthetic Medicine
   Main Stylesheet
   ============================================================ */

/* Fonts loaded via <link> in layouts/app.blade.php */

/* ------------------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  --primary:        #0E1230;
  --primary-dark:   #080D1F;
  --primary-light:  #E8E9F0;
  --accent:         #C9A24A;
  --accent-light:   #FBF4E3;
  --bg:             #efefef;
  --bg-alt:         #EFEBE3;
  --text:           #1A1A1A;
  --text-muted:     #585858;
  --text-light:     #909090;
  --border:         #DDD9D2;
  --border-light:   #EAE6DF;
  --white:          #FFFFFF;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);

  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

*:focus { outline: none; }

*:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* here (not body) so position:fixed modals stay viewport-relative */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: normal;
}

p {
  font-family: var(--font-body);
  color: var(--text-muted);
  letter-spacing: normal;
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul { margin-bottom: 0; }

/* ------------------------------------------------------------
   NAVBAR — Apple-style elevated frosted glass
   ------------------------------------------------------------ */
.ibram-navbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ibram-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 6px 28px rgba(0,0,0,0.06);
}

/* Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark-img {
  width: 60px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.56rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

/* Nav links */
.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text) !important;
  padding: 7px 11px !important;
  border-radius: 8px;
  transition: background 0.18s cubic-bezier(0.4,0,0.2,1),
              color 0.18s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.navbar-nav .nav-link::after { display: none !important; }

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(6, 109, 119, 0.07);
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  background: rgba(6, 109, 119, 0.07);
}

/* Dropdown chevron */
.navbar-nav .dropdown-toggle::after {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: none;
  vertical-align: middle;
  margin-left: 2px;
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Apple-style dropdown panel */
.ibram-dropdown {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.05);
  padding: 8px;
  min-width: 220px;
  margin-top: 10px !important;
  animation: ddDropIn 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ddDropIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ibram-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.12s ease, color 0.12s ease;
}

.ibram-dropdown .dropdown-item:hover,
.ibram-dropdown .dropdown-item:focus {
  background: rgba(6, 109, 119, 0.07);
  color: var(--primary);
}

.ibram-dropdown .dropdown-item.active {
  background: rgba(6, 109, 119, 0.10);
  color: var(--primary);
  font-weight: 600;
}

.dd-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.dd-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.dd-item-sub {
  font-size: 0.71rem;
  color: var(--text-light);
  margin-top: 1px;
  line-height: 1.3;
}

.ibram-dropdown .dropdown-item:hover .dd-item-title,
.ibram-dropdown .dropdown-item.active .dd-item-title {
  color: var(--primary);
}

/* Contact CTA — pill button */
.nav-cta-btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 100px !important;
  padding: 8px 20px !important;
  margin-left: 10px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border: 1.5px solid var(--primary) !important;
  transition: background 0.18s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
              transform 0.18s cubic-bezier(0.4,0,0.2,1) !important;
  box-shadow: 0 1px 4px rgba(14,18,48,0.18) !important;
  white-space: nowrap;
}

.nav-cta-btn:hover,
.nav-cta-btn:focus {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(14,18,48,0.38) !important;
  transform: translateY(-1px) !important;
}

.nav-cta-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(14,18,48,0.22) !important;
}

/* Custom hamburger — animated 3-bar → X */
.navbar-toggler {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none !important;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(6, 109, 119, 0.20) !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

.navbar-toggler:hover { background: rgba(0, 0, 0, 0.07) !important; }

.toggler-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              width 0.2s ease;
  transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Footer logo */
.footer-logo-img {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  opacity: 0.92;
}

/* ------------------------------------------------------------
   HERO CAROUSEL
   ------------------------------------------------------------ */
.hero-carousel { position: relative; overflow: hidden; }

.hero-carousel .carousel-inner {
  height: 88vh;
  min-height: 560px;
  max-height: 820px;
}

.hero-carousel .carousel-item {
  height: 100%;
  position: relative;
}

.carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Video slide background ---- */
.carousel-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #044148;
}

.carousel-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 22, 26, 0.42);
  z-index: 1;
  pointer-events: none;
}

.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.carousel-video.vid-ready {
  opacity: 1;
}

.carousel-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 0;
}

.carousel-slide-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-slide-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.carousel-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 22px;
  max-width: 580px;
}

.carousel-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.carousel-indicators {
  bottom: 36px;
  left: 0;
  right: 0;
  justify-content: flex-start;
  margin: 0;
  padding-left: max(24px, calc((100vw - 1140px) / 2 + 12px));
}

.carousel-indicators [data-bs-target] {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  border-radius: 0;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.35s ease;
}

.carousel-indicators .active {
  width: 44px;
  background: var(--accent);
}

.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  opacity: 1;
  top: auto;
  bottom: 28px;
  transition: var(--transition);
}

.carousel-control-prev {
  left: auto;
  right: 80px;
}

.carousel-control-next {
  right: 24px;
  left: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.35);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------
   SECTION FUNDAMENTALS
   ------------------------------------------------------------ */
section { padding: 96px 0; }

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}

.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
}

.divider-accent {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}

/* ------------------------------------------------------------
   METRICS SECTION
   ------------------------------------------------------------ */
.metrics-section {
  background: var(--primary);
  padding: 64px 0;
}

.metric-item {
  text-align: center;
  padding: 20px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.metric-item:last-child { border-right: none; }

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 8px;
  display: block;
}

.metric-suffix { color: var(--accent); }

.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

/* ------------------------------------------------------------
   SERVICES / CORE PROGRAMS
   ------------------------------------------------------------ */
.services-section { background: var(--white); }

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 44px 36px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1),
              transform 0.22s cubic-bezier(0.4,0,0.2,1),
              border-color 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-4px);
  border-color: rgba(6, 109, 119, 0.18);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--primary);
}

.service-icon svg { width: 22px; height: 22px; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.service-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 28px;
}

.link-arrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease, gap 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.link-arrow svg {
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}

.link-arrow:hover {
  color: var(--primary-dark);
  gap: 10px;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ------------------------------------------------------------
   PATHWAY SECTION
   ------------------------------------------------------------ */
.pathway-section { background: var(--bg); }

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pathway-step {
  background: var(--white);
  padding: 32px 24px;
  transition: background 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  cursor: default;
}

.pathway-step::after {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1);
}

.pathway-step:hover { background: var(--bg); }
.pathway-step:hover::after { opacity: 1; }

.step-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   VERIFY SECTION
   ------------------------------------------------------------ */
.verify-section { background: var(--white); }

.verify-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
}

.verify-input-group { max-width: 540px; margin: 0 auto; }

/* ------------------------------------------------------------
   CTA SECTION
   ------------------------------------------------------------ */
.cta-section {
  background: var(--primary);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 18px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta-text {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.96rem;
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: 10px !important;
  padding: 11px 22px;
  transition: background 0.18s cubic-bezier(0.4,0,0.2,1),
              border-color 0.18s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
              transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  border-width: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 1px 3px rgba(14,18,48,0.16), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 109, 119, 0.32), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,18,48,0.22) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: var(--white) !important;
  background: rgba(255,255,255,0.04) !important;
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.70) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 30px !important;
  font-size: 0.84rem !important;
  border-radius: 12px !important;
}

/* ------------------------------------------------------------
   FORMS
   ------------------------------------------------------------ */
.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  padding: 13px 18px;
  height: auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.form-control:hover,
.form-select:hover {
  border-color: rgba(14,18,48,0.40);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(6, 109, 119, 0.14), 0 1px 2px rgba(0,0,0,0.04) !important;
  color: var(--text);
  outline: none;
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */
.page-header {
  background: var(--primary);
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 16px;
}

.page-header-text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  max-width: 520px;
  line-height: 1.85;
}

/* Breadcrumb inside page header */
.header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.header-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
}

.header-breadcrumb a:hover { color: rgba(255, 255, 255, 0.75); }

.header-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.6rem;
}

.header-breadcrumb .current { color: rgba(255, 255, 255, 0.75); }

/* ------------------------------------------------------------
   CONTENT CARDS
   ------------------------------------------------------------ */
.content-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 40px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.content-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.accent-rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

/* Program card */
.program-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 36px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1),
              transform 0.22s cubic-bezier(0.4,0,0.2,1),
              border-color 0.22s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.program-card:hover {
  border-color: rgba(6, 109, 119, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.program-level-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.program-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.program-acronym {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 600;
}

.program-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 24px;
}

.program-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.program-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}

.program-meta li:last-child { border-bottom: none; }

.program-meta .meta-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ------------------------------------------------------------
   MEMBERSHIP TIERS
   ------------------------------------------------------------ */
.membership-tier {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 44px 36px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.membership-tier:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.membership-tier.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.featured-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-bottom-left-radius: var(--radius-md);
}

.tier-level {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
}

.tier-period {
  font-size: 0.76rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.tier-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
}

.tier-features li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier-features li:last-child { border-bottom: none; }

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.tier-cta { margin-top: 32px; }

/* ------------------------------------------------------------
   VERIFY PAGE
   ------------------------------------------------------------ */
.verify-search-section { background: var(--white); }

.verify-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
}

.verify-result-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
              transform 0.18s cubic-bezier(0.4,0,0.2,1);
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.verify-result-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.verify-result-item:last-child { margin-bottom: 0; }

.verify-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  margin-top: 6px;
}

.verify-status-dot.expired { background: #EF4444; }
.verify-status-dot.pending { background: #F59E0B; }

.verify-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.verify-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.10);
  color: #15803D;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------ */
.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   ACCORDION
   ------------------------------------------------------------ */
.ibram-accordion .accordion-item {
  background: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 6px;
  overflow: hidden;
}

.ibram-accordion .accordion-button {
  background: var(--white) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  padding: 18px 22px !important;
  box-shadow: none !important;
}

.ibram-accordion .accordion-button:not(.collapsed) {
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}

.ibram-accordion .accordion-body {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding: 18px 22px !important;
  border-top: 1px solid var(--border-light);
}

/* ------------------------------------------------------------
   BOARD MEMBERS
   ------------------------------------------------------------ */
.board-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.board-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.board-avatar {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.board-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.board-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.board-country {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.board-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  display: block;
  border: 3px solid var(--primary-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.board-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.board-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.board-card-link .board-name {
  transition: color .15s;
}

.board-card-link:hover .board-name {
  color: var(--primary);
}

.board-linkedin-hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
  letter-spacing: .02em;
}

/* ------------------------------------------------------------
   BOOTSTRAP MODAL — CENTERING GUARANTEE
   Ensures modals stay viewport-centered even when the page has
   scroll-transform or stacking context on ancestor elements.
   ------------------------------------------------------------ */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
  margin-top: auto;
  margin-bottom: auto;
}

/* ------------------------------------------------------------
   ACCREDITATION PAGE SPECIFICS
   ------------------------------------------------------------ */
.accred-type-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 48px 40px;
  height: 100%;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), transform 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.accred-type-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.accred-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 28px;
}

.standards-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.standards-row:hover { box-shadow: var(--shadow-xs); }

.standards-number {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  flex-shrink: 0;
  margin-top: 2px;
  min-width: 28px;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background: #0C1B1E;
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-logo-full {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.44);
  line-height: 1.85;
  max-width: 270px;
  margin-bottom: 28px;
}

.footer-heading {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.18s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: none;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.50);
}

.footer-contact-line svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0;
  margin-top: 56px;
}

.footer-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.26);
}

.footer-legal-links a {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.26);
  margin-left: 20px;
}

.footer-legal-links a:hover { color: rgba(255, 255, 255, 0.60); }

/* ------------------------------------------------------------
   UTILITY
   ------------------------------------------------------------ */
.bg-alt  { background-color: var(--bg-alt) !important; }
.bg-ivory { background-color: var(--bg) !important; }
.bg-white { background-color: var(--white) !important; }
.text-primary-ibram { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }

.divider-md {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  .pathway-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
  section { padding: 72px 0; }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 0 -12px;
    padding: 12px 16px 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  }

  .navbar-nav .nav-link {
    padding: 13px 16px !important;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .ibram-dropdown {
    position: static !important;
    float: none !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(6, 109, 119, 0.04) !important;
    border: 1px solid rgba(6, 109, 119, 0.09) !important;
    border-radius: 12px !important;
    margin: 4px 0 4px 12px !important;
    padding: 6px !important;
    animation: none !important;
    min-width: 0 !important;
    width: calc(100% - 12px);
  }

  .ibram-dropdown .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .nav-cta-btn {
    margin: 8px 0 0;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    border-radius: 12px !important;
    padding: 13px 20px !important;
  }

  .carousel-item {
    height: 76vh;
    min-height: 480px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: 24px;
  }

  .metric-item:last-child { border-bottom: none; }

  .verify-box { padding: 44px 32px; }
  .verify-card { padding: 40px 28px; }

  .page-header { padding: 68px 0 60px; }

  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  section { padding: 56px 0; }

  .hero-carousel .carousel-inner {
    height: 92vh;
    min-height: 520px;
    max-height: none;
  }

  .verify-box { padding: 36px 20px; }
  .verify-card { padding: 32px 20px; }
  .content-card { padding: 28px 24px; }
  .program-card { padding: 28px 24px; }
  .membership-tier { padding: 36px 24px; }
  .accred-type-card { padding: 36px 28px; }

  .footer-desc { max-width: 100%; }
}

/* ============================================================
   STANDARDS & PUBLICATIONS PAGE
   ============================================================ */

.standards-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.std-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.18s ease;
}

.std-row:last-child { border-bottom: none; }
.std-row:hover { background: var(--bg); }

.std-meta-col {
  flex-shrink: 0;
  width: 110px;
}

.std-doc-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
  line-height: 1.4;
}

.std-doc-version {
  font-size: 0.64rem;
  color: var(--text-light);
  margin-top: 2px;
}

.std-body { flex-grow: 1; min-width: 0; }

.std-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.std-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.std-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.std-badge-regen     { background: rgba(14,18,48,0.10);  color: var(--primary); }
.std-badge-aesthetic { background: rgba(201,162,74,0.13); color: #836920; }
.std-badge-safety    { background: rgba(239,68,68,0.08);  color: #B91C1C; }
.std-badge-ethics    { background: rgba(109,40,217,0.08); color: #5B21B6; }
.std-badge-education { background: rgba(59,130,246,0.09); color: #1D4ED8; }

.std-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.std-download-col {
  flex-shrink: 0;
  padding-top: 2px;
}

.std-download-link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition);
}

.std-download-link:hover { color: var(--primary-dark); }

button.std-download-link { background: none; border: none; padding: 0; cursor: pointer; }

.research-area-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
}

.research-area-row:last-child { border-bottom: none; }

.ra-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(14,18,48,0.38);
  flex-shrink: 0;
  margin-top: 1px;
  min-width: 22px;
}

.ra-title {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

.pub-list { }

.pub-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.18s ease;
}

.pub-row:last-child { border-bottom: none; }

.pub-left {
  flex-shrink: 0;
  width: 130px;
}

.pub-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 3px;
  display: block;
}

.pub-date {
  font-size: 0.72rem;
  color: var(--text-light);
  display: block;
}

.pub-body { flex-grow: 1; min-width: 0; }

.pub-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pub-right {
  flex-shrink: 0;
  padding-top: 2px;
}

.pub-pdf-link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(14,18,48,0.30);
  padding: 5px 10px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.pub-pdf-link:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.standards-cta {
  background: var(--primary);
  padding: 88px 0;
  text-align: center;
}

.btn-archive {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  background: transparent !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.10em !important;
}

.btn-archive:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

@media (max-width: 767.98px) {
  .std-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  .std-meta-col { width: auto; }
  .std-download-col { width: 100%; }

  .pub-row { flex-wrap: wrap; gap: 12px; }
  .pub-left { width: auto; }
  .pub-right { width: 100%; }
}

/* ============================================================
   ACADEMY PAGE
   ============================================================ */

.page-header-light {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 0 64px;
}

.page-header-light .page-header-label { color: var(--primary); }
.page-header-light .page-header-title { color: var(--text); }
.page-header-light .page-header-text  { color: var(--text-muted); }

.page-header-light .header-breadcrumb,
.page-header-light .header-breadcrumb a  { color: var(--text-light); }
.page-header-light .header-breadcrumb .sep { color: var(--border); }
.page-header-light .header-breadcrumb .current { color: var(--text-muted); }

.why-card {
  padding: 32px 28px;
  border-left: 2px solid var(--border-light);
  height: 100%;
  transition: var(--transition);
}

.why-card:hover { border-left-color: var(--accent); }

.why-accent { width: 24px; height: 2px; background: var(--accent); margin-bottom: 18px; }

.why-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.why-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.80;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s cubic-bezier(0.4,0,0.2,1),
              transform 0.22s cubic-bezier(0.4,0,0.2,1),
              border-color 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.course-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-4px);
  border-color: rgba(14,18,48,0.18);
}

.course-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.course-card-img-placeholder {
  width: 100%;
  height: 210px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.course-card-body {
  padding: 24px 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.course-format-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius);
  border: 1px solid;
}

.format-online   { color: var(--primary); border-color: rgba(14,18,48,0.30); background: var(--primary-light); }
.format-inperson { color: #7C5A00; border-color: rgba(201,162,74,0.35); background: var(--accent-light); }
.format-mixed    { color: #4B5563; border-color: #D1D5DB; background: #F9FAFB; }

.course-acc {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.course-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.course-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.78;
  flex-grow: 1;
  margin-bottom: 20px;
}

.course-card-footer {
  padding: 16px 26px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
}

.course-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
}

.course-meta strong { color: var(--text); font-weight: 600; }

.prog-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 28px;
  display: block;
}

.cpd-req-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.cpd-req-row:last-child { border-bottom: none; }

.cpd-req-title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

.cpd-req-points {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   COURSE DETAIL INNER PAGE
   ============================================================ */

.course-hero {
  background: var(--primary);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.course-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.course-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.course-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.80);
  background: rgba(255,255,255,0.08);
}

.course-tag.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.course-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0;
  margin-bottom: 16px;
  max-width: 640px;
}

.course-hero-desc {
  font-size: 0.96rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.85;
}

.course-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.stat-item {
  padding: 22px 28px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item:last-child { border-right: none; }

.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-light);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.stat-value.highlight { color: var(--primary); }

.enroll-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.enroll-box-header {
  background: var(--primary);
  padding: 24px 28px;
}

.enroll-price-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.enroll-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
}

.enroll-price-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.50);
}

.enroll-box-body { padding: 24px 28px; }

.enroll-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}

.enroll-detail-row:last-child { border-bottom: none; }

.enroll-detail-key {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}

.enroll-detail-val {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.enroll-box-footer { padding: 20px 28px 28px; }

.outcome-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.outcome-list li:last-child { border-bottom: none; }

.outcome-check {
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

.module-row {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.module-row:last-child { border-bottom: none; }

.module-week {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
}

.module-week-num {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 6px;
}

.module-week-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-light);
}

.module-body { flex-grow: 1; }

.module-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.module-topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.module-topic-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 20px;
}

.faculty-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  height: 100%;
}

.faculty-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faculty-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.faculty-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.faculty-country {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius);
  display: inline-block;
}

.assessment-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.assessment-item:last-child { border-bottom: none; }

.assessment-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.assessment-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.assessment-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.price-row:last-child { border-bottom: none; }

.price-type {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 500;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.18s ease,
              color 0.18s ease,
              box-shadow 0.18s ease,
              transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.audience-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(14,18,48,0.12);
  transform: translateY(-1px);
}

.audience-tag svg { color: var(--primary); flex-shrink: 0; }

@media (max-width: 991.98px) {
  .enroll-box { position: static; }
  .stat-item { padding: 16px 20px; }
  .course-card-img { height: 180px; }
}

@media (max-width: 575.98px) {
  .module-row { flex-direction: column; gap: 12px; }
  .module-week { width: auto; display: flex; align-items: center; gap: 12px; }
  .course-stats-bar .row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .stat-item:last-child { border-bottom: none; }
}

/* ============================================================
   APPLE-GRADE POLISH
   ============================================================ */

::selection {
  background: rgba(6, 109, 119, 0.18);
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.14);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageIn 0.38s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s cubic-bezier(0.4,0,0.2,1),
              transform 0.52s cubic-bezier(0.4,0,0.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.44s cubic-bezier(0.4,0,0.2,1),
              transform 0.44s cubic-bezier(0.4,0,0.2,1);
}

.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(n+6) { opacity: 1; transform: none; transition-delay: 0.38s; }

.ibram-dropdown .dropdown-item:hover .dd-icon,
.ibram-dropdown .dropdown-item.active .dd-icon {
  background: rgba(14,18,48,0.12);
  transition: background 0.15s ease;
}

img {
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  padding-left: 3px;
  transition: color 0.18s ease, padding-left 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.std-row { transition: background 0.16s ease; }
.std-row:hover { background: rgba(14,18,48,0.025); }

.program-level-badge,
.course-format-badge {
  transition: background 0.16s ease, color 0.16s ease;
}

.carousel-control-prev,
.carousel-control-next {
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  transform: scale(1.06);
}

/* ============================================================
   MEGA MENU NAVIGATION
   ============================================================ */

/* ── Container layout ─────────────────────────────────────── */
.mega-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ── Desktop nav list ─────────────────────────────────────── */
.mega-nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 2px;
}

@media (min-width: 992px) {
  .mega-nav-list { display: flex; }
}

/* ── Nav trigger (opens mega panel) ──────────────────────── */
.mega-nav-trigger {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s;
  position: relative;
}

.mega-nav-trigger:hover,
.mega-nav-trigger:focus-visible {
  background: rgba(14,18,48,.07);
  color: var(--primary);
  outline: none;
}

.mega-nav-trigger.is-current {
  color: var(--primary);
  font-weight: 600;
  background: rgba(14,18,48,.06);
}

.mega-nav-trigger[aria-expanded="true"] {
  background: rgba(14,18,48,.09);
  color: var(--primary);
}

.mega-chevron {
  flex-shrink: 0;
  opacity: 0.50;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), opacity 0.18s;
}

.mega-nav-trigger:hover .mega-chevron,
.mega-nav-trigger.is-current .mega-chevron { opacity: 0.75; }

.mega-nav-trigger[aria-expanded="true"] .mega-chevron {
  transform: rotate(180deg);
  opacity: 0.85;
}

/* ── Simple nav link ──────────────────────────────────────── */
.mega-nav-link {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.mega-nav-link:hover,
.mega-nav-link:focus-visible {
  background: rgba(14,18,48,.07);
  color: var(--primary);
  outline: none;
}

.mega-nav-link.is-current {
  color: var(--primary);
  font-weight: 600;
  background: rgba(14,18,48,.06);
}

/* ── CTA pill ─────────────────────────────────────────────── */
.mega-nav-cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  padding: 8px 22px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(14,18,48,.20);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s cubic-bezier(.34,1.56,.64,1);
}

.mega-nav-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(14,18,48,.38);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.mega-nav-cta:active { transform: translateY(0); }

/* ── Mega Panel ───────────────────────────────────────────── */
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 28px 64px rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.05);
  padding: 40px 0 44px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(.4,0,.2,1),
              transform 0.22s cubic-bezier(.4,0,.2,1),
              visibility 0.22s;
}

.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Panel inner layouts ──────────────────────────────────── */
.mega-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.mega-inner--split {
  gap: 0;
}

/* Intro column (used in Credentials panel) */
.mega-intro {
  flex: 0 0 230px;
  padding-right: 48px;
  border-right: 1px solid var(--border-light);
}

.mega-intro-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.mega-intro-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.28;
  margin-bottom: 12px;
}

.mega-intro-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 22px;
}

.mega-intro-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s cubic-bezier(.34,1.56,.64,1), color 0.18s;
}

.mega-intro-link:hover {
  gap: 9px;
  color: var(--primary-dark);
}

/* 2-column item grid */
.mega-items-grid {
  flex: 1;
  display: grid;
  gap: 4px;
}

.mega-items-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  padding-left: 24px;
}

/* Single-column items (used in Academy and Insights) */
.mega-items-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 32px;
  border-right: 1px solid var(--border-light);
}

/* ── Mega Item ────────────────────────────────────────────── */
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.16s cubic-bezier(.4,0,.2,1);
}

.mega-item:hover { background: rgba(14,18,48,.05); color: var(--text); }

.mega-item--active { background: rgba(14,18,48,.07); }

.mega-item-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--primary-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-top: 1px;
  transition: background 0.16s;
}

.mega-item:hover .mega-item-icon { background: rgba(14,18,48,.15); }

.mega-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mega-item-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  display: block;
  transition: color 0.16s;
}

.mega-item:hover .mega-item-title,
.mega-item--active .mega-item-title { color: var(--primary); }

.mega-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: block;
}

/* ── Feature card (inside panel) ─────────────────────────── */
.mega-feature-card {
  flex: 0 0 210px;
  background: var(--primary);
  border-radius: 14px;
  padding: 28px 24px 26px;
  margin-left: 32px;
  display: flex;
  flex-direction: column;
}

.mega-feature-card--dark {
  background: linear-gradient(145deg, #03454d 0%, var(--primary) 100%);
}

.mega-feature-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,.50);
  margin-bottom: 10px;
  display: block;
}

.mega-feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.mega-feature-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,.58);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 22px;
}

.mega-feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  padding: 8px 14px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.18s, border-color 0.18s, gap 0.2s cubic-bezier(.34,1.56,.64,1);
}

.mega-feature-btn:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.44);
  color: var(--white);
  gap: 9px;
}

/* ── Backdrop (injected via JS to document.body) ─────────── */
.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.18);
  z-index: 1029;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
  pointer-events: none;
}

.mega-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Hamburger button ─────────────────────────────────────── */
.mega-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.04);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.18s;
}

.mega-hamburger:hover { background: rgba(0,0,0,.07); }

.mega-hamburger:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

.ham-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}

.mega-hamburger.is-open .ham-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mega-hamburger.is-open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mega-hamburger.is-open .ham-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 992px) { .mega-hamburger { display: none; } }

/* ── Mobile Drawer ────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: var(--white);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -16px 0 48px rgba(0,0,0,.16);
}

.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.44);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.mobile-drawer-backdrop.is-visible { opacity: 1; visibility: visible; }

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.mobile-drawer-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.04);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background 0.16s;
}

.mobile-drawer-close:hover { background: rgba(0,0,0,.08); }

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ── Mobile accordion ─────────────────────────────────────── */
.mobile-acc { border-bottom: 1px solid var(--border-light); }

.mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s, color 0.16s;
}

.mobile-acc-trigger:hover { background: rgba(0,0,0,.02); }
.mobile-acc-trigger.is-current { color: var(--primary); font-weight: 600; }
.mobile-acc-trigger[aria-expanded="true"] { color: var(--primary); }

.mobile-acc-chevron {
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.24s cubic-bezier(.4,0,.2,1), opacity 0.18s;
}

.mobile-acc-trigger[aria-expanded="true"] .mobile-acc-chevron {
  transform: rotate(180deg);
  opacity: 0.75;
}

.mobile-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s cubic-bezier(.4,0,.2,1);
  background: rgba(14,18,48,.02);
}

.mobile-acc-body.is-open { max-height: 500px; }

.mobile-acc-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 20px 11px 28px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background 0.14s;
}

.mobile-acc-item:last-child { border-bottom: none; }
.mobile-acc-item:hover { background: rgba(14,18,48,.05); }
.mobile-acc-item.is-active { background: rgba(14,18,48,.07); }

.mobile-acc-item-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.mobile-acc-item.is-active .mobile-acc-item-title { color: var(--primary); }

.mobile-acc-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Simple mobile link (no accordion) */
.mobile-simple-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.mobile-simple-link:hover { background: rgba(0,0,0,.02); color: var(--primary); }
.mobile-simple-link.is-active { color: var(--primary); font-weight: 600; }

/* ── Responsive adjustments ───────────────────────────────── */
@media (max-width: 1199.98px) {
  .mega-feature-card { flex: 0 0 190px; }
  .mega-intro { flex: 0 0 200px; padding-right: 32px; }
}

@media (max-width: 991.98px) {
  .mega-nav-list { display: none !important; }
  .mega-panel { display: none !important; }
  .mega-backdrop { display: none !important; }
  .mega-hamburger { display: flex !important; }
}


/* ============================================================
   TOPBAR
   ============================================================ */
.ibram-topbar {
  background: #f5f6f8;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.topbar-email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
  white-space: nowrap;
}
.topbar-email:hover { color: var(--primary); }

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.topbar-link:hover { color: var(--primary); background: rgba(14,18,48,.05); }
.topbar-link--active { color: var(--primary); font-weight: 600; }
.topbar-link--highlight {
  color: var(--primary);
  font-weight: 600;
  background: rgba(14,18,48,.06);
}
.topbar-link--highlight:hover { background: rgba(14,18,48,.1); }

.topbar-lang { position: relative; }
.topbar-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #555;
  background: none;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.topbar-lang-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(14,18,48,.04); }
.lang-chevron { transition: transform .2s; }
.topbar-lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.topbar-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 1050;
  animation: langDropIn .18s ease;
}
@keyframes langDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background .12s, color .12s;
}
.lang-option:hover { background: var(--bg); color: var(--text); }
.lang-option.is-active { color: var(--primary); font-weight: 600; background: rgba(14,18,48,.05); }
.lang-flag { font-size: 1rem; line-height: 1; }

.topbar-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 7px;
  margin-left: 4px;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.topbar-contact-btn:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff; }

/* ============================================================
   NAV SEARCH BUTTON
   ============================================================ */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14,18,48,.05);
  border: 1.5px solid rgba(14,18,48,.1);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}
.nav-search-btn:hover {
  background: rgba(14,18,48,.09);
  border-color: rgba(14,18,48,.2);
  color: var(--text);
}
.nav-search-label { font-weight: 500; }
.nav-search-kbd {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-light);
  background: rgba(0,0,0,.06);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: .04em;
  font-family: var(--font-body);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,30,.72);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 100%;
  max-width: 640px;
}
.search-overlay.is-open .search-overlay-inner {
  animation: searchSlideIn .22s ease;
}
@keyframes searchSlideIn {
  from { transform: translateY(-16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.search-overlay-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 0 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.search-overlay-icon { flex-shrink: 0; color: var(--text-muted); }
.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  padding: 20px 12px;
  background: transparent;
  min-width: 0;
}
.search-overlay-input::placeholder { color: #bbb; }
.search-kbd {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 3px 7px;
  letter-spacing: .06em;
}
.search-quick-links {
  margin-top: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.search-quick-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 14px;
}
.search-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.search-quick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all .15s;
}
.search-quick-item:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  transform: translateY(-1px);
}
.search-overlay-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.search-overlay-close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ============================================================
   MOBILE TOPBAR LINKS
   ============================================================ */
.mobile-topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.mobile-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s;
}
.mobile-topbar-link:hover { color: var(--primary); border-color: var(--primary); }
.mobile-topbar-link--highlight {
  color: var(--primary);
  font-weight: 600;
  background: rgba(14,18,48,.06);
  border-color: rgba(14,18,48,.15);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .ibram-topbar { display: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .topbar-email { display: none; }
  .topbar-link:not(.topbar-link--highlight) { display: none; }
}
@media (max-width: 991.98px) {
  .nav-search-btn { display: none; }
}
@media (max-width: 575px) {
  .search-overlay { padding: 60px 12px 24px; }
  .search-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .search-overlay-close { top: 14px; right: 14px; }
}
