/*
Theme Name:  Wisdom Three
Theme URI:   https://wisdomthree.com
Author:      Wisdom Three
Description: Complete Wisdom Three platform — counselling portals, instant scheduler, voice/WhatsApp triggers, referral system.
Version:     3.1.0
Text Domain: wisdom-three
*/

/* ═══════════════════════════════════════════
   GOOGLE FONTS — Inter + Playfair Display
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* Core palette */
  --primary:       #1B4F72;
  --primary-dk:    #14384F;
  --primary-lt:    #2563A0;
  --secondary:     #2D8C7E;
  --secondary-lt:  #3AADA0;
  --secondary-xlt: #E1F4F2;
  --accent:        #C9973A;
  --accent-lt:     #F5D485;
  --accent-bg:     #FDF0DC;

  /* Neutrals */
  --light:         #F4F7F9;
  --cream:         #FDFAF5;
  --dark:          #0F1923;
  --text:          #2D3748;
  --muted:         #718096;
  --border:        #E2E8F0;
  --white:         #FFFFFF;

  /* Portal accents */
  --c-green:       #2E7D52;
  --c-green-lt:    #E8F5EE;
  --c-green-dk:    #1A5235;
  --c-violet:      #5B3FA6;
  --c-violet-lt:   #EEE9FB;
  --c-violet-dk:   #3A2070;

  /* Spacing & shape */
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(15,25,35,.06);
  --shadow-sm:  0 2px 8px rgba(15,25,35,.08);
  --shadow-md:  0 8px 24px rgba(15,25,35,.12);
  --shadow-lg:  0 20px 60px rgba(15,25,35,.16);
  --shadow-xl:  0 32px 80px rgba(15,25,35,.20);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.25s var(--ease);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; font-family: 'Inter', sans-serif; }
h4 { font-size: 1.05rem; font-family: 'Inter', sans-serif; }
p { margin-bottom: 1.15rem; }
p:last-child { margin-bottom: 0; }
ul,ol { padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
.container { width: 92%; max-width: 1240px; margin: 0 auto; }
section { padding: 5.5rem 0; }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-title { margin-bottom: 0.6rem; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-title { margin-bottom: 0.7rem; }
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.9rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--primary-lt); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--white); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 0.85em; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #B8821E); color: #fff; border-color: transparent; }
.btn-accent:hover { background: linear-gradient(135deg, #B8821E, var(--accent)); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-teal { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-teal:hover { background: var(--secondary-lt); border-color: var(--secondary-lt); color: var(--white); }
.btn-green { background: var(--c-green); color: white; border-color: var(--c-green); }
.btn-green:hover { background: var(--c-green-dk); color: white; }
.btn-violet { background: var(--c-violet); color: white; border-color: var(--c-violet); }
.btn-violet:hover { background: var(--c-violet-dk); color: white; }
.btn-sm  { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg  { padding: 0.95rem 2.4rem; font-size: 1rem; }
.btn-xl  { padding: 1.1rem 2.8rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════
   BADGES
═══════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.8rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.badge-primary { background: #E3EDF7; color: var(--primary); }
.badge-teal    { background: var(--secondary-xlt); color: var(--secondary); }
.badge-accent  { background: var(--accent-bg); color: #7A530E; }
.badge-green   { background: var(--c-green-lt); color: var(--c-green); }
.badge-violet  { background: var(--c-violet-lt); color: var(--c-violet); }

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
#site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  height: 74px;
  gap: 1.5rem;
}
.logo-container { flex-shrink: 0; }
.logo-container a { display: flex; align-items: center; gap: 0.75rem; }
.site-logo { height: 52px; width: auto; }
.main-navigation { margin-left: auto; }
.primary-menu { display: flex; align-items: center; list-style: none; gap: 0.15rem; }
.primary-menu > li > a {
  display: block;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.primary-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.primary-menu > li > a:hover { color: var(--primary); background: var(--light); }
.primary-menu > li > a:hover::after { width: 60%; }
.header-portals { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 1.15rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.portal-btn i { font-size: 0.75rem; }
.portal-btn-counsellor { background: var(--c-green-lt); color: var(--c-green); border-color: #B9DEC9; }
.portal-btn-counsellor:hover { background: var(--c-green); color: white; border-color: var(--c-green); }
.portal-btn-client { background: var(--c-violet-lt); color: var(--c-violet); border-color: #C9BEF0; }
.portal-btn-client:hover { background: var(--c-violet); color: white; border-color: var(--c-violet); }

/* Mobile nav */
.mobile-nav-link { display: block; padding: 0.7rem 0; font-size: 0.9rem; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav-link:hover { color: var(--primary); padding-left: 0.5rem; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background:
    linear-gradient(150deg, rgba(15,40,70,0.92) 0%, rgba(27,79,114,0.85) 40%, rgba(45,140,126,0.78) 100%),
    url('https://images.unsplash.com/photo-1544027993-37dbfe43562a?auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(45,140,126,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: var(--accent-lt); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.hero-stat-item {
  text-align: center;
  padding: 0 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 0.35rem; font-family: 'Playfair Display', serif; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }

/* Sub-page hero overrides */
section.hero[style] {
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero-content h1 { color: var(--white); }
.hero-content p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════
   MISSION BAND
═══════════════════════════════════════════ */
.mission-band {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  padding: 2.8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mission-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(45,140,126,0.15), transparent 70%); }
.mission-band p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.8;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  position: relative;
}

/* ═══════════════════════════════════════════
   WHY CHOOSE (Feature Cards)
═══════════════════════════════════════════ */
.why-choose { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  border: 1.5px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 12px rgba(27,79,114,0.25);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; font-family: 'Inter', sans-serif; color: var(--primary); }
.feature-card p { font-size: 0.87rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* Legacy .features / .feature aliases (sub-pages) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.feature { background: var(--light); border-radius: var(--radius-lg); padding: 2rem 1.75rem; border: 1.5px solid var(--border); transition: var(--transition); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--secondary); background: var(--white); }
.feature > i.fas, .feature > i.far { font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; display: block; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.65rem; font-family: 'Inter', sans-serif; }
.feature p { font-size: 0.87rem; color: var(--muted); }
.feature ul { font-size: 0.85rem; color: var(--text); margin-top: 0.75rem; }

/* ═══════════════════════════════════════════
   PRICING
═══════════════════════════════════════════ */
.pricing { background: var(--light); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card.popular { border-color: var(--accent); box-shadow: var(--shadow-md); }
.pricing-card.popular:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #B8821E);
  color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 0.28rem 1rem; border-radius: 50px;
  white-space: nowrap; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(201,151,58,0.4);
}
.pricing-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--secondary); margin-bottom: 1.1rem;
}
.pricing-card.popular .pricing-icon { background: var(--accent-bg); color: var(--accent); }
.pricing-name { font-weight: 700; font-size: 0.88rem; color: var(--primary); margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.pricing-price { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.pricing-price .currency { font-size: 1.1rem; vertical-align: top; margin-top: 0.4rem; display: inline-block; }
.pricing-sessions { font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0 0.25rem; }
.pricing-per-session { font-size: 0.78rem; font-weight: 600; color: var(--secondary); margin-bottom: 1.25rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.pricing-features li { font-size: 0.82rem; color: var(--text); padding: 0.42rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.45; }
.pricing-features li::before { content: '✓'; color: var(--secondary); font-weight: 700; flex-shrink: 0; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-note { font-size: 0.74rem; color: var(--muted); font-style: italic; margin-bottom: 1.25rem; flex: 1; line-height: 1.55; }
.pricing-card .btn { width: 100%; }

.pricing-split {
  background: var(--white);
  border: 1.5px solid #B9DEC9;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.pricing-split-icon { width: 60px; height: 60px; background: var(--c-green); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 4px 12px rgba(46,125,82,0.3); }
.pricing-split-text { flex: 1; min-width: 200px; }
.pricing-split-text h4 { color: var(--c-green); margin-bottom: 0.35rem; font-family: 'Inter', sans-serif; }
.pricing-split-text p { font-size: 0.88rem; color: var(--text); margin: 0; }
.pricing-split-bars { display: flex; gap: 1.5rem; flex-shrink: 0; }
.split-bar { text-align: center; min-width: 90px; }
.split-pct { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 0.3rem; }
.split-pct.counsellor { color: var(--c-green); }
.split-pct.platform   { color: var(--muted); }
.split-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════════
   PORTALS SECTION
═══════════════════════════════════════════ */
.portals { background: var(--white); }
.portals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.portal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.portal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.portal-card-counsellor::before { background: linear-gradient(90deg, var(--c-green), #3aada0); }
.portal-card-client::before     { background: linear-gradient(90deg, var(--c-violet), #8B5CF6); }
.portal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portal-card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.portal-card-counsellor .portal-card-icon { background: linear-gradient(135deg, var(--c-green), var(--c-green-dk)); }
.portal-card-client     .portal-card-icon { background: linear-gradient(135deg, var(--c-violet), var(--c-violet-dk)); }
.portal-card h3 { font-size: 1.5rem; margin-bottom: 0.65rem; }
.portal-card > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.75rem; line-height: 1.75; }
.portal-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.portal-features li { font-size: 0.85rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); color: var(--text); display: flex; align-items: flex-start; gap: 0.65rem; line-height: 1.5; }
.portal-features li:last-child { border-bottom: none; }
.portal-features li::before { content: '✓'; font-weight: 800; font-size: 0.8rem; flex-shrink: 0; margin-top: 0.1rem; }
.portal-card-counsellor .portal-features li::before { color: var(--c-green); }
.portal-card-client     .portal-features li::before { color: var(--c-violet); }

/* ═══════════════════════════════════════════
   REFERRAL SECTION
═══════════════════════════════════════════ */
.referral {
  background: linear-gradient(150deg, var(--primary-dk) 0%, var(--primary) 50%, var(--secondary) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.referral::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(45,140,126,0.25), transparent 60%); }
.referral-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; position: relative; }
.referral-text .section-label { color: var(--accent-lt); background: rgba(255,255,255,0.1); }
.referral-text h2 { color: white; }
.referral-text > p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.8; }
.referral-highlight {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  backdrop-filter: blur(8px);
}
.referral-pct { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--accent-lt); line-height: 1; flex-shrink: 0; }
.referral-highlight p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.6; }
.referral-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.referral-step { display: flex; align-items: flex-start; gap: 1.1rem; }
.referral-step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: white;
  flex-shrink: 0;
}
.referral-step-text h4 { font-size: 0.9rem; color: white; margin-bottom: 0.2rem; font-family: 'Inter', sans-serif; }
.referral-step-text p { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.55; }

/* ═══════════════════════════════════════════
   FOUNDER
═══════════════════════════════════════════ */
.founder { background: var(--light); }
.founder-content { display: grid; grid-template-columns: 1fr 1.45fr; gap: 4.5rem; align-items: center; }
.founder-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); position: relative; }
.founder-img img { width: 100%; display: block; }
.founder-info .section-label { display: inline-flex; margin-bottom: 0.75rem; }
.founder-info h2 { text-align: left; margin-bottom: 0.3rem; }
.founder-credentials { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; font-weight: 500; }
.founder-info > p { font-size: 0.95rem; line-height: 1.85; color: var(--text); margin-bottom: 1rem; }
.client-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials { background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.75rem; }
.testimonial-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1.5px solid transparent;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { border-color: var(--border); background: var(--white); box-shadow: var(--shadow-md); }
.testimonial-card::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 5rem; color: var(--border); font-family: Georgia, serif; line-height: 1; }
.testimonial-card p { font-size: 0.92rem; color: var(--text); line-height: 1.78; margin-bottom: 1.5rem; font-style: italic; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; color: white; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.88rem; color: var(--primary); margin-bottom: 0.1rem; font-family: 'Inter', sans-serif; }
.author-role { font-size: 0.75rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   ASSESSMENT TOOLS
═══════════════════════════════════════════ */
.tools { background: var(--light); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--secondary), var(--primary)); opacity: 0; transition: opacity 0.3s; }
.tool-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tool-card:hover::before { opacity: 1; }
.tool-abbr { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.tool-name { font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.tool-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.68; }

/* ═══════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(150deg, var(--primary-dk) 0%, var(--primary) 60%, var(--secondary) 100%);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,151,58,0.12), transparent 70%); }
.cta-band h2 { color: white; margin-bottom: 1rem; position: relative; }
.cta-band > .container > p { color: rgba(255,255,255,0.78); margin-bottom: 2.5rem; font-size: 1.1rem; position: relative; }
.cta-band-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

/* ═══════════════════════════════════════════
   QUICK-LINKS (legacy sub-page CTA band)
═══════════════════════════════════════════ */
.quick-links {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 5rem 0;
  text-align: center;
}
.quick-links h2 { color: var(--white); margin-bottom: 0.75rem; }
.quick-links .links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ═══════════════════════════════════════════
   LEGACY SECTION CLASSES (sub-pages)
═══════════════════════════════════════════ */
.mission { background: var(--white); padding: 5.5rem 0; }
.mission-content { max-width: 860px; margin: 0 auto; text-align: center; }
.mission-content h2 { margin-bottom: 1.25rem; }
.mission-content p { color: var(--muted); font-size: 1.05rem; line-height: 1.82; }

/* ═══════════════════════════════════════════
   PORTAL TOPBAR
═══════════════════════════════════════════ */
.portal-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  box-shadow: var(--shadow-xs);
}
.portal-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  max-width: 1240px;
  margin: 0 auto;
}
.portal-topbar-logo img { height: 36px; width: auto; }
.portal-topbar-links { display: flex; align-items: center; gap: 1.5rem; }
.portal-topbar-links a { font-size: 0.82rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; transition: var(--transition); }
.portal-topbar-links a:hover { color: var(--primary); }
.portal-topbar-links a:first-child { color: var(--secondary); }

/* ═══════════════════════════════════════════
   PORTAL LOGIN
═══════════════════════════════════════════ */
.portal-login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}
.portal-login-side {
  padding: 3.5rem 4rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.portal-login-brand { margin-bottom: 2.5rem; }
.portal-login-brand .portal-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.32rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  margin-top: 0.85rem;
}
.portal-login-brand .portal-role-badge.counsellor { background: var(--c-green-lt); color: var(--c-green); }
.portal-login-brand .portal-role-badge.client     { background: var(--c-violet-lt); color: var(--c-violet); }

/* Form inputs */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-bottom: 0.45rem; }
.login-form input[type=email],
.login-form input[type=password],
.login-form input[type=text],
.login-form input[type=tel],
.login-form input[type=number],
.login-form select,
.login-form textarea {
  width: 100%; padding: 0.8rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--text); background: white;
  outline: none; transition: var(--transition); font-family: 'Inter', sans-serif;
}
.login-form input:focus, .login-form select:focus, .login-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,114,0.1); }
.login-form input.counsellor:focus { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(46,125,82,0.1); }
.login-form input.client:focus     { border-color: var(--c-violet); box-shadow: 0 0 0 3px rgba(91,63,166,0.1); }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-size: 0.82rem; }

/* Tabs */
.tab-switcher { display: flex; width: 100%; margin-bottom: 2rem; background: var(--light); border-radius: 50px; padding: 4px; }
.tab-btn { flex: 1; padding: 0.65rem 1rem; font-weight: 700; font-size: 0.82rem; border: none; cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif; background: transparent; color: var(--muted); border-radius: 50px; }
.tab-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Alerts */
.alert-success { background: var(--c-green-lt); border: 1.5px solid #B9DEC9; border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--c-green); display: none; align-items: center; gap: 0.5rem; }
.alert-error   { background: #FEE; border: 1.5px solid #FCC; border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1.25rem; font-size: 0.85rem; color: #C00; display: none; align-items: center; gap: 0.5rem; }
.referral-applied { background: var(--c-violet-lt); border: 1.5px solid #C9BEF0; border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 1.25rem; font-size: 0.82rem; color: var(--c-violet); display: none; align-items: center; gap: 0.5rem; }

/* Hero panels */
.portal-login-hero { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; overflow: hidden; }
.portal-login-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.1), transparent 60%); }
.portal-login-hero.counsellor { background: linear-gradient(150deg, var(--c-green-dk) 0%, var(--c-green) 100%); }
.portal-login-hero.client     { background: linear-gradient(150deg, var(--c-violet-dk) 0%, var(--c-violet) 100%); }
.portal-login-hero h3 { color: white; font-size: 2rem; margin-bottom: 1rem; position: relative; }
.portal-login-hero > p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.78; max-width: 360px; position: relative; }
.portal-benefit-list { list-style: none; padding: 0; margin: 1.75rem 0; width: 100%; position: relative; }
.portal-benefit-list li { font-size: 0.86rem; color: rgba(255,255,255,0.85); padding: 0.58rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; align-items: flex-start; gap: 0.65rem; line-height: 1.5; }
.portal-benefit-list li:last-child { border-bottom: none; }
.portal-benefit-list li i { color: var(--accent-lt); margin-top: 0.12rem; width: 14px; flex-shrink: 0; }

/* Counsellor pricing option */
.pricing-model-toggle {
  background: var(--c-green-lt);
  border: 1.5px solid #B9DEC9;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.pricing-model-toggle legend { font-size: 0.8rem; font-weight: 700; color: var(--c-green); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.pricing-model-options { display: flex; flex-direction: column; gap: 0.6rem; }
.pricing-model-option { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.pricing-model-option input[type=radio] { accent-color: var(--c-green); margin-top: 0.2rem; width: 16px; height: 16px; flex-shrink: 0; }
.pricing-model-option-label strong { display: block; font-size: 0.83rem; color: var(--text); font-weight: 600; }
.pricing-model-option-label span { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.custom-rate-wrap { display: none; margin-top: 0.75rem; }
.custom-rate-wrap.visible { display: flex; gap: 0.75rem; align-items: flex-end; }
.custom-rate-wrap .form-group { margin-bottom: 0; flex: 1; }

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */
.dashboard-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.dashboard-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.75rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.sidebar-menu { list-style: none; padding: 0; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.78rem 1.5rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text); border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-menu li a:hover { background: var(--light); color: var(--primary); }
.sidebar-menu li.active a { background: var(--light); }
.sidebar-menu li.active.counsellor a { border-left-color: var(--c-green); color: var(--c-green); }
.sidebar-menu li.active.client     a { border-left-color: var(--c-violet); color: var(--c-violet); }
.dashboard-main { padding: 2.5rem; background: var(--light); }
.dashboard-greeting { margin-bottom: 2rem; }
.dashboard-greeting h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.dashboard-greeting p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 2rem; }
.dash-stat { background: var(--white); border-radius: var(--radius-lg); padding: 1.4rem; border: 1.5px solid var(--border); transition: var(--transition); }
.dash-stat:hover { box-shadow: var(--shadow-sm); }
.dash-stat-val { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.3rem; }
.dash-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.dash-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: var(--transition); }
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dash-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
.dash-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; }
.dash-card p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.dash-card a { font-size: 0.82rem; color: var(--secondary); font-weight: 600; display: inline-block; margin-top: 0.75rem; }
.welcome-sub { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }
.wt-dashboard { padding-top: 0.25rem; }

/* Referral widget */
.referral-widget { background: var(--white); border-radius: var(--radius-lg); border: 1.5px solid #C9BEF0; padding: 1.75rem; margin-bottom: 1.75rem; }
.referral-code-row { display: flex; align-items: center; gap: 0.85rem; background: var(--c-violet-lt); border: 1.5px dashed #C9BEF0; border-radius: var(--radius); padding: 0.85rem 1.1rem; margin-bottom: 1.25rem; }
.referral-code { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.14em; color: var(--c-violet); flex: 1; }
.referral-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.referral-stat { background: var(--c-violet-lt); border-radius: var(--radius); padding: 0.85rem; text-align: center; }
.referral-stat-val { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--c-violet); line-height: 1; }
.referral-stat-lbl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.2rem; }

/* ═══════════════════════════════════════════
   SCHEDULER WIDGET
═══════════════════════════════════════════ */
.wt-scheduler { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin: 1.75rem 0; }
.wt-scheduler-title { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; }
.wt-scheduler-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.session-type-row { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.session-type-btn { flex: 1; min-width: 110px; padding: 0.9rem 0.75rem; border: 1.5px solid var(--border); background: var(--light); border-radius: var(--radius); cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--text); text-align: center; transition: var(--transition); font-weight: 500; }
.session-type-btn .icon { display: block; font-size: 1.5rem; margin-bottom: 0.4rem; }
.session-type-btn:hover { border-color: var(--secondary); background: var(--secondary-xlt); }
.session-type-btn.selected { border-color: var(--secondary); background: var(--secondary-xlt); color: var(--secondary); font-weight: 600; }
.scheduler-options { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; align-items: center; }
.scheduler-options select { padding: 0.55rem 0.9rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text); background: var(--white); outline: none; cursor: pointer; transition: var(--transition); }
.scheduler-options select:focus { border-color: var(--secondary); }
.crisis-toggle { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; color: var(--text); }
.crisis-toggle input { accent-color: #c0392b; width: 16px; height: 16px; }
.crisis-badge { background: rgba(192,57,43,0.1); color: #c0392b; border: 1px solid rgba(192,57,43,0.25); border-radius: 6px; padding: 0.15rem 0.55rem; font-size: 0.7rem; font-weight: 700; }
.btn-connect-now { width: 100%; padding: 1.05rem; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: white; border: none; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.65rem; box-shadow: 0 4px 16px rgba(27,79,114,0.25); }
.btn-connect-now:hover:not(:disabled) { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,79,114,0.32); }
.btn-connect-now:disabled { opacity: 0.6; cursor: wait; }
.btn-connect-now .pulse { width: 10px; height: 10px; background: white; border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.5);opacity:0.5;} }
.wt-session-status-card { display: none; border-radius: var(--radius); padding: 1.25rem; margin-top: 1.25rem; border: 1.5px solid var(--border); background: var(--light); }
.wt-session-status-card.visible { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from{opacity:0;transform:translateY(-8px);} to{opacity:1;transform:none;} }
.status-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-dot.connecting { background: var(--accent); animation: pulse 1s infinite; }
.status-dot.active  { background: var(--c-green); }
.status-dot.queued  { background: var(--secondary); }
.status-dot.scheduled { background: var(--primary); }
.status-dot.completed { background: var(--muted); }
.status-dot.cancelled { background: #ddd; }
.status-title { font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.status-body  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.session-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.session-meta-item { font-size: 0.75rem; color: var(--muted); }
.session-meta-item strong { color: var(--text); display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.1rem; }
.btn-cancel-session { margin-top: 0.6rem; font-size: 0.75rem; color: #c0392b; background: none; border: 1px solid rgba(192,57,43,0.3); border-radius: 6px; padding: 0.3rem 0.75rem; cursor: pointer; font-family: 'Inter', sans-serif; transition: var(--transition); }
.btn-cancel-session:hover { background: rgba(192,57,43,0.06); }
.wt-notice { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.82rem; }
.wt-notice.error   { background: #FEE; border: 1px solid #FCC; color: #C00; }
.wt-notice.success { background: var(--c-green-lt); border: 1px solid #B9DEC9; color: var(--c-green); }
.wt-notice.info    { background: var(--c-violet-lt); border: 1px solid #C9BEF0; color: var(--c-violet); }

/* Availability editor */
.wt-availability-editor { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin: 1.75rem 0; }
.wt-scheduler-title { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; font-family: 'Inter', sans-serif; }
.availability-day-row { display: grid; grid-template-columns: 140px 1fr 1fr auto; gap: 0.75rem; align-items: center; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border); }
.availability-day-row:last-child { border-bottom: none; }
.avail-toggle { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.day-label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.avail-time-input { padding: 0.45rem 0.65rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--text); outline: none; transition: var(--transition); }
.avail-time-input:focus { border-color: var(--secondary); }
.avail-time-input:disabled { background: var(--light); color: #bbb; }
.presence-bar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.presence-label { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.presence-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; }
.presence-dot.online  { background: var(--c-green); }
.presence-dot.busy    { background: var(--accent); }
.presence-dot.offline { background: #ccc; }
.wt-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.wt-toggle input { opacity: 0; width: 0; height: 0; }
.wt-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: background 0.2s; }
.wt-toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: transform 0.2s; }
.wt-toggle input:checked + .wt-toggle-slider { background: var(--c-green); }
.wt-toggle input:checked + .wt-toggle-slider::before { transform: translateX(20px); }
.wt-calendar-wrap { margin-top: 1.75rem; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 0; font-family: 'Inter', sans-serif; }
#wt-calendar .fc-button { background: var(--secondary) !important; border-color: var(--secondary) !important; font-family: 'Inter', sans-serif !important; font-size: 0.78rem !important; border-radius: 8px !important; }
#wt-calendar .fc-day-today { background: rgba(45,140,126,0.06) !important; }
#wt-calendar .fc-event { border-radius: 5px; font-size: 0.72rem; }

/* Admin live board */
.wt-live-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.live-stat { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; }
.live-stat .num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 0.3rem; }
.live-stat .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.live-stat.urgent .num { color: #c0392b; }
.live-stat.good   .num { color: var(--c-green); }
.wt-queue-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.wt-queue-table th { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1.5px solid var(--border); }
.wt-queue-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); color: var(--text); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 4.5rem 0 2rem;
  color: rgba(255,255,255,0.6);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 3.5rem; margin-bottom: 3.5rem; }
.footer-brand > p { font-size: 0.85rem; color: rgba(255,255,255,0.48); line-height: 1.75; margin-top: 1.1rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.5rem; }
.footer-contact a, .footer-contact span { font-size: 0.82rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.55rem; }
.footer-contact a:hover { color: var(--accent-lt); }
.footer-contact i { width: 14px; color: var(--secondary); }
.footer-col-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; color: var(--accent-lt); margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li a { font-size: 0.83rem; color: rgba(255,255,255,0.48); display: block; padding: 0.3rem 0; transition: var(--transition); }
.footer-links li a:hover { color: var(--white); padding-left: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom > span { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-bottom-portals { display: flex; gap: 1.75rem; }
.footer-bottom-portals a { font-size: 0.78rem; color: rgba(255,255,255,0.38); transition: var(--transition); }
.footer-bottom-portals a:hover { color: var(--white); }

/* ═══════════════════════════════════════════
   PORTAL/DASHBOARD LAYOUT FIXES
═══════════════════════════════════════════ */
body.is-portal-page  main,
body.is-login-page   main { padding: 0; }
body.is-dashboard-page main { padding: 0; }
#site-main { display: block; }
body.is-portal-page  .portal-login-wrap { min-height: calc(100vh - 60px); }
body.is-login-page   .portal-login-wrap { min-height: calc(100vh - 60px); }

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════ */
.animate-in { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.animate-in.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .portals-grid   { grid-template-columns: 1fr; }
  .founder-content { grid-template-columns: 1fr; gap: 3rem; }
  .referral-inner  { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 900px) {
  .portal-login-wrap { grid-template-columns: 1fr; }
  .portal-login-hero { display: none; }
  .dashboard-stats   { grid-template-columns: repeat(2,1fr); }
  .hero-stat-item    { padding: 0 1.5rem; }
}
@media (max-width: 768px) {
  .main-navigation { display: none; }
  .header-portals  { display: none; }
  #mobile-menu-btn { display: flex !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 4rem 0; }
  .portal-login-side { padding: 2.5rem 2rem; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .availability-day-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 1rem; }
  .hero-stat-item { padding: 0 1rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 1rem; }
  .hero-stat-item:last-child { border-bottom: none; }
  .session-type-row { gap: 0.5rem; }
  .session-type-btn { min-width: 90px; }
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .dashboard-cards { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; }
}

/* ── Backward-compat alias for --cream (used in inline styles) ── */
:root { --cream: var(--light); }

/* ── Ensure site title text never appears next to logo ── */
.logo-container a,
.portal-topbar-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    font-size: 0;         /* hides any stray text nodes */
    color: transparent;
}
.logo-container a img,
.portal-topbar-logo img {
    font-size: 0;         /* hides alt text if image fails */
    display: block;
}
/* Hide WordPress site title if it renders alongside logo */
.logo-container .site-title,
.logo-container p.site-title,
.custom-logo-link + .site-title { display: none !important; }
