/* ========================================
   Roshan Foundation — Header & Checkout
   Theme: primary #1B695C | secondary #ff5515
======================================== */

/* ---- Header: stacking + no clip ---- */
.header.header-rf,
.header.header-1.header-rf {
  position: relative;
  z-index: 1000;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.header.header-rf .header-wrapper {
  position: relative !important;
  overflow: visible !important;
  background: transparent !important;
}

.header.header-rf .sticky-height {
  display: none;
}

/* Top bar sits ABOVE main bar so dropdowns aren't covered */
.header.header-rf .rf-topbar {
  background: linear-gradient(105deg, #145249 0%, var(--primary) 48%, #237a6b 100%) !important;
  padding: 10px 0 !important;
  position: relative;
  z-index: 40;
  overflow: visible !important;
}

.header.header-rf .rf-topbar::before {
  display: none !important;
}

.header.header-rf .rf-topbar-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 120% at 90% 50%, rgba(255, 85, 21, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 100% at 10% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
}

.header.header-rf .rf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.header.header-rf .rf-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.header.header-rf .rf-top-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header.header-rf .rf-partners-short {
  display: none;
}
.header.header-rf .rf-partners-full {
  display: inline;
}

.header.header-rf .rf-top-contact a {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.header.header-rf .rf-top-contact a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.header.header-rf .rf-top-contact i {
  font-size: 11px;
  color: #ffc9a8;
}

.header.header-rf .rf-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 50;
  overflow: visible !important;
}

.header.header-rf .rf-top-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.header.header-rf .rf-top-socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.header.header-rf .rf-top-socials a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

/* PWA download icon in top bar — only visible when installable & not installed */
.header.header-rf .rf-pwa-download-btn {
  display: none;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 2px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.header.header-rf .rf-pwa-download-btn.is-visible {
  display: inline-flex;
}
.header.header-rf .rf-pwa-download-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.header.header-rf .rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header.header-rf .rf-btn-zakat {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 85, 21, 0.35);
}

.header.header-rf .rf-btn-zakat:hover {
  background: #e0480f;
  color: #fff !important;
  transform: translateY(-1px);
}

.header.header-rf .rf-btn-partners {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.header.header-rf .rf-btn-partners:hover,
.header.header-rf .rf-btn-partners:focus,
.header.header-rf .rf-btn-partners.show {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

/* Partners dropdown — above everything in header */
.header.header-rf .rf-partners-drop {
  position: relative;
  z-index: 1100;
}

.header.header-rf .rf-partners-drop .dropdown-menu {
  z-index: 1200 !important;
  border: none;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 8px;
  min-width: 190px;
  margin-top: 10px !important;
  overflow: visible;
  background: #fff;
}

.header.header-rf .rf-partners-drop .dropdown-menu.show {
  display: block;
}

.header.header-rf .rf-partners-drop .dropdown-item {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header.header-rf .rf-partners-drop .dropdown-item .rf-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #e8f2ef;
  box-shadow: 0 0 0 1px rgba(27, 105, 92, 0.18);
}

.header.header-rf .rf-partners-drop .dropdown-item .rf-flag-img,
.rf-flag-img {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  border-radius: 2px;
  object-fit: cover;
  background: #eef4f3;
}
.rf-partner-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e8f2ef;
  box-shadow: 0 0 0 1px rgba(27, 105, 92, 0.2);
}
.rf-partner-card__flag .rf-flag-img {
  width: 40px;
  height: 30px;
}

.rf-flag-fallback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(27, 105, 92, 0.25);
  line-height: 1;
}

.header.header-rf .rf-partners-drop .dropdown-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--secondary);
}

/* Main nav bar — lower than topbar so dropdown wins */
.header.header-rf .rf-mainbar {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: none;
  box-shadow: 0 10px 28px rgba(27, 105, 92, 0.08);
  overflow: visible !important;
}

.header.header-rf .rf-mainbar-accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 55%, transparent 100%);
  pointer-events: none;
}

.header.header-rf .rf-mainbar.header-sticky.scroll-on {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 30 !important;
}

/* Mobile: sticky header without backdrop-filter trap */
@media (max-width: 1199.98px) {
  .header.header-rf .rf-mainbar.header-sticky.scroll-on {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .header.header-rf .rf-nav-row {
    flex-wrap: nowrap !important;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .header.header-rf .rf-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 96px);
  }

  .header.header-rf .rf-logo a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  .header.header-rf .rf-logo img {
    width: auto !important;
    max-width: 100% !important;
    max-height: 40px !important;
    height: auto !important;
  }

  .header.header-rf .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: #fff;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }

  .header.header-rf .rf-topbar {
    padding: 6px 0 !important;
  }

  .header.header-rf .rf-topbar-inner {
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .header.header-rf .rf-top-contact {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .header.header-rf .rf-top-contact a {
    font-size: 11px;
    padding: 4px 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header.header-rf .rf-top-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .header.header-rf .rf-btn-zakat {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Bootstrap offcanvas (Menu btn): above header + page animations.
     Note: Bootstrap relocates .offcanvas-nav under <body>, so do NOT
     require .header.header-rf as an ancestor.
     IMPORTANT: transform on .offcanvas breaks touch/wheel scrolling on many
     browsers — reset transform after open and scroll THIS panel directly. */
  .offcanvas.offcanvas-nav {
    z-index: 2100 !important;
    background: #fff !important;
    background-color: #fff !important;
    isolation: isolate;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    touch-action: pan-y !important;
  }
  /* Kill translateX after open — otherwise overflow scroll is unreliable */
  .offcanvas.offcanvas-nav.show {
    transform: none !important;
  }
  .offcanvas-backdrop {
    z-index: 2050 !important;
  }

  .offcanvas-nav .offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px !important;
    margin: 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #eef3f1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }
  .offcanvas-nav .offcanvas-header .text-inverse {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }
  .offcanvas-nav .offcanvas-header img {
    max-height: 40px !important;
    width: auto !important;
    max-width: 100%;
  }
  .offcanvas-nav .offcanvas-header .btn-close {
    width: 1.85rem !important;
    height: 1.85rem !important;
    margin: 0 !important;
    padding: 0.4rem !important;
    opacity: 1 !important;
    flex-shrink: 0;
    border-radius: 6px;
    background-color: var(--primary) !important;
  }
  .offcanvas-nav .navbar-nav > .nav-item.rf-acc-open {
    background: #f5faf8;
    border-radius: 10px;
    margin: 4px 0;
  }
  .offcanvas-nav .navbar-nav > .nav-item.rf-acc-open > .nav-link {
    color: var(--primary) !important;
  }
  .offcanvas-nav .offcanvas-body {
    display: block !important;
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    max-width: 100% !important;
    padding: 8px 12px 40px !important;
    overflow: visible !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .offcanvas-nav .navbar-nav {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .offcanvas-nav .navbar-nav > .nav-item {
    width: 100%;
    border-bottom: 1px solid #e8eeec;
  }
  .offcanvas-nav .navbar-nav > .nav-item > .nav-link {
    padding: 14px 8px !important;
    font-size: 16px !important;
    font-weight: 700;
    color: #1a1a1a !important;
  }
  .offcanvas-nav .navbar-nav > .nav-item > .nav-link::after {
    display: none !important;
  }
  .offcanvas-nav .navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .offcanvas-nav .navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle::after {
    display: inline-block !important;
    content: "" !important;
    position: static !important;
    width: 0.45em;
    height: 0.45em;
    margin: 0;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: none !important;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    left: auto;
    right: auto;
    bottom: auto;
    border-radius: 0;
  }
  .offcanvas-nav .navbar-nav > .nav-item.dropdown > .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
  }
  .offcanvas-nav .navbar-nav > .nav-item > .dropdown-menu.rf-mega-menu,
  .offcanvas-nav .rf-mega-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 4px 0 12px 8px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
  }
  .offcanvas-nav .navbar-nav > .nav-item > .dropdown-menu.rf-mega-menu::before,
  .offcanvas-nav .rf-mega-menu::before,
  .offcanvas-nav .navbar-nav > .nav-item > .dropdown-menu::before {
    display: none !important;
    content: none !important;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-grid,
  .offcanvas-nav .rf-mega-menu .rf-mega-grid--3,
  .offcanvas-nav .rf-mega-menu .rf-mega-grid--2,
  .offcanvas-nav .rf-mega-menu .rf-mega-grid--about {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col,
  .offcanvas-nav .rf-mega-menu .rf-mega-block {
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col h6,
  .offcanvas-nav .rf-mega-menu .rf-mega-block h6,
  .offcanvas-nav .rf-mega-menu .rf-mega-col h6.mt-3 {
    margin: 14px 0 6px !important;
    padding-bottom: 4px !important;
    font-size: 12px !important;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #d7e4e0 !important;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col:first-child > h6:first-child,
  .offcanvas-nav .rf-mega-menu .rf-mega-block:first-child > h6:first-child {
    margin-top: 4px !important;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col a,
  .offcanvas-nav .rf-mega-menu .rf-mega-block a {
    padding: 8px 4px !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal !important;
    word-break: break-word;
    max-width: 100%;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col a.rf-mega-program {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 6px 2px !important;
  }
  .offcanvas-nav .rf-mega-program__img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
  .offcanvas-nav .rf-mega-menu .rf-mega-col h6,
  .offcanvas-nav .rf-mega-menu .rf-mega-block h6,
  .offcanvas-nav .rf-mega-menu .rf-mega-grid--about .rf-mega-block h6 {
    white-space: normal !important;
  }
  .offcanvas-nav .rf-mega-menu,
  .offcanvas-nav .rf-mega-grid,
  .offcanvas-nav .rf-mega-col,
  .offcanvas-nav .rf-mega-block,
  .offcanvas-nav .navbar-nav,
  .offcanvas-nav .nav-item {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .offcanvas-nav .rf-mega-apps {
    margin-top: 8px;
  }

  /* Hide floating page decorations while menu is open */
  body.overflow-hidden .anim-img,
  body:has(.offcanvas-nav.show) .anim-img {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Original Charivo canvas sidebar — above sticky navbar */
.main-overlay {
  z-index: 2050 !important;
}
.canvas-menu {
  z-index: 2100 !important;
}

.header.header-rf .rf-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  position: relative;
}

.header.header-rf .rf-logo img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.canvas-menu .logo img,
.offcanvas-nav .offcanvas-header img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer .f-logo img,
.footer .rf-footer-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header.header-rf nav.navbar {
  position: relative !important;
  width: 100% !important;
  right: auto !important;
  bottom: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  overflow: visible !important;
}

.header.header-rf nav.navbar::before {
  display: none !important;
}

.header.header-rf .header-nav-wrapper.header-sticky.scroll-on nav.navbar {
  position: relative !important;
  width: 100% !important;
  border-radius: 0 !important;
}

.header.header-rf .navbar .navbar-nav > li a.nav-link {
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 13px !important;
  position: relative;
  display: flex;
  align-items: center;
}

.header.header-rf .navbar .navbar-nav > li a.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.header.header-rf .navbar .navbar-nav > li a.nav-link:hover::after,
.header.header-rf .navbar .navbar-nav > li a.nav-link:focus::after {
  transform: scaleX(1);
}

.header.header-rf .navbar .navbar-nav > li a.nav-link:hover,
.header.header-rf .navbar .navbar-nav > li a.nav-link:focus {
  color: var(--primary) !important;
}

.header.header-rf .rf-nav-cta {
  gap: 10px !important;
  margin-left: auto;
  align-items: center !important;
}

/* Mobile header CTA strip (below logo/menu row) */
.header.header-rf .rf-mobile-cta-bar {
  display: none;
  border-top: 1px solid rgba(27, 105, 92, 0.1);
  background: #fff;
  padding: 8px 0 10px;
}
.header.header-rf .rf-mobile-cta {
  display: flex;
  gap: 8px;
  width: 100%;
}
.header.header-rf .rf-mobile-cta .rf-btn {
  flex: 1 1 0;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.header.header-rf .rf-mobile-cta .rf-btn-campaign {
  background: var(--primary);
  color: #fff !important;
  border: 1px solid var(--primary);
}
.header.header-rf .rf-mobile-cta .rf-btn-donate {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(255, 85, 21, 0.25);
}
@media (max-width: 767.98px) {
  .header.header-rf .rf-mobile-cta-bar {
    display: block;
  }
  .header.header-rf .rf-nav-row {
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 8px;
  }
  .header.header-rf .rf-logo {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header.header-rf .rf-logo img {
    max-width: min(150px, 48vw);
    height: auto;
  }
  .header.header-rf .navbar-toggler.offcanvas-nav-btn {
    flex-shrink: 0;
    margin-left: 0 !important;
  }
}

/* Uniform height for all header CTA controls */
.header.header-rf .rf-nav-cta > .rf-btn,
.header.header-rf .rf-nav-cta > .rf-donation-bag,
.header.header-rf .rf-nav-cta > .burger-menu {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 4px;
  vertical-align: middle;
}

.header.header-rf .rf-btn-campaign {
  background: var(--primary);
  color: #fff !important;
  padding: 0 16px;
  font-size: 13.5px;
  border: 1px solid var(--primary);
  border-radius: 4px;
}

.header.header-rf .rf-btn-campaign:hover {
  background: #145249;
  color: #fff !important;
  border-color: #145249;
}

/* Icon-only profile / login */
.header.header-rf .rf-nav-cta > .rf-btn-campaign.rf-btn-icon,
.header.header-rf .rf-nav-cta > a.rf-btn-campaign[title="My Profile"],
.header.header-rf .rf-nav-cta > a.rf-btn-campaign[title="Login"] {
  width: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 16px;
}

.header.header-rf .rf-btn-donate {
  background: var(--secondary);
  color: #fff !important;
  padding: 0 18px;
  font-size: 13.5px;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(255, 85, 21, 0.28);
}

.header.header-rf .rf-btn-donate:hover {
  background: #e0480f;
  color: #fff !important;
}

.header.header-rf .rf-btn-donate i {
  font-size: 12px;
}

/* Donation hand + amount */
.header.header-rf .rf-donation-bag {
  gap: 8px;
  text-decoration: none;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  background: linear-gradient(180deg, #fff 0%, #f3faf8 100%);
  box-shadow: 0 4px 12px rgba(27, 105, 92, 0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.header.header-rf .rf-donation-bag:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 8px 18px rgba(27, 105, 92, 0.14);
  background: #fff;
}

.header.header-rf .rf-bag-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  flex-shrink: 0;
}

.header.header-rf .rf-bag-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

.header.header-rf .rf-bag-amount {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
  color: #1a1a1a;
}

.header.header-rf .rf-bag-amount small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #7a7a7a;
  text-transform: uppercase;
}

.header.header-rf .rf-bag-amount strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.header.header-rf .burger-menu {
  background: var(--secondary) !important;
  border: none;
  width: 44px;
  min-width: 44px;
  padding: 0;
  margin-left: 2px;
  box-shadow: 0 6px 14px rgba(255, 85, 21, 0.28);
}

.header.header-rf .burger-menu svg {
  width: 18px;
  height: 18px;
}

.header.header-rf .burger-menu:hover {
  background: #e0480f !important;
}

@media (max-width: 1199.98px) {
  .header.header-rf .rf-top-contact {
    display: none;
  }

  .header.header-rf .rf-btn-partners {
    display: inline-flex !important;
  }

  .header.header-rf .rf-partners-full {
    display: none;
  }
  .header.header-rf .rf-partners-short {
    display: inline;
  }

  .header.header-rf .rf-nav-row {
    min-height: 56px;
  }
}

@media (max-width: 575.98px) {
  /* kept for other phone tweaks below */
}

@media (max-width: 767.98px) {
  .header.header-rf .rf-top-socials {
    display: none;
  }

  .header.header-rf .rf-pwa-download-btn.is-visible {
    display: inline-flex;
    margin-right: 6px;
  }

  .header.header-rf .rf-topbar-inner {
    justify-content: space-between;
    flex-wrap: nowrap !important;
  }

  .header.header-rf .rf-top-left {
    flex: 0 0 auto;
  }

  .header.header-rf .rf-top-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header.header-rf .rf-btn-zakat {
    padding: 6px 10px;
    font-size: 11px;
  }

  .header.header-rf .rf-btn-partners {
    padding: 6px 10px;
    font-size: 11px;
  }

  .header.header-rf .rf-nav-row {
    min-height: 52px !important;
  }

  .header.header-rf .rf-logo img {
    max-height: 36px !important;
  }
}

/* Extra-small phones (320–400px): keep header to one compact strip */
@media (max-width: 575.98px) {
  .header.header-rf .rf-topbar {
    padding: 5px 0 !important;
  }

  .header.header-rf .rf-btn-zakat {
    padding: 5px 9px;
    font-size: 11px;
  }

  .header.header-rf .rf-btn-zakat i {
    margin: 0;
  }

  .header.header-rf .rf-btn-partners {
    padding: 5px 9px;
    font-size: 11px;
  }

  .header.header-rf .rf-nav-row {
    min-height: 48px !important;
    gap: 6px;
  }

  .header.header-rf .rf-logo {
    max-width: calc(100% - 88px);
  }

  .header.header-rf .rf-logo img {
    max-height: 32px !important;
  }

  .header.header-rf .navbar-toggler {
    padding: 6px 10px;
    font-size: 12px;
  }

  .header.header-rf .ct-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Keep desktop nav visible outside offcanvas behavior */
@media (min-width: 1200px) {
  .header.header-rf .rf-nav-row {
    align-items: center !important;
    min-height: 82px;
  }

  .header.header-rf .offcanvas-nav {
    position: static !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 82px;
    background: transparent !important;
    border: none !important;
    flex: 1 1 auto;
    display: flex !important;
    align-items: center !important;
    align-self: stretch;
    z-index: auto !important;
    order: 2;
  }

  .header.header-rf .rf-logo {
    order: 1;
    display: flex;
    align-items: center;
  }

  .header.header-rf .rf-nav-cta {
    order: 3;
    align-self: center;
  }

  .header.header-rf .offcanvas-nav .offcanvas-header {
    display: none !important;
  }

  .header.header-rf .offcanvas-nav .offcanvas-body {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: visible !important;
    position: static !important;
    height: 100%;
    width: 100%;
  }

  .header.header-rf .navbar-nav {
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .header.header-rf .navbar .navbar-nav > .nav-item {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .header.header-rf .navbar .navbar-nav > .nav-item > .nav-link {
    display: flex !important;
    align-items: center !important;
    height: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2;
  }

  .header.header-rf .navbar-toggler {
    display: none !important;
  }
}

.rf-checkout {
  background: #f7f8f7;
}

.rf-checkout-hero.promo-sec {
  min-height: 200px;
  margin-bottom: 0;
}

.rf-checkout-sec {
  background: #f7f8f7;
  padding: 40px 0 80px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.rf-checkout-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

/* Mobile: Payment Method before Sign In / Sign Up */
@media (max-width: 991.98px) {
  .rf-checkout-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .rf-checkout-main {
    display: contents;
  }
  .rf-checkout-summary,
  .rf-checkout-pay,
  .rf-checkout-layout .rf-auth-banner,
  .rf-checkout-info {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto;
    align-self: stretch;
    box-sizing: border-box;
  }
  .rf-checkout-summary {
    order: 1;
  }
  .rf-checkout-pay {
    order: 2;
  }
  .rf-checkout-layout .rf-auth-banner {
    order: 3;
  }
  .rf-checkout-info {
    order: 4;
  }
  .rf-checkout-pay .rf-sidebar-sticky {
    position: static;
  }
  .rf-checkout-layout .rf-auth-banner p {
    max-width: none;
  }
}

/* Checkout panels — never stretch to full column height */
.rf-checkout-panel {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  height: auto !important;
  display: block !important;
  box-sizing: border-box;
}

.rf-checkout-panel h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.rf-panel {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  box-sizing: border-box;
}

.rf-panel h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.rf-donation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.rf-donation-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rf-donation-item h5 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--primary);
}

.rf-donation-item p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.rf-donation-item .rf-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.rf-donation-item .rf-item-amount {
  font-weight: 800;
  font-size: 16px;
  color: #1a1a1a;
}

.rf-donation-item .rf-item-remove {
  color: var(--secondary);
  font-size: 16px;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
}

.rf-donation-item .rf-item-remove:hover {
  opacity: 0.75;
}

.rf-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(var(--primary-rgb), 0.06);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.rf-auth-banner p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  max-width: 420px;
}

.rf-auth-banner .rf-auth-btns {
  display: flex;
  gap: 10px;
}

.rf-auth-banner .rf-auth-btns a {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
}

.rf-auth-banner .rf-auth-btns a:hover {
  background: #e0480f;
  color: #fff;
}

.rf-checkout-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}

.rf-checkout-form .form-control,
.rf-checkout-form select,
.rf-checkout-form textarea,
.rf-checkout-form input[type="text"],
.rf-checkout-form input[type="email"],
.rf-checkout-form input[type="tel"] {
  width: 100%;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  margin-bottom: 16px;
  box-shadow: none;
}

.rf-checkout-form .form-control:focus,
.rf-checkout-form select:focus,
.rf-checkout-form textarea:focus,
.rf-checkout-form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.rf-phone-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.rf-phone-wrap .rf-phone-code {
  flex: 0 0 110px;
  margin-bottom: 0 !important;
}

.rf-phone-wrap input {
  margin-bottom: 0 !important;
}

.rf-payment-box .rf-pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rf-payment-box .rf-pay-option:hover,
.rf-payment-box .rf-pay-option.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.rf-payment-box .rf-pay-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #222;
}

.rf-payment-box .rf-pay-option input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.rf-payment-box .rf-pay-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.rf-payment-box .rf-pay-option__name {
  font-weight: 800;
}
.rf-payment-box .rf-pay-option__hint {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.rf-checkout-form .iti {
  width: 100%;
  margin-bottom: 14px;
}

.rf-checkout-form .iti__tel-input,
.rf-checkout-form input.rf-iti-phone {
  width: 100%;
  height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.rf-checkout-form .iti__tel-input:focus,
.rf-checkout-form input.rf-iti-phone:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 105, 92, 0.12);
}

.rf-phone-error {
  display: block;
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.rf-bank-transfer-panel {
  margin: 0 0 14px;
}

.rf-bank-details {
  background: #f6faf8;
  border: 1px solid #d9ebe4;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 0;
}
.rf-bank-details + .rf-bank-details {
  margin-top: 12px;
}

.rf-bank-details h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
}

.rf-bank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed #d5e5df;
  font-size: 13px;
}

.rf-bank-row:last-of-type {
  border-bottom: 0;
}

.rf-bank-row span {
  color: #666;
  flex: 0 0 42%;
}

.rf-bank-row strong {
  color: #1a1a1a;
  text-align: right;
  word-break: break-all;
}

.rf-bank-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.45;
}

.rf-bank-details--empty {
  background: #fff8f0;
  border-color: #f0d9b8;
  color: #7a5a2a;
  font-size: 13px;
}

.rf-receipt-upload label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.rf-receipt-upload input[type="file"] {
  display: block;
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px dashed #c5d8d0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 6px;
}

.rf-receipt-upload small {
  display: block;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}

.rf-payment-box .rf-pay-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-payment-box .rf-pay-logos img {
  height: 22px;
  width: auto;
}

.rf-payment-box .rf-pay-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(27, 105, 92, 0.1);
  color: #1B695C;
}

.rf-plisio-panel {
  margin-bottom: 14px;
}

.rf-qr-panel {
  margin-bottom: 14px;
}
.rf-qr-box {
  background: #f7faf9;
  border: 1px solid #e2ece9;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.rf-qr-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
}
.rf-qr-img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rf-payment-box .rf-pay-badge.jazz {
  background: #1a1a1a;
  color: #fff;
}

.rf-checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  border-top: 1px solid #eee;
  margin-top: 8px;
}

.rf-checkout-total span {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.rf-checkout-total strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.rf-checkout-sec .rf-donate-submit,
.rf-checkout .rf-donate-submit {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--secondary);
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  margin-top: 16px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rf-checkout-sec .rf-donate-submit:hover,
.rf-checkout .rf-donate-submit:hover {
  background: #e0480f;
  color: #fff !important;
  transform: translateY(-1px);
}

.rf-sidebar-sticky {
  position: sticky;
  top: 100px;
}

/* Keep footer below checkout content */
.rf-checkout-sec + .footer,
body > .footer {
  position: relative;
  z-index: 0;
  clear: both;
}

@media (max-width: 991.98px) {
  .rf-checkout-wrap {
    margin-top: 0;
  }

  .rf-checkout-sec {
    padding: 28px 0 60px;
  }

  .rf-sidebar-sticky {
    position: static;
  }

  .rf-auth-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Homepage: Impact + Get Involved ---- */
.rf-impact.stat-sec .row > div::before {
  display: none !important;
}
.rf-impact.stat-sec .row > div:nth-child(3),
.rf-impact.stat-sec .row > div {
  padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
}
.rf-impact.stat-sec .row:last-child {
  margin-left: 0 !important;
  width: 100%;
}
.rf-impact .row > [class*="col-"] {
  display: flex;
}
.rf-impact .stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 16px;
  height: 100%;
  width: 100%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(27, 105, 92, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rf-impact .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(27, 105, 92, 0.12);
}
.rf-impact-icon {
  width: 56px;
  height: 56px;
  min-height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}
.rf-impact .row > div:nth-child(even) .rf-impact-icon {
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
}
.rf-impact .stat-card h3 {
  margin: 0 0 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  line-height: 1;
  gap: 2px;
}
.rf-impact .stat-card h3 .display-2,
.rf-impact .stat-card h3 .purecounter {
  font-size: 42px !important;
  line-height: 1 !important;
  font-weight: 800;
}
.rf-impact .stat-card h3 > span:not(.display-2):not(.purecounter):not(.rf-impact-icon) {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.rf-impact .stat-card p {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: #555;
  font-size: 15px;
  line-height: 1.3;
  padding: 0 4px;
  width: 100%;
}

.rf-get-involved .rf-involve-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.rf-get-involved .rf-involve-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
}
.rf-involve-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--secondary);
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}
.rf-get-involved .rf-involve-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-get-involved .rf-involve-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.mission-sec .card-entry .icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
}

.mission-sec .card-entry .icon i {
  color: #fff !important;
  font-size: 28px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.mission-sec .card-entry:hover .icon i {
  color: #fff !important;
}


/* ---- Equal-height cards + full images + aligned CTAs ---- */
.mission-sec .row > [class*="col-"] {
  display: flex;
}
.mission-sec .card-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: visible;
  padding-top: 36px;
}
.mission-sec .card-entry .card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}
.mission-sec .card-entry .card-content p {
  flex: 1 1 auto;
}
.mission-sec .card-entry .card-content .link-btn {
  margin-top: auto;
  align-self: center;
}
.mission-sec .card-entry .icon {
  flex-shrink: 0;
  background-size: contain !important;
}

.causes-sec .row > [class*="col-"],
.rf-program-cards-sec .row > [class*="col-"] {
  display: flex;
}
.causes-sec .cause-entry,
.rf-program-cards-sec .cause-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.causes-sec .cause-entry .cause-thumb,
.rf-program-cards-sec .cause-entry .cause-thumb {
  display: block;
  width: 100%;
  border-radius: 0;
  aspect-ratio: 16 / 11;
}
.causes-sec .cause-entry .cause-thumb a,
.rf-program-cards-sec .cause-entry .cause-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}
.causes-sec .cause-entry .cause-thumb img,
.rf-program-cards-sec .cause-entry .cause-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.causes-sec .cause-entry .cause-txt,
.rf-program-cards-sec .cause-entry .cause-txt {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 20px 24px;
}
.causes-sec .cause-entry .cause-txt > .meta,
.rf-program-cards-sec .cause-entry .cause-txt > .meta {
  font-size: 15px;
  font-weight: 600;
  color: var(--headings-color);
  margin-bottom: 10px;
}
.causes-sec .cause-entry .cause-txt h3,
.rf-program-cards-sec .cause-entry .cause-txt h3 {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  line-height: 1.35;
}
.causes-sec .cause-entry .cause-txt .btn,
.rf-program-cards-sec .cause-entry .cause-txt .btn {
  margin-top: auto;
  align-self: flex-start;
}

.rf-get-involved .row > [class*="col-"] {
  display: flex;
}
.rf-get-involved .rf-involve-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.rf-get-involved .rf-involve-card p {
  flex: 1 1 auto;
}
.rf-get-involved .rf-involve-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.rf-involve-icon {
  width: 58px;
  height: 58px;
  font-size: 24px;
}

/* ---- Footer (no images, Roshan content, theme look) ---- */
.footer.rf-footer {
  background: var(--primary) !important;
  background-image: none !important;
}
.footer.rf-footer .footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 36px;
  margin-bottom: 40px;
}
.footer.rf-footer .rf-subs-form {
  width: 100%;
}
.footer.rf-footer .rf-subs-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer.rf-footer .rf-subs-fields input {
  flex: 1 1 160px;
  min-width: 140px;
  height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.footer.rf-footer .rf-subs-fields input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.footer.rf-footer .rf-subs-fields .btn {
  border-radius: 999px;
  padding: 12px 22px;
  white-space: nowrap;
}
.footer.rf-footer .rf-brand-title {
  font-size: 26px !important;
  letter-spacing: 0.02em;
}
.footer.rf-footer .rf-footer-link {
  margin: 14px 0;
}
.footer.rf-footer .rf-footer-link a {
  color: #ffc9a8;
  font-weight: 700;
  text-decoration: none;
}
.footer.rf-footer .rf-footer-link a:hover {
  color: #fff;
}
.footer.rf-footer .rf-footer-link i {
  margin-right: 6px;
  font-size: 12px;
}
.footer.rf-footer .rf-legal-list,
.footer.rf-footer .rf-donate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer.rf-footer .rf-legal-list li,
.footer.rf-footer .rf-donate-list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
}
.footer.rf-footer .rf-legal-list li::before,
.footer.rf-footer .rf-donate-list li::before {
  display: none !important;
}
.footer.rf-footer .rf-donate-list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer.rf-footer .rf-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.footer.rf-footer .rf-footer-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease;
}
.footer.rf-footer .rf-footer-socials a:hover {
  background: var(--secondary);
  color: #fff;
}
.footer.rf-footer .rf-appeals-box {
  background: rgba(255, 85, 21, 0.95);
  border-radius: 16px;
  padding: 24px 22px;
}
.footer.rf-footer .rf-appeals-box .widget-title {
  color: #fff !important;
}
.footer.rf-footer .rf-appeals-box .widget-title::before,
.footer.rf-footer .rf-appeals-box .widget-title::after {
  background: #fff !important;
}
.footer.rf-footer .rf-appeals-box ul li a {
  color: #fff !important;
}
.footer.rf-footer .rf-appeals-box ul li::before {
  background: #fff !important;
}
.footer.rf-footer .footer-bottom {
  background: #145249 !important;
  margin-top: 40px;
}
@media (max-width: 767.98px) {
  .footer.rf-footer .rf-subs-fields {
    flex-direction: column;
    align-items: stretch;
  }
  .footer.rf-footer .rf-subs-fields .btn {
    width: 100%;
  }
}

/* Blog cards equal height */
.blog-sec .row > [class*="col-"] {
  display: flex;
}
.blog-sec .blog-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.blog-sec .blog-entry .blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-sec .blog-entry .blog-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.blog-sec .blog-entry .blog-content h3 {
  flex: 1 1 auto;
}
.blog-sec .blog-entry .blog-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Region project cards — always show label strip like theme hover state */
.recent-project .row > [class*="col-"] {
  display: flex;
}
.recent-project .project-entry2 {
  width: 100%;
  height: auto;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
}
.recent-project .project-entry2 .project-txt {
  width: 22% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-shrink: 0;
  position: relative;
  border-radius: 20px 0 0 20px !important; /* outer left only */
}
.recent-project .project-entry2 .project-thumb {
  width: 78% !important;
  flex: 1 1 auto;
  height: auto;
  min-height: 420px;
  border-radius: 0 20px 20px 0 !important; /* outer right only — no inside radius */
  overflow: hidden;
}
.recent-project .project-entry2 .project-thumb a {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0 !important;
}
.recent-project .project-entry2 .project-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}
.recent-project .project-entry2:hover .project-txt {
  width: 26% !important;
  border-radius: 20px 0 0 20px !important;
}
.recent-project .project-entry2:hover .project-thumb {
  width: 74% !important;
  border-radius: 0 20px 20px 0 !important;
}
@media (max-width: 991.98px) {
  .recent-project .project-entry2 {
    min-height: 320px;
  }
  .recent-project .project-entry2 .project-thumb,
  .recent-project .project-entry2 .project-thumb a,
  .recent-project .project-entry2 .project-thumb img {
    min-height: 320px;
  }
}


/* Donate hub cards icons */
.sec-padding .card-entry .icon i,
.donation-sec .card-entry .icon i {
  color: #fff !important;
}
.sec-padding .card-entry .icon,
.donation-sec .card-entry .icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Donate form — visible amounts & inputs */
.rf-donate-box {
  color: #1a1a1a !important;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.rf-donate-box .stat-prev {
  color: var(--primary) !important;
}
.rf-donate-box .stat-prev .rf-amount-display,
.rf-donate-box .stat-prev .display-5 {
  color: var(--primary) !important;
  font-weight: 800;
}
.rf-donate-box .form-group label {
  color: #333 !important;
  display: block;
}
.rf-donate-box .rf-custom-amount,
.rf-donate-box input[type="number"],
.rf-donate-box input[type="text"] {
  color: #111 !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  width: 100%;
  font-size: 18px !important;
  font-weight: 700 !important;
  min-height: 54px;
  -webkit-text-fill-color: #111 !important;
}
.rf-donate-box .rf-custom-amount::placeholder {
  color: #999 !important;
  font-weight: 500 !important;
  -webkit-text-fill-color: #999 !important;
}
.rf-donate-box .display-5,
.rf-donate-box h3 {
  color: #1a1a1a !important;
}
.rf-amount-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.rf-amount-list li button {
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a !important;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.rf-amount-list li.active button,
.rf-amount-list li button:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Donations mega menu */
.header.header-rf .navbar .navbar-nav > .nav-item > .dropdown-menu.rf-mega-menu,
.rf-mega-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  padding: 28px 24px !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box;
  z-index: 1080 !important;
  overflow: hidden;
}
.rf-mega-menu .rf-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.rf-mega-menu .rf-mega-col h6 {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rf-mega-menu .rf-mega-col a {
  display: block;
  color: #222 !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 0;
  text-decoration: none;
  background: transparent !important;
}
.rf-mega-menu .rf-mega-col a:hover {
  color: var(--secondary) !important;
}

/* Program / Involved links with thumbnails */
.rf-mega-menu .rf-mega-col a.rf-mega-program {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 4px !important;
  margin: 0 0 4px;
  border-radius: 8px;
  color: #222 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.rf-mega-menu .rf-mega-col a.rf-mega-program:hover {
  background: rgba(27, 105, 92, 0.06) !important;
  color: var(--primary) !important;
}
.rf-mega-program__img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f1;
}
.rf-mega-program__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rf-mega-program__label {
  flex: 1 1 auto;
  line-height: 1.3;
  font-size: 13px;
  font-weight: 600;
}
.rf-mega-menu--programs {
  max-height: min(78vh, 720px);
  overflow-y: auto !important;
}

/* Desktop: mega menus anchored to full nav row (same as Donations) */
@media (min-width: 1200px) {
  .header.header-rf .rf-nav-row {
    position: relative !important;
  }
  .header.header-rf .offcanvas-nav,
  .header.header-rf .offcanvas-nav .offcanvas-body,
  .header.header-rf .navbar-nav {
    position: static !important;
  }
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown {
    position: static !important;
  }
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown > .dropdown-menu.rf-mega-menu {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none !important;
    transition: opacity 0.25s ease, visibility 0.35s ease;
  }
  /* Invisible bridge so cursor can move from link → menu without closing */
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown > .dropdown-menu.rf-mega-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 32px;
    background: transparent;
  }
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu.rf-mega-menu,
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown.rf-mega-open > .dropdown-menu.rf-mega-menu,
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown > .dropdown-menu.rf-mega-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .header.header-rf .rf-mega-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* About: compact panel under About Us, no full-width empty space */
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown.rf-nav-about {
    position: relative !important;
  }
  .header.header-rf .navbar .navbar-nav > .nav-item.dropdown > .dropdown-menu.rf-mega-menu.rf-mega-menu--about {
    left: 0 !important;
    right: auto !important;
    width: max-content !important;
    min-width: 460px !important;
    max-width: min(560px, calc(100vw - 32px)) !important;
    overflow: visible !important;
  }
  .header.header-rf .rf-mega-menu .rf-mega-grid.rf-mega-grid--about {
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    width: 100%;
  }
}
@media (max-width: 1199.98px) {
  /* Never keep multi-col mega grids inside the mobile offcanvas */
  .rf-mega-menu .rf-mega-grid,
  .rf-mega-menu .rf-mega-grid--2,
  .rf-mega-menu .rf-mega-grid--3,
  .rf-mega-menu .rf-mega-grid--about {
    grid-template-columns: 1fr !important;
  }
}

/* Unique donate page themes */
.rf-donate-hero-zakat { background: linear-gradient(135deg, #145249, #1B695C 50%, #ff5515); }
.rf-donate-hero-sadaqah { background: linear-gradient(135deg, #1B695C, #2a8f7c); }
.rf-donate-hero-jariyah { background: linear-gradient(135deg, #0e4d45, #1B695C 40%, #2a7a6a); }
.rf-donate-hero-fidya { background: linear-gradient(135deg, #3d2a0a, #8a5a12 50%, #ff5515); }
.rf-donate-hero-kaffarah { background: linear-gradient(135deg, #2a1540, #1B695C); }
.rf-donate-hero-fitrana { background: linear-gradient(135deg, #145249, #ff5515); }
.rf-donate-hero-flood { background: linear-gradient(135deg, #0d3d4d, #1B695C); }
.rf-donate-hero-orphan { background: linear-gradient(135deg, #5a2d0c, #ff5515); }
.rf-donate-hero-water { background: linear-gradient(135deg, #0a4a6e, #1B695C); }
.rf-donate-hero-health { background: linear-gradient(135deg, #6b1d1d, #ff5515); }
.rf-donate-hero-edu { background: linear-gradient(135deg, #1a3a5c, #1B695C); }
.rf-donate-hero-plain {
  background-size: cover;
  position: relative;
}
.rf-donate-hero-plain .promo-wrap { padding: 48px 0 56px; }
.rf-donate-hero-plain .promo-wrap .lead { opacity: 0.95; }
.rf-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.rf-feature-strip .item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  text-align: center;
}
.rf-feature-strip .item strong { display: block; font-size: 22px; margin-bottom: 4px; }
@media (max-width: 767.98px) {
  .rf-feature-strip { grid-template-columns: 1fr; }
}

/* ===== Campaign / appeal pages (Alkhidmat-style layouts) ===== */
.rf-camp-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #0d3d4d center/cover no-repeat;
  overflow: hidden;
}
.rf-camp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 40, 45, 0.75) 0%, rgba(13, 40, 45, 0.25) 55%, rgba(13, 40, 45, 0.1) 100%);
}
.rf-camp-hero__inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
}
.rf-camp-badge {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-left: 6px solid var(--secondary);
  font-size: 22px;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.rf-camp-badge span {
  display: block;
  color: var(--secondary);
  font-size: 28px;
}
.rf-camp-intro h2 {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.rf-camp-quote {
  background: #fff3ee;
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: #333;
  margin: 24px 0;
}
.rf-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.rf-stat-card {
  background: #fff;
  border: 1px solid #d7ebe6;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
}
.rf-stat-card strong {
  display: block;
  font-size: 26px;
  color: var(--primary);
  font-weight: 800;
}
.rf-stat-card span {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
@media (max-width: 991.98px) {
  .rf-stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .rf-stat-cards { grid-template-columns: 1fr; }
}

.rf-icon-bar {
  background: #e8f5f2;
  border-radius: 14px;
  padding: 22px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.rf-icon-bar .item {
  text-align: center;
}
.rf-icon-bar .item i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}
.rf-icon-bar .item strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
}
.rf-icon-bar .item span {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .rf-icon-bar { grid-template-columns: 1fr 1fr; }
}

.rf-cat-bar {
  background: var(--primary);
  padding: 28px 0;
}
.rf-cat-bar .row > div {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.rf-cat-bar i {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  color: #fff;
}

.rf-where-cards .card-box {
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rf-where-cards .card-box h4 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-where-cards .card-box p {
  color: rgba(255,255,255,0.9);
  flex: 1;
}
.rf-where-cards .card-box .btn {
  margin-top: 16px;
  align-self: flex-start;
}

/* Donation strip: appeal (left) + amount widget (right) after banner */
.rf-donate-strip {
  padding: 28px 0 40px;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(27, 105, 92, 0.07), transparent 55%),
    linear-gradient(180deg, #f4f8f7 0%, #fff 100%);
  border-bottom: 1px solid rgba(27, 105, 92, 0.08);
}
.rf-donate-strip__copy {
  padding: 8px 8px 8px 0;
  max-width: 520px;
}
.rf-donate-strip__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}
.rf-donate-strip__title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
}
.rf-donate-strip__body {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #3a4542;
}
.rf-donate-strip__body p {
  margin-bottom: 0.75rem;
}
.rf-donate-strip__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rf-donate-strip__bullets li {
  position: relative;
  padding: 10px 14px 10px 38px;
  background: #fff;
  border: 1px solid rgba(27, 105, 92, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #234840;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}
.rf-donate-strip__bullets li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: inset 0 0 0 3px #fff;
}
.rf-donate-strip .rf-donate-widget {
  position: relative;
  top: auto;
  max-width: none;
  width: 100%;
}
.rf-donate-strip .rf-amount-list--grid {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 575.98px) {
  .rf-donate-strip {
    padding: 20px 0 28px;
  }
  .rf-donate-strip__copy {
    padding: 0;
    max-width: none;
  }
  .rf-donate-strip .rf-amount-list--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rf-donate-widget {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  position: sticky;
  top: 110px;
  direction: ltr;
  text-align: left;
  color: #1a1a1a;
}
.rf-donate-widget__title {
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}
.rf-donate-widget__label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin: 12px 0 8px;
  display: block;
  text-align: left;
}
.rf-amount-list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rf-amount-list--grid li {
  margin: 0 !important;
  display: block !important;
}
.rf-amount-list--grid li button {
  width: 100%;
  border-radius: 8px !important;
  padding: 10px 8px !important;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a !important;
  font-weight: 700;
  cursor: pointer;
}
.rf-amount-list--grid li.active button,
.rf-amount-list--grid li button:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.rf-donate-widget .rf-custom-amount {
  width: 100%;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #111 !important;
  background: #fff !important;
  -webkit-text-fill-color: #111 !important;
  min-height: 48px;
  display: block;
}
.rf-donate-widget__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-donate-widget__options .rf-opt {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a !important;
  background: #fff;
  text-align: left !important;
  direction: ltr;
  width: 100%;
}
.rf-donate-widget__options .rf-opt__text {
  flex: 1;
  text-align: left !important;
  color: #1a1a1a !important;
  line-height: 1.35;
}
.rf-donate-widget__options .rf-opt.is-active {
  border-color: var(--primary);
  background: #eef8f5;
  color: var(--primary) !important;
}
.rf-donate-widget__options .rf-opt.is-active .rf-opt__text {
  color: var(--primary) !important;
}
.rf-donate-widget__options .rf-opt input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.rf-donate-widget__options .rf-opt-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rf-donate-widget__options .rf-opt-btn:hover {
  border-color: var(--primary);
  background: #eef8f5;
  color: var(--primary);
}
.rf-donate-widget__options .rf-opt-btn.is-active {
  border-color: var(--primary);
  background: #eef8f5;
  color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary);
}
.rf-donate-widget__options .rf-opt-btn.is-active .rf-opt__text,
.rf-donate-widget__options .rf-opt-btn.is-active .rf-opt__amount {
  color: var(--primary) !important;
}
.rf-donate-widget__options .rf-opt__amount {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: #234840;
  white-space: nowrap;
}
.rf-amount-list--grid button.is-active {
  border-color: var(--primary) !important;
  background: #eef8f5 !important;
  color: var(--primary) !important;
}
.rf-donate-widget__custom {
  margin-top: 12px;
}
.rf-donate-widget__custom-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.rf-donate-widget__custom-row .rf-custom-amount {
  flex: 1;
  margin-bottom: 0 !important;
}
.rf-donate-widget__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  background: #eef8f5;
  border-radius: 10px;
  font-size: 14px;
}
.rf-donate-widget__total strong {
  color: var(--primary);
  font-size: 16px;
}
.rf-donate-widget__hint {
  font-size: 12px;
  color: var(--primary);
  margin: 8px 0 0;
}
.rf-donate-widget__hint.is-error {
  color: #b42318;
}
.rf-donate-widget.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.rf-complete-donation-btn.disabled {
  pointer-events: none;
  opacity: 0.55;
}

/* ===== Zakat Calculator page ===== */
.rf-zakat-hero {
  background: linear-gradient(135deg, #0d3d38 0%, #1B695C 55%, #145249 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.rf-zakat-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,85,21,0.18);
}
.rf-zakat-hero::after {
  content: "\f1ec";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 8%;
  bottom: 10%;
  font-size: 120px;
  color: rgba(255,255,255,0.08);
}
.rf-zakat-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}
.rf-breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: #777;
}
.rf-breadcrumb a { color: var(--primary); text-decoration: none; }
.rf-breadcrumb span { margin: 0 6px; color: #bbb; }

.rf-zakat-calc { max-width: 920px; margin: 0 auto; }
.rf-zakat-block {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
}
.rf-zakat-block h3 {
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}
.rf-z-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}
.rf-z-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rf-z-input span {
  background: #f3f7f6;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-right: 1px solid #ddd;
}
.rf-z-input input {
  border: 0 !important;
  outline: none;
  flex: 1;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #111 !important;
  background: #fff !important;
  -webkit-text-fill-color: #111 !important;
  min-height: 48px;
  width: 100%;
  border-radius: 0 !important;
}
.rf-nisab-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 767.98px) {
  .rf-nisab-opts { grid-template-columns: 1fr; }
}
.rf-nisab-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  margin: 0;
  background: #fff;
}
.rf-nisab-opt.is-active {
  border-color: var(--primary);
  background: #eef8f5;
}
.rf-nisab-opt input { margin-top: 3px; accent-color: var(--primary); }
.rf-nisab-opt strong { display: block; color: var(--primary); font-size: 15px; }
.rf-nisab-opt small { color: #666; font-size: 12px; line-height: 1.4; }

.rf-zakat-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f7fbfa;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 22px;
}
.rf-zakat-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
}
.rf-zakat-totals .lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-bottom: 4px;
}
.rf-zakat-totals strong {
  font-size: 28px;
  color: #111;
  font-weight: 800;
}
.rf-zakat-totals strong.pay {
  color: var(--primary);
}
.rf-zakat-status {
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-top: 4px;
}

/* Muharram thematic page */
.rf-muharram-hero {
  background: linear-gradient(180deg, #2a1810 0%, #4a2c1a 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rf-muharram-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/banner3.jpg') center/cover;
  opacity: 0.35;
}
.rf-muharram-hero h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rf-muharram-hero .ar {
  position: relative;
  z-index: 2;
  color: #f0d9a8;
  font-size: 28px;
  margin-bottom: 8px;
}
.rf-date-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.rf-date-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.rf-date-card .body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rf-date-card h4 {
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
}
.rf-muharram-band {
  background: linear-gradient(135deg, #3d2418, #1a100c);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.rf-muharram-band h2 { color: #f0d9a8; font-weight: 800; margin-bottom: 14px; }
.rf-muharram-band p { max-width: 720px; margin: 0 auto; opacity: 0.92; }

/* Digital volunteer */
.rf-dv-hero {
  background: linear-gradient(135deg, #0d2a26, #1B695C);
  padding: 60px 0 48px;
  color: #fff;
  text-align: center;
}
.rf-dv-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.rf-dv-roles .role {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.rf-dv-roles .role i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}
@media (max-width: 991.98px) {
  .rf-dv-roles { grid-template-columns: repeat(2, 1fr); }
}
.rf-dv-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
}
.rf-dv-form .form-group {
  margin-bottom: 16px;
  position: relative;
}
.rf-dv-form label {
  font-weight: 700;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  display: block;
}
.rf-dv-form .input-icon {
  position: relative;
}
.rf-dv-form .input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 14px;
}
.rf-dv-form .input-icon input,
.rf-dv-form .input-icon select,
.rf-dv-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-weight: 600;
  color: #111 !important;
  background: #fff !important;
  -webkit-text-fill-color: #111 !important;
  min-height: 48px;
}
.rf-dv-form textarea {
  padding-left: 14px;
  min-height: 110px;
}
.rf-dv-form select {
  padding-left: 40px;
}

.rf-zigzag {
  padding: 40px 0;
}
.rf-zigzag .rf-zig-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.rf-zigzag .rf-zig-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.rf-zigzag h3 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.rf-zigzag ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}
.rf-zigzag ul li { margin-bottom: 8px; }

.rf-impact-boxes .box {
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  height: 100%;
}
.rf-impact-boxes .box h4 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}
.rf-impact-boxes .box ul {
  margin: 0;
  padding-left: 1.1rem;
}
.rf-impact-boxes .box li { margin-bottom: 6px; color: rgba(255,255,255,0.92); }

.rf-scheme-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  transition: box-shadow 0.2s;
}
.rf-scheme-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.rf-scheme-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.rf-scheme-card h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}
.rf-scheme-card .price {
  font-weight: 800;
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 6px;
}
.rf-scheme-card .btn {
  padding: 4px 12px;
  font-size: 12px;
}

.rf-plans-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}
.rf-plans-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 12px;
  font-size: 13px;
  text-align: left;
}
.rf-plans-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
}
.rf-plans-table tr:nth-child(even) td { background: #f7fbfa; }

.rf-quote-band {
  background: linear-gradient(135deg, #0e3d38, #1B695C);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  position: relative;
}
.rf-quote-band h3 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-quote-band p {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
  font-size: 17px;
}

.rf-faq-list .accordion-item {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}
.rf-faq-list .accordion-button {
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
}
.rf-faq-list .accordion-button:not(.collapsed) {
  color: var(--secondary);
  background: transparent;
}
.rf-faq-list .accordion-body {
  padding: 0 0 16px;
  color: #555;
}

.rf-camp-video {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
}
.rf-camp-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.rf-thumb-row img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}


/* ===== Service program template ===== */
.rf-svc-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 340px;
}
.rf-svc-hero__media {
  background: #333 center/cover no-repeat;
  min-height: 280px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.rf-svc-hero__panel {
  background: var(--svc-accent, var(--primary));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  margin-left: -8%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.rf-svc-hero__panel i {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.95;
}
.rf-svc-hero__panel h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.rf-svc-hero__panel p {
  margin: 10px 0 0;
  opacity: 0.9;
  max-width: 280px;
}
@media (max-width: 767.98px) {
  .rf-svc-hero {
    grid-template-columns: 1fr;
  }
  .rf-svc-hero__media,
  .rf-svc-hero__panel {
    clip-path: none;
    margin: 0;
  }
}

.rf-svc-heading {
  font-weight: 800;
  color: #1a1a1a;
  font-size: 32px;
}
.rf-svc-heading span {
  color: var(--svc-accent, var(--primary));
}

.rf-svc-packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 992px) {
  .rf-svc-packages { grid-template-columns: repeat(3, 1fr); }
}
.rf-svc-pkg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f4f7f6;
  border: 1px solid #e0e8e6;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: 0.2s;
}
.rf-svc-pkg:hover {
  border-color: var(--svc-accent, var(--primary));
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.rf-svc-pkg__label {
  font-weight: 700;
  color: #222;
  font-size: 14px;
}
.rf-svc-pkg__price {
  font-weight: 800;
  color: var(--secondary);
  white-space: nowrap;
  font-size: 14px;
}

.rf-svc-stats {
  background: color-mix(in srgb, var(--svc-accent, var(--primary)) 12%, #fff);
  padding: 36px 0;
}
.rf-svc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 991.98px) {
  .rf-svc-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
.rf-svc-stats .item i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--svc-accent, var(--primary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 20px;
}
.rf-svc-stats .item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--svc-accent-dark, var(--primary));
}
.rf-svc-stats .item span {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.rf-svc-story {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/11;
}
.rf-svc-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rf-svc-story__cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.rf-svc-story__cap i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-svc-mission {
  background: #111 center/cover no-repeat;
  position: relative;
  padding: 64px 0;
  color: #fff;
}
.rf-svc-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 28, 0.82);
}
.rf-svc-mission .container { position: relative; z-index: 2; }
.rf-svc-mission h2 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.rf-svc-mission > .container > p {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.92;
}
.rf-svc-sub {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}
.rf-svc-sub img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.rf-svc-sub span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
}
.rf-svc-tabs .nav-link {
  color: var(--svc-accent, var(--primary));
  font-weight: 700;
  border-radius: 999px;
  margin: 4px;
}
.rf-svc-tabs .nav-link.active {
  background: var(--svc-accent, var(--primary));
  color: #fff;
}

/* ===== Islamic template ===== */
.rf-isl-hero {
  min-height: 340px;
  background: #2a1810 center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.rf-isl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 8, 0.55);
}
.rf-isl-hero .container { position: relative; z-index: 2; color: #fff; }
.rf-isl-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.rf-isl-hero__ar {
  color: #f0d9a8;
  font-size: 28px;
  margin-bottom: 8px;
}
.rf-isl-hero p {
  margin-top: 12px;
  opacity: 0.92;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.rf-isl-theme-teal .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-teal { background-color: #145249; }
.rf-isl-theme-teal .rf-isl-hero::before,
.rf-isl-hero.rf-isl-theme-teal::before { background: rgba(14, 60, 55, 0.55); }
.rf-isl-theme-zakat .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-zakat { background-color: #1B695C; }
.rf-isl-theme-sadaqah .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-sadaqah { background-color: #1B695C; }
.rf-isl-theme-qurbani .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-qurbani { background-color: #0d3d4d; }
.rf-isl-theme-muharram .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-muharram { background-color: #3d2418; }
.rf-isl-theme-fidya .rf-isl-hero,
.rf-isl-theme-fitrana .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-fidya,
.rf-isl-hero.rf-isl-theme-fitrana { background-color: #8a5a12; }
.rf-isl-theme-kaffarah .rf-isl-hero,
.rf-isl-hero.rf-isl-theme-kaffarah { background-color: #2a1540; }

.rf-isl-heading {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}
.rf-isl-prose h3 {
  color: var(--primary);
  font-weight: 800;
  margin: 28px 0 12px;
  font-size: 22px;
}
.rf-isl-prose p { margin-bottom: 14px; color: #444; }
.rf-isl-prose ul { padding-left: 1.2rem; margin-bottom: 14px; }
.rf-isl-prose li { margin-bottom: 6px; }

.rf-isl-resources__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rf-isl-resources__list a {
  color: #444;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}
.rf-isl-resources__list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.rf-isl-band {
  background: linear-gradient(135deg, #3d2418, #1a100c);
  color: #fff;
  padding: 56px 0;
}
.rf-isl-theme-teal .rf-isl-band,
.rf-isl-theme-zakat .rf-isl-band,
.rf-isl-theme-sadaqah .rf-isl-band,
.rf-isl-band.rf-isl-theme-teal,
.rf-isl-band.rf-isl-theme-zakat,
.rf-isl-band.rf-isl-theme-sadaqah {
  background: linear-gradient(135deg, #0e3d38, #1B695C);
}
.rf-isl-theme-qurbani .rf-isl-band,
.rf-isl-band.rf-isl-theme-qurbani {
  background: linear-gradient(135deg, #0d3d4d, #1B695C);
}
.rf-isl-band.rf-isl-theme-muharram {
  background: linear-gradient(135deg, #3d2418, #1a100c);
}
.rf-isl-band h2 {
  color: #f0d9a8;
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-isl-band p {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.92;
}

.rf-svc-hub-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  height: 100%;
  transition: transform 0.2s;
}
.rf-svc-hub-card:hover { transform: translateY(-4px); }
.rf-svc-hub-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.rf-svc-hub-card .body {
  padding: 18px;
}
.rf-svc-hub-card h3 {
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}
.rf-svc-hub-card p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Fix demo watermark in breadcrumb separators */
:root {
  --bs-breadcrumb-divider: "/";
}
.breadcrumb-item + .breadcrumb-item::before {
  content: var(--bs-breadcrumb-divider, "/") !important;
  float: none;
  padding-right: 0.5rem;
  color: inherit;
}
section.promo-sec .breadcrumb-item + .breadcrumb-item::before {
  content: "/" !important;
  color: #fff !important;
  font-size: 16px;
  padding: 0 8px;
  float: none;
}

.rf-svc-stats__grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.rf-svc-packages {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .rf-svc-packages { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .rf-svc-packages { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Mobile service / islamic / donate fixes ===== */
@media (max-width: 767.98px) {
  .rf-svc-packages {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .rf-svc-pkg {
    flex-direction: row;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }

  .rf-svc-pkg__label {
    font-size: 14px;
    line-height: 1.35;
    flex: 1;
  }

  .rf-svc-pkg__price {
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .rf-svc-heading {
    font-size: 24px;
  }

  .rf-svc-hero__media {
    min-height: 220px;
  }

  .rf-svc-hero__panel {
    padding: 28px 20px;
  }

  .rf-svc-hero__panel h1 {
    font-size: 26px;
  }

  .rf-svc-stats__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }

  .rf-svc-mission {
    padding: 40px 0;
  }

  .rf-svc-sub img {
    height: 120px;
  }

  .rf-donate-widget {
    position: static !important;
    top: auto !important;
    margin-top: 8px;
  }

  .rf-amount-list--grid {
    grid-template-columns: 1fr 1fr;
  }

  .rf-isl-hero {
    min-height: 260px;
  }

  .rf-isl-hero h1 {
    font-size: 28px;
  }

  .rf-feature-strip {
    grid-template-columns: 1fr !important;
  }

  .rf-stat-cards {
    grid-template-columns: 1fr 1fr !important;
  }

  .rf-icon-bar {
    grid-template-columns: 1fr 1fr !important;
  }

  .rf-zakat-result {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-zakat-totals {
    gap: 16px;
  }

  .rf-zakat-totals strong {
    font-size: 22px;
  }

  .rf-nisab-opts {
    grid-template-columns: 1fr !important;
  }

  .rf-dv-roles {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .scroll-top {
    display: none !important;
  }

  .rf-svc-page .text-end .btn,
  .rf-svc-page .btn-secondary {
    width: 100%;
    margin-top: 8px;
  }

  .sec-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .rf-breadcrumb {
    font-size: 12px;
    padding: 10px 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Back-to-top removed (conflicts with WhatsApp float) */
.scroll-top {
  display: none !important;
}
.scroll-top:after {
  display: none !important;
}
.scroll-top svg {
  display: none !important;
}

@media (max-width: 575.98px) {
  .rf-stat-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Rabi-ul-Awal Academic Scholarship page ===== */
.rf-rabi-hero {
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(255, 85, 21, 0.12), transparent 60%),
    linear-gradient(135deg, #f7fbfa 0%, #eef6f3 45%, #fff8f3 100%);
  padding: 48px 0 40px;
  overflow: hidden;
}
.rf-rabi-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.rf-rabi-hero h1 {
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.rf-rabi-hero .lead {
  color: #444;
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 22px;
}
.rf-rabi-hero-visual {
  position: relative;
}
.rf-rabi-hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(27, 105, 92, 0.18);
  display: block;
}
.rf-rabi-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #145249, #1B695C 55%, #ff5515);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  padding: 12px;
}
.rf-rabi-badge .ar {
  font-size: 18px;
  color: #f0d9a8;
  line-height: 1.2;
}
.rf-rabi-badge strong {
  font-size: 13px;
  margin-top: 4px;
}
.rf-rabi-badge small {
  font-size: 10px;
  opacity: 0.9;
  line-height: 1.2;
  margin-top: 2px;
}
.rf-rabi-mabrook {
  color: var(--secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  margin-bottom: 6px;
}
.rf-rabi-stat {
  background: #f0faf7;
  border: 1px solid #d7ebe6;
  border-radius: 14px;
  padding: 18px;
  height: 100%;
}
.rf-rabi-stat strong {
  display: block;
  font-size: 36px;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.rf-rabi-stat span {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  line-height: 1.4;
}
.rf-rabi-band {
  background:
    linear-gradient(rgba(14, 40, 38, 0.88), rgba(14, 40, 38, 0.92)),
    url('../images/rabi/band.jpg') center/cover no-repeat;
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.rf-rabi-band h2 {
  color: #f0d9a8;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 14px;
}
.rf-rabi-band p {
  max-width: 700px;
  margin: 0 auto 10px;
  opacity: 0.95;
  font-size: 16px;
}
.rf-rabi-band__quote {
  font-size: clamp(18px, 2.5vw, 24px) !important;
  font-style: italic;
  line-height: 1.45;
  color: #fff !important;
  opacity: 1 !important;
  max-width: 780px !important;
}
.rf-rabi-quote {
  background: #f4faf8;
  border-left: 4px solid var(--primary);
  padding: 16px 18px !important;
  margin: 18px 0 22px;
  border-radius: 0 10px 10px 0;
  position: relative;
  overflow: hidden;
}
/* Kill theme quote icon on all site blockquotes */
blockquote::before,
blockquote.rf-rabi-quote::before,
.rf-rabi-quote::before {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
blockquote cite::before,
.rf-rabi-quote cite::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}
.rf-rabi-quote p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a3d36;
  line-height: 1.55;
}
.rf-rabi-quote cite {
  font-size: 13px;
  color: #666;
  font-style: normal;
  padding-left: 0 !important;
}
.rf-rabi-impact {
  background: #fff;
  border-radius: 14px;
  padding: 22px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
  border-top: 3px solid var(--secondary);
  height: 100%;
}
.rf-rabi-impact strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
}
.rf-rabi-impact span {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .rf-rabi-hero {
    padding: 28px 0 24px;
  }
  .rf-rabi-hero-img {
    height: 240px;
  }
  .rf-rabi-badge {
    width: 110px;
    height: 110px;
    right: 10px;
    bottom: 10px;
  }
  .rf-rabi-band {
    padding: 44px 0;
  }
}

/* Mega menu 3-col + app links */
.rf-mega-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rf-mega-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* About mega: 2×2 blocks — Get in Touch aligns with Where We Work */
.rf-mega-menu .rf-mega-grid.rf-mega-grid--about {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
  grid-template-rows: auto auto;
  gap: 22px 36px;
  width: max-content;
  max-width: 100%;
}
.rf-mega-menu.rf-mega-menu--about {
  overflow: visible !important;
  padding: 24px 28px !important;
}
.rf-mega-menu .rf-mega-grid--about .rf-mega-block h6 {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rf-mega-menu .rf-mega-grid--about .rf-mega-block a {
  display: block;
  color: #222 !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 0;
  text-decoration: none;
  background: transparent !important;
  white-space: nowrap;
}
.rf-mega-menu .rf-mega-grid--about .rf-mega-block a:hover {
  color: var(--secondary) !important;
}
.rf-mega-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-mega-apps .rf-app-link {
  display: inline-block;
  background: #111;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
}
.rf-mega-apps .rf-app-link:hover {
  background: var(--primary);
  color: #fff !important;
}
@media (max-width: 1199.98px) {
  .rf-mega-grid--3 {
    grid-template-columns: 1fr !important;
  }
  .rf-mega-menu .rf-mega-grid.rf-mega-grid--about {
    grid-template-columns: 1fr !important;
    width: 100%;
  }
}

/* ===== Global layout: stop horizontal scroll + align header/content ===== */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
}

/* Match header .ct-container to page .container (was 1730px vs 1290px) */
.container.ct-container,
.ct-container {
  max-width: 1290px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .container.ct-container,
  .ct-container,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Mega menus: solid panel, full nav width on desktop */
.header.header-rf .rf-mega-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-sizing: border-box;
  z-index: 1080 !important;
}
@media (min-width: 1200px) {
  .header.header-rf .navbar .navbar-nav > .nav-item > .dropdown-menu.rf-mega-menu,
  .header.header-rf .rf-mega-menu {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .header.header-rf .navbar .navbar-nav > .nav-item > .dropdown-menu.rf-mega-menu.rf-mega-menu--about,
  .header.header-rf .rf-mega-menu.rf-mega-menu--about {
    width: max-content !important;
    min-width: 460px !important;
    max-width: min(560px, calc(100vw - 32px)) !important;
  }
}

/* Offcanvas: avoid 100vw scrollbar overflow (mobile only).
   Offcanvas is moved under <body> by Bootstrap — don't scope under .header */
@media (max-width: 1199.98px) {
  .offcanvas-nav {
    width: min(100%, 300px) !important;
    max-width: 88vw !important;
    border-right: 1px solid #e5ece9;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
  }

  /* Lock page behind menu — do NOT set touch-action:none on body
     (that breaks panel scrolling on Android/iOS). */
  html.rf-nav-open,
  html.rf-nav-open body,
  body.rf-nav-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    height: 100% !important;
  }
  html.rf-nav-open.lenis,
  html.rf-nav-open.lenis body {
    overflow: hidden !important;
  }
  html.rf-nav-open .rf-donate-float,
  html.rf-nav-open .scroll-top {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Crowded header CTAs wrap instead of overflowing */
.header.header-rf .rf-nav-cta {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
@media (min-width: 1200px) {
  .header.header-rf .rf-nav-row {
    flex-wrap: nowrap;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header.header-rf .rf-nav-cta {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1199.98px) {
  .header.header-rf .rf-nav-row {
    flex-wrap: nowrap !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Footer newsletter feedback */
.rf-subscribe-alert {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.rf-subscribe-alert--ok {
  background: rgba(255, 255, 255, 0.14);
  color: #e8fff0;
  border: 1px solid rgba(120, 220, 160, 0.35);
}
.rf-subscribe-alert--err {
  background: rgba(180, 40, 40, 0.35);
  color: #ffe8e8;
  border: 1px solid rgba(255, 160, 160, 0.4);
}

/* Footer bottom: copyright + links — wrap on mobile, no page scrollbar */
.footer-bottom .rf-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  max-width: 100%;
  overflow: visible;
}
.footer-bottom .copy-right {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}
.footer-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  max-width: 100%;
}
.footer-nav ul li {
  position: relative;
  flex-shrink: 0;
}
.footer-nav ul li a {
  padding: 8px 10px !important;
  white-space: nowrap;
  font-size: 14px;
}
@media (max-width: 991.98px) {
  .footer-bottom .rf-footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }
  .footer-nav {
    width: 100%;
  }
  .footer-nav ul {
    justify-content: flex-start;
  }
  .footer-bottom .copy-right {
    text-align: left;
    width: 100%;
    font-size: 13px;
  }
  .footer-nav ul li a {
    padding: 6px 8px 6px 0 !important;
    font-size: 13px;
  }
}
@media (max-width: 575.98px) {
  .footer-bottom {
    padding: 14px 0 !important;
  }
  .footer-bottom .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden;
  }
  .footer-bottom .copy-right {
    font-size: 12.5px;
    line-height: 1.5;
  }
}

/* Rows inside full-bleed sections shouldn't spill */
.header.header-rf,
.footer,
main,
.promo-sec {
  max-width: 100%;
}

/* ===== Global +3px font size bump ===== */
:root {
  --font-size-base: 19px;
  --line-height-base: 30px;
}
.header.header-rf .navbar .navbar-nav > li a.nav-link {
  font-size: 17.5px !important;
}
.header.header-rf .rf-top-contact a {
  font-size: 15.5px;
}
.header.header-rf .rf-btn {
  font-size: 16px;
}
.rf-mega-menu .rf-mega-col h6 {
  font-size: 17px;
}
.rf-mega-menu .rf-mega-col a {
  font-size: 16.5px;
}

/* Campaign / content headings (desktop defaults) */
.rf-camp-intro h2,
.rf-isl-heading {
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2.35rem);
  line-height: 1.25;
}

/* ===== Mobile typography: readable, not oversized ===== */
@media (max-width: 991.98px) {
  :root {
    --font-size-base: 16px;
    --line-height-base: 1.65;
  }
  body {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  p,
  li,
  .lead {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  .lead {
    font-size: 17px !important;
  }

  h1, .h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  h2, .h2,
  .sec-title,
  .rf-camp-intro h2,
  .rf-isl-heading {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    overflow: visible !important;
  }
  h3, .h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }
  h4, .h4, .h5, h5 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }
  .sub-title {
    font-size: 22px !important;
    margin-bottom: 10px;
  }
  .display-2, .display-3, .display-4, .display-5 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  .rf-camp-badge {
    font-size: 1.1rem;
  }
  .rf-camp-badge span {
    font-size: 1.35rem !important;
  }
  .rf-camp-quote {
    font-size: 15px;
    padding: 14px 16px;
  }
  .rf-isl-prose h3 {
    font-size: 1.15rem !important;
  }
  .rf-isl-prose p,
  .rf-isl-prose li {
    font-size: 15.5px !important;
  }
}

@media (max-width: 575.98px) {
  :root {
    --font-size-base: 15px;
    --line-height-base: 1.6;
  }
  body {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  p, li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  h1, .h1 {
    font-size: 1.55rem !important;
  }
  h2, .h2,
  .sec-title,
  .rf-camp-intro h2,
  .rf-isl-heading {
    font-size: 1.35rem !important;
    line-height: 1.28 !important;
    margin-bottom: 12px;
  }
  h3, .h3 {
    font-size: 1.15rem !important;
  }
  .sub-title {
    font-size: 20px !important;
  }
  .btn {
    font-size: 14px;
  }
}

/* ===== Contact page: equal cards + centered full-width form ===== */
.rf-contact-page .map-info > [class*="col-"] {
  display: flex;
}
.rf-contact-page .m-inf-item {
  width: 100%;
  height: 100%;
  min-height: 140px;
  box-sizing: border-box;
}
.rf-contact-page .m-inf-txt {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
}
.rf-contact-page .m-inf-txt p {
  margin-bottom: 8px;
  min-height: 28px;
}
.rf-contact-form {
  width: 100%;
  background: #fff;
  padding: 36px 32px !important;
  box-shadow: 0 10px 30px rgba(27, 105, 92, 0.08);
}
.rf-contact-form .form-group {
  width: 100%;
}
.rf-contact-form .half-group {
  width: 100%;
}
@media (max-width: 575.98px) {
  .rf-contact-form {
    padding: 24px 18px !important;
  }
}

/* Floating donate button — align with scroll-top (bottom-right arrow) */
.rf-donate-float {
  position: fixed;
  left: 12px;
  right: auto;
  bottom: 28px;
  z-index: 1040;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.2s ease;
  /* keep float inside viewport so it never creates horizontal scroll */
  max-width: calc(100vw - 24px);
}
.rf-donate-float img {
  object-fit: contain;
  width: 72px;
  height: 72px;
  max-width: 100%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}
.rf-donate-float:hover {
  transform: translateY(-4px) scale(1.04);
}
@media (max-width: 575.98px) {
  .rf-donate-float {
    width: 56px;
    height: 56px;
    left: 10px;
    right: auto;
    bottom: 22px;
  }
  .rf-donate-float img {
    width: 56px;
    height: 56px;
  }
}

/* Volunteer page frame */
.rf-vol-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.rf-vol-frame {
  position: relative;
  padding: 14px;
}
.rf-vol-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--primary);
  transform: translate(14px, 14px);
  z-index: 0;
}
.rf-vol-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}

/* Volunteer apply form — row spacing */
.new-volunteer-form .volunteer-form .form-group,
.new-volunteer-form .vol-form .form-group {
  margin-bottom: 22px;
}
.new-volunteer-form .volunteer-form .form-group label,
.new-volunteer-form .vol-form .form-group label {
  display: block;
  margin-bottom: 8px;
}
.new-volunteer-form .form-row-gap {
  margin-bottom: 22px;
  gap: 1rem !important;
}
.new-volunteer-form .form-row-gap > .form-group {
  margin-bottom: 0;
}
@media (max-width: 575.98px) {
  .new-volunteer-form .form-row-gap > .form-group {
    margin-bottom: 22px;
  }
  .new-volunteer-form .form-row-gap > .form-group:last-child {
    margin-bottom: 0;
  }
}

/* ===== User profile (Alkhidmat-style) ===== */
.rf-profile-page .rf-profile-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: stretch;
}
.rf-profile-identity {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}
.rf-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 12px;
  display: block;
  box-sizing: border-box;
}
.rf-profile-avatar--empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8f2f0 0%, #d5e6e2 100%);
  color: #6f9089;
  overflow: hidden;
  flex-shrink: 0;
}
.rf-profile-avatar--empty i {
  font-size: 52px;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.rf-profile-avatar--empty i::before {
  display: block;
  line-height: 1;
}
.rf-profile-identity h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #1a1a1a;
}
.rf-profile-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.rf-profile-meta {
  background: #f3f5f4;
  border-radius: 12px;
  padding: 28px 28px 20px;
  position: relative;
}
.rf-profile-logout {
  position: absolute;
  top: 16px;
  right: 16px;
}
.rf-profile-meta ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.rf-profile-meta li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e6e4;
  font-weight: 600;
  color: #333;
}
.rf-profile-meta li:last-child { border-bottom: none; }
.rf-profile-block {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}
.rf-profile-block h3 {
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 800;
}
.rf-profile-table thead th {
  background: #eef2f1;
  font-weight: 700;
  white-space: nowrap;
}
.rf-profile-table td, .rf-profile-table th {
  vertical-align: middle;
}
@media (max-width: 767.98px) {
  .rf-profile-page .rf-profile-head {
    grid-template-columns: 1fr;
  }
  .rf-profile-logout {
    position: static;
    margin-bottom: 12px;
  }
}

/* Hide bag badge when empty already handled in PHP; style empty amount */
.rf-donation-bag .rf-bag-badge:empty { display: none; }

.rf-profile-actions .btn-secondary,
.rf-profile-logout.btn-secondary {
  background: var(--secondary, #ff5515) !important;
  border-color: var(--secondary, #ff5515) !important;
  color: #fff !important;
}
.rf-profile-actions .btn-outline-danger {
  border-color: var(--secondary, #ff5515);
  color: var(--secondary, #ff5515);
}
.rf-profile-actions .btn-outline-danger:hover {
  background: var(--secondary, #ff5515);
  color: #fff;
}
.rf-panel {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.05);
}

/* ===== International Partners page ===== */
.rf-partners-page .rf-partner-card {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 12px;
  padding: 28px 26px 22px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rf-partner-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rf-partner-card__head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.rf-partner-card > p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.rf-partner-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.rf-partner-card__actions > a:not(.rf-partner-web) {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  text-decoration: none;
}
.rf-partner-card__actions > a:not(.rf-partner-web):hover {
  background: var(--primary);
  color: #fff;
}
.rf-partner-web {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}
.rf-partner-web:hover {
  background: #145249;
  color: #fff !important;
}

/* ===== Team page ===== */
.rf-president-sec {
  background: #fff;
}
.rf-president-photo {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.rf-president-photo__frame {
  position: relative;
  padding: 10px;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 10px 10px 0 rgba(var(--primary-rgb), 0.15);
}
.rf-president-photo__frame img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.rf-president-photo__name {
  margin: 18px 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}
.rf-president-photo__role {
  margin: 0;
  color: #666;
  font-weight: 600;
}
.rf-president-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
}
.rf-president-body p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 16px;
}
.rf-read-more {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}
.rf-read-more:hover { color: #e0480f; }

.rf-team-sec {
  background: #f7f8f7;
}
.rf-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 22px;
}
.rf-team-card {
  width: calc(25% - 18px);
  max-width: 240px;
  min-width: 180px;
  text-align: center;
}
.rf-team-card__media {
  position: relative;
  margin-bottom: 14px;
}
.rf-team-card__media::before {
  content: "";
  position: absolute;
  inset: 10px -8px -8px 8px;
  background: var(--primary);
  z-index: 0;
}
.rf-team-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.rf-team-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #1a1a1a;
}
.rf-team-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}
@media (max-width: 991.98px) {
  .rf-team-card { width: calc(33.333% - 16px); }
  .rf-president-title { font-size: 28px; }
}
@media (max-width: 575.98px) {
  .rf-team-card { width: calc(50% - 12px); min-width: 0; }
}

/* ===== Legal / Privacy ===== */
.rf-legal-page h3 { color: var(--primary); font-weight: 800; }
.rf-legal-page ul { padding-left: 1.2rem; }
.rf-legal-page li { margin-bottom: 6px; }

/* ===== Blogs and News ===== */
.rf-blogs-news { background: #f7f8f7; }
.rf-section-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.rf-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px !important;
}
.rf-blog-cat {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e5e9e8;
  color: #333;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.rf-blog-cat:hover,
.rf-blog-cat.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.rf-blog-featured-row {
  margin-bottom: 0 !important;
}
.rf-blog-featured {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  height: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8eeec;
}
.rf-blog-featured__thumb {
  display: block;
  width: 100%;
  height: 220px;
  max-height: 220px;
  overflow: hidden;
  background: #e8eeec;
  flex-shrink: 0;
}
.rf-blog-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.rf-blog-featured:hover .rf-blog-featured__thumb img { transform: scale(1.03); }
.rf-blog-featured__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rf-blog-featured__body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.3;
}
.rf-blog-featured__body h2 a { color: #1a1a1a; text-decoration: none; }
.rf-blog-featured__body h2 a:hover { color: var(--primary); }
.rf-blog-featured__body p {
  color: #555;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-blog-featured__body .rf-blog-card__meta {
  margin-top: 0;
  margin-bottom: 14px;
  border-top: none;
  padding-top: 0;
}
.rf-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--secondary);
  text-decoration: none;
  width: fit-content;
}
.rf-blog-readmore:hover { color: #e0480f; }
.rf-blog-readmore i { font-size: 12px; }

@media (min-width: 992px) {
  .rf-blog-featured--solo {
    flex-direction: row;
    align-items: stretch;
    min-height: 240px;
  }
  .rf-blog-featured--solo .rf-blog-featured__thumb {
    flex: 0 0 44%;
    width: 44%;
    height: auto;
    max-height: none;
    min-height: 240px;
  }
  .rf-blog-featured--solo .rf-blog-featured__body {
    flex: 1;
    justify-content: center;
    padding: 28px 30px;
  }
  .rf-blog-featured--solo .rf-blog-featured__body h2 {
    font-size: 1.55rem;
  }
}

.rf-top-stories {
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  border: 1px solid #e8eeec;
  min-height: 120px;
}
.rf-top-story {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.rf-top-story:last-child { border-bottom: none; }
.rf-top-story img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e8eeec;
}
.rf-top-story h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
  line-height: 1.35;
}
.rf-top-story:hover h4 { color: var(--primary); }
.rf-top-story small { color: #888; }

.rf-blog-latest-head {
  margin-top: 48px;
  margin-bottom: 22px;
  padding-top: 28px;
  border-top: 1px solid #dde6e3;
}
.rf-blog-empty-note {
  background: #fff;
  border: 1px dashed #cfdad6;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #6a7a76;
}

.rf-blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  border: 1px solid #e8eeec;
  height: 100%;
}
.rf-blog-card__thumb {
  display: block;
  height: 180px;
  max-height: 180px;
  overflow: hidden;
  background: #e8eeec;
  flex-shrink: 0;
}
.rf-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rf-blog-card:hover .rf-blog-card__thumb img { transform: scale(1.04); }
.rf-blog-card__body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rf-blog-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.rf-blog-card__body h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.35;
}
.rf-blog-card__body h3 a { color: #1a1a1a; text-decoration: none; }
.rf-blog-card__body h3 a:hover { color: var(--primary); }
.rf-blog-card__body p {
  color: #666;
  font-size: 14px;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: auto;
}
.rf-blog-card__meta i { margin-right: 4px; color: var(--primary); }

.rf-load-more {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 4px;
}
.rf-load-more:hover {
  background: #e0480f !important;
  border-color: #e0480f !important;
  color: #fff !important;
}
.rf-load-more:disabled {
  opacity: .7;
}

@media (max-width: 767.98px) {
  .rf-blog-featured__thumb {
    height: 180px;
    max-height: 180px;
  }
  .rf-blog-card__thumb {
    height: 160px;
    max-height: 160px;
  }
  .rf-blog-latest-head {
    margin-top: 36px;
    padding-top: 22px;
  }
  .rf-blog-featured__body h2 {
    font-size: 1.2rem;
  }
}

/* ===== Ramadan appeal page ===== */
.rf-ramadan-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d3d4d;
}
.rf-ramadan-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.rf-ramadan-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13,61,77,.88) 0%, rgba(27,105,92,.72) 55%, rgba(255,85,21,.35) 100%);
}
.rf-ramadan-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 72px 0 64px;
}
.rf-ramadan-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
  opacity: .9;
  margin-bottom: 8px;
}
.rf-ramadan-hero__ar {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}
.rf-ramadan-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-ramadan-hero p {
  max-width: 620px;
  margin: 0 auto 22px;
  opacity: .92;
}
.rf-ramadan-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rf-ramadan-strip {
  background: var(--primary);
  color: #fff;
  padding: 14px 0;
  font-weight: 600;
}
.rf-ramadan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rf-ramadan-stat {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}
.rf-ramadan-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}
.rf-ramadan-stat span {
  font-size: 13px;
  color: #666;
}
.rf-ramadan-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.rf-ramadan-checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-weight: 600;
  color: #333;
}
.rf-ramadan-checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}
.rf-ramadan-challenge {
  background: linear-gradient(115deg, #0d3d4d, #1B695C 60%, #145249);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.rf-ramadan-challenge__label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
  margin-bottom: 8px;
}
.rf-ramadan-challenge h2 {
  font-weight: 800;
  margin-bottom: 12px;
}
.rf-ramadan-challenge p {
  max-width: 560px;
  margin: 0 auto 22px;
  opacity: .92;
}
.rf-ramadan-challenge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rf-ramadan-resources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-ramadan-res {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.rf-ramadan-res:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
  color: inherit;
}
.rf-ramadan-res__img {
  width: 88px;
  height: 68px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.rf-ramadan-res__body strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
}
.rf-ramadan-res__body em {
  font-style: normal;
  font-size: 13px;
  color: #777;
}
.rf-ramadan-res__go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,85,21,.12);
  color: var(--secondary);
  display: grid;
  place-items: center;
}
.rf-ramadan-story {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #eee;
  height: 100%;
}
.rf-ramadan-story img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.rf-ramadan-story h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.rf-ramadan-story p { font-size: 14px; color: #555; margin-bottom: 8px; }
.rf-ramadan-story strong { font-size: 13px; color: var(--secondary); }
.rf-ramadan-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rf-ramadan-tools a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  transition: border-color .2s, box-shadow .2s;
}
.rf-ramadan-tools a:hover {
  border-color: var(--secondary);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  color: var(--secondary);
}
.rf-ramadan-tools i { font-size: 22px; color: var(--secondary); }
@media (max-width: 991px) {
  .rf-ramadan-stats { grid-template-columns: 1fr; }
  .rf-ramadan-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .rf-ramadan-res { grid-template-columns: 64px 1fr 32px; }
  .rf-ramadan-res__img { width: 64px; height: 54px; }
  .rf-ramadan-story { grid-template-columns: 1fr; }
  .rf-ramadan-story img { width: 100%; height: 160px; }
}

/* ===== Qurbani page ===== */
.rf-qurb-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: #0d3d4d;
  overflow: hidden;
}
.rf-qurb-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.rf-qurb-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,35,45,.35) 0%, rgba(8,35,45,.88) 100%);
}
.rf-qurb-hero__inner {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 0 40px;
}
.rf-qurb-hero__ar {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.rf-qurb-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.rf-qurb-hero p { color: rgba(255,255,255,.92); }
.rf-qurb-impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
}
.rf-qurb-impact__item {
  background: #fff;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-top: 3px solid var(--secondary);
}
.rf-qurb-impact__item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}
.rf-qurb-impact__item span {
  font-size: 13px;
  color: #666;
}
.rf-qurb-why {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.rf-qurb-why__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rf-qurb-why__list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
.rf-qurb-why__list li:last-child { border-bottom: 0; }
.rf-qurb-why__list li::before {
  content: "\f058";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}
.rf-qurb-why__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.rf-qurb-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rf-qurb-method {
  background: linear-gradient(160deg, #0d3d4d, #145249);
  color: #fff;
  border-radius: 14px;
  padding: 26px 22px;
  height: 100%;
}
.rf-qurb-method h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.rf-qurb-method p,
.rf-qurb-method li {
  font-size: 14px;
  opacity: .92;
}
.rf-qurb-method ul {
  padding-left: 18px;
  margin: 0;
}
.rf-qurb-res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rf-qurb-res {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  text-decoration: none;
  color: #fff;
}
.rf-qurb-res__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .35s;
}
.rf-qurb-res:hover .rf-qurb-res__bg { transform: scale(1.06); }
.rf-qurb-res__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78));
}
.rf-qurb-res__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  z-index: 2;
}
.rf-qurb-res__body strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.rf-qurb-res__body span {
  font-size: 12px;
  opacity: .85;
}
.rf-qurb-quote {
  background: #f4f7f6;
  border-left: 4px solid var(--secondary);
  padding: 22px 26px;
  font-style: italic;
  color: #444;
  margin: 0;
}
@media (max-width: 991px) {
  .rf-qurb-impact { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .rf-qurb-why { grid-template-columns: 1fr; text-align: center; }
  .rf-qurb-why__photo { margin: 0 auto; }
  .rf-qurb-methods,
  .rf-qurb-res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .rf-qurb-impact { grid-template-columns: 1fr; }
}

.rf-qurb-animals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rf-qurb-animal {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececec;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.rf-qurb-animal:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.1);
}
.rf-qurb-animal img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.rf-qurb-animal div { padding: 14px 16px 16px; }
.rf-qurb-animal strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}
.rf-qurb-animal span { font-size: 13px; color: #666; }
@media (max-width: 991px) {
  .rf-qurb-animals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .rf-qurb-animals { grid-template-columns: 1fr; }
  .rf-qurb-animal img { height: 200px; }
}

/* ===== Kaffarah page ===== */
.rf-kaff-hero {
  background: #2a1540;
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.rf-kaff-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.rf-kaff-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(42,21,64,.88) 0%, rgba(74,31,106,.78) 45%, rgba(27,105,92,.72) 100%);
}
.rf-kaff-hero .container { position: relative; z-index: 2; }
.rf-kaff-hero__ar {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.rf-kaff-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.rf-kaff-hero p { color: rgba(255,255,255,.92); }
.rf-kaff-calc {
  background: #ff6a1a;
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px 26px;
  box-shadow: 0 18px 44px rgba(255, 85, 21, 0.32);
  text-align: center;
}
.rf-kaff-calc h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.rf-kaff-calc__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.96;
  margin: 0 auto 18px;
  max-width: 32ch;
}
.rf-kaff-calc__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.rf-kaff-opt {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rf-kaff-opt span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.92;
}
.rf-kaff-opt:hover {
  background: rgba(255, 255, 255, 0.22);
}
.rf-kaff-opt.is-active {
  background: #fff;
  border-color: #fff;
  color: #e0480f;
}
.rf-kaff-opt.is-active span {
  color: #c43d0c;
  opacity: 1;
}
.rf-kaff-calc__per {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.4;
}
.rf-kaff-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.rf-kaff-stepper--lg {
  width: min(100%, 220px);
  display: flex;
}
.rf-kaff-stepper button {
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff;
  color: #222;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.rf-kaff-stepper button:hover {
  background: #f5f5f5;
}
.rf-kaff-stepper input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1a1a1a;
  background: #fff;
}
.rf-kaff-calc__total {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 4px 0 6px;
  padding: 0;
  border: 0;
  line-height: 1.4;
}
.rf-kaff-calc__total span {
  font-weight: 700;
}
.rf-kaff-calc__basis {
  margin: 0 0 18px;
  font-size: 0.9rem;
  opacity: 0.95;
}
.rf-kaff-calc__basis em {
  font-style: italic;
}
.rf-kaff-calc__donate,
.rf-kaff-calc .btn.rf-kaff-calc__donate {
  background: #e31b23 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  min-height: 52px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(180, 20, 30, 0.28);
}
.rf-kaff-calc__donate:hover,
.rf-kaff-calc .btn.rf-kaff-calc__donate:hover {
  background: #c4141c !important;
  color: #fff !important;
}
.rf-kaff-calc__donate:disabled {
  opacity: 0.7;
  cursor: wait;
}
.rf-kaff-calc__msg {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
}
.rf-kaff-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rf-kaff-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 24px 22px;
  height: 100%;
}
.rf-kaff-panel h3 {
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}
.rf-kaff-panel ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
.rf-kaff-panel .rf-kaff-rate {
  display: inline-block;
  background: rgba(27,105,92,.1);
  color: var(--primary);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.rf-kaff-duas {
  background: #f7f3fb;
  border-radius: 14px;
  padding: 28px 24px;
}
.rf-kaff-duas blockquote {
  border-left: 3px solid #4a1f6a;
  padding-left: 16px;
  margin: 0 0 16px;
  font-style: italic;
  color: #444;
}
.rf-kaff-steps {
  counter-reset: kaff-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rf-kaff-steps li {
  counter-increment: kaff-step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
}
.rf-kaff-steps li::before {
  content: counter(kaff-step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
@media (max-width: 991px) {
  .rf-kaff-split { grid-template-columns: 1fr; }
}

/* ===== Fitrana page ===== */
.rf-fitr-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1B695C;
  overflow: hidden;
}
.rf-fitr-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.rf-fitr-hero__mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 900;
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.22);
  pointer-events: none;
  user-select: none;
}
.rf-fitr-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 70px 0;
}
.rf-fitr-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.rf-fitr-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rf-fitr-guide__item {
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  border: 1px solid #ececec;
  border-top: 3px solid var(--secondary);
  height: 100%;
}
.rf-fitr-guide__item strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 15px;
}
.rf-fitr-guide__item p {
  margin: 0;
  font-size: 14px;
  color: #555;
}
.rf-fitr-spirit {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}
.rf-fitr-spirit__img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  min-height: 280px;
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.rf-fitr-legacy {
  background: linear-gradient(110deg, #8a5a12, #c48a2a 55%, #1B695C);
  color: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}
.rf-fitr-legacy h2 {
  font-weight: 800;
  margin-bottom: 10px;
}
.rf-fitr-legacy p {
  max-width: 640px;
  margin: 0 auto 18px;
  opacity: .95;
}
@media (max-width: 991px) {
  .rf-fitr-guide { grid-template-columns: 1fr 1fr; }
  .rf-fitr-spirit { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .rf-fitr-guide { grid-template-columns: 1fr; }
  .rf-fitr-hero__mark { font-size: 3.5rem; }
}

/* ===== Careers / Jobs ===== */
.rf-career-hero {
  background: linear-gradient(125deg, #0d3d38 0%, #1B695C 55%, #145249 100%);
  color: #fff;
  padding: 64px 0 52px;
  text-align: center;
}
.rf-career-hero--sm { padding: 48px 0 40px; }
.rf-career-hero h1 {
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.rf-career-hero p {
  max-width: 560px;
  margin: 0 auto;
  opacity: .92;
}
.rf-career-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  min-height: 240px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.rf-career-facilities {
  background: #eef6f4;
  padding: 64px 0;
}
.rf-career-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.rf-career-perks span {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
}
.rf-career-perks i { color: #fff; opacity: .9; }

.rf-jobs-filter {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 16px;
}
.rf-jobs-filter__label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #777;
  margin-bottom: 8px;
}
.rf-jobs-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.rf-jobs-check em {
  margin-left: auto;
  font-style: normal;
  background: #f0f2f1;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  color: #666;
}
.rf-jobs-search {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rf-jobs-search input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  outline: none;
}
.rf-jobs-search button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--primary);
  cursor: pointer;
}
.rf-jobs-list { display: flex; flex-direction: column; gap: 10px; }
.rf-jobs-card {
  display: block;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.rf-jobs-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  color: inherit;
}
.rf-jobs-card strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}
.rf-jobs-card span { font-size: 13px; color: #777; }
.rf-jobs-empty {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: #777;
}
.rf-job-meta {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.rf-job-meta > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f9f8;
  border-radius: 10px;
  padding: 12px 14px;
}
.rf-job-meta i {
  color: var(--secondary);
  margin-top: 3px;
}
.rf-job-apply {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.05);
}
.rf-job-apply h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.rf-job-apply .form-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
@media (max-width: 575px) {
  .rf-career-perks { grid-template-columns: 1fr; }
}

/* ===== Procurement ===== */
.rf-proc-doc {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
}
.rf-proc-doc__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}
.rf-proc-doc__body strong {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 4px;
}
.rf-proc-doc__body p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}
.rf-proc-notices { display: flex; flex-direction: column; gap: 12px; }
.rf-proc-notice {
  display: grid;
  grid-template-columns: 2.2fr repeat(5, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  align-items: start;
}
.rf-proc-notice__main a {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.rf-proc-notice__main p {
  font-size: 13px;
  color: #666;
  margin: 6px 0;
}
.rf-proc-notice__meta span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  font-weight: 700;
}
.rf-proc-notice__meta strong { font-size: 13px; color: #333; }
.rf-proc-detail {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 28px 26px;
}
.rf-proc-table th {
  background: #f4f7f6;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .rf-proc-notice {
    grid-template-columns: 1fr 1fr;
  }
  .rf-proc-notice__main { grid-column: 1 / -1; }
}

/* Footer latest blogs thumb */
.footer-widget.rc-widget .rf-footer-blog-thumb {
  flex: 0 0 80px;
  display: block;
}
.footer-widget.rc-widget .rf-footer-blog-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Request a Speaker */
.rf-speaker-hero {
  background: linear-gradient(135deg, #0f3d36 0%, #1B695C 55%, #145249 100%);
  padding: 72px 0 48px;
  color: #fff;
}
.rf-speaker-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}
.rf-speaker-hero p {
  max-width: 720px;
  opacity: .92;
  margin-bottom: 18px;
}
.rf-breadcrumb--light a,
.rf-breadcrumb--light span { color: rgba(255,255,255,.85); }
.rf-speaker-card {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 16px;
  padding: 28px 28px 20px;
  box-shadow: 0 10px 30px rgba(18,47,42,.06);
  max-width: 960px;
  margin: 0 auto;
}
.rf-speaker-form__sec {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1B695C;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(27,105,92,.15);
}
.rf-speaker-form__sec:first-child { margin-top: 0; }
.rf-speaker-form .form-label {
  font-weight: 600;
  font-size: 13px;
  color: #333;
}
.rf-field-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #eef4f3;
  color: #1B695C;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.rf-speaker-form__actions {
  margin-top: 28px;
  padding-top: 8px;
}
.rf-speaker-form__actions .btn {
  min-width: 200px;
  font-weight: 700;
}

/* Islamic Calendar widget */
.rf-isl-theme-calendar.rf-isl-hero,
.rf-isl-hero.rf-isl-theme-calendar { background-color: #12352f; }
.rf-cal-today-card {
  background: linear-gradient(160deg, #1B695C, #0f3d36);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}
.rf-cal-today-card__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  margin-bottom: 6px;
}
.rf-cal-today-card strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.rf-cal-today-card em { display: block; font-style: normal; opacity: .9; margin-bottom: 8px; }
.rf-cal-today-card__ar { display: block; font-size: 1.4rem; margin-bottom: 16px; }
.rf-cal-today-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-cal-widget {
  border: 1px solid #e5ebe9;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18,47,42,.06);
}
.rf-cal-bar {
  background: #1B695C;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
}
.rf-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f1;
}
.rf-cal-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-cal-mode {
  border: 1px solid #1B695C;
  background: #fff;
  color: #1B695C;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.rf-cal-mode.is-active { background: #1B695C; color: #fff; }
.rf-cal-nav { display: flex; align-items: center; gap: 8px; }
.rf-cal-nav-btn,
.rf-cal-today-btn {
  border: 1px solid #dde5e3;
  background: #f7faf9;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.rf-cal-today-btn { width: auto; padding: 0 12px; font-weight: 700; font-size: 12px; color: #1B695C; }
.rf-cal-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: #12352f; min-width: 160px; text-align: center; }
.rf-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 12px 16px 0;
  font-size: 12px;
  font-weight: 700;
  color: #6a7a76;
  text-align: center;
}
.rf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 12px 16px 18px;
  background: #f4f7f6;
}
.rf-cal-grid.is-loading { opacity: .55; pointer-events: none; }
.rf-cal-cell {
  min-height: 88px;
  border: 1px solid #e2e8e6;
  border-radius: 12px;
  padding: 14px 10px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(18, 47, 42, 0.04);
  transition: border-color .15s, box-shadow .15s;
}
.rf-cal-cell.is-empty {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}
.rf-cal-cell.is-today {
  border-color: #7eb6d9;
  box-shadow: 0 0 0 3px rgba(126, 182, 217, 0.35);
  background: #fff;
}
.rf-cal-cell__hijri,
.rf-cal-cell strong.rf-cal-cell__hijri {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a5f8a;
  line-height: 1.25;
}
.rf-cal-cell__greg,
.rf-cal-cell span.rf-cal-cell__greg {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d5a6e;
  margin-top: 0;
}
.rf-cal-grid--gregorian .rf-cal-cell__greg {
  color: #1a5f8a;
  font-weight: 800;
  font-size: 0.92rem;
}
.rf-cal-grid--gregorian .rf-cal-cell__hijri {
  color: #3d5a6e;
  font-weight: 600;
  font-size: 0.82rem;
}
.rf-cal-note { font-size: 12px; color: #888; padding: 0 16px 14px; margin: 0; background: #fff; }
.rf-cal-month-badge {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(18,47,42,.05);
}
.rf-cal-month-badge__ar { display: block; font-size: 2rem; color: #1B695C; margin-bottom: 8px; }
.rf-cal-month-badge strong { display: block; font-size: 1.25rem; }
.rf-cal-month-badge em { color: #777; font-style: normal; }
.rf-cal-history {
  background: linear-gradient(rgba(12,40,36,.78), rgba(12,40,36,.78)), url('../images/muharram/hero.jpg') center/cover;
  padding: 72px 0;
  color: #fff;
}
.rf-cal-history__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.rf-cal-history h2 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.rf-cal-history p { opacity: .92; }
.rf-cal-history__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.rf-cal-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rf-cal-event {
  border: 1px solid #e8eceb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}
.rf-cal-event__date strong { display: block; color: #1B695C; font-size: 14px; }
.rf-cal-event__date span { font-size: 12px; color: #777; }
.rf-cal-event h3 { font-size: 1.05rem; margin: 10px 0 12px; font-weight: 800; }
.rf-cal-event__link { font-weight: 700; color: #1B695C; text-decoration: none; font-size: 13px; }
.rf-cal-event__link:hover { color: #0f3d36; }
@media (max-width: 991px) {
  .rf-cal-grid,
  .rf-cal-weekdays {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  .rf-cal-events { grid-template-columns: 1fr; }
  .rf-cal-grid,
  .rf-cal-weekdays {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .rf-cal-weekdays { display: none; }
  .rf-cal-cell { min-height: 76px; padding: 12px 8px; }
  .rf-cal-cell__hijri { font-size: 0.85rem; }
  .rf-cal-toolbar { flex-direction: column; align-items: stretch; }
}

/* Islamic New Year */
.rf-iny-hijra {
  background: linear-gradient(rgba(12,40,36,.72), rgba(12,40,36,.72)), url('../images/muharram/intro.jpg') center/cover;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.rf-iny-hijra h2 { color: #fff; font-weight: 800; margin-bottom: 16px; }
.rf-iny-hijra p { max-width: 720px; margin: 0 auto 12px; opacity: .93; }
.rf-iny-hijra blockquote {
  max-width: 640px;
  margin: 20px auto 0;
  font-style: italic;
  opacity: .95;
  border: 0;
  padding: 0;
}
.rf-iny-quote {
  border-left: 4px solid #1B695C;
  padding: 12px 0 12px 16px;
  margin: 18px 0 0;
  font-style: italic;
  color: #333;
  background: #f4f8f7;
  border-radius: 0 10px 10px 0;
}
.rf-iny-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rf-iny-impact-item {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
}
.rf-iny-impact-item .rf-impact-icon {
  margin: 0 auto 10px;
}
.rf-iny-impact-item strong {
  display: block;
  font-size: 1.6rem;
  color: #1B695C;
  font-weight: 800;
  line-height: 1.1;
}
.rf-iny-impact-item span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
@media (max-width: 991px) {
  .rf-iny-impact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .rf-iny-impact-grid { grid-template-columns: repeat(2, 1fr); }
  .rf-speaker-card { padding: 18px 14px; }
}

/* Resource pages (Waqf, Lillah, Riba, Umrah, Wasiyah, Dua) */
.rf-res-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 72px 0;
  color: #fff;
}
.rf-res-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 40, 36, .78);
}
.rf-res-band__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.rf-res-band h2,
.rf-res-band h3 { color: #fff; font-weight: 800; }
.rf-res-band h3 { font-size: 1.15rem; margin-top: 22px; }
.rf-res-band p { opacity: .93; }
.rf-res-band blockquote {
  margin: 20px auto 0;
  max-width: 640px;
  font-style: italic;
  border: 0;
  padding: 0;
  opacity: .95;
}
.rf-res-numbered {
  text-align: left;
  max-width: 560px;
  margin: 16px auto 0;
  padding-left: 1.2rem;
}
.rf-res-numbered li { margin-bottom: 8px; }
.rf-quote-box {
  background: #eef6f4;
  border-left: 4px solid #1B695C;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}
.rf-quote-box p { margin: 0; font-style: italic; color: #234; }
.rf-quote-box--light {
  background: rgba(255,255,255,.12);
  border-left-color: #f0c14b;
  text-align: left;
}
.rf-quote-box--light p { color: #fff; }
.rf-riba-ban { font-size: .7em; vertical-align: middle; }
.rf-diff-table {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.rf-diff-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f1;
}
.rf-diff-row:last-child { border-bottom: 0; }
.rf-diff-row strong { color: #1B695C; }
.rf-diff-row span { color: #444; font-size: 14px; }
@media (max-width: 575px) {
  .rf-diff-row { grid-template-columns: 1fr; }
}

/* Dua page */
.rf-dua-featured {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(18,47,42,.05);
  margin-bottom: 8px;
}
.rf-dua-featured h3 {
  color: #1B695C;
  font-weight: 800;
  margin-bottom: 14px;
}
.rf-dua-ar {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.9;
  color: #12352f;
  margin-bottom: 12px;
  font-weight: 600;
}
.rf-dua-en { color: #444; margin-bottom: 8px; }
.rf-dua-ur { color: #555; margin-bottom: 10px; font-size: 1.05rem; line-height: 1.8; }
.rf-dua-src {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1B695C;
  background: #eef6f4;
  padding: 4px 10px;
  border-radius: 999px;
}
.rf-dua-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
}
.rf-dua-filters {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  padding: 16px;
  position: sticky;
  top: 90px;
}
.rf-dua-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rf-dua-clear {
  border: 0;
  background: none;
  color: #1B695C;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.rf-dua-filters__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  font-weight: 700;
  margin-bottom: 8px;
}
.rf-dua-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
}
.rf-dua-search {
  position: relative;
  margin-bottom: 16px;
}
.rf-dua-search input {
  width: 100%;
  border: 1px solid #dce5e2;
  border-radius: 10px;
  padding: 12px 42px 12px 14px;
  font-size: 14px;
}
.rf-dua-search i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa;
}
.rf-dua-card {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.rf-dua-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1B695C;
  margin-bottom: 10px;
}
.rf-dua-empty {
  text-align: center;
  color: #777;
  padding: 24px;
}
@media (max-width: 991px) {
  .rf-dua-layout { grid-template-columns: 1fr; }
  .rf-dua-filters { position: static; }
}

/* Public Media gallery */
.rf-media-filters .btn { margin: 0 4px 8px; border-radius: 999px; font-weight: 700; }
.rf-media-card {
  background: #fff;
  border: 1px solid #e8eceb;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 24px rgba(18,47,42,.04);
}
.rf-media-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.rf-media-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px 14px;
  color: #12352f;
}
.rf-media-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0f1f1c;
}
.rf-media-video iframe,
.rf-media-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.rf-media-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f3;
  color: #1B695C;
  font-size: 42px;
}

/* ===== Mobile: Join Us / about spacing + kill horizontal scroll ===== */
@media (max-width: 991.98px) {
  /* Decorative floats cause overflow + overlap on tablets/phones */
  .anim-img,
  .about-sec .anim-img,
  .mission-sec .anim-img,
  .causes-sec .anim-img,
  .cta-sec .anim-img {
    display: none !important;
  }

  .about-sec .about-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .about-sec .about-footer .btn {
    width: auto;
    max-width: 100%;
  }
  .about-sec .about-media {
    margin-left: 0 !important;
    max-width: 100%;
    overflow: hidden;
  }
  .about-sec .about-media > img.ab-img,
  .about-sec .about-media > .ab-img {
    max-width: 55%;
    left: auto !important;
    right: 0;
  }
}

@media (max-width: 767.98px) {
  /* Join Us Now: clear space above volunteer images */
  .story-sec .story-txt {
    max-width: 100%;
  }
  .story-sec .story-txt .success-stat {
    padding-top: 24px;
  }
  .story-sec .story-txt .success-stat .progress {
    margin-bottom: 36px;
  }
  .story-sec .story-txt > .btn {
    display: inline-flex;
    margin-bottom: 12px;
  }
  .story-sec .sc-media-wrap {
    margin-top: 40px !important;
    max-width: 100%;
    overflow: hidden;
  }
  .story-sec .success-media {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: stretch !important;
  }
  .story-sec .success-media > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
  }
  .story-sec .sc-media-wrap .success-year {
    position: relative !important;
    bottom: auto !important;
    margin-top: 14px;
    width: auto !important;
    max-width: 100%;
  }
  .story-sec .sc-media-wrap .success-year span {
    font-size: 48px !important;
    width: auto;
  }
  .story-sec .sc-media-wrap .success-year .sy-txt {
    font-size: 20px;
  }

  /* Prevent section children from spilling past viewport */
  .story-sec,
  .about-sec,
  .causes-sec,
  .mission-sec,
  .footer.rf-footer,
  .footer-top {
    overflow-x: hidden !important;
    max-width: 100%;
  }
  .footer.rf-footer .row,
  .footer.rf-footer [class*="col-"] {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .story-sec .story-txt > .btn {
    margin-bottom: 4px;
  }
  .story-sec .sc-media-wrap {
    margin-top: 24px !important;
  }
  .story-sec .row {
    --bs-gutter-x: 1rem;
  }
}

/* ===== Toastify-style alerts (top) ===== */
.rf-toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}
.rf-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 40px 14px 14px;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .28s ease, transform .28s ease;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
.rf-toast--show {
  opacity: 1;
  transform: translateY(0);
}
.rf-toast--hide {
  opacity: 0;
  transform: translateY(-10px);
}
.rf-toast__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 1px;
  background: #1B695C;
  position: relative;
}
.rf-toast__icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.rf-toast--error .rf-toast__icon {
  background: #c0392b;
}
.rf-toast--error .rf-toast__icon::after {
  left: 9px;
  top: 5px;
  width: 2px;
  height: 10px;
  border: 0;
  background: #fff;
  transform: none;
  box-shadow: 0 12px 0 #fff;
  border-radius: 1px;
}
.rf-toast--success {
  border-left: 4px solid #1B695C;
}
.rf-toast--error {
  border-left: 4px solid #c0392b;
}
.rf-toast__body {
  flex: 1;
  padding-top: 1px;
}
.rf-toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.rf-toast__close:hover { color: #333; }
.rf-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(27,105,92,.85);
  transform-origin: left center;
  animation: rfToastProgress linear forwards;
}
.rf-toast--error .rf-toast__progress {
  background: rgba(192,57,43,.85);
}
@keyframes rfToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@media (max-width: 575.98px) {
  .rf-toast-root {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* Program cards reuse the Support a Cause card (.cause-entry) */
.rf-program-cards-sec {
  background: #f5f7f6;
}

/* Floating WhatsApp button */
.rf-whatsapp-float {
  position: fixed !important;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
  line-height: 1;
}
.rf-whatsapp-float svg {
  display: block;
  width: 30px;
  height: 30px;
}
.rf-whatsapp-float:hover,
.rf-whatsapp-float:focus {
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}
@media (max-width: 575.98px) {
  .rf-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .rf-whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* PWA install banner */
.rf-pwa-install {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 16px;
  bottom: auto;
  z-index: 2147483001;
  display: none;
  pointer-events: none;
}
.rf-pwa-install.is-visible {
  display: block;
  pointer-events: auto;
  animation: rfPwaSlideDown .28s ease;
}
.rf-pwa-install__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #0f3d36;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.rf-pwa-install__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 180px;
}
.rf-pwa-install__text strong {
  font-size: 15px;
  font-weight: 800;
}
.rf-pwa-install__text span {
  font-size: 12px;
  opacity: .88;
  line-height: 1.35;
}
.rf-pwa-install__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.rf-pwa-install__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
}
.rf-pwa-install__btn--primary {
  background: #ff5515;
  color: #fff;
}
.rf-pwa-install__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
@keyframes rfPwaSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
  .rf-pwa-install {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: auto;
  }
}

/* ===== Donation page (Alkhidmat-style accordion) ===== */
.rf-don-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #12352f;
}
.rf-don-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.rf-don-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 40, 36, 0.82) 0%, rgba(10, 40, 36, 0.35) 55%, rgba(10, 40, 36, 0.2) 100%);
}
.rf-don-hero__inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}
.rf-don-hero__copy {
  max-width: 520px;
  color: #fff;
}
.rf-don-hero__copy h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
  line-height: 1.15;
}
.rf-don-hero__copy p {
  margin: 0 0 18px;
  opacity: .95;
  font-size: 16px;
}
.rf-don-hero__cta {
  background: var(--secondary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 6px;
}
.rf-don-online__title {
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.rf-don-online__lead {
  max-width: 720px;
  color: #555;
  margin-bottom: 0;
}
.rf-don-panel {
  max-width: 920px;
  margin: 0 auto;
}
.rf-don-panel.is-loading {
  opacity: .72;
  pointer-events: none;
}
.rf-don-toolbar {
  margin-bottom: 14px;
}
.rf-don-toolbar__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}
.rf-don-toolbar__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.rf-don-search {
  flex: 1;
  border: 1px solid #d5dce0;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
}
.rf-don-clear {
  background: var(--secondary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
  padding: 0 22px;
  border-radius: 6px;
  white-space: nowrap;
}
.rf-don-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-don-item {
  background: #f3f5f6;
  border: 1px solid #e4e8ea;
  border-radius: 4px;
  overflow: hidden;
}
.rf-don-item.is-open {
  background: #eef1f3;
}
.rf-don-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
}
.rf-don-item__head i {
  color: #6a7a76;
  transition: transform .5s ease;
}
.rf-don-item.is-open .rf-don-item__head i {
  transform: rotate(180deg);
}
.rf-don-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s ease;
  padding: 0 18px;
}
.rf-don-item.is-open .rf-don-item__body {
  grid-template-rows: 1fr;
}
.rf-don-item__body-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease, padding-bottom .5s ease;
  padding-bottom: 0;
}
.rf-don-item.is-open .rf-don-item__body-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 18px;
}
.rf-don-tabs {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 18px;
  align-items: start;
}
.rf-don-tabs__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #d7dee2;
  padding-right: 12px;
}
.rf-don-tab {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  border-radius: 4px;
}
.rf-don-tab.is-active,
.rf-don-tab:hover {
  color: var(--primary);
  background: rgba(27, 105, 92, 0.08);
}
.rf-don-amount-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
}
.rf-don-add-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 420px;
}
.rf-don-add-row--simple {
  max-width: 480px;
  margin-left: auto;
}
.rf-don-amount {
  flex: 1;
  border: 1px solid #cfd6da;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  min-width: 0;
}
.rf-don-add {
  background: var(--secondary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
  padding: 0 22px;
  border-radius: 4px;
  white-space: nowrap;
}
.rf-don-msg {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--primary);
}
.rf-don-msg.is-error { color: #b42318; }
.rf-don-empty {
  text-align: center;
  color: #777;
  padding: 20px 0;
}

/* Nested sidebar + product rows (Alkhidmat style) */
.rf-don-nested {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  border: 1px solid #e1e6e9;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.rf-don-nested--single {
  grid-template-columns: 1fr;
}
.rf-don-nested--single .rf-don-nested__nav {
  display: none;
}
.rf-don-nested__nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e1e6e9;
  background: #fff;
}
.rf-don-nested__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8ecf0;
  background: #fff;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: left;
  cursor: pointer;
}
.rf-don-nested__tab i {
  font-size: 11px;
  color: #9aa3a8;
}
.rf-don-nested__tab.is-active {
  background: #e8f3f0;
  color: var(--primary);
}
.rf-don-nested__tab.is-active i {
  opacity: 0;
}
.rf-don-nested__panels {
  padding: 16px 18px;
  min-height: 120px;
}
.rf-don-amount-block {
  margin-bottom: 14px;
}
.rf-don-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rf-don-product {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f3;
}
.rf-don-product:last-child {
  border-bottom: 0;
}
.rf-don-product__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}
.rf-don-product__cb {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.rf-don-product__name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
.rf-don-product__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.rf-don-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cfd6da;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  height: 36px;
}
.rf-don-qty__btn {
  width: 36px;
  border: 0;
  background: #f5f7f8;
  color: #333 !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.rf-don-qty__btn:hover:not(:disabled) {
  background: #e9eef0;
}
.rf-don-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rf-don-qty__btn + .rf-don-qty__val,
.rf-don-qty__val + .rf-don-qty__btn {
  border-left: 1px solid #cfd6da;
}
.rf-don-qty__val {
  width: 44px !important;
  min-width: 44px;
  height: 36px !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #111 !important;
  background: #fff !important;
  -webkit-text-fill-color: #111 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.rf-don-checkout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
}
.rf-don-checkout__currency {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 4px;
}
.rf-don-checkout__total-wrap {
  min-width: 0;
}
.rf-don-checkout__total {
  width: 100%;
  border: 1px solid #d5dce0;
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  background: #fff;
  height: 64px;
}
.rf-don-zakat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  user-select: none;
}
.rf-don-zakat input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.rf-don-continue {
  background: var(--primary) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800;
  font-size: 16px;
  padding: 0 36px;
  min-height: 64px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rf-don-continue.disabled {
  opacity: .55;
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .rf-don-hero { min-height: 260px; }
  .rf-don-nested {
    grid-template-columns: 1fr;
  }
  .rf-don-nested__nav {
    border-right: 0;
    border-bottom: 1px solid #e1e6e9;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .rf-don-nested__tab {
    flex: 1 1 auto;
    border-bottom: 1px solid #e8ecf0;
  }
  .rf-don-nested__tab i { display: none; }
  .rf-don-product {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }
  .rf-don-product__price {
    justify-self: end;
  }
  .rf-don-qty {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .rf-don-add-row--simple {
    margin-left: 0;
    max-width: none;
  }
  .rf-don-checkout {
    grid-template-columns: 64px 1fr;
  }
  .rf-don-continue {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 52px;
  }
}


