/* ==========================================================================
   Bail A Tail - Modern UI/UX Stylesheet
   Theme: Nature Forest Jade & Warm Wildlife Amber
   ========================================================================== */

:root {
  --primary: #0f4a34;
  --primary-light: #186347;
  --primary-dark: #092c1e;
  --primary-subtle: #ebf5f0;
  --accent: #e59b20;
  --accent-hover: #cf8613;
  --accent-subtle: #fff7eb;
  --emergency: #dc2626;
  --emergency-hover: #b91c1c;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8faf7;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 74, 52, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 74, 52, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 74, 52, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset Adjustments */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', 'Alata', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Reset old margin-top rules that global.css forcibly applied */
p, ul, ol, h1, h2, h3, h4, h5, h6 {
  margin-top: 0 !important;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

/* Section Wrapper Standard */
section {
  padding: 4.5rem 0;
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  min-height: auto !important; /* Eliminate the forced 100vh gap */
}

section:nth-of-type(even) {
  background-color: #ffffff;
}

section:nth-of-type(odd) {
  background-color: var(--bg-body);
}

/* Modern Section Titles */
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.section-badge.badge-amber {
  background-color: var(--accent-subtle);
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
}

/* ==========================================================================
   Modern Navbar
   ========================================================================== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(15, 74, 52, 0.08);
  padding: 0.65rem 0;
  transition: var(--transition);
}

.navbar-custom .navbar-brand img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-custom .navbar-brand:hover img {
  transform: scale(1.04);
}

.navbar-custom .brand-name {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  margin-left: 8px;
  letter-spacing: -0.5px;
}

.navbar-custom .brand-tagline {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: -3px;
}

.navbar-custom .nav-link {
  background: transparent !important;
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-custom .nav-link:hover {
  color: var(--primary) !important;
  background-color: var(--primary-subtle) !important;
  transform: none !important;
}

.navbar-custom .nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-subtle) !important;
}

.navbar-custom .dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
}

.navbar-custom .dropdown-item {
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-custom .dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

/* Nav Action Buttons */
.nav-btn-hotline {
  background: #fef2f2;
  color: var(--emergency) !important;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 0.45rem 1rem !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-btn-hotline:hover {
  background: var(--emergency);
  color: #fff !important;
  border-color: var(--emergency);
}

.nav-btn-donate {
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  padding: 0.45rem 1.2rem !important;
  box-shadow: 0 4px 12px rgba(229, 155, 32, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-btn-donate:hover {
  background: var(--accent-hover);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(229, 155, 32, 0.4);
  transform: translateY(-1px);
}

.nav-social-link {
  color: var(--text-muted) !important;
  font-size: 1.15rem;
  padding: 0.4rem 0.5rem !important;
  transition: var(--transition);
}

.nav-social-link:hover {
  color: var(--primary) !important;
  background: transparent !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#home {
  padding: 0 !important;
  margin-top: 0;
  position: relative;
}

.hero-carousel {
  position: relative;
  min-height: 85vh;
  max-height: 900px;
}

.hero-carousel .carousel-item {
  height: 85vh;
  min-height: 580px;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 44, 30, 0.72) 0%,
    rgba(9, 44, 30, 0.6) 50%,
    rgba(9, 44, 30, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight-amber {
  color: #fcd34d;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 2.25rem auto;
  font-weight: 400;
}

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

.btn-hero-emergency {
  background: var(--emergency);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  transition: var(--transition);
}

.btn-hero-emergency:hover {
  background: var(--emergency-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.btn-hero-donate {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(229, 155, 32, 0.4);
  transition: var(--transition);
}

.btn-hero-donate:hover {
  background: #f59e0b;
  color: #000;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1.85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

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

/* ==========================================================================
   Impact Stats Ribbon
   ========================================================================== */
.impact-ribbon {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-icon.amber {
  background: var(--accent-subtle);
  color: var(--accent);
}

.stat-icon.red {
  background: #fee2e2;
  color: var(--emergency);
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   Modern Cards
   ========================================================================== */
.modern-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* ==========================================================================
   Donation Component
   ========================================================================== */
.donation-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.qr-wrapper {
  text-align: center;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.qr-image {
  max-width: 260px;
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.copy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.65rem;
  font-family: monospace;
  font-size: 0.95rem;
}

.copy-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.copy-btn.copied {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* Tier cards */
.tier-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: #fff;
}

.tier-card:hover, .tier-card.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-3px);
}

.tier-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Certificates Grid
   ========================================================================== */
.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: var(--accent);
}

.cert-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.414 / 1;
  background: #fbfbfb;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  display: block;
}

.cert-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  display: block;
  transition: transform 0.3s ease;
}

.cert-frame:hover img {
  transform: scale(1.03);
}

.cert-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cert-frame:hover .cert-overlay-hover {
  opacity: 1;
}

.cert-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cert-img-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 1.414 / 1;
  object-fit: contain;
  background: #ffffff;
  display: block;
  transition: transform 0.3s ease;
}

.cert-img-link:hover .cert-thumb {
  transform: scale(1.03);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem auto;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.cert-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Rescue Stories / Magazine Cards
   ========================================================================== */
.story-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.story-card:hover {
  box-shadow: var(--shadow-md);
}

.story-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.story-body {
  padding: 2.25rem;
}

.story-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.story-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   YouTube Video Cards
   ========================================================================== */
.video-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 standard */
  background: #000;
}

.video-frame-wrap.vertical {
  padding-bottom: 125%; /* Clean vertical short frame */
}

.video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   Team Cards
   ========================================================================== */
.team-modern-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.team-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-subtle);
  margin: 0 auto 1.25rem auto;
  display: block;
  transition: var(--transition);
}

.team-modern-card:hover .team-avatar {
  border-color: var(--accent);
  transform: scale(1.05);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.btn-whatsapp-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-whatsapp-chat:hover {
  background: #1ebd5b;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   Featured Leadership, Advisory & Master Rescuer Cards
   ========================================================================== */
.team-leader-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

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

.team-leader-card.leader-advisor {
  border-top-color: #0f4a34;
}

.team-leader-card.leader-welfare {
  border-top-color: #e59b20;
}

.team-leader-card.leader-trustee {
  border-top-color: #2563eb;
}

.team-leader-card .team-avatar {
  width: 140px;
  height: 140px;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1.25rem auto;
}

.team-leader-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-leader-card.leader-advisor:hover .team-avatar {
  border-color: var(--primary);
}

.team-leader-card.leader-welfare:hover .team-avatar {
  border-color: var(--accent);
}

.team-leader-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.team-leader-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.team-leader-affiliation {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.team-tag-pill {
  display: inline-block;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 50px;
  margin: 2px;
}

/* Master Rescuer Card (Rahis Khan Spotlight) */
.team-master-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 4px 16px rgba(229, 155, 32, 0.12);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

.team-master-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(229, 155, 32, 0.22);
  border-color: var(--accent);
}

.team-master-card .team-avatar {
  width: 140px;
  height: 140px;
  border: 4px solid var(--accent-subtle);
  box-shadow: 0 6px 18px rgba(229, 155, 32, 0.2);
  margin: 0 auto 1.25rem auto;
}

.team-master-card:hover .team-avatar {
  border-color: var(--accent);
  transform: scale(1.05);
}

.team-subheading-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
}

/* ==========================================================================
   Large Portrait Spotlight & Team Showcase (Big Picture Layout)
   ========================================================================== */
.team-spotlight-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 2.25rem;
}

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

.team-spotlight-card.border-gold {
  border-left: 6px solid #f59e0b;
}

.team-spotlight-card.border-accent {
  border-left: 6px solid var(--accent);
}

.team-spotlight-card.border-primary {
  border-left: 6px solid var(--primary);
}

.team-spotlight-card.border-danger {
  border-left: 6px solid var(--emergency);
}

.team-spotlight-card.border-trustee {
  border-left: 6px solid #2563eb;
}

.team-spotlight-img-wrap {
  position: relative;
  height: 100%;
  min-height: 420px;
  background: #f1f5f9;
  overflow: hidden;
}

.team-spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.team-spotlight-card:hover .team-spotlight-img {
  transform: scale(1.03);
}

/* Large Portrait Card (Top Image) for Rescuers & About Grid */
.team-card-large {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.team-card-large-img-wrap {
  height: 340px;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.team-card-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.team-card-large:hover .team-card-large-img {
  transform: scale(1.04);
}

.team-card-large-body {
  padding: 1.75rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-info-card {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card p, .contact-info-card a {
  color: rgba(255, 255, 255, 0.8);
}

.contact-info-card a:hover {
  color: var(--accent);
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-control-modern {
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 74, 52, 0.12);
  outline: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-main {
  background: #092c1e;
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 2rem 0;
  border-top: 4px solid var(--accent);
}

.footer-main h4 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-main p, .footer-main li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.social-circle-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-circle-link:hover {
  background: var(--accent);
  color: #000 !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Floating Widgets
   ========================================================================== */
.floating-rescue-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1050;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse-green 2.5s infinite;
}

.floating-rescue-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.to-top-modern {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.to-top-modern.show {
  opacity: 1;
  visibility: visible;
}

.to-top-modern:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-carousel .carousel-item {
    height: 70vh;
  }
  .impact-ribbon {
    margin-top: -30px;
    padding: 1.5rem 1rem;
  }
  .floating-rescue-btn span.label {
    display: none;
  }
  .floating-rescue-btn {
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    justify-content: center;
    border-radius: 50%;
  }
}
