/* ============================================================
   RMWF – Razay Mustafa Welfare Foundation
   Main Stylesheet | Green #1B6B3A | Red #C8102E | White
   ============================================================ */

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

@font-face {
  font-family: 'Recoleta';
  src: url('../fonts/webfonts/recoleta-font-family.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'satoshi';
  src: url('../fonts/webfonts/Satoshi-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --green-dark: #0d4a27;
  --green: #1B6B3A;
  --green-mid: #228B47;
  --green-light: #2ecc71;
  --green-pale: #e8f5ee;
  --red-dark: #9b0c22;
  --red: #C8102E;
  --red-light: #e63950;
  --red-pale: #fdecea;
  --white: #ffffff;
  --off-white: #f8faf9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text-primary: #1a2e1f;
  --text-muted: #6b7280;

  --gradient-hero: linear-gradient(135deg, #0d4a27 0%, #1B6B3A 40%, #228B47 70%, #C8102E 100%);
  --gradient-green: linear-gradient(135deg, #1B6B3A 0%, #2ecc71 100%);
  --gradient-red: linear-gradient(135deg, #C8102E 0%, #e63950 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, .95) 0%, rgba(232, 245, 238, .6) 100%);

  --glass-bg: rgba(255, 255, 255, .15);
  --glass-border: rgba(255, 255, 255, .25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(27, 107, 58, .12);
  --shadow-lg: 0 12px 40px rgba(27, 107, 58, .18);
  --shadow-xl: 0 24px 64px rgba(27, 107, 58, .22);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --font-body: 'satoshi', sans-serif;
  --font-head: 'Recoleta', serif;
  --font-accent: 'Caveat', cursive;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green-dark);
  margin-bottom: .5rem;
}

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

.text-green {
  color: var(--green) !important;
}

.text-red {
  color: var(--red) !important;
}

.text-muted-custom {
  color: var(--text-muted);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-rmwf-primary {
  background: var(--gradient-green);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(27, 107, 58, .3);
  cursor: pointer;
  white-space: nowrap;
}

.btn-rmwf-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 107, 58, .45);
  color: var(--white);
}

.btn-rmwf-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: .7rem 1.9rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-rmwf-secondary:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-rmwf-danger {
  background: var(--gradient-red);
  color: var(--white);
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200, 16, 46, .3);
  white-space: nowrap;
}

.btn-rmwf-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 16, 46, .45);
  color: var(--white);
}

/* ── Section wrapper ────────────────────────────────────────── */
.section-pad {
  padding: 6rem 0;
}

.section-pad-sm {
  padding: 4rem 0;
}

.section-bg-light {
  background: var(--off-white);
}

.section-bg-green {
  background: var(--gradient-hero);
  color: var(--white);
}

/* ── Glassmorphism ──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 107, 58, .1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(27, 107, 58, .25);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.rmwf-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: rgba(13, 74, 39, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rmwf-navbar.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: .6rem 0;
}

@media (min-width: 992px) {
  .rmwf-navbar .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.rmwf-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.rmwf-navbar .brand-logo {
  width: 115px;
  height: auto;
  max-height: 95px;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: all var(--transition);
}

.rmwf-navbar.scrolled .brand-logo {
  width: 95px;
  height: auto;
  max-height: 78px;
}

.brand-text-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--white);
  transition: color var(--transition);
}

.rmwf-navbar.scrolled .brand-text-main {
  color: var(--green-dark);
}

.brand-text-sub {
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color var(--transition);
  margin-top: 1px;
}

.rmwf-navbar.scrolled .brand-text-sub {
  color: var(--text-muted);
}

.brand-text-date {
  font-size: .62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color var(--transition);
  margin-top: -2px;
}

.rmwf-navbar.scrolled .brand-text-date {
  color: var(--text-muted);
}

.rmwf-navbar .nav-link {
  color: rgba(255, 255, 255, .9) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: .5rem 1rem !important;
  transition: all var(--transition);
  position: relative;
}

.rmwf-navbar.scrolled .nav-link {
  color: var(--gray-800) !important;
}

/* Underline slide effect on Desktop */
@media (min-width: 992px) {
  .rmwf-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #ffeb3b;
    /* Match non-scrolled active color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .rmwf-navbar .nav-link:hover::after,
  .rmwf-navbar .nav-link.active::after {
    transform: scaleX(1);
  }

  .rmwf-navbar.scrolled .nav-link::after {
    background-color: var(--green);
    /* Match scrolled active color */
  }
}

.rmwf-navbar .nav-link:hover {
  opacity: 1 !important;
  background: transparent !important;
  text-decoration: none !important;
}

.rmwf-navbar .nav-link.active {
  color: #ffeb3b !important;
  background: transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.rmwf-navbar.scrolled .nav-link.active {
  color: var(--green) !important;
  background: transparent !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

/* ── Dropdown Animation & Style ─────────────────────────────────── */
@media (min-width: 992px) {
  .rmwf-navbar .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    /* Glassmorphism blur */
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
  }

  .rmwf-navbar .dropdown:hover .dropdown-menu,
  .rmwf-navbar .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Underline slide effect on Desktop for Dropdown Items */
  .rmwf-navbar .dropdown-item {
    position: relative;
  }

  .rmwf-navbar .dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-color: var(--green);
    /* Elegant brand green underline */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .rmwf-navbar .dropdown-item:hover::after {
    transform: scaleX(1);
  }
}

.rmwf-navbar .dropdown-item {
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--gray-800) !important;
  padding: 0.6rem 1.5rem !important;
  transition: all var(--transition);
}

.rmwf-navbar .dropdown-item:hover {
  background: rgba(27, 107, 58, 0.05) !important;
  /* Soft, professional brand green tint */
  color: var(--green) !important;
  text-decoration: none !important;
}

.navbar-donate-btn {
  background: var(--gradient-red);
  color: var(--white) !important;
  padding: .65rem 1.8rem !important;
  font-size: 1rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .35);
  transition: all var(--transition) !important;
  border: none !important;
}

.rmwf-navbar:not(.scrolled) .navbar-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, .15) !important;
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  padding: .65rem 1.8rem !important;
}

.rmwf-navbar .navbar-login-btn {
  background: #ffc107;
  color: #000000 !important;
  /* Pure black text by default */
  padding: .65rem 1.8rem !important;
  font-size: 1rem !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(255, 193, 7, .35);
  transition: all var(--transition) !important;
  border: none !important;
}

.rmwf-navbar:not(.scrolled) .navbar-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 193, 7, .15) !important;
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  padding: .65rem 1.8rem !important;
}

.rmwf-navbar:not(.scrolled) .navbar-login-btn:hover i {
  color: var(--white) !important;
}


/* Force icons inside action buttons to always show correctly */
.navbar-donate-btn i {
  color: var(--white) !important;
  display: inline-block !important;
}

.rmwf-navbar .navbar-login-btn i {
  color: #000000 !important;
  /* Pure black icon */
  display: inline-block !important;
}

/* Keep action buttons text color correct when header is scrolled (except on hover) */
.rmwf-navbar.scrolled .navbar-donate-btn:not(:hover) {
  color: var(--white) !important;
}

.rmwf-navbar.scrolled .navbar-login-btn:not(:hover) {
  color: #000000 !important;
  /* Pure black text on scroll */
}

/* Scrolled hover overrides */
.rmwf-navbar.scrolled .navbar-donate-btn:hover {
  background: #b30e29 !important;
  /* Solid dark red on hover */
  color: #ffffff !important;
  border: none !important;
  padding: .65rem 1.8rem !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.2) !important;
}

.rmwf-navbar.scrolled .navbar-donate-btn:hover i {
  color: #ffffff !important;
}

.rmwf-navbar.scrolled .navbar-login-btn:hover {
  background: #e0a800 !important;
  /* Solid dark yellow on hover */
  color: #000000 !important;
  border: none !important;
  padding: .65rem 1.8rem !important;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.2) !important;
}

.rmwf-navbar.scrolled .navbar-login-btn:hover i {
  color: #000000 !important;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  height: 100vh;
  min-height: 600px;
  background: url('/static/images/hero-bg.png') center 85% / cover no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, .45) 0%,
      rgba(0, 0, 0, .25) 40%,
      rgba(0, 0, 0, .05) 70%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  /* overflow:hidden kept here so animated blobs don't extend page width */
}

.hero-particle {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: .15;
  animation: float 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--green-light);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.hero-particle:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--red);
  bottom: 10%;
  left: -40px;
  animation-delay: 2s;
}

.hero-particle:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--white);
  top: 30%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: .4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-family: var(--font-head);
}

.hero-title .accent {
  color: #ffc107;
  font-family: var(--font-accent);
  font-size: 1.15em;
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='196' height='15' viewBox='0 0 196 15' fill='none'%3E %3Cpath d='M1 13C42.1844 2.92057 142.978 -3.87406 195 9.2668' stroke='%23FBAD17' stroke-width='4'/%3E %3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 12px;
  background-position: bottom center;
  padding-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stat {
  flex: 0 1 142px;
  width: 142px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.9rem 0.6rem;
  border-radius: var(--radius-md);
}

.hero-stat .number {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-light);
  display: block;
  line-height: 1.15;
}

.hero-stat .label {
  font-size: .72rem;
  color: rgba(255, 255, 255, .8);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Service Cards ──────────────────────────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: var(--green) !important;
  box-shadow: 0 15px 35px rgba(27, 107, 58, 0.18);
  transform: translateY(-10px) scale(1.04);
  z-index: 10;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--green);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, #ffee55, #ffeb3b);
  color: var(--gray-900);
  transform: scale(1.1) rotate(-5deg);
}

.service-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--gray-800);
}

.service-card p {
  font-size: .875rem;
  color: var(--text-muted);
}

/* ── Stat Counter Cards ─────────────────────────────────────── */
.stat-card-custom {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-card-custom .card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card-custom .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-custom .menu-dots {
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.1rem;
}

.stat-card-custom .card-body-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.stat-card-custom .text-side {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card-custom .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-head);
  line-height: 1.1;
}

.stat-card-custom .stat-num .percent-sign {
  font-family: var(--font-body) !important;
  font-weight: 800;
}

.stat-card-custom .stat-label {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
}

.stat-card-custom .chart-side {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-custom .progress-ring {
  transform: rotate(-90deg);
}

.stat-card-custom .progress-ring__background {
  stroke: rgba(0, 0, 0, 0.04);
}

.stat-card-custom .progress-ring__circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
}

.stat-card-custom .chart-text {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-800);
}

/* Colors styling matching the user's uploaded image */

/* Orange Card */
.stat-card-custom.color-orange .icon-box {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.stat-card-custom.color-orange .progress-ring__circle {
  stroke: #f97316;
}

/* Green Card */
.stat-card-custom.color-green .icon-box {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-card-custom.color-green .progress-ring__circle {
  stroke: #10b981;
}

/* Blue Card */
.stat-card-custom.color-blue .icon-box {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-card-custom.color-blue .progress-ring__circle {
  stroke: #3b82f6;
}

/* Purple Card */
.stat-card-custom.color-purple .icon-box {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-card-custom.color-purple .progress-ring__circle {
  stroke: #8b5cf6;
}

/* ── Donation Section ───────────────────────────────────────── */
.donation-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.donation-tab-btn {
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: .5rem 1.4rem;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-600);
}

.donation-tab-btn.active,
.donation-tab-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.amount-btn {
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-800);
  min-width: 90px;
}

.amount-btn.selected,
.amount-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 74, 39, .9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Testimonial ────────────────────────────────────────────── */
.testimonial-card {
  background: #fbf9f6;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s ease, border-color 0.8s ease, background-color 0.8s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(27, 107, 58, 0.15);
}

.swiper-testimonials {
  padding: 1.5rem 0 3rem !important;
}

.swiper-testimonials .swiper-pagination {
  position: absolute !important;
  bottom: 0 !important;
  margin-top: 2rem;
}

.swiper-testimonials .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-400);
  opacity: 0.6;
  margin: 0 5px !important;
  transition: all 0.3s ease;
}

.swiper-testimonials .swiper-pagination-bullet-active {
  background: var(--green);
  opacity: 1;
  width: 24px;
  border-radius: 5px;
}

.swiper-slide-active .testimonial-card {
  transform: scale(1.05);
  background: var(--white) !important;
  border: 2px solid #ffeb3b !important;
  box-shadow: 0 15px 35px rgba(255, 235, 59, 0.25) !important;
}

.swiper-slide-active .testimonial-card::before {
  color: rgba(255, 235, 59, 0.25) !important;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5.5rem;
  color: rgba(27, 107, 58, 0.08);
  position: absolute;
  top: -15px;
  left: 1.25rem;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(27, 107, 58, 0.15);
}

/* ── Footer ─────────────────────────────────────────────────── */
.rmwf-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .8);
  padding: 4rem 0 0;
}

.footer-brand h4 {
  color: var(--white);
  font-family: var(--font-head);
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  margin-top: .5rem;
}

.footer-heading {
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  display: inline-block;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--green-light);
  padding-left: 6px;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
  color: rgba(255, 255, 255, .9);
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  transition: all var(--transition);
  margin-right: .4rem;
}

.social-icon:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

/* ── Floating WhatsApp Button ───────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  animation: whatsappPulse 2.5s infinite;
}

#whatsapp-float:hover {
  background: #20ba5a !important;
  color: #ffffff !important;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #111827;
}

#whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 68px;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ── Back to Top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2.3rem;
  width: 44px;
  height: 44px;
  background: #ffc107;
  color: #000000;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
  z-index: 999;
  transition: all var(--transition);
}

#back-to-top.show {
  display: flex;
}

#back-to-top:hover {
  background: #ffca2c !important;
  color: #000000 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.45);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.page-hero {
  background-color: #0d4a27;
  background-image: linear-gradient(to right,
      rgba(13, 74, 39, 1) 0%,
      rgba(13, 74, 39, 0.98) 35%,
      rgba(13, 74, 39, 0.5) 70%,
      rgba(13, 74, 39, 0) 100%),
    url('/static/images/hero-bg.png');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 14rem 0 9rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

@media (max-width: 991px) {
  .page-hero {
    background-color: #0d4a27;
    background-image: linear-gradient(to bottom,
        rgba(13, 74, 39, 0.85) 0%,
        rgba(13, 74, 39, 0.6) 50%,
        rgba(13, 74, 39, 0.85) 100%),
      url('/static/images/hero-bg.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 7rem 0 4.5rem !important;
  }
}

.page-hero .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: clamp(2rem, 8vw, 8rem) !important;
  padding-right: clamp(2rem, 8vw, 8rem) !important;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, .7);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, .8);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .5);
}

/* ── Form Styles ────────────────────────────────────────────── */
.rmwf-form .form-control,
.rmwf-form .form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: .7rem 1rem;
  font-size: .95rem;
  transition: all var(--transition);
}

.rmwf-form .form-control:focus,
.rmwf-form .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, .12);
  outline: none;
}

.rmwf-form label {
  font-weight: 500;
  margin-bottom: .4rem;
  color: var(--gray-800);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
}

/* ── Badge Tags ─────────────────────────────────────────────── */
.tag-green {
  background: var(--green-pale);
  color: var(--green);
  padding: .2rem .8rem;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  display: inline-block;
}

.tag-red {
  background: var(--red-pale);
  color: var(--red);
  padding: .2rem .8rem;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  display: inline-block;
}

/* ── Alert Banner ───────────────────────────────────────────── */
.alert-rmwf {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  font-size: .9rem;
}

.alert-success {
  background: var(--green-pale);
  color: var(--green-dark);
}

.alert-danger {
  background: var(--red-pale);
  color: var(--red-dark);
}

/* ── Divider ────────────────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-green);
  border-radius: var(--radius-full);
  margin: .75rem auto 1.5rem;
}

.section-divider.left {
  margin: .75rem 0 1.5rem;
}

/* ── Cookie Banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: rgba(255, 255, 255, .9);
  padding: 1rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
  border-top: 2px solid var(--green);
}

#cookie-banner.hide {
  display: none;
}

/* ── Preloader ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .5s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  perspective: 1000px;
}

.preloader-logo img {
  animation: spinY 3s linear infinite;
}

@keyframes spinY {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── AOS custom ─────────────────────────────────────────────── */
[data-aos] {
  transition-property: transform, opacity !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
.rmwf-navbar:not(.scrolled) .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

@media (max-width: 991px) {
  .rmwf-navbar {
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 0.4rem 0 !important;
  }

  .rmwf-navbar .container-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
    position: relative !important;
  }

  .rmwf-navbar .brand-logo {
    width: 82px !important;
    height: 60px !important;
    object-fit: contain !important;
  }

  .rmwf-navbar .navbar-brand {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 60px !important;
  }

  .rmwf-navbar .navbar-brand > div {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .rmwf-navbar .brand-text-container,
  .rmwf-navbar .navbar-brand > div:nth-child(2) {
    display: none !important;
  }

  .rmwf-navbar .brand-text-main {
    font-size: 1.25rem !important;
  }

  .rmwf-navbar .brand-text-sub {
    font-size: 0.72rem !important;
  }

  .rmwf-navbar .brand-text-date {
    font-size: 0.55rem !important;
    margin-top: -1px !important;
  }

  .rmwf-navbar .navbar-toggler {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 1.1rem !important;
  }

  .rmwf-navbar .navbar-toggler-icon,
  .rmwf-navbar:not(.scrolled) .navbar-toggler-icon {
    filter: none !important;
  }

  .rmwf-navbar .navbar-collapse {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 1rem !important;
    left: auto !important;
    width: min(320px, 86vw) !important;
    background: #ffffff !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 20px !important;
    box-shadow: -5px 15px 40px rgba(0, 0, 0, 0.16), 0 4px 15px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 1050 !important;
  }

  .rmwf-navbar .nav-link {
    color: var(--gray-800) !important;
    padding: 0.8rem 1rem !important;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 600;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
  }

  .rmwf-navbar .nav-link:hover,
  .rmwf-navbar .nav-link:focus,
  .rmwf-navbar .nav-link.active {
    color: var(--green) !important;
    background: rgba(27, 107, 58, 0.05);
  }

  /* Submenu dropdown inside mobile collapse */
  .rmwf-navbar .navbar-collapse .dropdown-menu {
    background: var(--gray-50) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
  }

  .rmwf-navbar .navbar-collapse .dropdown-item {
    color: var(--gray-700) !important;
    padding: 0.6rem 1.5rem !important;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 550;
  }

  .rmwf-navbar .navbar-collapse .dropdown-item:last-child {
    border-bottom: none;
  }

  .rmwf-navbar .navbar-collapse .dropdown-item:hover,
  .rmwf-navbar .navbar-collapse .dropdown-item:focus {
    color: var(--green) !important;
    background: rgba(27, 107, 58, 0.05) !important;
  }

  .rmwf-navbar .d-flex.align-items-center {
    flex-direction: column;
    align-items: stretch !important;
    margin-top: 1.5rem;
    gap: 0.75rem !important;
  }

  .rmwf-navbar .navbar-donate-btn {
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%) !important;
    color: var(--white) !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3) !important;
    font-weight: 600;
    margin: 0 !important;
    display: block;
    transition: all var(--transition);
  }

  .rmwf-navbar .navbar-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45) !important;
  }

  .rmwf-navbar .navbar-login-btn {
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%) !important;
    color: #111827 !important;
    border: none !important;
    border-bottom: none !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25) !important;
    font-weight: 600;
    margin: 0 !important;
    display: block;
    transition: all var(--transition);
  }

  .rmwf-navbar .navbar-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
  }

  .rmwf-navbar:not(.scrolled) .brand-text-main {
    color: var(--green-dark) !important;
  }

  .rmwf-navbar:not(.scrolled) .brand-text-sub,
  .rmwf-navbar:not(.scrolled) .brand-text-date {
    color: var(--text-muted) !important;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem;
  }

  .hero-stat {
    padding: .8rem 1rem;
  }

  .section-pad {
    padding: 4rem 0;
  }
}

/* ── Help / Mission & Vision Section Image Layout ────────────── */
.help-container {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.help-container .help__thumb {
  direction: rtl;
}

.help-container .help__thumb-inner {
  text-align: end;
  position: relative;
  min-height: 520px;
  max-width: 575px;
  margin-left: auto;
  margin-right: auto;
  direction: ltr;
}

.help-container .help__thumb-inner .thumb {
  display: inline-block;
  border: 8px solid var(--white);
  border-radius: 20px;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.15);
}

.help-container .help__thumb-inner .thumb img {
  border-radius: 10px;
  display: block;
}

.help-container .thumb-lg {
  margin-bottom: 100px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 462px;
}

.help-container .thumb-lg img {
  width: 100%;
  height: auto;
}

.help-container .thumb-lg video {
  width: 100%;
  aspect-ratio: 462 / 544;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Play button wrapper style */
.help-container .video-btn-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.help-container .video-btn-wrapper a {
  width: 80px;
  height: 80px;
  background-color: #ffc107;
  /* Yellow */
  color: var(--black) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
  animation: pulseYellow 2s infinite;
  transition: all 0.3s ease;
}

.help-container .video-btn-wrapper a:hover {
  background-color: var(--green);
  color: var(--white) !important;
}

.help-container .video-btn-wrapper a i {
  margin-left: 4px;
}

@keyframes pulseYellow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.help-container .thumb-bottom {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 2;
  max-width: 230px;
}

.help-container .thumb-bottom img {
  width: 100%;
  height: auto;
}

.help-container .thumb-top {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 2;
  max-width: 237px;
}

.help-container .thumb-top img {
  width: 100%;
  height: auto;
}

.help-container .line {
  position: absolute;
  display: inline-block;
  top: 10px;
  right: 50px;
  z-index: 0;
}

.help-container .line img {
  animation: wave 3s linear infinite;
  transform-origin: center;
}

.help-container .grid-line {
  position: absolute;
  left: -35px;
  top: 40%;
  z-index: -1;
}

.help-container .grid-line img {
  animation: moveTopBottom 4s ease-in-out infinite;
}

.help-container .vertical-text {
  padding: 40px 20px;
  background-color: var(--green);
  /* Green vertical banner */
  display: inline-block;
  position: absolute;
  bottom: 0px;
  left: 0px;
  border-top: 5px solid #ffc107;
  /* Yellow border */
  border-bottom: 5px solid #ffc107;
  border-radius: 20px;
  z-index: 3;
}

.help-container .vertical-text h5 {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin: 0;
}

.help-container .vertical-text h5 span {
  color: #ffc107;
  /* Yellow */
}

@keyframes wave {
  0% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(5px) translateY(-5px);
  }

  50% {
    transform: translateX(0) translateY(0);
  }

  75% {
    transform: translateX(-5px) translateY(5px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes moveTopBottom {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateY(30px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
}

@media (max-width: 576px) {
  .help-container .help__thumb-inner {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .help-container .thumb-top,
  .help-container .thumb-bottom,
  .help-container .vertical-text,
  .help-container .line,
  .help-container .grid-line {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  .help-container .vertical-text h5 {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .help-container .vertical-text {
    padding: 15px 30px;
    border-left: 5px solid #ffc107;
    border-right: 5px solid #ffc107;
    border-top: none;
    border-bottom: none;
    width: 100%;
    text-align: center;
  }
}

/* ── CTA Section (Every Rupee Makes a Difference) ────────────── */
.cta-section {
  overflow: hidden;
  background-color: var(--white);
}

.cta-section .row>* {
  padding: 0px !important;
}

.cta-section .cta-section__single {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 20px;
  z-index: 1;
  text-align: center;
  min-height: 428px;
}

.cta-section .cta-img {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.cta-section .cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  /* Higher visibility for images */
}

.cta-section .cta-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-section .cta-section__first {
  position: relative;
  z-index: 1;
}

.cta-section .cta-section__first::before {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(to right, rgba(255, 193, 7, 0.5) 0%, rgba(255, 193, 7, 0.0) 45%, rgba(0, 0, 0, 0.75) 100%);
  /* Orange on left, transparent middle, black on right next to video */
  z-index: -1;
}

.cta-section .cta-section__last {
  position: relative;
  z-index: 1;
}

.cta-section .cta-section__last::before {
  content: "";
  position: absolute;
  inset: 0px;
  background: linear-gradient(to left, rgba(255, 193, 7, 0.5) 0%, rgba(255, 193, 7, 0.0) 45%, rgba(0, 0, 0, 0.75) 100%);
  /* Orange on right, transparent middle, black on left next to video */
  z-index: -1;
}

.cta-section .cta-section__center {
  z-index: 2;
  background-image: url("/static/images/cta/mask-two.png");
  background-size: 100% 100%;
  position: relative;
  width: 120%;
  left: 50%;
  transform: translateX(-50%);
}

.cta-section .cta-section__center .cta-img {
  -webkit-mask-image: url("/static/images/cta/mask.png");
  mask-image: url("/static/images/cta/mask.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.cta-section .cta-section__group {
  max-width: 380px;
  margin: 0 auto;
}

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

.cta-section .thumb i {
  font-size: 60px;
  color: #ffffff;
}

.cta-section h3,
.cta-section span {
  color: var(--white);
  /* Changed to white for high contrast */
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cta-section span {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #ffeb3b !important;
  /* Gold/Yellow accent color */
}

.cta-section h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  font-family: var(--font-head);
  white-space: nowrap;
}

.cta-section .video-btn-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.cta-section .video-btn-wrapper a {
  width: 90px;
  height: 90px;
  background-color: #ffc107;
  /* Yellow */
  color: var(--black) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
  animation: pulseYellow 2s infinite;
  transition: all 0.3s ease;
}

.cta-section .video-btn-wrapper a:hover {
  background-color: var(--green);
  color: var(--white) !important;
  box-shadow: 0 0 0 15px rgba(27, 107, 58, 0);
}

.cta-section .video-btn-wrapper a i {
  margin-left: 4px;
}

/* Custom button stylings */
.cta-section .btn-cta-green {
  background-color: #00715d;
  color: var(--white) !important;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.cta-section .btn-cta-green:hover {
  background-color: var(--white);
  color: #00715d !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-section .btn-cta-yellow {
  background-color: #ffc107;
  color: var(--black) !important;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.cta-section .btn-cta-yellow:hover {
  background-color: var(--white);
  color: #ffc107 !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .cta-section .cta-section__single {
    min-height: 350px;
    padding: 60px 20px;
  }

  .cta-section .cta-section__center {
    width: 100%;
    left: 0;
    transform: none;
  }

  .cta-section .cta-section__center .cta-img {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Services Swiper Pagination Bullets */
.services-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-400);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 4px !important;
  display: inline-block;
}

.services-pagination .swiper-pagination-bullet-active {
  background: var(--green);
  width: 24px;
  border-radius: 5px;
}

/* Leadership Swiper Pagination Bullets */
.leadership-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--gray-400);
  opacity: 1;
  transition: all 0.3s ease;
  margin: 0 4px !important;
  display: inline-block;
}

.leadership-pagination .swiper-pagination-bullet-active {
  background: var(--green);
  width: 24px;
  border-radius: 5px;
}

/* Smooth continuous marquee transition for services */
.swiper-services .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* ── Gallery Swiper (cause-two template layout) ───────────────── */
.cause-two {
  overflow: hidden;
  padding-top: 0px;
  position: relative;
}

.cause-two__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 0 15px;
}

.gallery-swiper-image {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 45px;
}

/* Curved mask effect disabled for simple professional layout */
.cause-two__inner::before,
.cause-two__inner::after {
  display: none !important;
}

.cause-two__slider-single.difference-card-style {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Centered minimized photo circle inside design */
.cause-thumb-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-inline: auto;
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cause-thumb-circle:hover {
  transform: scale(1.08);
}

.gallery-slice {
  width: 100%;
  height: 100%;
  background-image: url('/static/images/old-people-and-child-trouble-gallary.png');
  background-size: 300% 100%;
  background-repeat: no-repeat;
  display: block;
}

.gallery-slice-left {
  background-position: 0% center;
}

.gallery-slice-middle {
  background-position: 50% center;
}

.gallery-slice-right {
  background-position: 100% center;
}

/* Hover overlay on circular image */
.cause-thumb-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 107, 58, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.cause-thumb-circle:hover::after {
  opacity: 1;
}

/* Zoom arrow button link inside circle */
.cause-thumb-circle a.gallery-center-link {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: var(--white);
  color: var(--green) !important;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  z-index: 9 !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}

.cause-thumb-circle a.gallery-center-link i {
  font-size: 16px;
}

.cause-thumb-circle:hover a.gallery-center-link {
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
  visibility: visible;
  opacity: 1;
}

.cause-thumb-circle a.gallery-center-link:hover {
  background-color: var(--green);
  color: var(--white) !important;
}

/* Spacing and style for card texts */
.difference-card-content {
  margin-top: 24px;
  z-index: 3;
}

.difference-card-content h4.gallery-title {
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--green-dark);
  font-size: 1.25rem;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.difference-card-content h4.gallery-title:hover {
  color: #f59e0b;
  /* Yellow/orange hover color */
}

.difference-card-content p.gallery-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

/* Navigation buttons styling & positions */
.gallery-navigation {
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 10px;
}

.gallery-navigation .gallery-nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-navigation .prev-btn {
  background-color: var(--green-dark);
  color: var(--white);
}

.gallery-navigation .prev-btn:hover {
  background-color: #f59e0b;
  color: var(--gray-900);
}

.gallery-navigation .next-btn {
  background-color: #f59e0b;
  color: var(--gray-900);
}

.gallery-navigation .next-btn:hover {
  background-color: var(--green-dark);
  color: var(--white);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .cause-two__slider-single img {
    height: 350px;
  }

  .gallery-navigation {
    padding: 0 15px;
  }

  .gallery-navigation .gallery-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  /* Donation mobile responsiveness */
  .donation-tabs-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .donation-tab-btn {
    width: 100% !important;
    text-align: center !important;
    padding: .5rem .25rem !important;
    font-size: .85rem !important;
    justify-content: center !important;
  }

  .amounts-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem !important;
    width: 100% !important;
  }

  .amount-btn {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: .6rem .25rem !important;
    font-size: .85rem !important;
  }

  /* Custom dropdown styling on mobile */
  .custom-payment-dropdown .dropdown-item {
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--gray-700);
  }

  .custom-payment-dropdown .dropdown-item:hover {
    background-color: var(--green-pale) !important;
    color: var(--green-dark) !important;
  }

  .custom-payment-dropdown .dropdown-item:active {
    background-color: var(--green) !important;
    color: var(--white) !important;
  }

  #donate-submit-btn,
  #ambulance-submit-btn,
  #tent-submit-btn {
    width: 100% !important;
    max-width: 320px !important;
  }

  .form-card {
    padding: 1.5rem !important;
  }

  .btn-rmwf-danger,
  .btn-rmwf-primary {
    padding: .75rem 1.25rem !important;
    font-size: .9rem !important;
  }

  .swiper-testimonials {
    padding: 1.5rem 20px 3rem !important;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem !important;
  }

  .swiper-slide-active .testimonial-card {
    transform: none !important;
  }
}

/* Cursive / Accent Font definitions */
.font-accent {
  font-family: var(--font-accent) !important;
}

.sub-title {
  font-family: var(--font-accent) !important;
  font-size: 1.35rem !important;
  font-weight: 700;
}

/* Wide container for full-screen desktop alignment matching the header */
.wide-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: clamp(2rem, 8vw, 8rem) !important;
  padding-right: clamp(2rem, 8vw, 8rem) !important;
}

@media (min-width: 992px) {
  .form-card-clean-lg {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}

/* Hero and Page Hero Bottom Brush Divider */
.hero-section,
.page-hero {
  position: relative;
}

.hero-section::after,
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  /* Responsive mobile height */
  background-image: url('/static/images/hero-bottom-shape.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 5;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(82%) sepia(55%) saturate(1903%) hue-rotate(354deg) brightness(101%) contrast(104%);
}

@media (min-width: 768px) {

  .hero-section::after,
  .page-hero::after {
    height: 80px;
    /* Desktop/Tablet height */
  }
}

/* Hero Slide-by-Slide Navigation & Layout Overrides */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Dark Green Gradient Overlay on Slide to make text readable on the left, and reveal image on the right */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(13, 74, 39, 1) 0%,
      rgba(13, 74, 39, 0.98) 35%,
      rgba(13, 74, 39, 0.45) 65%,
      rgba(132, 204, 22, 0.25) 85%,
      rgba(250, 204, 21, 0.35) 100%);
  z-index: 0;
}

.hero-slider-nav {
  position: absolute;
  right: clamp(2rem, 8vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  z-index: 10;
}

.hero-slider-nav .nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Previous Button: Dark Green, White Arrow */
.hero-slider-nav .prev-btn {
  background-color: var(--green-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slider-nav .prev-btn:hover {
  background-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Next Button: Yellow, Black Arrow */
.hero-slider-nav .next-btn {
  background-color: #ffc107;
  color: #111827;
}

.hero-slider-nav .next-btn:hover {
  background-color: #ffca2c;
  transform: translateY(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991px) {
  .hero-slide {
    background-position: center center;
    align-items: center !important;
    padding-top: 140px !important;
    padding-bottom: 110px !important;
  }

  .hero-slide::before {
    background: linear-gradient(to bottom,
        rgba(13, 74, 39, 1) 0%,
        rgba(13, 74, 39, 0.95) 50%,
        rgba(13, 74, 39, 0.6) 100%);
  }

  .hero-slider-nav {
    position: absolute;
    bottom: 85px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    justify-content: center;
    width: auto;
    top: auto;
    margin: 0;
  }

  .hero-slider-nav .next-btn:hover {
    transform: translateY(-3px);
  }
}

/* Custom Hero Slide Action Buttons */
.btn-hero-dark {
  background: rgba(26, 46, 31, 0.45);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: .75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
  backdrop-filter: blur(5px);
  text-decoration: none;
}

.btn-hero-dark:hover {
  background: rgba(26, 46, 31, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-hero-yellow {
  background: #ffc107;
  color: #111827 !important;
  border: none;
  padding: .75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  text-decoration: none;
}

.btn-hero-yellow:hover {
  background: #ffca2c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

/* ── Payment Method Cards ────────────────────────────────────── */
.payment-method-card {
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.payment-method-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.payment-method-card.selected {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(26, 115, 76, 0.1);
}

@media (min-width: 768px) {
  .w-md-auto {
    width: auto !important;
  }
}

/* ============================================================
   Our Leadership - 3D Pop-out Card Style (White & Green Theme)
   ============================================================ */
.leadership-card {
  position: relative;
  background: var(--white);
  /* White background */
  border-radius: 28px;
  padding: 2.5rem 1.5rem;
  /* Normal padding for mobile flow */
  margin-top: 1rem;
  /* Standard spacing at the top on mobile */
  margin-bottom: 0.75rem;
  /* Minimized spacing between stacked cards on mobile */
  border: 1px solid rgba(27, 107, 58, 0.1);
  /* Subtle green border */
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 365px;
  /* Limit width on mobile to keep it compact */
  margin-left: auto;
  /* Center card inside bootstrap column */
  margin-right: auto;
}

.leadership-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(27, 107, 58, 0.25);
}

/* Image Wrapper in Normal Flow (Mobile Default) */
.leadership-image-wrapper {
  position: relative;
  /* In-flow container to prevent absolute overlap on mobile */
  width: 160px;
  /* Reduced from 180px for smaller avatar display */
  height: 160px;
  /* Reduced from 180px for smaller avatar display */
  margin: 0 auto 1.25rem;
  /* Center horizontally and add space below */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Concentric Rings in brand green */
.leadership-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(27, 107, 58, 0.15);
  /* Green transparent border */
  border-radius: 36px;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-ring.ring-1 {
  width: 195px;
  /* Adjusted for 160px wrapper */
  height: 195px;
  border-radius: 42px;
  opacity: 0.2;
}

.leadership-ring.ring-2 {
  width: 175px;
  /* Adjusted for 160px wrapper */
  height: 175px;
  border-radius: 36px;
  opacity: 0.4;
}

.leadership-ring.ring-3 {
  width: 155px;
  /* Adjusted for 160px wrapper */
  height: 155px;
  border-radius: 30px;
  opacity: 0.7;
}

/* Hover effect on rings */
.leadership-card:hover .leadership-ring.ring-1 {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 0.35;
}

.leadership-card:hover .leadership-ring.ring-2 {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 0.6;
}

.leadership-card:hover .leadership-ring.ring-3 {
  transform: translate(-50%, -50%) scale(1.03);
  opacity: 0.9;
  border-color: rgba(27, 107, 58, 0.3);
}

/* Inner Frame (Green Gradient Box) */
.leadership-inner-frame {
  position: relative;
  width: 130px;
  /* Reduced from 145px for smaller avatar display */
  height: 130px;
  /* Reduced from 145px for smaller avatar display */
  border-radius: 26px;
  background: var(--gradient-green);
  /* RMWF Green Gradient */
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(27, 107, 58, 0.2);
  display: flex;
  align-items: flex-end;
  /* Align the person to the bottom of the frame */
  justify-content: center;
  overflow: visible;
  /* CRITICAL: allows the head to pop out at the top */
}

/* The actual image, positioned to pop out of the frame */
.leadership-img {
  width: 120px;
  /* Reduced from 135px for smaller avatar display */
  height: 145px;
  /* Reduced from 165px for smaller avatar display */
  object-fit: cover;
  position: absolute;
  bottom: 0;
  /* Align to the bottom of the inner frame */
  border-radius: 0 0 24px 24px;
  /* Curve the bottom to match the inner frame's curve */
  transition: transform 0.4s ease, filter 0.4s ease;
  z-index: 12;
}

.leadership-card:hover .leadership-img {
  transform: scale(1.05) translateY(-2px);
}

/* Placeholder for missing photo */
.leadership-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-placeholder i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Leadership Info Styling */
.leadership-info {
  margin-top: 1rem;
  width: 100%;
}

.leadership-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.leadership-role {
  display: inline-block;
  font-size: 0.78rem;
  /* Slightly smaller to fit single line */
  font-weight: 600;
  color: var(--green);
  /* Green role tag */
  background: var(--green-pale);
  padding: 0.25rem 0.75rem;
  /* Reduced padding to keep it compact */
  border-radius: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(27, 107, 58, 0.15);
  white-space: nowrap;
  /* Force the role tag onto a single line */
}

@media (max-width: 768px) {
  .leadership-name {
    font-size: clamp(1.0rem, 5vw, 1.25rem) !important;
    white-space: nowrap !important;
  }

  .leadership-role {
    white-space: nowrap !important;
    font-size: clamp(0.5rem, 2.9vw, 0.7rem) !important;
    padding: 0.2rem 0.5rem !important;
    max-width: none !important;
    letter-spacing: 0.01em !important;
  }
}

.leadership-desc {
  color: var(--text-muted);
  /* Brand muted text color */
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Show only 1 line of description on mobile screens */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  /* Remove default paragraph bottom margin */
}

.btn-leadership-readmore {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 0.4rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-top: 1rem;
}

.btn-leadership-readmore:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 107, 58, 0.25);
  text-decoration: none;
}

/* Big Screen Override: Absolute-positioned pop-out layout */
@media (min-width: 992px) {
  .leadership-card {
    padding: 5.25rem 1.5rem 1.5rem;
    /* Minimized padding to reduce height and remove empty space */
    margin-top: 80px;
    /* Offset card down so the image doesn't overlap text above */
    margin-bottom: 0;
    max-width: none;
    /* Let bootstrap columns dictate the large card width */
  }

  .leadership-image-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Pulls the wrapper up over the card's top border */
    margin-bottom: 0;
  }

  .leadership-desc {
    display: block;
    /* Show full description on big screens */
    -webkit-line-clamp: unset;
    /* Remove the single line restriction */
  }
}

/* Registered & Recognized Card Design */
.recognized-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(27, 107, 58, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  height: 100%;
}

.recognized-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(27, 107, 58, 0.08);
  border-color: rgba(27, 107, 58, 0.2);
}

.recognized-card .badge-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27, 107, 58, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.recognized-card:hover .badge-icon-box {
  background: var(--green);
  color: #ffffff;
  transform: scale(1.05);
}

.recognized-card .badge-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  margin-top: 0.25rem;
}

/* ── Floating WhatsApp Button ───────────────────────────────── */
#whatsapp-floating {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none !important;
}

#whatsapp-floating:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

#whatsapp-floating {
  animation: whatsapp-bounce 2s infinite alternate;
}

@keyframes whatsapp-bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

#whatsapp-floating .pulse-ring {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsapp-pulse 1.8s infinite;
  box-sizing: border-box;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ── Page Hero Slider ───────────────────────────────────────── */
.page-hero {
  position: relative;
  z-index: 1;
}

.page-hero.has-slider {
  background: none !important;
}

.page-hero .container {
  position: relative;
  z-index: 5;
}

.page-hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.page-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s ease;
  z-index: 1;
}

.page-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(13, 74, 39, 1) 0%,
      rgba(13, 74, 39, 0.98) 35%,
      rgba(13, 74, 39, 0.5) 70%,
      rgba(13, 74, 39, 0) 100%);
  z-index: 2;
}

.page-hero-slide.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .page-hero-slide {
    background-position: center center !important;
  }

  .page-hero-slide::before {
    background: linear-gradient(to bottom,
        rgba(13, 74, 39, 1) 0%,
        rgba(13, 74, 39, 0.95) 50%,
        rgba(13, 74, 39, 0.6) 100%);
  }
}

/* Ensure Hero actions are inline on mobile devices */
@media (max-width: 576px) {
  .hero-slide .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-actions {
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100%;
  }

  .hero-actions .btn-hero-dark,
  .hero-actions .btn-hero-yellow {
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    flex: 1 1 50% !important;
    justify-content: center !important;
    white-space: nowrap !important;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.0rem, 10vw, 3.2rem) !important;
    white-space: nowrap !important;
  }

  .hero-title .accent {
    font-size: clamp(2.6rem, 12vw, 4.0rem) !important;
    white-space: nowrap !important;
    display: inline-block !important;
    background-size: 100% 10px !important;
    padding-bottom: 10px !important;
    letter-spacing: -0.01em !important;
  }
}

/* ── Form validation ────────────────────────────────────────── */
.rmwf-form .is-invalid,
.newsletter-form .is-invalid {
  border-color: var(--red) !important;
  background-image: none !important;
  box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15) !important;
}

.rmwf-form .is-valid,
.newsletter-form .is-valid {
  border-color: var(--green) !important;
  background-image: none !important;
  box-shadow: 0 0 0 0.2rem rgba(27, 107, 58, 0.15) !important;
}

.rmwf-form .invalid-feedback,
.newsletter-form .invalid-feedback {
  color: var(--red) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  margin-top: 0.35rem !important;
  display: block;
}

#footer-newsletter .newsletter-email-field {
  min-width: 0;
}

#footer-newsletter .invalid-feedback {
  padding-left: 0.85rem;
  line-height: 1.25;
}

@media (max-width: 576px) {
  #footer-newsletter .newsletter-email-field {
    flex: 1 1 auto;
    min-width: 0;
  }

  #footer-newsletter .form-control {
    width: 100%;
  }

  #footer-newsletter .btn-rmwf-primary {
    flex: 0 0 auto;
  }
}

/* ── Word wrap for payment details ─────────────────────────── */
.payment-details-pane .fw-bold,
#confirm-payment-details-box .fw-bold {
  word-break: break-all !important;
  white-space: normal !important;
}
