/* ============================================
   FINOWISE FREEDOM GROUP - Master Stylesheet
   AMFI Registered Mutual Fund Distributor
   Production-Ready | Mobile-First Responsive
   ============================================ */

/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Brand Colors */
  --primary: #C63204;
  --primary-dark: #A02803;
  --primary-light: #E85A2A;
  --primary-rgb: 198, 50, 4;
  --secondary: #002830;
  --secondary-rgb: 0, 40, 48;
  --accent: #F07A2A;
  --accent-rgb: 240, 122, 42;
  --gold: #D4893A;
  --success: #27ae60;
  --success-rgb: 39, 174, 96;

  /* Text Colors */
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-light: #F4F8F8;
  --bg-cream: #F7FBFA;
  --bg-dark: #002830;
  --teal-mid: #003540;
  --teal-light: #0A4A54;
  --teal-soft: #E6F2F2;


  /* Borders & Shadows */
  --border: #D4E4E4;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Border Radius — hierarchy: sharp surfaces, subtle cards, pills for buttons */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 14px;
  --radius-pill: 50px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;

  /* Fonts */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;

  /* Container */
  --container-max: 1200px;
  --container-padding: 20px;

  /* Navbar height for offset calculations */
  --navbar-height: 75px;
  --topbar-height: 36px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font);
}

/* ============================================
   2. TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--secondary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.2rem); }
h5 { font-size: clamp(0.9rem, 1.5vw, 1rem); }
h6 { font-size: 0.88rem; }

p {
  margin-bottom: 1rem;
}

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

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.82rem;
}

blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* ============================================
   3. UTILITY CLASSES
   ============================================ */
/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

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

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

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: 50px 0;
}

.section-lg {
  padding: 100px 0;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-success { color: var(--success); }

/* Backgrounds */
.bg-light { background: var(--bg-light); }
.bg-cream { background: var(--bg-cream); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-white { background: #fff; }

/* Margins */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.pt-0 { padding-top: 0; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flexbox */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }
.gap-4 { gap: 40px; }

/* Grid */
.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Misc */
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.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;
}

/* ============================================
   4. SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.05rem;
}

.section-header .subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

/* ============================================
   5. BUTTON SYSTEM
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-family: var(--font);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: #2a2a4e;
  border-color: #2a2a4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.3);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-success:hover {
  background: #219150;
  border-color: #219150;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--success-rgb), 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-icon {
  padding: 12px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   6. TOP BAR
   ============================================ */
.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: max(0.8rem, 12px);
  padding: 8px 0;
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: #ccc;
}

.top-bar a:hover {
  color: var(--accent);
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-right {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   7. NAVBAR
   ============================================ */
.navbar {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navbar-height);
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.nav-logo .logo-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  line-height: 1.2;
}

.nav-logo .logo-text .brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.nav-logo .logo-text .brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-logo .logo-text .brand-reg {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Footer Logo */
.footer-logo-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

.nav-link .arrow {
  font-size: 0.6rem;
  transition: var(--transition);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown a:hover {
  background: var(--bg-cream);
  color: var(--primary);
  padding-left: 20px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.88rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1010;
  border: none;
  background: none;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #F7FBFA 0%, #fff5ee 50%, #f9f0e8 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.hero h1 span {
  color: var(--primary);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.trust-item .icon {
  width: 20px;
  height: 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Hero Visual / Card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 22px;
  z-index: -1;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.hero-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-cream);
  border-radius: var(--radius);
  transition: var(--transition);
}

.hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat .label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   8a. R.A.C.E. INFOGRAPHIC SECTION
   ============================================ */
.race-section {
  background: linear-gradient(135deg, #002830 0%, #003540 50%, #002830 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.race-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(198, 50, 4, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(240, 122, 42, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.race-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  margin-top: 40px;
}

.race-center {
  position: absolute;
  text-align: center;
  z-index: 2;
}

.race-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 0 40px rgba(198, 50, 4, 0.3);
}

.race-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 6px;
}

.race-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 4px;
}

.race-ring {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.race-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.race-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.race-letter {
  width: 55px;
  height: 55px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.race-r .race-letter,
.race-a .race-letter,
.race-c .race-letter,
.race-e .race-letter { background: linear-gradient(135deg, #C63204, #E85A2A); }

.race-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.race-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .race-ring {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .race-center {
    position: relative;
    margin-bottom: 30px;
  }
  .race-visual {
    flex-direction: column;
    min-height: auto;
  }
  .race-section {
    padding: 50px 0;
  }
}

/* ============================================
   8a2. PAGE CARDS GRID (About Us & Our Approach)
   ============================================ */
.page-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.page-card-icon {
  width: auto;
  height: auto;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 14px;
  transition: var(--transition);
}

.page-card:hover .page-card-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.page-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--secondary);
}

.page-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .page-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .page-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .page-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .page-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .page-card {
    padding: 20px 12px;
  }
  .page-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .page-card h4 {
    font-size: 0.9rem;
  }
}

/* ============================================
   8b. KEY NUMBERS SHOWCASE
   ============================================ */
.numbers-showcase {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 50%, var(--bg-cream) 100%);
  padding: 70px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.number-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.number-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.number-item:hover::after {
  opacity: 1;
}

.number-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.number-icon {
  width: auto;
  height: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

.number-item:hover .number-icon {
  color: var(--primary-dark);
  transform: scale(1.08);
}

.number-content {
  display: flex;
  flex-direction: column;
}

.number-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.1;
}

.number-label {
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

@media (max-width: 1024px) {
  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .number-item {
    padding: 24px 20px;
  }
  .number-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .numbers-showcase {
    padding: 50px 0;
  }
  .number-item {
    padding: 22px 18px;
    gap: 16px;
  }
  .number-value {
    font-size: 1.6rem;
  }
  .number-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .numbers-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .number-item {
    padding: 18px 14px;
    gap: 12px;
  }
  .number-value {
    font-size: 1.4rem;
  }
  .number-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
  .number-value {
    font-size: 1.2rem;
  }
  .number-label {
    font-size: 0.7rem;
  }
}

/* ============================================
   9. DIRECTORS SECTION
   ============================================ */
.directors-section {
  background: var(--bg-cream);
}

.directors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.director-card {
  text-align: center;
  background: #fff;
  padding: 30px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.director-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.director-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--bg-cream), #D4E4E4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  overflow: hidden;
  border: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.director-img::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
}

.director-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.director-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 5px;
}

.director-card .designation {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.director-card .qualification {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.director-card .bio {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.6;
}

.director-card .social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.director-card .social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition);
}

.director-card .social-links a:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   10. RACE PILLARS
   ============================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.pillar-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

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

.pillar-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.pillar-card h4 {
  margin-bottom: 10px;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   11. SEGMENTS / WHO WE SERVE
   ============================================ */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.segment-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px 25px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.segment-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.segment-icon {
  width: auto;
  height: auto;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.segment-card:hover .segment-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.segment-card h4 {
  margin-bottom: 5px;
  font-family: var(--font);
}

.segment-card .age {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 3px 12px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-pill);
}

.segment-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* ============================================
   12. WHY CHOOSE US / FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.feature-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05) rotate(3deg);
}

.feature-card h4 {
  margin-bottom: 8px;
  font-family: var(--font);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   13. CALCULATORS SECTION
   ============================================ */
.calc-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #003540 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.calc-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 35px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.calc-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-card .tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calc-card h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.calc-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.calc-divider {
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.calc-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.calc-tool-item:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
  transform: translateX(3px);
}

.calc-tool-item .emoji {
  font-size: 1.3rem;
}

/* ============================================
   14. PLATFORM FEATURES
   ============================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.platform-card {
  text-align: center;
  padding: 35px 25px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.platform-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.platform-card .icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.platform-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.1);
}

.platform-card h4 {
  font-family: var(--font);
  margin-bottom: 10px;
  font-size: 1rem;
}

.platform-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   15. STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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");
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-item .label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

/* ============================================
   16. CTA SECTION
   ============================================ */
.cta-section {
  background: var(--bg-cream);
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.cta-section .subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ============================================
   17. RISK DISCLAIMER BAR
   ============================================ */
.risk-bar {
  background: #f5f0eb;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.risk-bar p {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================
   18. FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  background: #fff !important;
  padding: 30px !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
}

.footer-brand p {
  color: var(--text-light) !important;
}

.footer-brand .footer-social a {
  background: var(--secondary) !important;
  color: #fff !important;
}

.footer-brand .footer-social a:hover {
  background: var(--primary) !important;
}

.footer-logo-box {
  margin-bottom: 18px;
  margin-left: -10px;
}

.footer-logo-box img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.footer-brand .tagline {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer-brand .reg {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact .contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Footer Compliance */
.footer-compliance {
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-compliance p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-compliance .arn-info {
  font-size: max(0.78rem, 12px);
  color: var(--accent);
  text-align: center;
  font-weight: 600;
  margin: 15px 0 5px;
}

.footer-compliance .grievance {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.compliance-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.compliance-links a {
  padding: 2px 8px;
  font-size: 0.75rem;
}

.compliance-links span {
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   19. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  font-size: 1.8rem;
  color: #fff;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4),
                0 0 0 10px rgba(37, 211, 102, 0.1),
                0 0 0 20px rgba(37, 211, 102, 0.05);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background: #fff;
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   20. PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fff5ee 100%);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero .subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.page-hero .breadcrumb a {
  color: var(--primary);
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero .breadcrumb span {
  margin: 0 8px;
}

.page-hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: 10px auto 0;
  font-size: 1.05rem;
}

/* ============================================
   PAGE-SPECIFIC: ABOUT PAGE
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content .text h3 {
  margin-bottom: 15px;
}

.about-content .text p {
  color: var(--text-light);
}

.about-visual {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.about-visual img {
  border-radius: var(--radius-sm);
}

/* Quick Stats on About */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-stat-item {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-stat-item .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.about-stat-item .label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================
   PAGE-SPECIFIC: TEAM PAGE
   ============================================ */
.team-section {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.team-card {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: transparent;
}

.team-card .avatar,
.team-member .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-cream);
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  overflow: hidden;
}

.team-card .avatar img,
.team-member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role,
.team-member .role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
}

.team-card .qual,
.team-member .qual {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   PAGE-SPECIFIC: CULTURE PAGE
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.value-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-card .value-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.value-card h4 {
  font-family: var(--font);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: PURPOSE PAGE
   ============================================ */
.purpose-pyramid {
  max-width: 700px;
  margin: 0 auto;
}

.purpose-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 15px;
  transition: var(--transition);
  position: relative;
}

.purpose-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

.purpose-step .step-number {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.purpose-step h4 {
  font-family: var(--font);
  margin-bottom: 5px;
}

.purpose-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: LOGO PAGE
   ============================================ */
.logo-display {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.logo-display img {
  max-width: 300px;
  margin: 0 auto;
}

.meaning-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 15px;
  transition: var(--transition);
}

.meaning-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.meaning-card .color-swatch {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
}

.meaning-card h4 {
  font-family: var(--font);
  margin-bottom: 5px;
}

.meaning-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: PRINCIPLES PAGE
   ============================================ */
.principle-category {
  margin-bottom: 50px;
}

.principle-category h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.principle-card {
  padding: 25px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: top;
}

.principle-card:hover::before {
  transform: scaleY(1);
}

.principle-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-3px);
}

.principle-card h4 {
  font-family: var(--font);
  margin-bottom: 8px;
  font-size: 1rem;
}

.principle-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: STRATEGY PAGE
   ============================================ */
.pillar-analysis {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.philosophy-card {
  padding: 35px;
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fff5ee 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 25px;
}

.philosophy-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
  color: var(--secondary);
}

.philosophy-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.rebalance-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.rebalance-step {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.rebalance-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.rebalance-step .step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 10px;
}

.rebalance-step h5 {
  font-family: var(--font);
  margin-bottom: 5px;
}

.rebalance-step p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: WEALTH STRATEGIES PAGE
   ============================================ */
.strategy-category {
  margin-bottom: 50px;
}

.strategy-category h3 {
  margin-bottom: 20px;
}

.strategy-grid,
.strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.strategy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
}

.strategy-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.strategy-card h4 {
  font-family: var(--font);
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.strategy-card .subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.strategy-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.strategy-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.strategy-card .tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
}

/* ============================================
   PAGE-SPECIFIC: SOLUTIONS PAGE
   ============================================ */
.solution-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  margin-bottom: 20px;
}

.solution-card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.solution-card h4 {
  font-family: var(--font);
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Allocation Bars */
.allocation-bar {
  margin-bottom: 12px;
}

.allocation-bar .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.allocation-bar .bar-track {
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.allocation-bar .bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
}

.compliance-note {
  padding: 15px 20px;
  background: rgba(var(--accent-rgb), 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 20px;
}

/* Solution Block layout (alternate left-right) */
.solution-block {
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}

.solution-block:last-child {
  border-bottom: none;
}

.solution-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.solution-block:nth-child(even) .container {
  direction: rtl;
}

.solution-block:nth-child(even) .container > * {
  direction: ltr;
}

/* ============================================
   PAGE-SPECIFIC: RESEARCH PAGE
   ============================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.research-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.research-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.research-card .category {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.research-card h4 {
  font-family: var(--font);
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.research-card .date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.research-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.research-card .downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   PAGE-SPECIFIC: SERVICES PAGE
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  padding: 36px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-card .icon-wrap {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--accent-rgb), 0.12));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.05);
}

.service-card h4 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 28px 22px;
    min-height: auto;
  }
}

/* ============================================
   PAGE-SPECIFIC: SIF PAGE
   ============================================ */
.sif-content {
  max-width: 900px;
  margin: 0 auto;
}

.sif-content h3 {
  margin-bottom: 15px;
}

.sif-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.sif-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.sif-feature-card {
  padding: 25px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.sif-feature-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th {
  background: var(--secondary);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
}

.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.comparison-table tr:hover td {
  background: rgba(var(--primary-rgb), 0.04);
}

.invest-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.invest-step {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.invest-step .step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.invest-step h5 {
  font-family: var(--font);
  margin-bottom: 5px;
}

.invest-step p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: CALCULATORS PAGE
   ============================================ */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.calculator-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.calculator-card:hover {
  box-shadow: var(--shadow-lg);
}

.calculator-card h4 {
  font-family: var(--font);
  margin-bottom: 15px;
  color: var(--secondary);
}

.calculator-card .calc-input-group {
  margin-bottom: 15px;
}

.calculator-card .calc-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}

.calculator-card .calc-input-group input,
.calculator-card .calc-input-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.calculator-card .calc-input-group input:focus,
.calculator-card .calc-input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.calculator-card .calc-result {
  padding: 20px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 20px;
}

.calculator-card .calc-result .result-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.calculator-card .calc-result .result-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Range slider styling */
.calculator-card input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  border: none;
  padding: 0;
}

.calculator-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.calculator-card input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   PAGE-SPECIFIC: TESTIMONIALS PAGE
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.testimonial-card {
  padding: 30px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(var(--primary-rgb), 0.08);
  line-height: 1;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card .quote {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-card .author .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card .author .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

.testimonial-card .author .title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   PAGE-SPECIFIC: CONTACT PAGE
   ============================================ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.office-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.office-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.office-card .office-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
}

.office-card h4 {
  font-family: var(--font);
  color: var(--primary);
  margin-bottom: 15px;
}

.office-card .address {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.office-card .phone,
.office-card .email {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.office-card .phone a,
.office-card .email a {
  color: var(--primary);
  font-weight: 500;
}

.office-card .phone a:hover,
.office-card .email a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .error-msg {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 4px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Grievance Section */
.grievance-section {
  padding: 40px;
  background: var(--bg-cream);
  border-radius: var(--radius);
  margin-top: 40px;
}

.grievance-section h3 {
  margin-bottom: 15px;
}

.grievance-section p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.grievance-section a {
  color: var(--primary);
  font-weight: 500;
}

.grievance-section a:hover {
  text-decoration: underline;
}

/* ============================================
   PAGE-SPECIFIC: COMPLIANCE PAGES
   ============================================ */
.compliance-content {
  max-width: 900px;
  margin: 0 auto;
}

.compliance-content h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.compliance-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.compliance-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.compliance-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.compliance-content ul,
.compliance-content ol {
  padding-left: 25px;
  margin-bottom: 15px;
}

.compliance-content ul {
  list-style: disc;
}

.compliance-content ol {
  list-style: decimal;
}

.compliance-content li {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

.compliance-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.compliance-content table th,
.compliance-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.compliance-content table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* ============================================
   PAGE-SPECIFIC: BLOG PAGE
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card .blog-image {
  height: 200px;
  background: var(--bg-cream);
  overflow: hidden;
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-card .blog-body {
  padding: 25px;
}

.blog-card .blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.blog-card .blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h4 {
  font-family: var(--font);
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.4;
}

.blog-card h4 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card .read-more:hover {
  gap: 8px;
}

/* ============================================
   PAGE-SPECIFIC: CAREER PAGE
   ============================================ */
.career-section {
  padding: 80px 0;
}

.career-section .intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.career-section .intro p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.position-card {
  padding: 25px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: var(--transition);
}

.position-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.position-card .position-info h4 {
  font-family: var(--font);
  margin-bottom: 5px;
}

.position-card .position-info .details {
  display: flex;
  gap: 15px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.position-card .position-info .details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   PAGE-SPECIFIC: DOWNLOADS PAGE
   ============================================ */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.download-card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: var(--transition);
}

.download-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.download-card .file-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.download-card h4 {
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.download-card .file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PAGE-SPECIFIC: MF TOOLS PAGE
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.tool-card .tool-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.tool-card h4 {
  font-family: var(--font);
  margin-bottom: 8px;
  font-size: 1rem;
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-loaded .animate-in {
  opacity: 0;
  transform: translateY(30px);
}

body.js-loaded .animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-in {
    opacity: 1;
    transform: none;
  }

  .whatsapp-float {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE: 1200px
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --container-padding: 24px;
  }

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

/* ============================================
   RESPONSIVE: 1024px
   ============================================ */
@media (max-width: 1024px) {
  .grid-4,
  .segments-grid,
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3,
  .directors-grid,
  .platform-grid,
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    display: none;
  }

  .hero-text {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  }

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

  .about-content {
    grid-template-columns: 1fr;
  }

  .solution-block .container {
    grid-template-columns: 1fr;
  }

  .solution-block:nth-child(even) .container {
    direction: ltr;
  }

  .section {
    padding: 60px 0;
  }
}

/* ============================================
   RESPONSIVE: 768px
   ============================================ */
@media (max-width: 768px) {
  /* Navbar Mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 0;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-item:hover .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    min-width: auto;
    display: none;
    border: none;
  }

  .nav-item.open .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown a:hover {
    padding-left: 16px;
  }

  /* Top Bar */
  .top-bar .container {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    justify-content: center;
    width: 100%;
  }

  .top-bar-right {
    width: 100%;
    text-align: center;
  }

  /* Typography */
  h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }

  /* Sections */
  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 35px;
  }

  /* Grids to single column */
  .grid-2,
  .features-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .segments-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .directors-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .platform-grid,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Hero adjustments */
  .hero {
    padding: 50px 0 60px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  /* Calc tools */
  .calc-tools {
    grid-template-columns: 1fr;
  }

  /* Research grid */
  .research-grid {
    grid-template-columns: 1fr;
  }

  /* Blog grid */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-form {
    padding: 25px;
  }

  /* Position cards stack */
  .position-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* CTA */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* About stats */
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE: 480px
   ============================================ */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  :root {
    --container-padding: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .stat-item .number {
    font-size: 1.6rem;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .compliance-links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
  }

  .page-hero {
    padding: 35px 0;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 5px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .top-bar,
  .navbar,
  .whatsapp-float,
  .footer,
  .cta-section,
  .risk-bar,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    padding: 20px 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}


/* ============================================
   FINOWISE-SPECIFIC ENHANCEMENTS
   ============================================ */
.top-bar {
  background: var(--secondary) !important;
}

/* Tagline bar orange/red strip is owned by banner.css */
.brand-tagline-bar {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--teal-mid) 50%, var(--secondary) 100%);
  border-top: 1px solid rgba(198, 50, 4, 0.35);
}

.banner-tagline-bar .tagline-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Footer >> separators — high contrast brand orange */
.footer-tagline .tagline-sep {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 0.4em !important;
  padding: 0.05em 0.4em !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #C63204, #E85A2A) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 800 !important;
  font-size: 0.95em !important;
  letter-spacing: 0.12em !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(198, 50, 4, 0.35) !important;
}

/* Journey badge on slides */
.journey-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 50, 4, 0.18);
  border: 1px solid rgba(198, 50, 4, 0.35);
  color: #ffb89a;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.journey-label i {
  color: var(--primary-light);
}

/* WISE philosophy letter colors */
.wise-w .race-letter,
.wise-i .race-letter,
.wise-s .race-letter,
.wise-e .race-letter { background: linear-gradient(135deg, #C63204, #E85A2A); }

/* Solution cards - three goal types */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .goal-cards { grid-template-columns: 1fr; }
}
.goal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.goal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}
.goal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.goal-card .goal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--teal-soft);
  color: var(--secondary);
}
.goal-card.accent .goal-icon {
  background: rgba(198, 50, 4, 0.1);
  color: var(--primary);
}
.goal-card h3 {
  margin-bottom: 12px;
}
.goal-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.goal-card .goal-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* Audience / who we serve */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
}
.audience-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.audience-card:hover {
  border-color: rgba(198, 50, 4, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.audience-card .age-tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
  width: fit-content;
}
.audience-card h4 {
  margin-bottom: 10px;
}
.audience-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  flex: 1;
}
.audience-card .explore-link {
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.audience-card .explore-link:hover {
  gap: 10px;
}

/* Why choose cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 40, 48, 0.15);
}
.why-card .why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--teal-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.why-card h4 {
  margin-bottom: 8px;
}
.why-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.office-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .office-cards { grid-template-columns: 1fr; }
}
.office-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.office-card h4 {
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.office-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.office-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198, 50, 4, 0.12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-card .team-photo {
  height: 260px;
  background: linear-gradient(160deg, var(--secondary) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card .team-body {
  padding: 22px 18px 28px;
}
.team-card h4 {
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.team-card .bio {
  color: var(--text-light);
  font-size: 0.88rem;
  text-align: justify;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.value-card:hover {
  border-color: rgba(198, 50, 4, 0.3);
}
.value-card .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card h4 {
  margin-bottom: 8px;
}
.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Principles list */
.principles-group {
  margin-bottom: 48px;
}
.principles-group h3 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-soft);
  color: var(--secondary);
}
.principles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .principles-list { grid-template-columns: 1fr; }
}
.principle-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.principle-item .p-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principle-item h5 {
  margin-bottom: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--secondary);
}
.principle-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Service items */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(198, 50, 4, 0.25);
}
.service-item .svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.15rem;
}
.service-item h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.service-item p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.wa-float:hover {
  transform: scale(1.08);
  color: #fff;
}

/* Meaning of FINOWISE block */
.fino-meaning {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 700px) {
  .fino-meaning { grid-template-columns: 1fr; }
}
.fino-part {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.fino-part .letter {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.fino-part h4 {
  margin-bottom: 8px;
}
.fino-part p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Blank placeholder section (per PPT) */
.placeholder-section {
  min-height: 120px;
  background: linear-gradient(180deg, var(--bg-light), #fff);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

/* Calculator tools page */
.calc-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .calc-page-grid { grid-template-columns: 1fr; }
}
.calc-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.calc-widget h3 {
  margin-bottom: 18px;
}
.calc-result {
  margin-top: 20px;
  padding: 18px;
  background: var(--teal-soft);
  border-radius: var(--radius);
  text-align: center;
}
.calc-result .result-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.calc-result .result-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: 700;
}
.range-row {
  margin-bottom: 14px;
}
.range-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}
.range-row input[type=range] {
  width: 100%;
  accent-color: var(--primary);
}

/* Footer logo on dark - invert if colored logo */
.footer .footer-logo-img {
  filter: none;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Top bar AMFI strip */
.top-bar-amfi {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Improve logo in nav on white */
.nav-logo-img {
  background: transparent;
}

/* Disclaimer footer risk box */
.risk-notice {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}


/* Aliases used in Finowise markup */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--secondary);
}

/* Race center stack when not absolute circle ring */
.race-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section header on dark race section */
.race-section .section-header h2,
.race-section .section-header p {
  color: #fff;
}
.race-section .section-header .subtitle {
  color: var(--primary-light);
}
.race-section .section-header h2::after {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Banner brand words: animated gradient (see banner.css) — do not force flat color */
.banner-text .text-primary,
.banner-text h1 .text-primary {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.banner-text h1 {
  color: #fff;
}
.banner-text p {
  color: rgba(255,255,255,0.85);
}

/* Finowise WISE layout override — stacked center + 2x2 cards */
.race-visual {
  flex-direction: column !important;
  min-height: auto !important;
}
.race-center {
  position: relative !important;
  margin-bottom: 36px !important;
}
.race-ring {
  position: relative !important;
  z-index: 1;
}


/* Coming Soon menu */
.soon-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 2px 7px;
  border-radius: 50px;
  vertical-align: middle;
  line-height: 1.4;
}
.dropdown a.nav-coming-soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.coming-soon-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--secondary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 40, 48, 0.35);
  z-index: 10000;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(198, 50, 4, 0.45);
  max-width: min(92vw, 420px);
  text-align: center;
}
.coming-soon-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.coming-soon-toast .cs-accent {
  color: var(--primary-light);
}


/* Finowise calc section — fixed layout */
.calc-section .section-header h2,
.calc-section .section-header p {
  color: #fff;
}
.calc-section .section-header .subtitle {
  color: var(--primary-light);
}
.calc-section .section-header h2::after {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.calc-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.calc-section .calc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.calc-section .calc-card .btn {
  margin-top: auto;
  align-self: flex-start;
  gap: 8px;
}
.calc-section .calc-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.calc-section .calc-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  min-height: 64px;
}
.calc-section .calc-tool-item span:nth-child(2) {
  flex: 1;
}
.calc-section .calc-tool-item .soon-badge {
  flex-shrink: 0;
  margin-left: auto;
}
.calc-section .calc-tool-item:hover {
  background: rgba(198, 50, 4, 0.22);
  border-color: rgba(198, 50, 4, 0.55);
  transform: translateY(-2px);
}
.calc-disclaimer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
/* Hide old broken multi-column layout if present */
.calc-layout {
  display: block !important;
}
.calc-divider {
  display: none !important;
}
@media (max-width: 900px) {
  .calc-highlights {
    grid-template-columns: 1fr;
  }
  .calc-section .calc-tools {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .calc-section .calc-tools {
    grid-template-columns: 1fr;
  }
}
/* page-card as coming soon still looks clickable */
a.page-card.coming-soon {
  cursor: pointer;
}
a.explore-link.coming-soon {
  cursor: pointer;
}
.calc-section .btn .soon-badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ============================================
   FULL-SITE ENHANCEMENTS (2026 complete build)
   ============================================ */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-login {
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.top-bar-login:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--secondary);
  color: #fff;
}
.btn-outline-dark.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown {
  min-width: 240px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}
.dropdown-wide {
  min-width: 280px;
  columns: 1;
}
.dropdown-divider {
  display: block;
  padding: 10px 16px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  column-span: all;
}
.footer-grid-4 {
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
}
.footer-tagline {
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  margin-top: 8px !important;
}
.footer-risk {
  padding: 18px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
}
.footer-risk .risk-headline {
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.88) !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  line-height: 1.55 !important;
}
.footer-risk .risk-body {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.48) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
.footer-compliance .amfi-tagline {
  color: var(--accent) !important;
  font-weight: 600;
  margin: 8px 0 !important;
  font-size: 0.9rem !important;
}
.footer-compliance .amfi-tagline span {
  opacity: 0.75;
  font-weight: 400;
}
.footer-compliance .grievance-line {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.65) !important;
  margin: 8px 0 12px !important;
}
.footer-compliance .grievance-line a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
.compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
}
.compliance-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 2px 8px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.compliance-links a:last-child { border-right: none; }
.compliance-links a:hover { color: var(--primary-light); }

.lead {
  font-size: 1.12rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.info-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.info-letter {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split-grid.align-center { align-items: center; }
.content-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.content-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.content-list-item > i {
  color: var(--primary);
  margin-top: 4px;
  width: 20px;
  text-align: center;
}
.content-list-item h4 { margin-bottom: 4px; font-size: 1.05rem; }
.content-list-item p { margin: 0; color: var(--text-light); font-size: 0.92rem; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.principle-item {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
}
.principle-item .num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 10px !important;
}
.logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
.logo-large { max-width: 280px; width: 100%; height: auto; }
.content-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.content-prose h3:first-child { margin-top: 0; }
.content-prose p, .content-prose li {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.content-prose ul, .content-prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.content-prose ul { list-style: disc; }
.content-prose ol { list-style: decimal; }
.content-prose a { color: var(--primary); font-weight: 500; }
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item h4 { margin-bottom: 8px; }
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
.data-table th {
  background: var(--secondary);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.data-table tr:nth-child(even) td { background: var(--bg-light); }
.data-table tr:hover td { background: var(--teal-soft); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-style: italic;
  color: var(--text-light);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  margin: 0;
}
.t-card cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.88rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 36px;
  align-items: start;
}
.contact-info-panel, .contact-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form .form-group {
  margin-bottom: 14px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: var(--bg);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.form-consent {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px !important;
}
.calc-page-disclaimer {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.calc-page-grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.calc-widget h3 i {
  color: var(--primary);
  margin-right: 8px;
}
.calc-result .result-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.range-row {
  margin-bottom: 14px;
}
.range-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}
.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.explore-link {
  color: var(--primary);
  font-weight: 600;
  margin-top: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.explore-link:hover { gap: 10px; }
.page-card {
  display: block;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
  .info-cards-3, .principles-grid, .team-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .calc-page-grid-3 { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
  .footer-grid-4, .split-grid, .contact-layout,
  .info-cards-3, .principles-grid, .team-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .calc-page-grid-3 { grid-template-columns: 1fr !important; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .top-bar-amfi { display: none; }
  .nav-cta { flex-direction: column; width: 100%; padding: 12px 16px; }
  .nav-cta .btn { width: 100%; }
}

/* PPT Option A — layout helpers */
.page-cards-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  max-width: 1000px;
  margin: 0 auto;
}
.principles-grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.principle-detail {
  min-height: 160px;
}
.principle-detail p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}
.placeholder-section {
  min-height: 48px;
  background: transparent;
}
@media (max-width: 900px) {
  .page-cards-3,
  .principles-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Leadership team cards with photos */
.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}
.team-grid-leadership {
  grid-template-columns: repeat(3, 1fr);
}
.team-card-photo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-photo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--teal-soft);
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card-photo h4 {
  margin-bottom: 4px;
}
.team-card-photo p {
  text-align: justify;
  font-size: 0.9rem;
  color: var(--text-light);
}
.team-card-photo .team-role {
  text-align: center;
}
.office-grid {
  grid-template-columns: repeat(3, 1fr);
}
.office-grid .audience-card p {
  font-size: 0.88rem;
  line-height: 1.55;
}
.office-grid .audience-card a {
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 1024px) {
  .team-grid-leadership { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .team-grid-2,
  .team-grid-leadership,
  .office-grid { grid-template-columns: 1fr; }
  .team-photo-wrap { width: 140px; height: 140px; }
}

/* ============================================
   LIVE UI FIXES — nav, dropdowns, tagline, layout
   ============================================ */
/* footer .tagline-sep styled above with high-contrast pill */

/* Keep desktop nav usable with many items */
.navbar .container {
  gap: 8px;
  flex-wrap: nowrap;
}
.nav-logo-img {
  height: 52px;
  max-width: 200px;
}
.nav-menu {
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-link {
  padding: 10px 10px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.nav-cta {
  gap: 6px;
  flex-shrink: 0;
}
.nav-cta .btn-sm {
  padding: 8px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Wide dropdowns: multi-column + scroll so they don't clip */
.dropdown {
  max-height: min(70vh, 480px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 220px;
  z-index: 1200;
}
.dropdown-wide {
  min-width: min(560px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4px;
  padding: 10px;
}
.dropdown-wide a {
  white-space: normal;
  line-height: 1.35;
  padding: 8px 12px;
}
.dropdown-wide .dropdown-divider {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 8px;
}
/* Open wide menus left or right so they stay on screen */
.nav-item.has-mega:last-of-type .dropdown,
.nav-item:nth-last-child(-n+3) .dropdown-wide {
  left: auto;
  right: 0;
}

/* Top bar: prevent overflow on live */
.top-bar .container {
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}
.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a,
.top-bar-amfi {
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Banner text readability */
.banner-text h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  line-height: 1.15;
  margin-bottom: 14px;
}
.banner-text p {
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
}
.banner-hero-btns {
  flex-wrap: wrap;
  gap: 12px;
}
.banner-hero-btns .btn {
  white-space: nowrap;
}

/* Section headers */
.section-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 36px;
}
.section-header p {
  color: var(--text-light);
}

/* Cards: even heights, no overflow */
.page-card,
.goal-card,
.audience-card,
.team-card,
.info-card,
.service-item {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.page-cards-grid {
  align-items: stretch;
}
.page-card {
  height: 100%;
}

/* Footer compliance readable on live */
.footer-risk .risk-body,
.footer-compliance p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.compliance-links {
  row-gap: 8px;
}
.compliance-links a {
  border-right: none;
  padding: 2px 0;
  margin-right: 10px;
}
.compliance-links a::after {
  content: "|";
  margin-left: 10px;
  opacity: 0.35;
  color: #fff;
}
.compliance-links a:last-child::after {
  content: none;
}

/* Numbers / calc sections */
.numbers-grid {
  gap: 16px;
}
.calc-tools {
  gap: 12px;
}

/* Tablet: collapse nav earlier — main live UI issue with many menu items */
@media (max-width: 1100px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 24px;
    box-shadow: var(--shadow-lg);
    gap: 0;
    max-height: calc(100vh - var(--navbar-height) - var(--topbar-height, 36px));
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 1200;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-link {
    padding: 12px 14px;
    width: 100%;
    font-size: 0.92rem;
    justify-content: space-between;
  }
  .nav-cta {
    width: 100%;
    flex-direction: column;
    padding: 12px 0 4px;
  }
  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .dropdown,
  .dropdown-wide {
    position: static;
    min-width: 100%;
    max-height: none;
    display: none;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 12px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 0 0 8px;
  }
  .nav-item.open .dropdown,
  .nav-item.open .dropdown-wide {
    display: grid;
  }
  .nav-item:hover .dropdown {
    /* mobile uses .open only */
  }
  .dropdown-wide a {
    padding: 10px 12px;
  }
  .top-bar-amfi {
    display: none;
  }
  .nav-logo-img {
    height: 44px;
    max-width: 160px;
  }
}

@media (max-width: 768px) {
  .footer-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .page-cards-3 {
    grid-template-columns: 1fr !important;
  }
  .goal-cards {
    grid-template-columns: 1fr !important;
  }
  .banner-tagline-bar .tagline-text {
    font-size: 0.82rem;
  }
  .footer-compliance .arn-info {
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
  }
}

/* Prevent horizontal scroll on live */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
img, video, iframe {
  max-width: 100%;
}
.container {
  overflow-wrap: break-word;
}

/* PPT exact content lists */
.ppt-list {
  margin: 10px 0 0 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.55;
}
.ppt-list li {
  margin-bottom: 6px;
}
.principle-detail .ppt-list {
  text-align: left;
}

.why-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .why-grid-3 { grid-template-columns: 1fr; }
}

/* Excel: slider arrows always visible */
.banner-slider .banner-nav {
  display: flex !important;
  opacity: 1;
}
@media (max-width: 480px) {
  .banner-slider .banner-nav {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}


/* Home testimonials — finowise.in stories */
.testimonials-home {
  background: var(--bg-light);
}
.testimonials-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.home-t-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 40, 48, 0.06);
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.home-t-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: 0.2s ease;
}
.home-t-quote {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.home-t-card p {
  text-align: justify;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
  margin: 0 0 16px;
}
.home-t-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
}
@media (max-width: 1024px) {
  .testimonials-slider-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-slider-grid { grid-template-columns: 1fr; }
}

/* Product pages: keep the hero tagline on a single line */
.page-hero .subtitle.subtitle-one-line {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.68rem, 1.5vw, 0.85rem);
  letter-spacing: clamp(0.5px, 0.18vw, 2px);
}
@media (max-width: 640px) {
  /* too narrow for one readable line on phones: wrap evenly instead */
  .page-hero .subtitle.subtitle-one-line { white-space: normal; text-wrap: balance; letter-spacing: 1px; }
}

/* "Coming soon" card (e.g. Culture Charter) */
.page-card.page-card-soon { cursor: default; opacity: 0.75; border-style: dashed; }
.page-card.page-card-soon:hover { transform: none; }
.page-card.page-card-soon p { font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; }

/* Group label inside a nav dropdown (About Us → What Drives Us) */
.dropdown .dropdown-label {
  display: block;
  margin: 8px 16px 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 40, 48, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
}

/* ============================================
   WHY WE EXIST — shloka, Who We Are, What We Do, Purpose
   ============================================ */
.who-shloka-section { padding-bottom: 24px; }
.shloka-card {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  padding: 40px 36px 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  box-shadow: var(--shadow);
  position: relative;
}
.shloka-card::before {
  content: '\201C';
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font: 700 2.4rem/64px 'Playfair Display', serif;
}
.shloka-sa {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.7;
  font-weight: 600;
  color: var(--primary);
}
.shloka-hi {
  margin-top: 16px;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.8;
  color: var(--secondary);
}
.shloka-en {
  margin-top: 14px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
}
.who-intro { margin-top: 32px; }

.who-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.who-photo { position: relative; }
.who-photo img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.who-photo::after {
  content: ''; position: absolute; z-index: -1;
  inset: 24px -18px -18px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--secondary-rgb), 0.12));
}
.who-copy h2 { margin: 6px 0 18px; }
.who-copy p { font-size: 1.06rem; line-height: 1.85; color: var(--text); }
.who-highlight {
  margin: 22px 0 !important;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  background: var(--bg-cream);
  font: 700 1.3rem/1.4 'Playfair Display', serif !important;
  color: var(--secondary) !important;
}
.who-focus { font-weight: 700; color: var(--primary) !important; }
@media (max-width: 860px) {
  .who-split { grid-template-columns: 1fr; gap: 32px; }
  .who-photo img { aspect-ratio: 16 / 10; }
  .who-photo::after { display: none; }
}

.wwd-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 980px;
  display: grid; gap: 16px;
}
.wwd-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wwd-item:nth-child(even) { background: linear-gradient(90deg, #fffaf4, #fff 60%); }
.wwd-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), 0.35); }
.wwd-num {
  font: 800 1.6rem/1 'Playfair Display', serif;
  color: rgba(var(--primary-rgb), 0.35);
  min-width: 42px;
}
.wwd-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--secondary); color: #fff; font-size: 1.15rem;
}
.wwd-item:nth-child(even) .wwd-icon { background: var(--primary); }
.wwd-item p { margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--secondary); font-weight: 500; }
.wwd-item p strong { color: var(--primary); }
@media (max-width: 600px) {
  .wwd-item { grid-template-columns: auto 1fr; padding: 18px; gap: 14px; }
  .wwd-num { display: none; }
}

.purpose-launch {
  position: relative; overflow: hidden;
  padding: 80px 0 90px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(240, 122, 42, 0.45) 0%, rgba(198, 50, 4, 0.18) 28%, transparent 60%),
    linear-gradient(180deg, #02121a 0%, #052733 55%, #0a3a46 100%);
  color: #fff;
}
.purpose-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 66%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 76%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 58%, #fff 50%, transparent 51%);
}
.purpose-header h2 { color: #fff; }
.purpose-header .subtitle { color: var(--accent); }
.purpose-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 160px 1fr;
  gap: 36px;
  align-items: center;
}
.purpose-card {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.purpose-card p { margin: 18px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.75; font-weight: 600; color: #fff; }
.purpose-vision em { color: #ffd36b; font-style: normal; }
.purpose-tag {
  display: inline-block;
  padding: 8px 26px;
  border-radius: 999px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.85rem;
}
.purpose-mission .purpose-tag { background: var(--primary); box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.6); }
.purpose-vision .purpose-tag { background: var(--teal-light); box-shadow: 0 0 24px rgba(10, 74, 84, 0.8); }
.purpose-rocket-wrap { display: flex; justify-content: center; }
.purpose-rocket { width: 110px; height: auto; animation: rocketHover 3.2s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255, 179, 71, 0.45)); }
.purpose-rocket .flame { transform-origin: 60px 196px; animation: flameFlicker 0.18s ease-in-out infinite alternate; }
@keyframes rocketHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes flameFlicker { from { transform: scaleY(0.9); } to { transform: scaleY(1.08); } }
@media (prefers-reduced-motion: reduce) { .purpose-rocket, .purpose-rocket .flame { animation: none; } }
@media (max-width: 860px) {
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-rocket-wrap { order: -1; }
  .purpose-rocket { width: 70px; }
}

/* ===== What Drives Us — Core Values & 7 Ps ===== */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.value-card {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:nth-child(even) { border-top-color: var(--secondary); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--primary-rgb), 0.1); color: var(--primary); font-size: 1.15rem; margin-bottom: 16px; }
.value-card p { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--secondary); }
.value-card p strong { color: var(--primary); }
.p7-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.p7-card { padding: 28px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.p7-card:nth-child(odd) { background: linear-gradient(160deg, #fffaf4, #fff 55%); }
.p7-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.p7-num { font: 800 2rem/1 'Playfair Display', serif; color: rgba(var(--primary-rgb), 0.35); }
.p7-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); color: #fff; }
.p7-head h3 { margin: 0; font-size: 1.4rem; color: var(--secondary); }
.p7-card p { margin: 0 0 10px; line-height: 1.7; color: var(--text); }
.p7-card p:last-child { margin-bottom: 0; }

/* What We Do pointers — sunrise sky + misty mountains (as in the presentation slide) */
.wwd-section {
  position: relative;
  background: #fdf1df url('../images/what-we-do-bg.svg') center bottom / cover no-repeat;
  padding-bottom: 140px;
}
.wwd-section .section-header h2 { color: #1d1d1d; }
.wwd-section .section-header .subtitle { color: var(--secondary); }
.wwd-section .wwd-item,
.wwd-section .wwd-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
}
.wwd-section .wwd-icon,
.wwd-section .wwd-item:nth-child(even) .wwd-icon { background: #0b3440; border-radius: 6px; }
.wwd-section .wwd-num { color: rgba(11, 52, 64, 0.35); }
.wwd-section .wwd-item p { color: #1d1d1d; }

/* Mission & Vision — rocket launch photo */
.purpose-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url('../images/rocket-launch.jpg') center 40% / cover no-repeat;
  opacity: 0.18;
  }
.purpose-grid { grid-template-columns: 1fr 300px 1fr; }
.purpose-photo {
  margin: 0; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 166, 77, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.purpose-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.purpose-card { background: rgba(4, 22, 30, 0.6); }
@media (max-width: 1000px) { .purpose-grid { grid-template-columns: 1fr 220px 1fr; gap: 24px; } }
@media (max-width: 860px) {
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 4 / 3; }
}


/* Lenis smooth scrolling — required companion CSS (lenis docs). Without it the browser's own
   smooth scrolling fights Lenis and scrolling feels laggy. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* What We Do — one-paragraph summary above the seven points */
.wwd-summary {
  max-width: 980px; margin: 0 auto 26px; padding: 22px 28px;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow); text-align: center;
}
.wwd-summary h3 { margin: 0 0 8px; color: var(--primary); font-size: 1.35rem; }
.wwd-summary p { margin: 0; font-size: 1.04rem; line-height: 1.75; color: #1d1d1d; }
.purpose-intro { padding-bottom: 40px; }

/* =====================================================================
   ONE CARD PER ROW (27 Oct) — every content-card grid shows one card per line,
   full width, with the icon/photo on the left and the text running in full lines.
   Not applied to: stats row, client-story slider, Mission & Vision, calculators, footer.
   ===================================================================== */
.page-cards-grid, .page-cards-3, .info-cards-3, .goal-cards, .why-grid, .why-grid-3,
.principles-grid, .principles-grid-2, .services-grid, .team-grid, .team-grid-leadership,
.audience-grid, .office-grid, .values-grid, .p7-grid, .testimonials-grid {
  grid-template-columns: 1fr !important;
  max-width: 980px;
  margin-left: auto !important;
  margin-right: auto !important;
  gap: 18px !important;
}
/* row layout: first element (icon / number / photo) on the left, everything else on the right */
.page-card, .info-card, .goal-card, .principle-item, .service-item, .team-card-photo, .value-card, .audience-card {
  display: grid !important;
  grid-template-columns: auto 1fr;
  column-gap: 24px; row-gap: 0;
  align-content: center; align-items: start;
  text-align: left !important;
  padding: 24px 28px !important;
}
.page-card > *, .info-card > *, .goal-card > *, .principle-item > *, .service-item > *, .team-card-photo > *, .value-card > *, .audience-card > * {
  grid-column: 2; text-align: left !important; margin-left: 0 !important; margin-right: 0 !important;
}
.page-card > :first-child, .info-card > :first-child, .goal-card > :first-child, .principle-item > :first-child,
.service-item > :first-child, .team-card-photo > :first-child, .value-card > :first-child, .audience-card > :first-child {
  grid-column: 1; grid-row: 1 / span 12; align-self: center; margin: 0 !important;
}
/* cards that have no icon: single column */
.page-card:not(:has(> .page-card-icon)) { grid-template-columns: 1fr; }
.page-card:not(:has(> .page-card-icon)) > * { grid-column: 1; grid-row: auto; }
.page-card h4, .info-card h4, .goal-card h3, .principle-item h4, .service-item h4, .team-card-photo h4, .audience-card h4 { margin-top: 0; margin-bottom: 6px; }
.page-card p, .info-card p, .goal-card p, .principle-item p, .service-item p, .team-card-photo p, .value-card p, .audience-card p { margin-bottom: 6px; text-align: left !important; }
.principle-item ul, .principle-item ol { grid-column: 2; text-align: left; }
.goal-card .goal-tag { justify-self: start; margin-bottom: 6px; }
.goal-card .explore-link { justify-self: start; }
.page-card .page-card-icon, .goal-card .goal-icon, .service-item .svc-icon, .value-card .value-icon { margin: 0 !important; }
.info-card .info-letter { min-width: 72px; text-align: center !important; }
/* team cards: photo on the left */
.team-card-photo .team-photo-wrap { width: 170px; height: 170px; }
.team-card-photo .team-role { margin-bottom: 10px; }
.p7-card, .testimonial-card { text-align: left; }
@media (max-width: 600px) {
  .page-card, .info-card, .goal-card, .principle-item, .service-item, .value-card, .audience-card { column-gap: 16px; padding: 20px !important; }
  .team-card-photo { grid-template-columns: 1fr; }
  .team-card-photo > * { grid-column: 1 !important; grid-row: auto !important; }
  .team-card-photo .team-photo-wrap { width: 150px; height: 150px; margin: 0 auto 14px !important; }
}

/* Single Goal: calculator above the text, brand teal-blue + orange */
.single-goal-calc { max-width: 640px; margin: 0 auto 34px; }
.single-goal-calc .calc-widget {
  background: linear-gradient(160deg, #0A4A54 0%, #002830 100%); color: #fff;
  border: 0; border-top: 4px solid var(--primary); box-shadow: var(--shadow-lg);
}
.single-goal-calc .calc-widget h3, .single-goal-calc .calc-widget label { color: #fff; }
.single-goal-calc .calc-widget label span { color: var(--accent); }
.single-goal-calc input[type="range"] { accent-color: var(--accent); }
.single-goal-calc .calc-result { background: rgba(255, 255, 255, 0.08); border-radius: 12px; }
.single-goal-calc .result-label { color: rgba(255, 255, 255, 0.8); }
.single-goal-calc .result-value { color: var(--accent); }
.single-goal-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* =====================================================================
   ELEGANT CARDS (27 Oct) — accent edge + round icon badge, soft shadow, gentle lift
   ===================================================================== */
.page-card, .info-card, .goal-card, .principle-item, .service-item, .value-card, .audience-card, .team-card-photo, .p7-card {
  position: relative; overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(0, 40, 48, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 22px rgba(0, 40, 48, 0.07) !important;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease !important;
}
.page-card::before, .info-card::before, .goal-card::before, .principle-item::before, .service-item::before,
.value-card::before, .audience-card::before, .team-card-photo::before, .p7-card::before {
  content: '' !important; position: absolute !important; left: 0 !important; top: 0 !important; bottom: 0 !important; right: auto !important;
  width: 5px !important; height: auto !important; opacity: 1 !important; transform: none !important;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 55%, var(--teal-light) 100%) !important;
  border-radius: 16px 0 0 16px;
}
.page-card:hover, .info-card:hover, .goal-card:hover, .principle-item:hover, .service-item:hover,
.value-card:hover, .audience-card:hover, .team-card-photo:hover, .p7-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 38px rgba(0, 40, 48, 0.13) !important;
}
/* round icon badges */
.page-card .page-card-icon, .goal-card .goal-icon, .service-item .svc-icon, .value-card .value-icon {
  width: 58px !important; height: 58px !important; min-width: 58px; border-radius: 50% !important;
  display: grid !important; place-items: center;
  background: linear-gradient(145deg, var(--teal-light) 0%, var(--secondary) 100%) !important;
  color: #fff !important; font-size: 1.3rem !important;
  box-shadow: 0 0 0 5px rgba(240, 122, 42, 0.14), 0 8px 18px rgba(0, 40, 48, 0.22);
}
.page-card .page-card-icon i, .goal-card .goal-icon i, .service-item .svc-icon i, .value-card .value-icon i { color: #fff !important; }
.goal-card.accent .goal-icon, .page-card:nth-child(even) .page-card-icon {
  background: linear-gradient(145deg, var(--accent) 0%, var(--primary) 100%) !important;
  box-shadow: 0 0 0 5px rgba(10, 74, 84, 0.12), 0 8px 18px rgba(198, 50, 4, 0.25);
}
/* number badges (principles) and letter badges (FINOWISE) */
.principle-item .num {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent) 0%, var(--primary) 100%); color: #fff !important;
  font-size: 1.15rem !important; font-weight: 800; opacity: 1 !important;
  box-shadow: 0 0 0 5px rgba(240, 122, 42, 0.15), 0 8px 18px rgba(198, 50, 4, 0.22);
}
.info-card .info-letter {
  min-width: 86px !important; padding: 14px 12px; border-radius: 14px;
  background: linear-gradient(145deg, #fff4ea 0%, #ffe3cf 100%); color: var(--primary) !important;
  box-shadow: inset 0 0 0 1px rgba(198, 50, 4, 0.18);
}
.audience-card .age-tag { align-self: center; }
.page-card h4, .info-card h4, .goal-card h3, .principle-item h4, .service-item h4, .value-card p, .audience-card h4 { color: var(--secondary); }
.p7-card .p7-icon { box-shadow: 0 0 0 5px rgba(240, 122, 42, 0.14); }
.flagship-line {
  max-width: 820px; margin: 30px auto 0; padding: 18px 24px; text-align: center;
  border-radius: 14px; background: linear-gradient(135deg, #fff6ee 0%, #eef6f7 100%);
  font-weight: 600; color: var(--secondary);
}
.principle-points { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .page-card:hover, .info-card:hover, .goal-card:hover, .principle-item:hover, .service-item:hover, .value-card:hover, .audience-card:hover, .team-card-photo:hover, .p7-card:hover { transform: none !important; }
}

/* Blue + orange button pair (goal calculators) */
.btn.btn-blue {
  background: linear-gradient(145deg, var(--teal-light) 0%, var(--secondary) 100%);
  color: #fff; border: 2px solid var(--teal-light);
}
.btn.btn-blue:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); transform: translateY(-2px); }
.solutions-multiple .single-goal-calc, .single-goal-calc { margin-bottom: 36px; }

/* =====================================================================
   GOAL PLANNERS (Single Goal / Multiple Goals) — brand teal-blue + orange
   ===================================================================== */
.single-goal-calc.wide { max-width: 1180px; }
.goal-planner {
  background: linear-gradient(160deg, #0A4A54 0%, #002830 100%); color: #fff;
  border-radius: 18px; border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-lg); padding: 26px 28px 24px;
}
.gp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 16px; }
.gp-head h3 { margin: 0; color: #fff; font-size: 1.45rem; }
.gp-head h3 i { color: var(--accent); margin-right: 6px; }
.gp-sub { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.gp-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.gp-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.gp-wide { grid-column: 1 / -1; }
.goal-planner input {
  width: 100%; padding: 11px 12px; border-radius: 10px; font: 600 1rem/1.2 inherit; font-family: inherit;
  background: #fffdf8; color: #1d1d1d; border: 2px solid transparent; outline: none;
}
.goal-planner input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,122,42,0.3); }
.gp-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.gp-results > div { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.gp-results span { font-size: 0.78rem; color: rgba(255,255,255,0.78); font-weight: 600; letter-spacing: 0.02em; }
.gp-results strong { font: 800 1.35rem/1.1 'Playfair Display', serif; color: #fff; }
.gp-results .gp-key { background: linear-gradient(145deg, var(--accent) 0%, var(--primary) 100%); }
.gp-results .gp-key span { color: rgba(255,255,255,0.92); }
.gp-flash { animation: gpFlash 0.9s ease; }
@keyframes gpFlash { 0% { box-shadow: 0 0 0 0 rgba(240,122,42,0.7), var(--shadow-lg); } 100% { box-shadow: 0 0 0 18px rgba(240,122,42,0), var(--shadow-lg); } }
/* Multiple goals tables */
.gp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; margin-bottom: 14px; background: #fff; }
.gp-table { width: 100%; min-width: 900px; border-collapse: collapse; color: #1d1d1d; font-size: 0.86rem; }
.gp-table th { background: #0b3440; color: #fff; font-weight: 700; padding: 10px 8px; text-align: center; font-size: 0.76rem; line-height: 1.25; }
.gp-table td { border-bottom: 1px solid #e6eef0; padding: 6px; text-align: center; }
.gp-table td:first-child { font-weight: 700; color: var(--secondary); width: 42px; }
.gp-table td:nth-child(2) { min-width: 190px; text-align: left; }
.gp-table input { padding: 7px 8px; border-radius: 7px; background: #fff7e6; border: 1px solid #f1dcb4; font-size: 0.88rem; text-align: right; }
.gp-table td:nth-child(2) input { text-align: left; }
.gp-table .gp-out { font-weight: 700; color: #0b3440; white-space: nowrap; text-align: right; padding-right: 12px; }
.gp-table .gp-sipcell { color: var(--primary); }
.gp-table .gp-fund { color: #fff; background: linear-gradient(145deg, var(--accent) 0%, var(--primary) 100%); }
.gp-assume { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 16px; }
.gp-assume-title { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; color: var(--accent); }
.gp-assume label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.88); }
.gp-assume input { width: 74px; padding: 7px 8px; text-align: right; }
@media (max-width: 640px) {
  .goal-planner { padding: 20px 16px; }
  .gp-form { grid-template-columns: 1fr; }
  .gp-results { grid-template-columns: 1fr; }
  .gp-assume label { width: 100%; justify-content: space-between; }
}
.page-intro { text-align: center; max-width: 720px; margin: 0 auto 30px; color: var(--text-light); font-size: 1.05rem; }

/* What We Do — highlighted phrases in points 3 and 5 */
mark.wwd-hl { background: linear-gradient(transparent 55%, rgba(240,122,42,0.35) 55%); color: var(--primary); font-weight: 700; padding: 0 2px; }
/* Our Services — 12 items in one even grid */
.services-grid.services-12 { grid-template-columns: repeat(2, 1fr) !important; max-width: 1100px; }
@media (max-width: 800px) { .services-grid.services-12 { grid-template-columns: 1fr !important; } }
/* Important Links — official website logos inside the round badge */
.page-card .page-card-icon.site-logo { background: #fff !important; box-shadow: 0 0 0 5px rgba(240,122,42,0.14), 0 6px 16px rgba(0,40,48,0.15); }
.page-card .page-card-icon.site-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.page-card .page-card-icon.site-logo span { font-weight: 800; font-size: 0.95rem; color: var(--secondary); }
.griev-block { display: inline-block; line-height: 1.55; vertical-align: top; }
.value-card p strong.value-quote { color: var(--primary); font-weight: 700; font-style: italic; }
.goal-planner select {
  width: 100%; padding: 7px 8px; border-radius: 7px; font: 600 0.88rem/1.2 inherit; font-family: inherit;
  background: #fff7e6; color: #1d1d1d; border: 1px solid #f1dcb4; cursor: pointer;
}
.goal-planner .gp-assume select { width: 96px; background: #fffdf8; border: 0; }
.goal-planner select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,122,42,0.3); }
.goal-planner input::placeholder { color: #a99a7c; font-weight: 500; }
.gp-table td:nth-child(3) { min-width: 86px; }
.gp-retire td:nth-child(4) { min-width: 80px; }
.gp-table .gp-fund:empty { background: transparent; }

/* Grievance escalation matrix */
.esc-ladder { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; position: relative; }
.esc-ladder::before { content: ''; position: absolute; left: 47px; top: 20px; bottom: 20px; width: 3px; background: linear-gradient(180deg, var(--primary), var(--accent), var(--teal-light)); border-radius: 2px; }
.esc-step { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  background: #fff; border: 1px solid rgba(0,40,48,0.08); border-radius: 16px; padding: 18px 22px 18px 0; box-shadow: 0 6px 22px rgba(0,40,48,0.07); }
.esc-num { justify-self: center; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 0.82rem; line-height: 1.1; color: #fff; position: relative; z-index: 1;
  background: linear-gradient(145deg, var(--accent), var(--primary)); box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(198,50,4,0.25); }
.esc-ext .esc-num { background: linear-gradient(145deg, var(--teal-light), var(--secondary)); box-shadow: 0 0 0 6px #fff, 0 8px 18px rgba(0,40,48,0.25); }
.esc-body h4 { margin: 0 0 4px; color: var(--secondary); }
.esc-body p { margin: 0 0 6px; color: var(--text); line-height: 1.6; }
.esc-contact { font-weight: 600; color: var(--secondary) !important; }
.esc-contact i { color: var(--primary); margin-right: 4px; }
.esc-sep { margin: 0 8px; color: var(--text-muted); }
.esc-note { max-width: 900px; margin: 28px auto 0; padding: 20px 24px; border-radius: 14px; background: linear-gradient(135deg, #fff6ee 0%, #eef6f7 100%); }
.esc-note h4 { margin: 0 0 6px; color: var(--secondary); }
.esc-legal { margin-top: 10px; font-size: 0.85rem; color: var(--text-light); }
@media (max-width: 600px) {
  .esc-step { grid-template-columns: 70px 1fr; gap: 12px; padding-right: 14px; }
  .esc-num { width: 58px; height: 58px; font-size: 0.7rem; }
  .esc-ladder::before { left: 34px; }
}

/* Culture Charter */
.charter-list { max-width: 980px; margin: 0 auto; display: grid; gap: 22px; }
.charter-card { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(0,40,48,0.08); border-radius: 16px; padding: 26px 30px 22px 34px; box-shadow: 0 6px 22px rgba(0,40,48,0.07); }
.charter-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--primary), var(--accent) 55%, var(--teal-light)); }
.charter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.charter-num { font: 800 1.8rem/1 'Playfair Display', serif; color: rgba(198,50,4,0.3); }
.charter-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--teal-light), var(--secondary)); box-shadow: 0 0 0 5px rgba(240,122,42,0.14); }
.charter-card:nth-child(2) .charter-icon { background: linear-gradient(145deg, var(--accent), var(--primary)); }
.charter-head h3 { margin: 0; color: var(--secondary); font-size: 1.4rem; }
.charter-points { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.charter-points li { line-height: 1.7; color: var(--text); }
.charter-points li::marker { color: var(--accent); }
.charter-points strong { color: var(--primary); }
@media (max-width: 600px) { .charter-card { padding: 20px 18px 18px 22px; } .charter-head h3 { font-size: 1.15rem; } }

/* Why Choose — 21 USPs in three expandable categories (28 Oct tech meeting) */
.usp-intro { color: var(--text-light); margin: 10px auto 0; max-width: 640px; }
.usp-cats { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }
.usp-cat { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); overflow: hidden; }
.usp-cat:hover, .usp-cat[open] { box-shadow: var(--shadow-md); }
.usp-cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px; padding: 24px 28px; }
.usp-cat summary::-webkit-details-marker { display: none; }
.usp-cat .why-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--secondary), var(--teal-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.usp-head { flex: 1; min-width: 0; }
.usp-tag { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.usp-head h4 { margin: 0 0 6px; }
.usp-head p { margin: 0; color: var(--text-light); font-size: .92rem; }
.usp-toggle { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--secondary); display: flex; align-items: center; justify-content: center; transition: transform .3s ease, background .3s ease, color .3s ease; }
.usp-cat[open] .usp-toggle { transform: rotate(180deg); background: var(--primary); color: #fff; }
.usp-list { list-style: none; margin: 0; padding: 4px 28px 26px 100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.usp-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-light); border-radius: 10px; font-weight: 600; color: var(--secondary); font-size: .95rem; line-height: 1.35; }
.usp-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  .usp-cat summary { padding: 18px; gap: 14px; }
  .usp-cat .why-icon { width: 44px; height: 44px; }
  .usp-list { grid-template-columns: 1fr; padding: 0 18px 20px; }
}
/* Multiple Goals: add-goal button (28 Oct tech meeting) */
.gp-add-wrap { margin: 12px 0 18px; }
.gp-add { background: transparent; border: 1.5px dashed rgba(255,255,255,.55); color: #fff; border-radius: 50px; padding: 9px 20px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: var(--transition); }
.gp-add:hover { background: var(--primary); border-color: var(--primary); }
.gp-add[hidden] { display: none; }
/* Why We Do: purpose sentence above Mission & Vision */
.purpose-lead { max-width: 820px; margin: -8px auto 36px; text-align: center; color: rgba(255,255,255,.88); font-size: 1.1rem; line-height: 1.7; position: relative; }
.purpose-lead strong { color: var(--accent); }
/* Shreedevi Ma'am — Chief Happiness Officer line */
.happy-quote { margin-top: 12px !important; padding: 10px 16px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), .08); border-radius: 0 8px 8px 0; font-style: italic; font-weight: 600; color: var(--secondary); }
/* USP: homepage link cards + dedicated page */
.usp-sum { display: flex; align-items: center; gap: 20px; padding: 24px 28px; }
.usp-link { display: block; color: inherit; text-decoration: none; }
.usp-link:hover .usp-toggle { background: var(--primary); color: #fff; transform: translateX(4px); }
.usp-open { scroll-margin-top: 110px; }
@media (max-width: 768px) { .usp-sum { padding: 18px; gap: 14px; } }

/* Homepage: Who We Are / What We Do / Why We Do open inline (30 Oct) */
.wx-tab { cursor: pointer; position: relative; }
.wx-more { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--primary); }
.wx-more i { transition: transform .3s ease; }
.wx-tab.wx-active { border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .25), var(--shadow-md) !important; }
.wx-tab.wx-active .wx-more i { transform: rotate(180deg); }
.wx-panel { scroll-margin-top: 90px; border-top: 3px solid var(--primary); animation: wxIn .45s ease; }
.wx-panel[hidden] { display: none; }
.wx-close-wrap { text-align: center; margin: 0; padding: 26px 0 40px; background: var(--bg-light); }
@keyframes wxIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wx-head { padding: 48px 0 0; }
.wx-head .section-header { margin-bottom: 0; }
.wx-head + .section { padding-top: 40px; }
/* panels open directly under their card, inside the grid */
.page-cards-grid .wx-panel { grid-column: 1 / -1; margin-top: -8px; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.page-cards-grid .wx-panel .container { max-width: 100%; }
.page-cards-grid .wx-panel .section { padding: 40px 0; }
.page-cards-grid .wx-panel .wx-close-wrap { padding: 20px 0 28px; }
.wx-tab.wx-active { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* Who We Are: full details under each photo, aligned (31 Oct) */
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0 30px; align-items: stretch; }
.lead-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.lead-photo { background: linear-gradient(180deg, #f3f6f7 0%, #e7eef0 100%); aspect-ratio: 1 / 1; overflow: hidden; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.lead-name { margin: 18px 20px 4px; font-size: 1.12rem; color: var(--secondary); min-height: 1.4em; }
.lead-role { margin: 0 20px 14px; font-size: .86rem; font-weight: 700; color: var(--primary); min-height: 2.6em; display: flex; align-items: flex-start; justify-content: center; }
.lead-bio { margin: 0 20px 22px; padding-top: 14px; border-top: 1px solid var(--border); text-align: left; }
.lead-bio p { font-size: .88rem; line-height: 1.65; color: var(--text); margin: 0 0 10px; }
.lead-bio p:last-child { margin-bottom: 0; }
.lead-bio .happy-quote { font-size: .86rem; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } .lead-photo { aspect-ratio: 4 / 3.6; } }
.lead-role { line-height: 1.35; min-height: 2.7em; }
@media (max-width: 560px) { .lead-role { min-height: 0; } }

/* 7 Ps: a real picture on top of each card (31 Oct — Manish Sir: pictures, not icons) */
.p7-card { overflow: hidden; }
.p7-photo { margin: -28px -26px 20px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-soft); }
.p7-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.p7-card:hover .p7-photo img { transform: scale(1.04); }
@media (min-width: 769px) {
  .p7-card:has(.p7-photo) { display: grid; grid-template-columns: 340px 1fr; column-gap: 28px; padding: 0 28px 0 0 !important; align-items: start; }
  .p7-card:has(.p7-photo) > .p7-photo { grid-column: 1; grid-row: 1 / span 20; margin: 0; aspect-ratio: auto; height: 100%; min-height: 240px; }
  .p7-card:has(.p7-photo) > :not(.p7-photo) { grid-column: 2; }
  .p7-card:has(.p7-photo) > .p7-head { margin-top: 26px; }
  .p7-card:has(.p7-photo) > :last-child { margin-bottom: 26px; }
}
.p7-photo-team { background: #002830; }
.p7-photo-team img { object-fit: contain; }
.p7-card:hover .p7-photo-team img { transform: none; }

/* Team cards: same size for all; longer write-ups fold behind "Read more" (1 Nov) */
.lead-bio-wrap { margin: 0 20px 20px; border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.lead-bio-wrap .lead-bio { margin: 0; padding: 0; border: 0; max-height: 11.7rem; overflow: hidden; position: relative; transition: max-height .4s ease; }
.lead-bio-wrap.is-clamped .lead-bio::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2rem; background: linear-gradient(rgba(255,255,255,0), #fff); }
.lead-bio-wrap.is-open .lead-bio { max-height: 80rem; }
.lead-bio-wrap.is-open .lead-bio::after { display: none; }
.lead-more { align-self: flex-start; margin-top: auto; padding-top: 10px; background: none; border: 0; font: inherit; font-size: .84rem; font-weight: 700; color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lead-more i { transition: transform .3s ease; font-size: .75rem; }
.lead-bio-wrap.is-open .lead-more i { transform: rotate(180deg); }
.lead-more[hidden] { display: none; }
.lead-bio-wrap .lead-bio { height: 11.7rem; }
.lead-bio-wrap.is-open .lead-bio { height: auto; }
.lead-more { min-height: 2.1rem; }
.lead-more[hidden] { display: inline-flex; visibility: hidden; }
.lead-grid { align-items: start; }
