@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. CUSTOM PROPERTIES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color Palette */
  --primary: #32772F;
  --primary-hover: #245922;
  --primary-light: #f0fdf4;
  --accent-red: #dd1d25;
  --accent-red-hover: #b9151c;
  --dark: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Layout Constants */
  --max-width: 1280px;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

/* Section Margins */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.py-lg {
  padding: 80px 0;
}

.py-md {
  padding: 60px 0;
}

.py-sm {
  padding: 40px 0;
}

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--light);
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   3. BUTTONS & UI DIRECT CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  padding: 10px 24px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 119, 47, 0.2);
}

.btn-secondary {
  background-color: var(--accent-red);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 29, 37, 0.25);
}

.btn-outline {
  border: 2px solid var(--border);
  background-color: transparent;
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   4. UTILITY HEADER TOP BAR
   ========================================================================== */
.header-utility {
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.815rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 110;
  position: relative;
}

.header-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-contact {
  display: flex;
  align-items: center;
}

.utility-contact span {
  display: inline-flex;
  align-items: center;
}

.utility-contact i {
  color: var(--primary);
  margin-right: 6px;
}

.utility-links {
  display: flex;
  gap: 20px;
}

.utility-links a {
  color: rgba(255, 255, 255, 0.85);
}
.utility-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   5. FLOATING DOUBLE-ROW HEADER (.header-main)
   ========================================================================== */
.header-main {
  position: absolute;
  top: 40px; /* Positioned below utility bar */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  background-color: var(--white);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  padding: 0;
  transition: var(--transition);
}

.header-main .container {
  display: flex;
  flex-direction: column;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--dark);
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Meta Widgets Row */
.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.header-meta-widgets {
  display: flex;
  gap: 0;
  align-items: center;
}

.header-meta-widgets .meta-widget {
  padding: 0 24px;
}

.header-meta-widgets .meta-widget:first-child {
  padding-left: 0;
}

.header-meta-widgets .meta-widget:last-child {
  padding-right: 0;
}

.header-meta-widgets .meta-widget:not(:last-child) {
  border-right: 1px solid var(--border);
}

.meta-widget {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meta-icon-fa {
  font-size: 1.4rem;
  color: var(--primary);
}

.meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.meta-text label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-text strong {
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 700;
}

/* Action Items Container */
.header-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.action-search-btn:hover {
  background-color: var(--border);
}

.action-search-btn i {
  color: var(--text-muted);
}

.header-donate-btn {
  background-color: var(--accent-red) !important;
  color: var(--white) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-donate-btn:hover {
  background-color: var(--accent-red-hover) !important;
}

.currency-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.btn-cart {
  padding: 10px 20px;
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-cart:hover {
  background-color: var(--border);
}

/* Bottom Row Navigation & Action links */
.header-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-item {
  position: relative;
}

/* Upgraded Navigation Transitions */
.nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-in-out;
}

.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-arrow {
  font-size: 0.7rem;
  margin-left: 6px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

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

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

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

.dropdown-link {
  display: block;
  padding: 10px 24px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: all 0.25s ease-in-out;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transition: transform 0.25s ease-in-out;
}

.dropdown-link:hover {
  background-color: var(--primary-light);
  color: var(--primary) !important;
  padding-left: 28px;
}

.dropdown-link:hover::before {
  transform: scaleY(1);
}

/* Bottom Row Right CTAs */
.header-bottom-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-cta-red {
  background-color: var(--accent-red);
  color: var(--white);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-cta-red:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

.btn-cta-green {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-cta-green:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.header-phone-cta {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.header-phone-cta:hover {
  color: var(--primary-hover);
}

.header-phone-cta i {
  transition: transform 0.2s ease-in-out;
}

.header-phone-cta:hover i {
  display: inline-block;
  animation: phone-wiggle 0.5s ease-in-out infinite alternate;
}

/* Hamburger toggle menu */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. MOBILE DRAWER NAVIGATION MENU
   ========================================================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
}
.overlay.active, .overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: var(--transition);
  overscroll-behavior-y: contain;
}
.mobile-sidebar.active, .mobile-sidebar.open {
  right: 0;
}

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-sidebar-header .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  margin-bottom: 24px;
  flex: 1;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.mobile-nav-link::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

/* Hide chevron for direct link navigation */
.mobile-nav-list li > a.mobile-nav-link::after {
  display: none !important;
}

.mobile-nav-link.expanded::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-nav-submenu {
  list-style: none;
  padding-left: 16px;
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 10px;
  border-left: 2px solid var(--border);
}

.mobile-nav-submenu.active {
  display: flex;
}

.mobile-nav-submenu a {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.mobile-nav-submenu a:hover {
  color: var(--primary);
}

/* ==========================================================================
   7. FULL-SCREEN HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  height: calc(100vh - 40px); /* Fill remaining window space */
  min-height: 650px;
  overflow: hidden;
  background-color: var(--dark);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  z-index: 1;
}

/* Text Bounds aligned to container */
.slide .container {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.slide-content {
  color: var(--white);
  max-width: 650px;
  transform: translateY(20px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-content {
  transform: translateY(0);
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}

.slide-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* Vertically Centered Slider Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
  z-index: 20;
}

.slider-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  cursor: pointer;
}

.slider-btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: scale(1.05);
}

/* ==========================================================================
   8. FLOATING QUICK DONATE BAR
   ========================================================================== */
.quick-donate-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 30;
}

.quick-donate-bar {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.bar-select-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
}

.bar-select-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bar-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: #f8fafc;
  color: var(--dark);
  font-weight: 600;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.bar-select:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

.bar-submit-btn {
  background-color: var(--accent-red);
  color: var(--white);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-end;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bar-submit-btn:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 29, 37, 0.3);
}

.bar-cart-float {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-end;
}
.bar-cart-float:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.bar-cart-float .cart-label {
  font-size: 0.75rem;
  opacity: 0.9;
}
.bar-cart-float .cart-amount {
  font-size: 1rem;
}

/* ==========================================================================
   9. INNER PAGE HERO / BANNER SECTION
   ========================================================================== */
.page-hero {
  position: relative;
  height: 380px;
  background-color: var(--dark);
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  color: var(--white);
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}
.breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   10. GRID SYSTEMS & CARD COMPONENTS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Impact Stats Section */
.stats-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

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

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Card Component Styles */
.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.card-img-wrapper img, .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.card:hover .card-img-wrapper img, .card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 5;
}

.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Progress Bar inside Cards */
.card-progress-container {
  margin-top: auto;
  margin-bottom: 8px;
}

.card-progress-bar {
  height: 8px;
  background-color: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
}

.card-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.815rem;
  font-weight: 700;
  color: var(--text-muted);
}

.card-footer {
  padding: 0 24px 24px 24px;
  border-top: none;
  background-color: transparent;
}

/* ==========================================================================
   11. WAYS TO GET INVOLVED CARDS
   ========================================================================== */
.involved-card {
  background-color: var(--white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.involved-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.involved-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.involved-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.involved-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   12. ZAKAT CALCULATOR STYLING (.zakat-calculator)
   ========================================================================== */
/* Zakat Calculator Layout */
.zakat-calc-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.calc-section-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-info {
  flex: 1;
  padding-right: 20px;
}

.calc-info h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 700;
}

.calc-info p {
  font-size: 0.815rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.calc-input {
  width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: right;
  outline: none;
  background-color: #f8fafc;
  transition: var(--transition);
}

.calc-input:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(50, 119, 47, 0.1);
}

/* Sticky Summary Card */
.calc-summary-sticky {
  position: sticky;
  top: 220px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.summary-title {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.summary-row.total {
  border-top: 2px solid var(--primary);
  border-bottom: none;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   13. FORM CONTROLS & CHECKOUT MODAL
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50, 119, 47, 0.1);
}

/* Checkout Donate Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal.active,
.modal.open {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  animation: modal-enter 0.3s ease;
}

.modal-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--white);
  margin-bottom: 0;
}

.modal-close {
  color: var(--white);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

/* Custom Success Alert */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

.alert-success {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   14. CONTACT CARD & INFO ITEMS
   ========================================================================== */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-text p {
  color: var(--text-muted);
}

.map-mock {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.map-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   15. FOOTER DESIGN SYSTEM
   ========================================================================== */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}
.footer-socials a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-weight: 700;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

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

/* ==========================================================================
   16. MEDIA RESPONSIVE BREAKPOINT OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .header-utility {
    display: none !important;
  }

  /* Absolute Header collapsed to Full Width Mobile bar */
  .header-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .header-bottom-row {
    display: none !important;
  }
  
  .header-top-row {
    padding: 12px 24px;
    border-bottom: none;
  }

  .header-meta-widgets {
    display: none !important;
  }
  
  .header-top-actions .mobile-toggle {
    display: block !important;
    font-size: 1.75rem;
    color: var(--dark);
    margin-left: 8px;
  }
  
  .action-search-btn, .currency-select, .btn-cart {
    display: none !important;
  }

  .logo-icon svg, .logo-icon img {
    height: 32px !important;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-text span {
    font-size: 0.65rem;
  }

  .quick-donate-container {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 32px);
  }

  .hero-slider {
    height: 100vh !important;
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4, .stats-grid, .footer-top, .zakat-calc-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .quick-donate-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }

  .bar-submit-btn, .bar-cart-float {
    align-self: stretch;
    justify-content: center;
  }

  .slider-controls {
    padding: 0 8px;
  }
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .slide-title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   17. KEYFRAME TRANSITIONS & MICRO-ANIMATIONS
   ========================================================================== */
@keyframes modal-enter {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes phone-wiggle {
  0% { transform: rotate(-12deg) scale(1.1); }
  100% { transform: rotate(12deg) scale(1.1); }
}

/* FontAwesome Icon Custom Styling overrides */
.meta-icon-fa {
  font-size: 1.4rem;
  color: var(--primary);
}

.header-utility i {
  margin-right: 6px;
  color: var(--secondary);
}

.header-phone-cta i {
  color: var(--primary);
  margin-right: 4px;
}

.action-search-btn i {
  color: var(--text-muted);
}

/* --- High-Height Viewport Overlap Prevention (For Short Screens) --- */
@media (max-height: 768px) {
  .hero-slider {
    min-height: 560px;
    height: calc(100vh - 40px);
  }

  .header-top-row {
    padding: 12px 0;
  }

  .header-bottom-row {
    padding: 10px 0;
  }

  .slide-title {
    font-size: 2.75rem !important;
    margin-bottom: 12px;
  }

  .slide-text {
    font-size: 1rem !important;
    margin-bottom: 18px;
  }

  .quick-donate-container {
    bottom: 20px;
  }

  .quick-donate-bar {
    padding: 16px 24px;
    gap: 16px;
  }
}

/* --- Mobile Slider Typography Scaler --- */
@media (max-width: 768px) {
  .slide-title {
    font-size: 2.25rem !important;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  
  .slide-text {
    font-size: 0.95rem !important;
    margin-bottom: 20px;
  }

  .slide-content .btn {
    padding: 10px 24px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   18. GENERAL SUBPAGES LAYOUTS & COMPONENT FIXES
   ========================================================================== */

/* Text Centering Helper */
.center {
  text-align: center;
}

/* Underline Heading Accent */
.underline {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}
.underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Section Header Typography */
.section-header {
  margin-bottom: 48px;
}
.section-header.center {
  text-align: center;
}
.section-header p {
  max-width: 680px;
  color: var(--text-muted);
  margin: 12px 0 0 0;
}
.section-header.center p {
  margin: 12px auto 0 auto;
}
.section-subtitle {
  display: block;
  font-size: 0.815rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* Teaser Features Checklist */
.teaser-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.teaser-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.teaser-features li::before {
  content: '\f058'; /* FontAwesome Circle Checkmark */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Footer Link Columns Share */
.footer-links-col {
  display: flex;
  flex-direction: column;
}
.footer-links-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-weight: 700;
}

/* Regulatory Badges */
.regulatory-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.regulatory-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Checkout Donate Modal & Form Overrides */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.65);
}

.modal-container {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.form-field label, .form-label {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-field input, .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  background-color: #f8fafc;
  transition: var(--transition);
}

.form-field input:focus, .form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(50, 119, 47, 0.1);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-field {
  flex: 1;
}

/* Adventure & Sidebar Select Inputs */
.select-appeal {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
  background-color: #f8fafc;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.select-appeal:focus {
  border-color: var(--primary);
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}
.input-symbol {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--text-muted);
}
.custom-amount-input {
  width: 100%;
  padding: 12px 16px 12px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  background-color: #f8fafc;
  transition: var(--transition);
}
.custom-amount-input:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(50, 119, 47, 0.1);
}

/* History Page Timeline CSS */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-left {
  left: 0;
}
.timeline-right {
  left: 50%;
}
.timeline-right::after {
  left: -10px;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-item::after {
    left: 21px;
  }
  .timeline-right {
    left: 0%;
  }
}

/* Base Utility and Wrapper classes */
.font-weight-bold {
  font-weight: 700;
}

.phone-icon {
  display: inline-flex;
  align-items: center;
}

.about-teaser-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-teaser-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slider-btn.prev, .slider-btn.next {
  /* JS bindings */
}

/* Contact Page Grid Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
