/*
Theme Name: Amal Islamic Fundraising
Theme URI: https://github.com/amal-theme
Author: Amor El Kutub
Author URI: https://instagram.com/amorelkutub
Description: WordPress theme premium untuk organisasi Islam dan lembaga fundraising/donasi. Dilengkapi CPT Campaigns, progress bar, Customizer panel, WhatsApp CTA, dan desain elegan bernuansa islami.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amal
Tags: fundraising, islamic, charity, donation, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --green-deep:    #0F2D1F;
  --green-primary: #1A4731;
  --green-mid:     #2D6A4F;
  --green-light:   #52B788;
  --green-pale:    #D8F3DC;
  --gold-dark:     #92680A;
  --gold-primary:  #C9971F;
  --gold-light:    #E8C85A;
  --gold-pale:     #FDF3D7;
  --cream:         #FAF6EE;
  --cream-dark:    #F0E8D6;
  --white:         #FFFFFF;
  --text-dark:     #1A1A1A;
  --text-body:     #3D3D3D;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E5E0D5;
  --shadow-sm:     0 2px 8px rgba(15,45,31,.08);
  --shadow-md:     0 6px 24px rgba(15,45,31,.12);
  --shadow-lg:     0 16px 48px rgba(15,45,31,.18);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --font-display:  'Amiri', Georgia, serif;
  --font-heading:  'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:     'Nunito', sans-serif;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
input, textarea { outline: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--green-deep);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.display-font { font-family: var(--font-display); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 800px; }

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.section-pad-lg { padding: 120px 0; }

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

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: 56px;
}
.section-header.text-center { text-align: center; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 14px;
}
.section-kicker::before,
.section-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-primary);
}
.section-kicker.no-lines::before,
.section-kicker.no-lines::after { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}
.text-center .section-desc { margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,71,49,.35);
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--white);
  border-color: var(--gold-primary);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,151,31,.4);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
}

/* ============================================
   BADGE / PILL
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-green  { background: var(--green-pale); color: var(--green-mid); }
.badge-gold   { background: var(--gold-pale); color: var(--gold-dark); }
.badge-urgent { background: #FEE2E2; color: #B91C1C; }

/* ============================================
   ISLAMIC GEOMETRIC PATTERN SVG (reusable)
   ============================================ */
.geo-pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
.geo-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9971F' fill-opacity='1'%3E%3Cpath d='M40 0L50 14H30L40 0zM40 80L30 66H50L40 80zM0 40L14 30V50L0 40zM80 40L66 50V30L80 40zM40 28L52 40 40 52 28 40z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--green-deep);
  color: rgba(255,255,255,.8);
  font-size: 0.8rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar a { color: rgba(255,255,255,.8); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; }
.top-bar-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img { height: 48px; width: auto; }
.logo-text { line-height: 1.2; }
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-primary);
}
.logo-tagline {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
  color: var(--green-primary);
  background: var(--green-pale);
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
}
.main-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 800;
  background: var(--white);
  padding: 100px 24px 40px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav.visible { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.mobile-nav a:hover { color: var(--green-primary); padding-left: 8px; }
.mobile-nav .sub-menu { padding-left: 16px; }
.mobile-nav .sub-menu a { font-size: 1rem; color: var(--text-muted); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.3) saturate(0.8);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,45,31,.92) 0%,
    rgba(26,71,49,.75) 50%,
    rgba(201,151,31,.2) 100%
  );
}

/* Islamic star pattern on hero */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,151,31,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(82,183,136,.06) 0%, transparent 40%);
}

.hero-geo {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9971F'%3E%3Cpolygon points='30,2 36,20 55,20 40,32 46,50 30,39 14,50 20,32 5,20 24,20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-bismillah {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}
.hero-stat-item { text-align: left; }
.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}

/* ============================================
   IMPACT STATS STRIP
   ============================================ */
.stats-strip {
  background: var(--green-primary);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L25 10H15L20 0zM20 40L15 30H25L20 40zM0 20L10 15V25L0 20zM40 20L30 25V15L40 20z' fill='%23C9971F' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-item {
  background: transparent;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.15);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-value sup {
  font-size: 1.4rem;
  vertical-align: super;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,151,31,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon svg { width: 20px; height: 20px; color: var(--gold-light); }

/* ============================================
   PROGRAM PILLARS
   ============================================ */
.programs { background: var(--cream); }
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--gold-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.program-card:hover::before { transform: scaleX(1); }

.program-icon {
  width: 72px;
  height: 72px;
  background: var(--green-pale);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}
.program-icon svg { width: 36px; height: 36px; color: var(--green-primary); }
.program-card:hover .program-icon {
  background: var(--green-primary);
}
.program-card:hover .program-icon svg { color: var(--white); }

.program-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.program-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   CAMPAIGNS GRID
   ============================================ */
.campaigns { background: var(--white); }
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.campaign-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.campaign-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.campaign-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.campaign-card:hover .campaign-thumb img { transform: scale(1.05); }
.campaign-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--gold-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.campaign-thumb-placeholder svg { width: 48px; height: 48px; color: var(--green-mid); opacity: 0.4; }

.campaign-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.campaign-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.campaign-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.campaign-title a { color: inherit; }
.campaign-title a:hover { color: var(--green-primary); }

.campaign-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress Bar */
.campaign-progress { margin-bottom: 16px; }
.progress-bar-wrap {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 50%;
  background: var(--green-primary);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.progress-collected { font-size: 0.8rem; color: var(--text-muted); }
.progress-collected strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--green-primary);
  font-weight: 700;
}
.progress-percent {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
}

.campaign-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.campaign-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.campaign-meta-item svg { width: 13px; height: 13px; }

.campaign-card .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* ============================================
   FEATURED CAMPAIGN (LARGE)
   ============================================ */
.campaign-featured {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.campaign-featured-img {
  position: relative;
  min-height: 460px;
}
.campaign-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campaign-featured-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   ABOUT / MISSION
   ============================================ */
.about-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-image-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-image-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1;
}
.about-image-badge-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.values-list { margin-top: 32px; }
.value-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.value-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 22px; height: 22px; color: var(--green-primary); }
.value-text h5 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--green-deep);
}
.value-text p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ============================================
   TESTIMONIALS / MUZAKKI
   ============================================ */
.testimonials { background: var(--green-deep); position: relative; overflow: hidden; }
.testimonials .section-title { color: var(--white); }
.testimonials .section-desc { color: rgba(255,255,255,.65); }
.testimonials .section-kicker { color: var(--gold-light); }
.testimonials .section-kicker::before,
.testimonials .section-kicker::after { background: var(--gold-light); }

.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-mid);
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}
.testimonial-role {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-deep) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}
.cta-banner .section-kicker { color: var(--gold-light); }
.cta-banner .section-kicker::before,
.cta-banner .section-kicker::after { background: var(--gold-light); }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 36px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta-ornament {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201,151,31,.15);
  border-radius: 50%;
  pointer-events: none;
}
.cta-ornament-1 { top: -100px; left: -100px; }
.cta-ornament-2 { bottom: -120px; right: -80px; width: 250px; height: 250px; }
.cta-ornament-3 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  border-color: rgba(201,151,31,.06);
}

/* ============================================
   LATEST NEWS / BLOG
   ============================================ */
.news-section { background: var(--cream); }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.news-thumb { aspect-ratio: 16/9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-body { padding: 24px; }
.news-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.news-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-title a { color: var(--green-deep); }
.news-title a:hover { color: var(--green-primary); }
.news-excerpt { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 16px; }
.news-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-read-more:hover { gap: 8px; }

/* ============================================
   PARTNERS STRIP
   ============================================ */
.partners-strip {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logo {
  opacity: 0.45;
  transition: opacity 0.3s ease;
  filter: grayscale(1);
}
.partner-logo:hover { opacity: 0.75; filter: grayscale(0); }
.partner-logo img { height: 36px; width: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.75);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L37 22H52L39 33 44 50 30 40 16 50 21 33 8 22H23z' fill='%23C9971F' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.footer-top {
  padding: 72px 0 48px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
}

.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--gold-primary);
  color: var(--white);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  align-items: flex-start;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold-primary); flex-shrink: 0; margin-top: 3px; }

.footer-newsletter { margin-top: 20px; }
.footer-newsletter p { font-size: 0.8rem; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-input:focus { border-color: var(--gold-primary); background: rgba(255,255,255,.12); }
.newsletter-btn {
  background: var(--gold-primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-btn:hover { background: var(--gold-dark); }

.footer-divider { height: 1px; background: rgba(255,255,255,.08); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  position: relative;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-float-btn {
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.wa-float-btn:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.wa-float-btn svg { width: 30px; height: 30px; color: white; }
.wa-float-tooltip {
  background: var(--green-deep);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transform: scale(0);
  transform-origin: right bottom;
  transition: var(--transition);
}
.wa-float:hover .wa-float-tooltip { transform: scale(1); }
.wa-pulse {
  position: absolute;
  top: 0; right: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s ease infinite;
  pointer-events: none;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */

/* Page Hero (non-homepage) */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-primary) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); font-size: 0.85rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb span { color: var(--gold-light); }

/* Single Campaign Page */
.single-campaign-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 56px 0;
}
.campaign-content-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.campaign-content-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.campaign-sidebar-sticky {
  position: sticky;
  top: 90px;
}
.donation-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.donation-box h4 { font-size: 1rem; margin-bottom: 20px; color: var(--green-deep); }

.amount-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.amount-option {
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-body);
}
.amount-option:hover,
.amount-option.active {
  border-color: var(--green-primary);
  background: var(--green-pale);
  color: var(--green-primary);
}
.amount-custom {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--white);
  margin-bottom: 16px;
  transition: var(--transition);
}
.amount-custom:focus { border-color: var(--green-primary); }
.donation-box .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.donation-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* Share box */
.share-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}
.share-box h5 { font-size: 0.85rem; margin-bottom: 14px; color: var(--text-muted); font-weight: 700; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.share-btn-wa  { background: #E7FAF0; color: #128C7E; }
.share-btn-wa:hover { background: #25D366; color: white; }
.share-btn-fb  { background: #EBF1FF; color: #1877F2; }
.share-btn-fb:hover { background: #1877F2; color: white; }
.share-btn-copy { background: var(--cream); color: var(--text-body); }
.share-btn-copy:hover { background: var(--green-primary); color: white; }
.share-btn svg { width: 14px; height: 14px; }

/* Donation list */
.donors-list {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.donors-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--green-deep);
}
.donor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.donor-item:last-child { border-bottom: none; }
.donor-avatar {
  width: 38px;
  height: 38px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-primary);
  flex-shrink: 0;
}
.donor-name { font-weight: 600; font-size: 0.875rem; color: var(--text-dark); }
.donor-amount { font-size: 0.8rem; color: var(--green-primary); font-weight: 700; }
.donor-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.donor-info { flex: 1; }
.donor-amount-wrap { text-align: right; }

/* ============================================
   ENTRY CONTENT (Blog/Pages)
   ============================================ */
.entry-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
}
.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 {
  margin: 2rem 0 1rem;
  color: var(--green-deep);
}
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  border-left: 4px solid var(--green-primary);
  padding: 16px 24px;
  background: var(--green-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--green-primary);
}
.entry-content a { color: var(--green-primary); text-decoration: underline; }
.entry-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--border);
  padding: 10px 16px;
  text-align: left;
}
.entry-content table th {
  background: var(--green-pale);
  color: var(--green-primary);
  font-weight: 700;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 56px;
}
.pagination a, .pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-body);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--green-primary); color: var(--green-primary); background: var(--green-pale); }
.pagination .current { background: var(--green-primary); color: var(--white); border-color: var(--green-primary); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.sidebar-widget h4 {
  font-size: 1rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-pale);
  margin-bottom: 20px;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget h4::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--green-primary);
  border-radius: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus { border-color: var(--green-primary); outline: none; }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-404-num {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: -16px;
}
.page-404 h2 { color: var(--green-primary); margin-bottom: 12px; }

/* ============================================
   UTILITIES - MISC
   ============================================ */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.text-green { color: var(--green-primary); }
.text-gold  { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-featured { grid-template-columns: 1fr; }
  .campaign-featured-img { min-height: 300px; }
  .single-campaign-layout { grid-template-columns: 1fr; }
  .campaign-sidebar-sticky { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .section-pad-lg { padding: 72px 0; }

  .top-bar { display: none; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .header-actions .btn { display: none; }
  .header-actions .btn.btn-primary { display: inline-flex; font-size: 0.8rem; padding: 8px 18px; }

  .hero { min-height: 85vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

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

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  .about-section .grid-2 { gap: 40px; }
  .about-image-wrap { max-height: 320px; }

  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .amount-options { grid-template-columns: repeat(2, 1fr); }
}
