/* ==========================================================================
   BNI HIVE CHAPTER LANDING PAGE STYLESHEET (PRODUCTION APACHE EDITION)
   Palette: BNI Red (#CF2030), Dark Red (#A91825), Soft Red (#FDF2F3),
            Charcoal (#1F2937), Muted (#6B7280), Page (#FBFBFC), Card (#FFFFFF).
   Typography: DM Serif Display & Plus Jakarta Sans
   Zero Node.js runtime required - 100% Vanilla Static Web Compatible
   ========================================================================== */

:root {
  --red:              #CF2030;
  --red-dark:         #A91825;
  --red-soft:         #FDF2F3;
  --red-border:       #F5C2C7;
  --red-glow:         rgba(207, 32, 48, 0.18);
  
  --charcoal:         #1F2937;
  --charcoal-dark:    #111827;
  --muted:            #6B7280;
  --border-light:     #E5E7EB;
  --border-card:      rgba(229, 231, 235, 0.9);
  
  --bg-page:          #FBFBFC;
  --bg-card:          #FFFFFF;
  --bg-alt:           #F9FAFB;
  
  --font-serif:       'DM Serif Display', Georgia, serif;
  --font-sans:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-full:      9999px;
  --radius-2xl:       24px;
  --radius-xl:        18px;
  --radius-lg:        14px;
  --radius-md:        10px;
  
  --header-height:    74px;
  --max-width:        1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2rem);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px var(--red-glow);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 32, 48, 0.35);
}

.btn-secondary {
  background: #fff;
  color: var(--charcoal-dark);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--charcoal-dark);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu-drawer {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mobile-menu-drawer.open {
  display: flex;
}

/* ==========================================================================
   HERO + ABOUT BNI
   ========================================================================== */
.hero-section {
  position: relative;
  padding: calc(var(--header-height) + 4.5rem) 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 350px;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--red-border);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(207, 32, 48, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(207, 32, 48, 0.6); }
  70%  { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(207, 32, 48, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(207, 32, 48, 0); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--charcoal-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero-about-text {
  max-width: 780px;
  margin: 1.5rem auto 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--charcoal);
  line-height: 1.7;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border-card);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-chip:hover {
  border-color: rgba(207, 32, 48, 0.4);
  transform: translateY(-2px);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  shrink-0: 0;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal-dark);
}

.stat-val a:hover {
  color: var(--red);
  text-decoration: underline;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   IMPORTANT LINKS SECTION
   ========================================================================== */
.section-links {
  padding: 5.5rem 0;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  transition: all 0.25s ease;
  position: relative;
}

.link-card:hover {
  background: #fff;
  border-color: rgba(207, 32, 48, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(207, 32, 48, 0.08);
}

.link-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.link-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-icon-box {
  background: var(--red);
  color: #fff;
}

.link-ext-arrow {
  color: #9CA3AF;
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.link-card:hover .link-ext-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

.link-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.link-card:hover .link-title {
  color: var(--red);
}

.link-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.link-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-card:hover .link-foot {
  opacity: 1;
}

/* ==========================================================================
   MEMBERS DIRECTORY SECTION
   ========================================================================== */
.section-members {
  padding: 6rem 0;
  background: var(--bg-page);
}

.members-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.live-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border-card);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.live-green-dot {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.9; }
}

.controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.search-box-wrap {
  position: relative;
  max-width: 680px;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.search-icon-svg {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9CA3AF;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 1.2rem;
  display: none;
}

.search-clear-btn.active {
  display: block;
}

.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.chip-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  background: #fff;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.chip-btn:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.chip-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 10px var(--red-glow);
}

/* Member Cards Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.member-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(207, 32, 48, 0.45);
  box-shadow: 0 16px 35px rgba(207, 32, 48, 0.1);
}

.member-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F3F4F6;
  overflow: hidden;
}

.member-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.member-card:hover .member-photo-img {
  transform: scale(1.05);
}

.member-initials-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F3F4F6 0%, var(--red-soft) 100%);
  color: var(--red);
}

.initials-letters {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
}

.member-category-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  color: var(--charcoal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pres-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(207, 32, 48, 0.35);
}

.member-card-body {
  padding: 1.25rem;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.member-card:hover .member-name {
  color: var(--red);
}

.member-company {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.member-bio-preview {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.member-card-foot {
  padding: 0.85rem 1.25rem;
  background: #F9FAFB;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: all 0.2s ease;
}

.member-card:hover .member-card-foot {
  background: var(--red-soft);
  color: var(--red);
}

.load-more-wrap {
  text-align: center;
  margin-top: 3.5rem;
}

/* Empty State */
.empty-state {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  max-width: 500px;
  margin: 2rem auto;
}

.empty-state.active {
  display: block;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   MEMBER PROFILE & PRESENTATION MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-2xl);
  max-width: 1080px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-top-bar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-back-btn:hover {
  color: var(--red);
}

.modal-close-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close-icon:hover {
  background: var(--red-soft);
  color: var(--red);
}

.modal-body {
  padding: 2rem 2.25rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.25rem;
}

/* Profile Left Column */
.profile-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.modal-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.modal-member-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal-dark);
  line-height: 1.15;
}

.modal-company-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 0.25rem;
}

.modal-cat-tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

.contact-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1EBE5D;
}

.btn-phone {
  background: #F3F4F6;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
}
.btn-phone:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-email {
  background: #F3F4F6;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
}
.btn-email:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-website {
  background: #F3F4F6;
  color: var(--charcoal);
  border: 1px solid var(--border-light);
}
.btn-website:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Profile Right Column */
.profile-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-block {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem;
}

.detail-block-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.65rem;
}

.detail-block-text {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.referral-callout {
  background: linear-gradient(135deg, var(--red-soft) 0%, #FFF 100%);
  border: 1px solid var(--red-border);
}

.presentation-viewer-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #111827;
}

.pres-head-bar {
  background: #1F2937;
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pres-head-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.pres-iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.pres-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pres-pdf-container {
  width: 100%;
  height: 500px;
}

/* Prev/Next Navigation inside Modal */
.modal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

.nav-member-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-member-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem;
  color: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-dark);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--red);
}

.footer-bottom-bar {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .modal-photo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
  .profile-left {
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 1.5rem 1.25rem;
  }
  .modal-nav-bar {
    flex-direction: column;
  }
  .nav-member-btn {
    width: 100%;
    justify-content: center;
  }
}
