/* ============================================================
   EKAMUTHU ORGANIZATION — MAIN CSS
   Deep Teal + Warm Gold — Sri Lankan Community Premium Theme
   ============================================================ */

/* Google Fonts loaded in header.php */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Sinhala:wght@400;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --primary:         #1A5F7A;
  --primary-dark:    #124560;
  --primary-light:   #2A8FAA;
  --primary-xlight:  #E3F2F7;
  --secondary:       #C8962A;
  --secondary-light: #E8B84B;
  --secondary-xlight:#FDF3DC;
  --accent:          #E8F4F0;
  --dark:            #0D1B2A;
  --light:           #F8FBFC;
  --white:           #FFFFFF;
  --text-main:       #1C2B3A;
  --text-muted:      #6B7C8D;
  --border:          #D8E6EE;
  --danger:          #C0392B;
  --success:         #27AE60;
  --warning:         #E67E22;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-sinhala: 'Noto Sans Sinhala', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  40px;
  --radius-full:50%;

  --shadow-xs:  0 1px 4px rgba(13,27,42,0.06);
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 4px 24px rgba(26,95,122,0.12);
  --shadow-lg:  0 8px 48px rgba(26,95,122,0.16);
  --shadow-xl:  0 16px 64px rgba(26,95,122,0.22);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

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

/* ── Utility ────────────────────────────────────────────── */
.text-primary-ek  { color: var(--primary) !important; }
.text-secondary-ek{ color: var(--secondary) !important; }
.text-muted-ek    { color: var(--text-muted) !important; }
.bg-primary-ek    { background: var(--primary) !important; }
.bg-secondary-ek  { background: var(--secondary) !important; }
.bg-accent-ek     { background: var(--accent) !important; }
.bg-dark-ek       { background: var(--dark) !important; }
.bg-light-ek      { background: var(--light) !important; }

.container-ek { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

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

/* ── Lotus Section Divider (Signature Element) ──────────── */
.lotus-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 0 0 16px;
}
.lotus-divider::before,
.lotus-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  max-width: 180px;
}
.lotus-divider-icon {
  color: var(--secondary);
  font-size: 1.4rem;
  line-height: 1;
}

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-ek-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ek-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ek-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 11px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ek-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ek-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 11px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ek-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse-gold 2.4s infinite;
  text-decoration: none;
}
.btn-donate:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,42,0.45);
  animation: none;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,150,42,0.45); }
  60%       { box-shadow: 0 0 0 14px rgba(200,150,42,0); }
}

/* ── Cards ──────────────────────────────────────────────── */
.ek-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.ek-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.ek-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.ek-card-body { padding: 24px; }

.category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  background: var(--primary-xlight);
  color: var(--primary);
  margin-bottom: 10px;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background: #E8F7EE;
  color: var(--success);
}

/* ── Navbar ─────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

#main-nav.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

#main-nav.nav-white {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

#main-nav.nav-white .nav-link { color: var(--text-main); }
#main-nav.nav-white .nav-link:hover { color: var(--primary); }
#main-nav.nav-white .navbar-brand { color: var(--dark); }

.navbar-brand-ek {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}
.navbar-brand-ek img {
  height: 44px;
  width: auto;
}
.navbar-brand-ek .brand-text { line-height: 1.2; }
.navbar-brand-ek .brand-sub  { font-size: 0.65rem; font-family: var(--font-body); font-weight: 400; opacity: 0.8; display: block; }

.nav-link-ek {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link-ek::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 1px;
}
.nav-link-ek:hover { color: var(--white) !important; }
.nav-link-ek:hover::after,
.nav-link-ek.active::after { transform: scaleX(1); }
.nav-link-ek.active { color: var(--white) !important; }

.nav-dropdown .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 8px;
  margin-top: 8px;
}
.nav-dropdown .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
}
.nav-dropdown .dropdown-item:hover {
  background: var(--primary-xlight);
  color: var(--primary);
}

.nav-toggler {
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,0.82) 0%,
    rgba(26,95,122,0.55) 60%,
    rgba(13,27,42,0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,150,42,0.18);
  border: 1px solid rgba(200,150,42,0.4);
  color: var(--secondary-light);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-sinhala {
  font-family: var(--font-sinhala);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero-title span { color: var(--secondary-light); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(13,27,42,0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200,150,42,0.25);
  z-index: 3;
  padding: 0;
}
.hero-stats-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  padding: 18px 40px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex: 1;
  min-width: 140px;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

/* ── Mission Strip ──────────────────────────────────────── */
.mission-strip { background: var(--white); }
.mission-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.mission-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mission-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-xlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}
.mission-card:hover .mission-icon {
  background: var(--primary);
  color: var(--white);
}
.mission-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.mission-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ── Progress Bar ───────────────────────────────────────── */
.ek-progress {
  background: var(--border);
  border-radius: var(--radius-xl);
  height: 8px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.ek-progress-bar {
  height: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.progress-labels .raised { color: var(--primary); font-weight: 600; }

/* ── Counter ────────────────────────────────────────────── */
.counter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.counter-item { text-align: center; padding: 20px; }
.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}
.counter-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
}

/* ── Event Cards ────────────────────────────────────────── */
.event-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.event-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.event-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-card-img-wrap img { transform: scale(1.05); }

.event-date-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
  box-shadow: var(--shadow-sm);
}
.event-date-badge .day  { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); line-height: 1; display: block; }
.event-date-badge .month{ font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; display: block; }

.event-status-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-upcoming { background: var(--primary-xlight); color: var(--primary); }
.status-completed { background: #E8F7EE; color: var(--success); }
.status-ongoing   { background: var(--secondary-xlight); color: var(--secondary); }
.status-cancelled { background: #FDECEA; color: var(--danger); }

/* ── Team Cards ─────────────────────────────────────────── */
.team-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  transition: border-color 0.3s;
}
.team-card:hover .team-avatar { border-color: var(--primary); }

.patron-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 40px;
}
.patron-card .patron-title { color: var(--secondary-light); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.patron-card h3 { color: var(--white); font-size: 1.8rem; margin: 8px 0; }
.patron-card p  { color: rgba(255,255,255,0.75); margin: 0; }
.patron-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--secondary);
  flex-shrink: 0;
}

/* ── Blog Cards ─────────────────────────────────────────── */
.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h5 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta span { margin-right: 12px; }

/* ── Marketplace Cards ──────────────────────────────────── */
.marketplace-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.marketplace-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.marketplace-card-body { padding: 20px; flex: 1; }

.star-rating { color: var(--secondary); font-size: 0.85rem; }
.star-rating .empty { color: var(--border); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--white);
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.whatsapp-btn:hover { background: #1ebe5a; color: var(--white); }

/* ── Donation Section ───────────────────────────────────── */
.donation-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1A2F44 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.donation-section::before {
  content: '';
  position: absolute;
  right: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,42,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--secondary);
  background: rgba(200,150,42,0.15);
  color: var(--secondary-light);
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,95,122,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--primary-xlight);
  line-height: 1;
}
.testimonial-text { color: var(--text-main); font-style: italic; margin-bottom: 20px; padding-top: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ── Newsletter ─────────────────────────────────────────── */
.newsletter-section {
  background: var(--primary-xlight);
  border-top: 3px solid var(--primary);
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--primary); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: var(--secondary-light); font-family: var(--font-sinhala); font-size: 0.9rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 300px; }

.footer-heading {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary-light); }
.footer-links i { margin-right: 8px; color: var(--secondary); width: 16px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.12);
}
.social-btn:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--secondary-light); }

/* ── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); box-shadow: 0 6px 28px rgba(37,211,102,0.7); }
.whatsapp-float-tooltip {
  position: absolute;
  right: 66px;
  background: var(--dark);
  color: var(--white);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 12px; }
.breadcrumb-ek { color: rgba(255,255,255,0.65); font-size: 0.88rem; justify-content: center; }
.breadcrumb-ek a { color: var(--secondary-light); }
.breadcrumb-ek .separator { margin: 0 8px; }

/* ── Forms ───────────────────────────────────────────────── */
.ek-form-group { margin-bottom: 20px; }
.ek-form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.ek-input {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ek-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,122,0.12);
}
.ek-input.error { border-color: var(--danger); }
select.ek-input { cursor: pointer; }
textarea.ek-input { resize: vertical; min-height: 110px; }

/* ── Filter Tabs ─────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 500;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── Scroll Animations ───────────────────────────────────── */
[data-aos] { opacity: 0; }
[data-aos].aos-animate { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
  .patron-card { flex-direction: column; text-align: center; gap: 24px; }
  .patron-avatar { width: 100px; height: 100px; }
  .hero-stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { flex: 1 1 100%; }
  #main-nav { height: 60px; }
  :root { --nav-height: 60px; }
}

@media (max-width: 480px) {
  .container-ek { padding-inline: 16px; }
  .btn-ek-primary, .btn-ek-outline, .btn-donate { width: 100%; justify-content: center; }
  .hero-title { font-size: 2rem; }
}

/* ── Misc UI ─────────────────────────────────────────────── */
.divider-line {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.back-to-top {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  border: none;
  font-size: 1.1rem;
  z-index: 998;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: 0.3; display: block; margin-bottom: 16px; }

/* Alert overrides */
.alert { border-radius: var(--radius-md); border: none; }
.alert-success { background: #E8F7EE; color: #1e7e4d; }
.alert-danger   { background: #FDECEA; color: #a93226; }
.alert-warning  { background: var(--secondary-xlight); color: #8a5a00; }
.alert-info     { background: var(--primary-xlight); color: var(--primary); }
