/*
Theme Name: Blue Horn Initiative
Theme URI: https://bluehorninitiative.org/
Author: Blue Horn Initiative
Description: Custom WordPress theme for Blue Horn Initiative — a youth-led non-profit advancing environmental sustainability, climate resilience, ocean literacy, and youth leadership in Somalia.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: blue-horn-initiative
*/
/* ============================================
   BLUE HORN INITIATIVE — Design System
   Research. Action. Advocacy.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors — "Horizon" palette (editable live from admin.html) */
  --navy: #0C3F3A;
  --navy-dark: #072722;
  --teal: #12897B;
  --teal-light: #4FD1C0;
  --terracotta: #FF6B4A;
  --terracotta-light: #FF9478;
  --cream: #FBF8F2;
  --cream-warm: #F4EFE3;
  --charcoal: #142320;
  --ink: #1D2130;
  --gray: #666B7A;
  --gray-light: #E7E4DC;
  --white: #FFFFFF;

  /* Type (editable live from admin.html) */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 10px;
  --shadow-soft: 0 10px 30px rgba(21, 26, 66, 0.08);
  --shadow-lift: 0 20px 45px rgba(21, 26, 66, 0.16);
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--terracotta);
  display: inline-block;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: var(--transition);
}
.site-header.scrolled .nav { padding: 12px 28px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
  flex-shrink: 0;
  position: relative;
}
.brand-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid var(--terracotta);
  opacity: 0.6;
  transform: translate(3px, 3px);
  z-index: -1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .b1 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-text .b2 {
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--teal-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal-light);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--terracotta-light); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .nav-backdrop.open { display: block; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-terracotta {
  background: var(--terracotta);
  color: var(--white);
}
.btn-terracotta:hover { background: var(--terracotta-light); transform: translateY(-2px); }

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

/* ============================================
   HERO (with signature wave motif)
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal) 130%);
  color: var(--white);
  padding: 120px 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 160px;
  position: relative;
  z-index: 2;
}
.hero .eyebrow { color: var(--teal-light); }
.hero .eyebrow::before { background: var(--terracotta-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--teal-light); }
.hero p.lede {
  margin-top: 22px;
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-motto {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-motto div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}
.hero-motto span.n {
  font-size: 0.78rem;
  color: var(--teal-light);
  font-weight: 700;
}

/* animated wave layers at hero base */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  line-height: 0;
  z-index: 1;
}
.hero-waves svg { width: 100%; height: auto; display: block; }
.wave-back { opacity: 0.35; animation: waveDrift 18s ease-in-out infinite; }
.wave-mid { opacity: 0.6; animation: waveDrift 12s ease-in-out infinite reverse; }
.wave-front { opacity: 1; }

@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

/* Diagonal section divider */
.diagonal-bottom {
  position: relative;
}
.diagonal-bottom::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}

/* ============================================
   SECTIONS (generic)
   ============================================ */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-cream-warm { background: var(--cream-warm); }

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.section-head p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 1.05rem;
}
.section-dark .section-head p { color: rgba(255,255,255,0.65); }

/* ============================================
   CARDS — Areas of Work / Programs
   ============================================ */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(22, 132, 124, 0.1);
  color: var(--teal);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Value cards variant (terracotta accent) */
.card.value .card-icon { background: rgba(139, 90, 52, 0.12); color: var(--terracotta); }

/* ============================================
   MOTTO PILLARS
   ============================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 40px 34px;
  background: var(--white);
  border-right: 1px solid var(--gray-light);
}
.pillar:last-child { border-right: none; }
.pillar .word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}
.pillar:nth-child(1) .word { color: var(--teal); }
.pillar:nth-child(2) .word { color: var(--terracotta); }
.pillar:nth-child(3) .word { color: var(--navy); }
.pillar p { margin-top: 12px; color: var(--gray); font-size: 0.95rem; }

/* ============================================
   STAT / BANNER STRIP
   ============================================ */
.banner {
  background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: 16px;
  padding: 52px 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.banner h3 { color: var(--white); font-size: 1.5rem; max-width: 460px; }
.banner p { color: rgba(255,255,255,0.82); margin-top: 8px; max-width: 460px; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}
.badge-soon.dark {
  background: rgba(139, 90, 52, 0.12);
  border-color: rgba(139, 90, 52, 0.4);
  color: var(--terracotta);
}

/* ============================================
   NEWS CARDS
   ============================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.news-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  position: relative;
}
.news-body { padding: 24px; }
.news-date { font-size: 0.8rem; color: var(--terracotta); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.news-body h3 { font-size: 1.08rem; margin: 10px 0 8px; }
.news-body p { color: var(--gray); font-size: 0.92rem; }

/* ============================================
   FORMS
   ============================================ */
.form-panel {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: rgba(22, 132, 124, 0.1);
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
}
.form-success.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img { width: 46px; height: 46px; border-radius: 8px; background: var(--white); padding: 4px; }
.footer-logo .b1 { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-light); }
.footer-col p { font-size: 0.92rem; margin-bottom: 10px; }

.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-circle:hover { border-color: var(--teal-light); background: rgba(63,188,175,0.12); }
.social-circle svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-soft);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--teal-light); }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 76px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,0.72); max-width: 560px; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--teal-light);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.timeline-quote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  margin: 28px 0;
}

.list-check li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.98rem;
}
.list-check li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); width: 18px; height: 18px; }

/* ============================================
   BRAND LOGO (image upload support)
   ============================================ */
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: none;
}
.brand.has-custom-logo .brand-badge { display: none; }
.brand.has-custom-logo .brand-logo-img { display: block; }
.footer-logo img.brand-logo-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* ============================================
   HERO — optional uploaded background image
   ============================================ */
.hero.has-hero-image {
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
}
.hero.has-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7,39,34,0.92) 0%, rgba(12,63,58,0.86) 55%, rgba(18,137,123,0.75) 100%);
  z-index: 0;
}
.hero.has-hero-image .hero-inner { z-index: 2; }

/* Alternate divider styles the admin panel can toggle */
.hero-waves.style-angle svg { display: none; }
.hero-waves.style-angle { background: var(--cream); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); height: 70px; }
.hero-waves.style-none { display: none; }

/* ============================================
   NEWSLETTER / SUBSCRIBE
   ============================================ */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--teal-light); }
.newsletter-form button {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--terracotta-light); }
.newsletter-note { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 8px; }
.newsletter-success {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(79,209,192,0.14);
  border: 1px solid var(--teal-light);
  border-radius: 6px;
  color: var(--teal-light);
  font-size: 0.86rem;
}
.newsletter-success.show { display: block; }

/* Light variant used on cream sections */
.newsletter-form.on-light input[type="email"] {
  background: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--ink);
}
.newsletter-form.on-light input[type="email"]::placeholder { color: #9CA0AC; }
.newsletter-note.on-light { color: var(--gray); }

/* ============================================
   TEAM CARDS (photo-enabled, admin-managed)
   ============================================ */
.team-card { text-align: center; position: relative; }
.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--gray-light);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
  border: 3px solid var(--cream-warm);
  box-shadow: 0 0 0 3px rgba(18,137,123,0.15);
}
.team-card .role { color: var(--teal); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.team-card .bio { margin-top: 10px; }
.team-card .team-social { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.team-card .team-social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-light); color: var(--navy);
  transition: var(--transition);
}
.team-card .team-social a:hover { border-color: var(--teal-light); background: rgba(79,209,192,0.12); }
.team-card .team-social svg { width: 14px; height: 14px; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  border: 1.5px dashed var(--gray-light);
  border-radius: var(--radius);
  color: var(--gray);
}
.empty-state a { color: var(--teal); font-weight: 600; }

/* ============================================
   RESEARCH & COURSE CARDS
   ============================================ */
.pub-card, .course-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  padding: 28px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.pub-card:hover, .course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.pub-tag, .course-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(18,137,123,0.12);
  color: var(--teal);
  margin-bottom: 14px;
}
.pub-card h3, .course-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pub-meta { font-size: 0.82rem; color: var(--gray); margin-bottom: 10px; }
.pub-card p, .course-card p { color: var(--gray); font-size: 0.94rem; flex: 1; }
.pub-card .card-link, .course-card .card-link { margin-top: 18px; color: var(--terracotta); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.course-card .course-thumb {
  height: 130px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
}

/* ============================================
   CUSTOMIZE FAB (preview-only control panel link)
   ============================================ */
.customize-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lift);
  transition: var(--transition);
}
.customize-fab:hover { background: var(--teal); transform: translateY(-2px); }
.customize-fab svg { width: 16px; height: 16px; }
