/*
Theme Name: OPPAK Academy
Theme URI: https://oppak.org
Author: Orthotics Prosthetics Pakistan (OPPAK)
Author URI: https://oppak.org
Description: Official WordPress theme for the OPPAK Academy of Orthotists and Prosthetists — an online resource for learning, training and sharing O&P knowledge. Learn. Teach. Share. Visual design aligned to oppak.com (teal-forward palette, light header, unchanged Montserrat/Open Sans typography).
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oppak-academy
Tags: education, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================
   0. CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* ── OPPAK brand palette (oppak.com — teal-forward) ──
     Exact brand hues live here. To fine-tune to the live site,
     adjust these values only; the whole theme follows. */
  --gold:        #E0A93B;   /* warm accent — badges, stat numbers */
  --mint:        #5CC8B0;   /* soft aqua accent */
  --teal:        #158C9B;   /* PRIMARY brand — links, buttons, header accents */
  --teal-dark:   #0F6F7C;   /* teal hover / active */
  --teal-soft:   #E5F4F5;   /* pale teal tint — chips, hovers, section washes */
  --steel-blue:  #3B5A8A;
  --navy-mid:    #244063;   /* deep teal-navy */
  --navy-dark:   #142A44;   /* headings, footer, hero base (cool navy) */
  --white:       #ffffff;
  --off-white:   #f4f8f9;   /* faint teal-tinted page wash */
  --light-gray:  #e3ebee;
  --mid-gray:    #6f7d88;
  --text-dark:   #142A44;
  --text-body:   #3a4a57;

  /* ── semantic aliases (design layer) ── */
  --primary:      var(--teal);
  --primary-dark: var(--teal-dark);
  --accent:       var(--gold);

  /* ── header / chrome control (oppak.com: light bar, teal utility strip) ── */
  --header-bg:    #ffffff;
  --header-text:  #142A44;
  --topbar-bg:    var(--teal);
  --topbar-text:  rgba(255,255,255,0.92);

  /* Fonts — unchanged (Montserrat / Open Sans) */
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(26,35,64,0.08);
  --shadow-md:   0 6px 24px rgba(26,35,64,0.12);
  --shadow-lg:   0 16px 48px rgba(26,35,64,0.16);
  --transition:  all 0.3s ease;
  --max-width:   1200px;
  --section-pad: 90px 0;

  /* Fixed header height — kept in sync with the real rendered header height
     by JS (see main.js) so content never overlaps it. This value is just the
     first-paint fallback before JS runs. */
  --header-height: 108px;
}

/* =============================================
   1. RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy-mid); }
ul { list-style: none; }

/* =============================================
   2. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: calc(clamp(2rem, 5vw, 3.25rem) - 14px); }
h2 { font-size: calc(clamp(1.6rem, 3.5vw, 2.5rem) - 8px); }
h3 { font-size: calc(clamp(1.2rem, 2.5vw, 1.75rem) - 6px); }
h4 { font-size: calc(1.25rem - 4px); }
h5 { font-size: calc(1.1rem - 4px); }
h6 { font-size: calc(1rem - 4px); }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--mid-gray);
  font-weight: 400;
}

/* =============================================
   3. UTILITY CLASSES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section-pad { padding: var(--section-pad); }
.section-pad-sm { padding: 60px 0; }
.section-pad-lg { padding: 120px 0; }

/* Homepage sections had noticeably more top/bottom whitespace than the rest
   of the site — trim just these to a tighter, more compact rhythm without
   touching --section-pad (still used by inner pages). */
.imgtext-section.section-pad,
.learn-section.section-pad,
.teach-section.section-pad,
.share-section.section-pad,
.news-section.section-pad,
.career-section.section-pad,
.blog-section.section-pad {
  padding: 52px 0;
}
.whatsapp-channel-section.section-pad-sm { padding: 36px 0; }

/* Image+Text (ICPO/featured) section — background colour is editable
   via Customizer → OPPAK Academy Settings → Image + Text Section */
.imgtext-section {
  background-color: var(--imgtext-bg, var(--off-white));
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-teal   { color: var(--teal) !important; }
.text-navy   { color: var(--navy-dark) !important; }

.bg-white      { background: var(--white); }
.bg-off-white  { background: var(--off-white); }
.bg-navy-dark  { background: var(--navy-dark); }
.bg-navy-mid   { background: var(--navy-mid); }
.bg-teal       { background: var(--teal); }
.bg-steel      { background: var(--steel-blue); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label--gold { color: var(--gold); }
.section-label--white { color: var(--mint); }

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: calc(clamp(1.6rem, 3.5vw, 2.5rem) - 10px);
  margin-bottom: 20px;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 20px;
}
.divider--left { margin-left: 0; }
.divider--teal { background: var(--teal); }

/* =============================================
   4. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(21,140,155,0.30);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(21,140,155,0.42);
}

/* Warm gold variant — retained for badges / highlight CTAs */
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(224,169,59,0.35);
}
.btn-gold:hover {
  background: #cf9930;
  border-color: #cf9930;
  color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(224,169,59,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-navy {
  background: var(--navy-mid);
  color: var(--white);
  border-color: var(--navy-mid);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }

/* =============================================
   5. GRID & FLEX HELPERS
   ============================================= */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }

/* =============================================
   6. HEADER & NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  transition: var(--transition);
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--light-gray);
}
#site-header.scrolled {
  background: var(--header-bg);
  box-shadow: var(--shadow-md);
}

/* Top Bar — teal utility strip (oppak.com) */
.top-bar {
  background: var(--topbar-bg);
  /* no border/divider between top-bar and main menu */
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 24px;
  font-size: 0.76rem;
  font-family: var(--font-body);
  color: var(--topbar-text);
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
}
.top-bar-date { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.top-bar-date i { color: rgba(255,255,255,0.85); font-size: 0.75rem; }
.top-bar-sep { opacity: 0.35; margin: 0 2px; }
.top-bar-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.top-bar-social { display: flex; align-items: center; gap: 12px; }
.top-bar-social a {
  color: var(--topbar-text);
  font-size: 0.8rem;
  transition: var(--transition);
}
.top-bar-social a:hover { color: #fff; }
.top-bar-contact { display: flex; align-items: center; gap: 20px; }
.top-bar-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--topbar-text);
  font-size: 0.76rem;
  text-decoration: none;
  transition: var(--transition);
}
.top-bar-contact a:hover { color: #fff; }
.top-bar-contact i { color: rgba(255,255,255,0.85); font-size: 0.72rem; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 24px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.header-buttons { display: flex; align-items: center; gap: 10px; }
.nav-members { color: var(--white); border-color: rgba(255,255,255,0.4); }
.nav-members:hover { background: var(--white); color: var(--navy-dark); }

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo img {
  height: 42px;
  width: auto;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy-dark);
  line-height: 1.25;
  max-width: 220px;
  white-space: normal;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Primary Navigation */
#primary-nav { display: flex; align-items: center; gap: 6px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--header-text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
  color: var(--teal);
  background: var(--teal-soft);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border-top: 3px solid var(--teal);
  list-style: none;
}
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 10px 20px;
  transition: var(--transition);
  text-decoration: none;
}
.sub-menu li a:hover {
  color: var(--teal);
  background: var(--teal-soft);
  padding-left: 26px;
}

/* CTA Button in Nav */
.nav-cta { margin-left: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   7. HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy-mid) 45%, var(--teal) 120%);
  padding-top: calc(var(--header-height) + 24px);
  padding-bottom: 28px;
  flex-direction: column;
}
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-height) + 20px); min-height: auto; padding-bottom: 32px; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-height) + 16px); padding-bottom: 28px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(20,42,68,0.90) 0%, rgba(36,64,99,0.82) 48%, rgba(21,140,155,0.55) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-shape-1 {
  position: absolute;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,159,175,0.18) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.hero-shape-2 {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,42,0.12) 0%, transparent 70%);
  bottom: -70px; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-text .section-label { font-size: 0.78rem; margin-bottom: 8px; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-title span { color: var(--gold); }
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Trust Bar — shown only under the Hero buttons */
.hero-trustbar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  margin-top: 4px;
}
.hero-trustbar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trustbar-item i {
  font-size: 1.15rem;
  color: var(--mint);
  flex-shrink: 0;
}
.hero-trustbar-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1;
}
.hero-trustbar-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .hero-trustbar { justify-content: center; }
}

/* Front Page Widget Areas */
.widget-area-section { border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); }
.front-widget-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.front-widget-area .widget { min-width: 0; }
.front-widget-area .widget-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
  margin-bottom: 14px;
}

/* Hero Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: 26px;
  max-width: 360px;
  width: 100%;
}
.hero-card-logo {
  margin-bottom: 24px;
  text-align: center;
}
.hero-card-logo img { height: 90px; margin: 0 auto; }
.hero-card-tagline {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-card-features { display: flex; flex-direction: column; gap: 10px; }
.hero-card-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
}
.hero-card-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(26,159,175,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.hero-card-feature-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}
.hero-card-feature-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   8. TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 28px 0;
  box-shadow: var(--shadow-sm);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon {
  width: 46px;
  height: 46px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--teal);
}
.trust-text-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-dark);
  line-height: 1;
}
.trust-text-label {
  font-size: 0.78rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--light-gray);
}

/* =============================================
   9. FEATURED COURSES SECTION
   ============================================= */
.courses-section { padding: var(--section-pad); background: var(--off-white); }
.courses-header {
  text-align: center;
  margin-bottom: 56px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.course-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-mid), var(--teal));
}
.course-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-card-thumb img { transform: scale(1.06); }
.course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
}
.course-badge--teal { background: var(--teal); color: var(--white); }
.course-badge--navy { background: var(--navy-mid); color: var(--white); }

.course-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.course-meta-item svg { width: 13px; height: 13px; }

.course-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.course-card-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--light-gray);
}
.course-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-mid);
}
.course-price span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--mid-gray);
  text-transform: uppercase;
}

.courses-cta { text-align: center; margin-top: 48px; }

/* =============================================
   10. WHY OPPAK SECTION
   ============================================= */
.why-section {
  padding: var(--section-pad);
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,159,175,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.why-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.why-features { display: flex; flex-direction: column; gap: 28px; }
.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(26,159,175,0.15);
  border: 1px solid rgba(26,159,175,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.why-feature-icon--gold { background: rgba(212,168,42,0.15); border-color: rgba(212,168,42,0.25); }
.why-feature-icon--mint { background: rgba(92,200,176,0.15); border-color: rgba(92,200,176,0.25); }

.why-feature-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}
.why-feature-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.why-image-block {
  position: relative;
}
.why-image-block img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.why-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 150px;
}
.why-badge-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}
.why-badge-text { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* =============================================
   11. TESTIMONIALS
   ============================================= */
.testimonials-section { padding: var(--section-pad); background: var(--white); }
.testimonials-header { text-align: center; margin-bottom: 56px; }

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--teal);
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
  opacity: 0.5;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
}
.testimonial-avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-dark);
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 2px;
}

/* =============================================
   12. CTA BANNER
   ============================================= */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--steel-blue) 0%, var(--navy-mid) 50%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner-content { position: relative; z-index: 2; }
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.7rem);
  margin-bottom: 16px;
}
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 40px; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   13. PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
  padding: calc(var(--header-height) + 32px) 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-title { color: var(--navy-dark); margin-bottom: 10px; font-size: calc(clamp(2rem, 5vw, 3.25rem) - 14px); }
.page-hero-desc { color: var(--text-body); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.breadcrumb a, .breadcrumb span {
  font-size: 0.82rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--light-gray); }
.breadcrumb .current { color: var(--teal); }

/* section-label--white was designed for a dark background; page-hero is now
   light, so give it a readable color here instead of the pale mint tone. */
.page-hero .section-label--white { color: var(--teal); }

/* =============================================
   14. ABOUT PAGE
   ============================================= */
.about-intro { padding: var(--section-pad); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: var(--teal);
  border-radius: var(--radius-md);
  opacity: 0.1;
  z-index: -1;
}

.values-section { padding: var(--section-pad); background: var(--off-white); }
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.value-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.value-desc { font-size: 0.92rem; color: var(--mid-gray); line-height: 1.65; }

/* Team */
.team-section { padding: var(--section-pad); }
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--light-gray);
  transition: var(--transition);
}
.team-card:hover .team-photo { border-color: var(--teal); }
.team-photo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 16px;
}
.team-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-dark); margin-bottom: 4px; }
.team-title { font-size: 0.82rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.team-bio { font-size: 0.88rem; color: var(--mid-gray); line-height: 1.6; }

/* =============================================
   15. COURSES PAGE
   ============================================= */
.courses-page { padding: var(--section-pad); }
.courses-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--light-gray);
  background: var(--white);
  color: var(--mid-gray);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

/* Single Course Page */
.course-detail { padding: var(--section-pad); }
.course-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.course-sticky-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.course-sticky-card-thumb { height: 200px; background: linear-gradient(135deg, var(--navy-mid), var(--teal)); overflow: hidden; }
.course-sticky-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-sticky-card-body { padding: 28px; }
.course-price-display {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.course-price-display small { font-size: 1rem; font-weight: 400; color: var(--mid-gray); }
.course-info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.course-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}
.course-info-item:last-child { border-bottom: none; }
.course-info-icon { font-size: 1rem; color: var(--teal); width: 20px; text-align: center; }

.course-sticky-cta { display: flex; flex-direction: column; gap: 10px; }
.course-sticky-cta .btn { justify-content: center; width: 100%; }

/* Course Tabs */
.course-tabs { margin-top: 40px; }
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border: none;
  background: none;
  color: var(--mid-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.outcomes-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.outcome-check {
  width: 22px; height: 22px;
  background: rgba(26,159,175,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 0.75rem;
  margin-top: 2px;
}

/* =============================================
   16. BLOG
   ============================================= */
.blog-section { padding: var(--section-pad); background: var(--white); }
.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--steel-blue), var(--teal));
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 10px;
}
.post-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--teal); }
.post-excerpt { font-size: 0.9rem; color: var(--mid-gray); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  padding-top: 14px;
  border-top: 1px solid var(--light-gray);
}
.post-meta span { display: flex; align-items: center; gap: 5px; }

/* =============================================
   17. CONTACT PAGE
   ============================================= */
.contact-section { padding: var(--section-pad); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.contact-info-card {
  background: var(--navy-dark);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,0.65); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(26,159,175,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-detail-title { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--white); margin-bottom: 3px; }
.contact-detail-value { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.contact-social { display: flex; gap: 12px; margin-top: 36px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
}
.contact-form-wrap h3 { margin-bottom: 8px; }
.contact-form-wrap .lead { margin-bottom: 32px; font-size: 1rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-dark);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group label .required { color: var(--gold); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,159,175,0.12);
}
.form-control::placeholder { color: #b0b8c4; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }

/* =============================================
   18. RESOURCES PAGE
   ============================================= */
.resources-section { padding: var(--section-pad); background: var(--off-white); }
.resource-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.resource-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(26,159,175,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.resource-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--navy-dark); margin-bottom: 6px; }
.resource-desc { font-size: 0.88rem; color: var(--mid-gray); line-height: 1.6; margin-bottom: 12px; }

/* =============================================
   19. SIDEBAR WIDGETS
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

/* When sidebar is hidden (no-sidebar body class), expand article to full width */
body.no-sidebar .course-detail-grid {
  grid-template-columns: 1fr;
}
body.no-sidebar .course-detail-sidebar {
  display: none;
}
body.no-sidebar .grid-2-1 {
  grid-template-columns: 1fr;
}
body.no-sidebar .grid-2-1 aside.sidebar {
  display: none;
}
body.no-sidebar .grid-2-1 article {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 40px; height: 2px;
  background: var(--teal);
}

/* =============================================
   20. FOOTER
   ============================================= */
#site-footer { background: var(--navy-dark); }

.footer-top {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand { max-width: 300px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 64px; }
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-slogan {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-slogan::before, .footer-slogan::after {
  content: '';
  flex: 1;
  max-width: 30px;
  height: 1px;
  background: rgba(212,168,42,0.4);
}

.footer-col-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-links a::before {
  content: '›';
  color: var(--teal);
  font-size: 1rem;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

/* Newsletter in Footer */
.footer-newsletter p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 16px; line-height: 1.6; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus { border-color: var(--teal); background: rgba(255,255,255,0.1); }
.newsletter-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 50px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-btn:hover { background: #158a98; }

/* Footer Social */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }

/* Footer Bottom */
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.4); transition: var(--transition); text-decoration: none; }
.footer-legal a:hover { color: var(--mint); }
.footer-accreditation {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accreditation-badge {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   21. CONTENT STYLES (WordPress Editor)
   ============================================= */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol {
  margin: 0 0 1.4em 1.5em;
  list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--off-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--mid-gray);
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content th, .entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--light-gray);
  font-size: 0.92rem;
}
.entry-content th { background: var(--navy-dark); color: var(--white); font-family: var(--font-head); font-weight: 700; text-align: left; }
.entry-content tr:nth-child(even) td { background: var(--off-white); }
.entry-content img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.entry-content .wp-block-image figure { margin: 1.5em 0; }
.entry-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy-mid); }
/* Prevent entry-content link colour overriding button and gate link colours */
.entry-content .btn,
.entry-content .btn:hover,
.entry-content .oppak-gate .btn,
.entry-content .oppak-gate .btn:hover { text-decoration: none; }
.entry-content .btn-primary,
.entry-content .oppak-gate .btn-primary { color: var(--white) !important; }
.entry-content .btn-primary:hover,
.entry-content .oppak-gate .btn-primary:hover { color: var(--white) !important; }
.entry-content .btn-outline,
.entry-content .oppak-gate .btn-outline { color: var(--teal) !important; }
.entry-content .btn-outline:hover,
.entry-content .oppak-gate .btn-outline:hover { color: var(--white) !important; }
.entry-content .btn-secondary { color: var(--white) !important; }
.entry-content .btn-secondary:hover { color: var(--navy-dark) !important; }
.entry-content code {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--navy-mid);
}

/* =============================================
   22. PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 56px;
}
.pagination .page-numbers {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mid-gray);
  border: 2px solid var(--light-gray);
  transition: var(--transition);
  text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* =============================================
   23. GUTENBERG BLOCK OVERRIDES
   ============================================= */
.wp-block-group { margin: 2em 0; }
.wp-block-columns { gap: 28px; }
.wp-block-button__link {
  background: var(--teal) !important;
  border-radius: 50px !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
  transition: var(--transition) !important;
}
.wp-block-button__link:hover { background: var(--navy-mid) !important; }
.wp-block-cover { border-radius: var(--radius-md); }
.wp-block-pullquote {
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
  padding: 32px;
}
.wp-block-pullquote blockquote cite { color: var(--teal); font-style: normal; font-weight: 600; }

/* =============================================
   24. 404 PAGE
   ============================================= */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.error-404-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(6rem, 20vw, 14rem);
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 0;
}
.error-404-title { font-size: 2rem; color: var(--navy-dark); margin-bottom: 16px; margin-top: -20px; }
.error-404-desc { font-size: 1.1rem; color: var(--mid-gray); margin-bottom: 32px; }

/* =============================================
   25. SCROLL TO TOP
   ============================================= */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { background: var(--navy-mid); transform: translateY(-3px); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 92px;
  right: 32px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 9997;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }

/* =============================================
   26. RESPONSIVE — TABLET (max 1024px)
   ============================================= */
@media (max-width: 1300px) {
  .header-left { gap: 16px; }
  .nav-menu { gap: 0; }
  .nav-menu > li > a { padding: 10px 10px; font-size: 0.8rem; }
  .logo-name { font-size: 0.9rem; max-width: 180px; }
  .logo-sub { display: none; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-image-block { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-sticky-card { position: static; }
}

/* =============================================
   27. RESPONSIVE — MOBILE (max 768px)
   ============================================= */
@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }

  .hamburger { display: flex; }

  .top-bar-inner { justify-content: center; text-align: center; font-size: 0.68rem; }
  .top-bar-contact { gap: 12px; }
  .header-buttons .nav-members span,
  .header-buttons .nav-members { padding: 8px 12px; font-size: 0.72rem; }
  .header-buttons .btn.nav-cta { padding: 8px 14px; font-size: 0.72rem; }

  #primary-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 28px 40px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 9990;
  }
  #primary-nav.open { transform: translateX(0); }

  .nav-menu { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-menu > li > a {
    font-size: 1.2rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
    border-radius: 0;
  }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-top: none;
    padding: 8px 0;
    margin-top: 4px;
    display: none;
  }
  .nav-menu > li.sub-open > .sub-menu { display: block; }
  .nav-cta { margin-top: 24px; margin-left: 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar-inner { flex-direction: column; }
  .trust-divider { display: none; }
  .hero-title { font-size: 1.3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .contact-form-wrap, .contact-info-card { padding: 32px 24px; }
  .course-detail-grid { grid-template-columns: 1fr; }
  .tab-nav { flex-direction: column; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .breadcrumb { flex-wrap: wrap; }
  .courses-filter { gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: calc(1.8rem - 8px); }
  h2 { font-size: calc(1.5rem - 8px); }
  .btn { padding: 12px 24px; font-size: 0.82rem; }
  .btn-lg { padding: 14px 32px; font-size: 0.9rem; }
}

/* =============================================
   28. ACCESSIBILITY
   ============================================= */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  top: -50px;
  left: 24px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 99999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* High contrast focus for interactive elements */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Print */
@media print {
  #site-header, #site-footer, .whatsapp-float, #scroll-top { display: none; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* =============================================
   28. HOME — LEARN / TEACH / SHARE / NEWS / WHATSAPP
   ============================================= */
/* Home section header — title and pills on the same row */
.home-section-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.home-section-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.home-section-header-left .section-label { margin-bottom: 0; }
.home-section-header-left .section-title { margin-bottom: 0; }
.home-section-header-left .divider       { margin: 4px 0 0 0; }

/* Sub-navigation quick links row inside each Learn/Teach/Share section */
.section-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
  align-items: center;
  flex: 1;
}
/* When the preview box is open it still needs spacing below the pills row */
.section-subnav + .section-subnav-preview.open { margin-top: 16px; }
.section-subnav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--navy-mid);
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  padding: 9px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
}
.section-subnav-link:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-1px);
}
.teach-section .section-subnav-link,
.career-section .section-subnav-link,
.blog-section .section-subnav-link { background: var(--white); }

.section-subnav-link.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.section-subnav-link.active i.subnav-caret { transform: rotate(180deg); }
.subnav-caret {
  margin-left: 7px;
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

/* Pill click preview: latest 3 posts for the clicked category */
.section-subnav-preview {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
  margin-bottom: 0;
  width: 100%;
}
.section-subnav-preview.open {
  max-height: 600px;
  opacity: 1;
  margin-top: 16px;
  margin-bottom: 20px;
}
.subnav-preview-box {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.subnav-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.subnav-preview-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark);
}
.subnav-preview-viewall {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.subnav-preview-viewall:hover { color: var(--teal-dark); }
.subnav-preview-list { display: flex; flex-direction: column; gap: 0; }
.subnav-preview-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--light-gray);
  flex-wrap: wrap;
}
.subnav-preview-item:last-child { border-bottom: none; }
.subnav-preview-item-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
  text-decoration: none;
  flex: 1;
  min-width: 200px;
}
.subnav-preview-item-title:hover { color: var(--teal); }
.subnav-preview-item-date {
  font-size: 0.78rem;
  color: var(--mid-gray);
  white-space: nowrap;
}
.subnav-preview-empty,
.subnav-preview-loading {
  font-size: 0.88rem;
  color: var(--mid-gray);
  padding: 6px 2px;
}

/* Latest-updates list (title + date) */
.updates-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--light-gray); }
.updates-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--light-gray);
  flex-wrap: wrap;
}
.updates-item-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-dark);
  text-decoration: none;
  transition: var(--transition);
}
.updates-item-title:hover { color: var(--teal); }
.updates-item-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--mid-gray);
  white-space: nowrap;
}
.updates-item-date i { color: var(--teal); margin-right: 4px; }
.updates-empty {
  padding: 20px 4px;
  color: var(--mid-gray);
  font-style: italic;
  border-top: 1px solid var(--light-gray);
}

/* WhatsApp Channel section */
.whatsapp-channel-section { background: var(--off-white); }
.whatsapp-channel-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.whatsapp-channel-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  flex-shrink: 0;
}
.whatsapp-channel-text h3 { color: var(--white); margin-bottom: 10px; }
.whatsapp-channel-text p { color: rgba(255,255,255,0.68); margin-bottom: 18px; max-width: 520px; }
.whatsapp-channel-qr {
  width: 128px; height: 128px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.whatsapp-channel-qr img { width: 100%; height: 100%; object-fit: contain; }
.whatsapp-channel-qr-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--mid-gray); text-align: center; font-size: 0.65rem;
}
.whatsapp-channel-qr-placeholder i { font-size: 1.8rem; color: var(--navy-mid); }

@media (max-width: 768px) {
  .whatsapp-channel-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Career Development / Blog — 2x2 update cards */
.update-card-grid { grid-template-columns: repeat(2, 1fr); }
.update-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.update-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.update-card-thumb { aspect-ratio: 1/1; background: var(--light-gray); }
.update-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.update-card-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--steel-blue), var(--teal));
  color: rgba(255,255,255,0.35);
  font-size: 1.8rem;
}
.update-card-body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.update-card-title { font-size: 1rem; margin: 0; }
.update-card-title a { color: var(--navy-dark); text-decoration: none; }
.update-card-title a:hover { color: var(--teal); }
.update-card-excerpt { font-size: 0.86rem; color: var(--mid-gray); margin: 0; line-height: 1.6; }
.update-card-date { font-size: 0.76rem; color: var(--teal); }
.update-card-date i { margin-right: 4px; }

@media (max-width: 768px) {
  .update-card-grid { grid-template-columns: 1fr; }
  .update-card { grid-template-columns: 100px 1fr; }
}

/* =============================================
   29. IMAGE + TEXT SECTION (below Hero)
   ============================================= */
.imgtext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.imgtext-image {
  display: flex;
  justify-content: flex-start;
}
.imgtext-image img {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.imgtext-image-placeholder {
  width: 100%;
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1 / 1;
  background: var(--off-white);
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mid-gray);
}
.imgtext-image-placeholder i { font-size: 2.4rem; }
.imgtext-image-placeholder span { font-size: 0.85rem; }
.imgtext-heading { margin-bottom: 18px; }
.imgtext-text { color: var(--text-body); font-size: 1.05rem; line-height: 1.8; margin-bottom: 28px; }

@media (max-width: 900px) {
  .imgtext-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .imgtext-image { justify-content: center; }
  .imgtext-content { display: flex; flex-direction: column; align-items: center; }
  /* On mobile: stack title above pills instead of side-by-side */
  .home-section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-subnav { flex: unset; width: 100%; }
}

/* =============================================
   30. COLLABORATORS — SLIDING LOGO STRIP (above footer)
   ============================================= */
.collab-section {
  background: var(--off-white);
  padding: 48px 0 56px;
  overflow: hidden;
}
.collab-heading {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-dark);
  margin-bottom: 32px;
}
.collab-strip {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.collab-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: collab-slide 40s linear infinite;
}
.collab-strip:hover .collab-track { animation-play-state: paused; }
.collab-logo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}
.collab-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.collab-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: var(--transition);
}
.collab-logo:hover img { filter: grayscale(0%); }

@keyframes collab-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .collab-logo { width: 110px; height: 110px; }
  .collab-track { gap: 24px; }
  .collab-heading { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .collab-track { animation: none; }
  .collab-strip { overflow-x: auto; }
}

/* =============================================
   MEMBERS ONLY SYSTEM
   ============================================= */

/* ── Content Gate ── */
.oppak-gate-teaser {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 1.05rem;
  position: relative;
  margin-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.oppak-gate {
  background: linear-gradient(135deg, var(--off-white) 0%, #e8f4f6 100%);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-top: 0;
}
.oppak-gate-inner { max-width: 520px; margin: 0 auto; }
.oppak-gate-icon {
  width: 64px; height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.6rem;
}
.oppak-gate-title { font-size: 1.4rem; color: var(--navy-dark); margin-bottom: 12px; }
.oppak-gate-desc  { color: var(--text-body); margin-bottom: 28px; line-height: 1.7; }
.oppak-gate-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.oppak-gate-logged-in { color: var(--mid-gray); font-size: 0.92rem; }
.oppak-gate-note {
  font-size: 0.82rem; color: var(--mid-gray);
  background: var(--white); border-radius: var(--radius-sm);
  padding: 12px 16px; text-align: left;
}

/* ── Header member button (logged in) ── */
.oppak-header-member {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem;
  color: var(--navy-dark); text-decoration: none;
  background: var(--off-white); border: 1px solid var(--light-gray);
  padding: 6px 14px 6px 6px; border-radius: 50px;
  transition: var(--transition);
}
.oppak-header-member:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.oppak-header-avatar { border-radius: 50%; width: 28px !important; height: 28px !important; object-fit: cover; }
.oppak-header-member-name { white-space: nowrap; }
.oppak-header-pending { font-size: 0.7rem; color: var(--gold); font-weight: 500; }

/* ── Auth forms (login / register) ── */
.oppak-auth-wrap {
  display: flex; justify-content: center;
  padding: 40px 20px;
}
.oppak-auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
  width: 100%; max-width: 480px;
}
.oppak-auth-card--wide { max-width: 680px; }
.oppak-auth-card--success { text-align: center; }
.oppak-auth-logo {
  font-size: 2.2rem; color: var(--teal);
  text-align: center; margin-bottom: 16px;
}
.oppak-auth-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.5rem; color: var(--navy-dark);
  text-align: center; margin-bottom: 6px;
}
.oppak-auth-sub {
  text-align: center; color: var(--mid-gray);
  font-size: 0.9rem; margin-bottom: 28px;
}
.oppak-auth-switch {
  text-align: center; font-size: 0.88rem;
  color: var(--mid-gray); margin-top: 20px;
}
.oppak-auth-switch a { color: var(--teal); text-decoration: none; font-weight: 600; }

/* ── Form elements ── */
.oppak-form { display: flex; flex-direction: column; gap: 18px; }
.oppak-form-group { display: flex; flex-direction: column; gap: 6px; }
.oppak-form-group label { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: var(--navy-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.oppak-form-input-wrap { position: relative; display: flex; align-items: center; }
.oppak-form-input-wrap > i:first-child {
  position: absolute; left: 14px;
  color: var(--mid-gray); font-size: 0.85rem; pointer-events: none; z-index: 1;
}
.oppak-form-input {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--light-gray); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--navy-dark);
  background: var(--off-white); transition: var(--transition);
  appearance: none;
}
.oppak-form-input:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(26,159,175,0.1); }
textarea.oppak-form-input { padding-left: 14px; resize: vertical; min-height: 100px; }
select.oppak-form-input { cursor: pointer; }
.oppak-toggle-pw {
  position: absolute; right: 12px; background: none; border: none;
  cursor: pointer; color: var(--mid-gray); font-size: 0.85rem; padding: 4px;
}
.oppak-toggle-pw:hover { color: var(--teal); }
.oppak-form-row { display: flex; flex-direction: column; gap: 18px; }
.oppak-form-row--split { flex-direction: row; gap: 16px; }
.oppak-form-row--split > * { flex: 1; min-width: 0; }
.oppak-form-section-label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal); border-bottom: 1px solid var(--light-gray);
  padding-bottom: 8px; margin-bottom: -4px;
}
.oppak-form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.oppak-form-link { font-size: 0.82rem; color: var(--teal); text-decoration: none; }
.oppak-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.oppak-form-error {
  background: #fff0f0; border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: #842029; font-size: 0.88rem;
}
.oppak-form-error ul { margin: 0; }

/* ── Notices ── */
.oppak-member-notice {
  display: flex; align-items: center; gap: 10px;
  background: #e8f8f2; border: 1px solid #a3d9c0;
  border-radius: var(--radius-sm); padding: 14px 18px;
  color: var(--navy-dark); font-size: 0.92rem;
}
.oppak-member-notice i { color: var(--teal); font-size: 1.1rem; }
.oppak-member-notice--pending { background: #fff8e6; border-color: #f0c060; }

/* ── Member Dashboard ── */
.oppak-dashboard { display: flex; flex-direction: column; gap: 32px; max-width: 900px; margin: 0 auto; }
.oppak-dashboard-header {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px 32px; flex-wrap: wrap;
}
.oppak-dashboard-avatar img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.oppak-dashboard-name { font-size: 1.3rem; color: var(--navy-dark); margin-bottom: 8px; }
.oppak-dashboard-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.oppak-dashboard-email { font-size: 0.85rem; color: var(--mid-gray); margin: 0; }
.oppak-badge {
  display: inline-block; padding: 3px 12px;
  border-radius: 50px; font-size: 0.74rem;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.oppak-badge--student   { background: #e8f4f6; color: var(--teal); }
.oppak-badge--clinician { background: #e8f0f8; color: var(--navy-mid); }
.oppak-badge--faculty   { background: #fdf3e3; color: var(--gold); }
.oppak-badge--approved  { background: #e6f9f0; color: #00875a; }
.oppak-badge--pending   { background: #fff8e6; color: #c47a00; }
.oppak-badge--rejected,
.oppak-badge--revoked   { background: #fde8e8; color: #d63638; }
.oppak-badge--default   { background: var(--off-white); color: var(--mid-gray); }

.oppak-dashboard-notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f0c060;
  border-radius: var(--radius-md); padding: 20px 24px;
}
.oppak-dashboard-notice i { font-size: 1.3rem; color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.oppak-dashboard-notice p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-body); }

.oppak-dashboard-section {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px 32px;
}
.oppak-dashboard-section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; color: var(--navy-dark);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}
.oppak-dashboard-links { display: flex; flex-direction: column; gap: 0; }
.oppak-dashboard-link {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--light-gray);
  text-decoration: none; color: var(--navy-dark);
  transition: var(--transition);
}
.oppak-dashboard-link:last-child { border-bottom: none; }
.oppak-dashboard-link:hover { color: var(--teal); }
.oppak-dashboard-link:hover .oppak-dashboard-link-icon { background: var(--teal); color: var(--white); }
.oppak-dashboard-link-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--off-white); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1rem;
  transition: var(--transition);
}
.oppak-dashboard-link strong { display: block; font-size: 0.9rem; font-weight: 700; }
.oppak-dashboard-link span   { display: block; font-size: 0.78rem; color: var(--mid-gray); }

/* Responsive */
@media (max-width: 600px) {
  .oppak-auth-card { padding: 28px 20px; }
  .oppak-form-row--split { flex-direction: column; }
  .oppak-dashboard-header { flex-direction: column; text-align: center; }
  .oppak-dashboard-header .btn { width: 100%; justify-content: center; }
  .oppak-gate { padding: 32px 20px; }
  .oppak-gate-actions { flex-direction: column; align-items: center; }
}

/* ── Tag pills on single posts ─────────────────────────────────────────────── */
/* Explicit colours so .entry-content a { color } rules don't bleed onto them  */
.oppak-tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--teal);
  border-radius: 50px;
  padding: 5px 14px;
  text-decoration: none !important;
  transition: var(--transition);
}
.oppak-tag-pill:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* =============================================
   MEMBERSHIP PAGE (page-membership.php)
   ============================================= */

/* ── Benefit cards ── */
.oppak-benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.oppak-benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.oppak-benefit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.oppak-benefit-title { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin: 0; }
.oppak-benefit-desc  { font-size: 0.87rem; color: var(--text-body); line-height: 1.65; margin: 0; }

/* ── Tier cards ── */
.oppak-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.oppak-tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
  border: 2px solid var(--light-gray);
  transition: var(--transition);
  text-align: center;
}
.oppak-tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.oppak-tier-card--featured {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-color: var(--teal);
  color: var(--white);
}
.oppak-tier-card--featured .oppak-tier-name,
.oppak-tier-card--featured .oppak-tier-price,
.oppak-tier-card--featured .oppak-tier-features li { color: var(--white); }
.oppak-tier-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.oppak-tier-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.oppak-tier-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.oppak-tier-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 24px;
}
.oppak-tier-features {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column;
  gap: 10px; text-align: left; flex: 1;
}
.oppak-tier-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.87rem; color: var(--text-body); line-height: 1.5;
}
.oppak-tier-features li i { color: var(--teal); margin-top: 2px; flex-shrink: 0; font-size: 0.78rem; }
.oppak-tier-cta { width: 100%; justify-content: center; }

/* ── FAQ accordion ── */
.oppak-faq { display: flex; flex-direction: column; gap: 0; }
.oppak-faq-item {
  border-bottom: 1px solid var(--light-gray);
}
.oppak-faq-item:first-child { border-top: 1px solid var(--light-gray); }
.oppak-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy-dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.oppak-faq-question::-webkit-details-marker { display: none; }
.oppak-faq-icon {
  flex-shrink: 0;
  color: var(--teal);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}
details[open] .oppak-faq-icon { transform: rotate(180deg); }
.oppak-faq-answer {
  padding: 0 4px 20px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .oppak-tier-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .oppak-tier-card { padding: 28px 20px; }
}

/* =============================================
   MEMBER DASHBOARD v2
   ============================================= */

/* ── Tier select buttons on registration form ── */
.oppak-tier-select-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.oppak-tier-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 12px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy-dark);
  background: var(--off-white);
  user-select: none;
}
.oppak-tier-select-btn i {
  font-size: 1.4rem;
  color: var(--mid-gray);
  transition: var(--transition);
}
.oppak-tier-select-btn span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.73rem;
  color: var(--mid-gray);
  line-height: 1.35;
}
.oppak-tier-select-btn input[type="radio"] { display: none; }
.oppak-tier-select-btn.active,
.oppak-tier-select-btn:has(input:checked) {
  border-color: var(--teal);
  background: #e8f7f9;
  color: var(--teal);
}
.oppak-tier-select-btn.active i,
.oppak-tier-select-btn:has(input:checked) i { color: var(--teal); }
.oppak-tier-select-btn:hover { border-color: var(--teal); }

/* Hidden tier-specific fields */
.oppak-hidden { display: none !important; }
.oppak-tier-fields { animation: oppakFadeIn 0.2s ease; }
@keyframes oppakFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Dashboard layout ── */
.oppak-dashboard-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
  padding: 32px 0 48px;
}
@media (max-width: 860px) {
  .oppak-dashboard-wrap { grid-template-columns: 1fr; }
  .oppak-db-sidebar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .oppak-db-sidebar-user { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
  .oppak-db-nav { display: flex; flex-wrap: wrap; width: 100%; gap: 4px; }
  .oppak-db-nav-item { flex: 1; min-width: 100px; justify-content: center; text-align: center; }
}

/* ── Sidebar ── */
.oppak-db-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.oppak-db-sidebar-user {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
}
.oppak-db-avatar {
  width: 80px !important; height: 80px !important;
  border-radius: 50% !important; border: 3px solid rgba(255,255,255,0.25) !important;
  display: block; margin: 0 auto 10px;
}
.oppak-db-sidebar-name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 0.95rem;
  color: var(--white); margin-bottom: 6px;
}
.oppak-db-sidebar-tier {
  font-size: 0.78rem; font-weight: 600;
  margin-bottom: 8px;
}
.oppak-db-nav { padding: 10px 0; }
.oppak-db-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.84rem;
  color: var(--navy-dark); text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.oppak-db-nav-item i { width: 16px; text-align: center; color: var(--mid-gray); font-size: 0.9rem; transition: var(--transition); }
.oppak-db-nav-item:hover { background: var(--off-white); color: var(--teal); }
.oppak-db-nav-item:hover i { color: var(--teal); }
.oppak-db-nav-item.active { background: #e8f7f9; color: var(--teal); border-left-color: var(--teal); font-weight: 700; }
.oppak-db-nav-item.active i { color: var(--teal); }
.oppak-db-nav-logout { color: #d63638 !important; }
.oppak-db-nav-logout i { color: #d63638 !important; }
.oppak-db-nav-logout:hover { background: #fde8e8; }

/* ── Main panel ── */
.oppak-db-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.oppak-db-section-title {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--navy-dark); display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 2px solid var(--light-gray);
  margin-bottom: 20px;
}
.oppak-db-section-title i { color: var(--teal); }

/* ── Stat cards ── */
.oppak-db-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 4px;
}
@media (max-width: 700px) { .oppak-db-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.oppak-db-stat-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.oppak-db-stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.oppak-db-stat-label { font-size: 0.73rem; color: var(--mid-gray); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.oppak-db-stat-val   { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy-dark); }

/* ── Quick access grid ── */
.oppak-db-quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 700px) { .oppak-db-quick-grid { grid-template-columns: repeat(2, 1fr); } }
.oppak-db-quick-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  text-align: center; transition: var(--transition);
  border: 2px solid transparent;
}
.oppak-db-quick-card:hover { border-color: var(--teal); transform: translateY(-3px); color: var(--teal); }
.oppak-db-quick-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ── Resource list rows ── */
.oppak-db-resource-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--light-gray);
  text-decoration: none; color: var(--navy-dark);
  transition: var(--transition);
}
.oppak-db-resource-row:last-child { border-bottom: none; }
.oppak-db-resource-row:hover { color: var(--teal); }
.oppak-db-resource-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.oppak-db-resource-row strong { display: block; font-size: 0.9rem; font-weight: 700; }
.oppak-db-resource-row span   { display: block; font-size: 0.78rem; color: var(--mid-gray); }

/* ── CPD Log ── */
.oppak-cpd-add-wrap {
  background: var(--off-white); border-radius: var(--radius-md);
  border: 1px solid var(--light-gray); overflow: hidden; margin-bottom: 20px;
}
.oppak-cpd-add-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 0.88rem;
  color: var(--teal); list-style: none; user-select: none;
}
.oppak-cpd-add-toggle::-webkit-details-marker { display: none; }
.oppak-cpd-form { padding: 0 18px 18px; }
.oppak-cpd-table-wrap { overflow-x: auto; }
.oppak-cpd-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.oppak-cpd-table th {
  text-align: left; padding: 10px 12px;
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--mid-gray); border-bottom: 2px solid var(--light-gray);
}
.oppak-cpd-table td { padding: 12px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.oppak-cpd-table tr:last-child td { border-bottom: none; }
.oppak-cpd-delete {
  color: var(--mid-gray); font-size: 0.82rem; text-decoration: none;
  padding: 4px 8px; border-radius: 4px; transition: var(--transition);
}
.oppak-cpd-delete:hover { color: #d63638; background: #fde8e8; }

/* ── Profile form inside dashboard ── */
.oppak-db-main .oppak-form { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; }

@media (max-width: 600px) {
  .oppak-tier-select-group { grid-template-columns: 1fr; }
  .oppak-db-quick-grid { grid-template-columns: repeat(2,1fr); }
  .oppak-db-stat-grid  { grid-template-columns: repeat(2,1fr); }
}

/* ── Header logged-in user dropdown ── */
.oppak-header-member-wrap {
  position: relative;
}
.oppak-header-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy-dark);
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  padding: 6px 12px 6px 6px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.oppak-header-member:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.oppak-header-member:hover .oppak-header-member-caret { color: var(--white); }
.oppak-header-avatar {
  border-radius: 50%;
  width: 28px !important;
  height: 28px !important;
  object-fit: cover;
  flex-shrink: 0;
}
.oppak-header-member-caret {
  font-size: 0.65rem;
  color: var(--mid-gray);
  transition: transform 0.2s ease;
}
.oppak-header-member[aria-expanded="true"] .oppak-header-member-caret {
  transform: rotate(180deg);
}

/* Dropdown panel */
.oppak-header-member-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.oppak-header-member-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.oppak-header-dropdown-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.oppak-header-dropdown-top img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  flex-shrink: 0;
}
.oppak-header-dropdown-top strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 2px;
}
.oppak-header-dropdown-top span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.6);
}
.oppak-header-dropdown-links {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}
.oppak-header-dropdown-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--navy-dark);
  text-decoration: none;
  transition: var(--transition);
}
.oppak-header-dropdown-links a i {
  width: 14px;
  text-align: center;
  color: var(--teal);
  font-size: 0.82rem;
}
.oppak-header-dropdown-links a:hover {
  background: var(--off-white);
  color: var(--teal);
}
.oppak-header-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  color: #d63638;
  text-decoration: none;
  transition: var(--transition);
}
.oppak-header-dropdown-logout i { font-size: 0.82rem; }
.oppak-header-dropdown-logout:hover { background: #fde8e8; }

/* ── 4-column tier selector for registration form ── */
.oppak-tier-select-group--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 760px) {
  .oppak-tier-select-group--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .oppak-tier-select-group--4 { grid-template-columns: 1fr; }
}

/* ── Rehab Professional tier badge ── */
.oppak-badge--rehab { background: #ede8ff; color: #5a3fc0; }

/* =============================================
   INFOGRAPHS BROWSER (page-infographs.php)
   ============================================= */

/* ── Search bar ── */
.ig-search-wrap {
  margin-bottom: 28px;
}
.ig-search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.ig-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--mid-gray);
  font-size: 1rem;
  pointer-events: none;
}
.ig-search-input {
  width: 100%;
  padding: 15px 48px 15px 50px;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-dark);
  background: var(--white);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.ig-search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,159,175,0.12);
}
.ig-search-input::placeholder { color: var(--mid-gray); }
.ig-search-clear {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--mid-gray); cursor: pointer;
  font-size: 0.9rem; padding: 4px 6px;
  border-radius: 50%;
  transition: var(--transition);
}
.ig-search-clear:hover { background: var(--off-white); color: var(--navy-dark); }

/* ── Section pills bar ── */
.ig-sections-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}
.ig-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--navy-mid);
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ig-section-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}
.ig-section-pill.active {
  background: var(--teal);
  color: var(--white) !important;
  border-color: var(--teal);
  box-shadow: 0 3px 12px rgba(26,159,175,0.3);
}
.ig-pill-count {
  background: rgba(255,255,255,0.25);
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}
.ig-section-pill:not(.active) .ig-pill-count {
  background: var(--off-white);
  color: var(--mid-gray);
}

/* ── Status bar ── */
.ig-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 28px;
}
.ig-status-text {
  font-size: 0.83rem;
  color: var(--mid-gray);
  font-style: italic;
}
.ig-view-toggle {
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--mid-gray);
  transition: var(--transition);
  font-size: 0.85rem;
}
.ig-view-toggle:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── Title box (results container) ── */
.ig-title-box {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-lg);
  min-height: 200px;
  overflow: hidden;
}

/* Loading & empty states */
.ig-loading, .ig-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 24px;
  color: var(--mid-gray);
  font-size: 0.92rem;
  text-align: center;
}
.ig-loading i, .ig-empty i { font-size: 2rem; color: var(--light-gray); }
.ig-empty h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy-dark); margin: 0; }
.ig-empty p  { margin: 0; font-size: 0.87rem; }

/* ── List view ── */
.ig-title-list { list-style: none; margin: 0; padding: 8px 0; }
.ig-title-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--off-white);
  gap: 14px;
}
.ig-title-item:last-child { border-bottom: none; }
.ig-title-item:hover { background: var(--off-white); }
.ig-title-item.active {
  background: #e8f7f9;
  border-left: 3px solid var(--teal);
}
.ig-title-item-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ig-title-item-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--mid-gray);
}
.ig-title-item.active .ig-title-item-num { background: var(--teal); color: var(--white); }
.ig-title-item-text { flex: 1; min-width: 0; }
.ig-title-item-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 4px;
}
.ig-title-item:hover .ig-title-item-name,
.ig-title-item.active .ig-title-item-name { color: var(--teal); }
.ig-title-item-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ig-item-tag {
  font-size: 0.68rem; font-weight: 600;
  font-family: var(--font-head);
  padding: 2px 8px; border-radius: 50px;
  background: var(--off-white);
  color: var(--mid-gray);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ig-title-item.active .ig-item-tag { background: rgba(26,159,175,0.12); color: var(--teal); }
.ig-title-item-arrow {
  color: var(--light-gray); font-size: 0.75rem; flex-shrink: 0;
  transition: var(--transition);
}
.ig-title-item:hover .ig-title-item-arrow,
.ig-title-item.active .ig-title-item-arrow { color: var(--teal); transform: translateX(2px); }

/* ── Grid view ── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
}
.ig-grid-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.ig-grid-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ig-grid-card.active { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,159,175,0.2); }
.ig-grid-thumb { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.ig-grid-no-thumb {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
  color: var(--light-gray); font-size: 2rem;
}
.ig-grid-card-body { padding: 10px 12px; }
.ig-grid-card-title { font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--navy-dark); display: block; }
.ig-grid-card:hover .ig-grid-card-title { color: var(--teal); }

/* ── Viewer panel ── */
.ig-viewer {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: igViewerIn 0.22s ease;
}
@keyframes igViewerIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.ig-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--light-gray);
  flex-wrap: wrap;
}
.ig-viewer-title-wrap { flex: 1; min-width: 0; }
.ig-viewer-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.1rem; color: var(--navy-dark);
  margin: 0 0 8px;
}
.ig-viewer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-viewer-tag {
  font-size: 0.72rem; font-weight: 700;
  font-family: var(--font-head);
  padding: 3px 10px; border-radius: 50px;
  background: #e8f7f9; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ig-viewer-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
.ig-viewer-close {
  background: none; border: none; cursor: pointer;
  color: var(--mid-gray); font-size: 1rem; padding: 6px 8px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.ig-viewer-close:hover { background: var(--off-white); color: var(--navy-dark); }
.ig-viewer-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 24px;
  align-items: start;
}
.ig-viewer-thumb-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  background: var(--off-white);
}
.ig-viewer-img { width: 100%; display: block; }
.ig-viewer-no-thumb {
  aspect-ratio: 3/4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--light-gray); gap: 10px;
  font-size: 2.5rem;
}
.ig-viewer-no-thumb p { font-size: 0.8rem; color: var(--mid-gray); margin: 0; }
.ig-viewer-excerpt { font-size: 0.95rem; color: var(--text-body); line-height: 1.75; }

/* Responsive */
@media (max-width: 860px) {
  .ig-viewer-body { grid-template-columns: 1fr; }
  .ig-viewer-thumb-wrap { max-width: 280px; }
}
@media (max-width: 600px) {
  .ig-sections-bar { gap: 7px; }
  .ig-section-pill { font-size: 0.75rem; padding: 7px 12px; }
  .ig-title-item { padding: 11px 14px; }
  .ig-viewer-header { flex-direction: column; }
  .ig-viewer-actions { width: 100%; }
}

/* ── File upload button (degree attachment) ── */
.oppak-file-upload-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.oppak-file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy-dark);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.oppak-file-upload-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.oppak-file-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}
.oppak-file-name {
  font-size: 0.82rem;
  color: var(--mid-gray);
  font-style: italic;
}

/* =============================================
   INFOGRAPH LIGHTBOX POPUP
   ============================================= */
.ig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ig-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.82);
  backdrop-filter: blur(4px);
}
body.ig-lightbox-open { overflow: hidden; }

.ig-lightbox-dialog {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 1100px;     /* wider dialog */
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: igLbIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes igLbIn {
  from { opacity:0; transform:scale(0.92) translateY(16px); }
  to   { opacity:1; transform:none; }
}

/* Header */
.ig-lightbox-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--light-gray);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ig-lightbox-title-wrap { flex: 1; min-width: 0; }
.ig-lightbox-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin: 0 0 8px;
}
.ig-lightbox-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-lightbox-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ig-lb-close {
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--mid-gray);
  font-size: 0.9rem;
  transition: var(--transition);
}
.ig-lb-close:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Body — image takes most of the space, excerpt on right */
.ig-lightbox-body {
  display: grid;
  grid-template-columns: 1fr 280px;  /* image dominant */
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Image pane — scrollable when zoomed in */
.ig-lb-img-wrap {
  position: relative;
  background: #0f1a2e;
  overflow: auto;          /* allows scrolling when zoomed past container */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
}
.ig-lb-img {
  display: block;
  /* Let natural image size drive width; allow zooming via transform */
  max-width: 100%;
  height: auto;
  transition: transform 0.2s ease;
  transform-origin: top center;
  cursor: zoom-in;
}
.ig-lb-img.zoomed { cursor: grab; }
.ig-lb-img.zoomed:active { cursor: grabbing; }

.ig-lb-no-img {
  min-height: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  padding: 40px 20px;
}
.ig-lb-no-img p { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin: 0; }

/* Zoom bar — sticky at BOTTOM of image pane, always visible */
.ig-lb-zoom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 10;             /* always above image */
  flex-shrink: 0;
}
.ig-lb-zoom-btn {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.ig-lb-zoom-btn:hover { background: var(--teal); border-color: var(--teal); }
.ig-lb-zoom-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  min-width: 42px;
  text-align: center;
  font-family: var(--font-head);
}

/* Right panel — excerpt/info */
.ig-lb-side-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--light-gray);
  overflow-y: auto;
}
.ig-lb-excerpt {
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  flex: 1;
}
/* Title list arrow */
.ig-title-item-arrow { font-size: 0.7rem; }

@media (max-width: 820px) {
  .ig-lightbox { padding: 10px; }
  .ig-lightbox-dialog { max-height: 98vh; }
  .ig-lightbox-body { grid-template-columns: 1fr; }
  .ig-lb-side-panel { border-left: none; border-top: 1px solid var(--light-gray); max-height: 180px; }
}

/* =============================================
   FACULTY DIRECTORY (page-faculty.php)
   ============================================= */

/* ── Directory grid ── */
.fac-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Directory card ── */
.fac-dir-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
}
.fac-dir-card:hover,
.fac-dir-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
/* Teal top accent */
.fac-dir-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--navy-mid) 100%);
  flex-shrink: 0;
}

/* Photo area */
.fac-dir-photo-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--off-white);
  position: relative;
}
.fac-dir-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.fac-dir-card:hover .fac-dir-photo { transform: scale(1.05); }
.fac-dir-photo-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to top, rgba(20,42,68,0.55), transparent);
  pointer-events: none;
}
/* Initials placeholder */
.fac-dir-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 800;
  color: var(--teal);
  background: linear-gradient(135deg, var(--off-white) 0%, #d0eaed 100%);
  letter-spacing: 0.04em;
}

/* Card body */
.fac-dir-body { padding: 16px 18px 14px; flex: 1; }
.fac-dir-name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1rem;
  color: var(--navy-dark); margin-bottom: 3px;
}
.fac-dir-role {
  font-size: 0.78rem; font-weight: 600;
  color: var(--teal); margin-bottom: 8px;
}
.fac-dir-cred, .fac-dir-loc {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--mid-gray);
  margin-bottom: 3px;
  font-family: var(--font-head); font-weight: 600;
}
.fac-dir-cred i { color: var(--navy-mid); font-size: 0.7rem; }
.fac-dir-loc  i { color: var(--teal);     font-size: 0.7rem; }

/* Social icons in card */
.fac-dir-socials {
  display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap;
}
.fac-dir-social-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--mid-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1.5px solid var(--light-gray);
}
.fac-dir-social-icon:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Expand hint icon (bottom-right of card) */
.fac-dir-view-hint {
  position: absolute; bottom: 12px; right: 14px;
  font-size: 0.72rem; color: var(--light-gray);
  transition: var(--transition);
}
.fac-dir-card:hover .fac-dir-view-hint { color: var(--teal); }

/* ── Faculty profile modal ── */
.fac-modal {
  position: fixed; inset: 0;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.fac-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.80);
  backdrop-filter: blur(5px);
}
body.fac-modal-open { overflow: hidden; }

.fac-modal-dialog {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  width: 100%; max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  animation: facModalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes facModalIn {
  from { opacity:0; transform:scale(0.9) translateY(20px); }
  to   { opacity:1; transform:none; }
}
.fac-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--off-white); border: 1.5px solid var(--light-gray);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--mid-gray); font-size: 1rem;
  transition: var(--transition);
}
.fac-modal-close:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }

/* Inner layout */
.fac-modal-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 360px;
}

/* Left panel */
.fac-modal-left {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: 20px 0 0 20px;
  padding: 40px 24px 32px;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.fac-modal-photo-wrap { width: 100%; }
.fac-modal-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.2);
  display: block;
}
.fac-modal-initials-lg {
  width: 100%; aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 800;
  color: rgba(255,255,255,0.6); letter-spacing: 0.04em;
}
.fac-modal-social {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.fac-modal-social-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  color: rgba(255,255,255,0.85); text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.fac-modal-social-btn:hover { background: rgba(255,255,255,0.18); color: var(--white); }
.fac-modal-social-btn i { font-size: 0.88rem; flex-shrink: 0; width: 16px; text-align: center; }
.fac-modal-social-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.fac-modal-social-btn.twitter:hover  { background: #000; border-color: #000; }
.fac-modal-social-btn.rg:hover       { background: #40ba8f; border-color: #40ba8f; }
.fac-modal-social-btn.web:hover      { background: var(--teal); border-color: var(--teal); }
.fac-modal-social-btn.email:hover    { background: var(--gold); border-color: var(--gold); color: #1a1a1a; }

/* Right panel */
.fac-modal-right {
  padding: 40px 36px 36px;
  display: flex; flex-direction: column;
}
.fac-modal-spec-badge {
  display: inline-block;
  background: #E5F4F5; color: var(--teal);
  font-family: var(--font-head); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
  margin-bottom: 10px;
}
.fac-modal-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  color: var(--navy-dark); margin: 0 0 4px;
}
.fac-modal-title {
  font-size: 0.88rem; font-weight: 600;
  color: var(--teal); margin: 0 0 16px;
}
.fac-modal-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.fac-modal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--off-white); color: var(--navy-dark);
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 50px;
  border: 1.5px solid var(--light-gray);
}
.fac-modal-chip i { color: var(--teal); font-size: 0.72rem; }
.fac-modal-bio {
  font-size: 0.95rem; color: var(--text-body); line-height: 1.8;
  flex: 1;
}
.fac-modal-bio p { margin: 0 0 12px; }
.fac-modal-bio p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 700px) {
  .fac-modal { padding: 10px; }
  .fac-modal-inner { grid-template-columns: 1fr; }
  .fac-modal-left  { border-radius: 20px 20px 0 0; padding: 28px 20px 24px; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .fac-modal-photo-wrap { width: 100px; flex-shrink: 0; }
  .fac-modal-social { flex-direction: row; flex-wrap: wrap; }
  .fac-modal-social-btn span { display: none; }
  .fac-modal-social-btn { padding: 8px 10px; }
  .fac-modal-right  { padding: 24px 20px; }
  .fac-modal-name   { font-size: 1.2rem; }
  .fac-dir-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .fac-dir-photo-wrap { height: 180px; }
}
