/* Modern Responsive CSS for Nusrah Prihatin NGO Portal */
:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --royal-blue: #1e3a8a;
  --dark: #0f172a;
  --gray-dark: #334155;
  --gray-medium: #64748b;
  --gray-light: #f1f5f9;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --success: #16a34a;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: #f8fafc;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Notification Bar */
.top-bar {
  background: var(--royal-blue);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links a {
  color: #93c5fd;
  margin-left: 15px;
  font-weight: 500;
}
.top-bar-links a:hover {
  color: var(--white);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.brand-text .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.brand-text p {
  font-size: 13px;
  color: var(--gray-medium);
  font-weight: 500;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-links a {
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 15px;
  padding: 6px 0;
  position: relative;
}

.nav-links a.active, .nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.btn-header {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-header:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 40%, #1e3a8a 100%);
  color: var(--white);
  padding: 64px 0;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #fef08a;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 17px;
  opacity: 0.95;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #f59e0b;
  color: #78350f !important;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #d97706;
  color: var(--white) !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-card {
  background: var(--white);
  color: var(--dark);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent);
}

.hero-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--royal-blue);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--gray-border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card li:last-child {
  border-bottom: none;
}

/* Stats Counter */
.stats-section {
  background: var(--white);
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-border);
}

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

.stat-item h3 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 14px;
  color: var(--gray-medium);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--dark);
}

.section-title p {
  color: var(--gray-medium);
  max-width: 700px;
  margin: 10px auto 0;
  font-size: 16px;
}

/* Card Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

/* Multi-Pillar Program Cards */
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.pillar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.pillar-card:hover .pillar-img img {
  transform: scale(1.05);
}

.pillar-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.pillar-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pillar-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.pillar-body p {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pillar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-more:hover {
  color: var(--primary-dark);
}

/* Activity Cards */
.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

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

.card-meta {
  font-size: 13px;
  color: var(--gray-medium);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-desc {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Wakaf Package Cards */
.well-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.well-header {
  background: var(--royal-blue);
  color: var(--white);
  padding: 16px 20px;
  text-align: center;
}

.well-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.well-img {
  height: 200px;
  overflow: hidden;
}

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

.well-body {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.well-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.well-quota {
  font-size: 14px;
  color: var(--gray-medium);
  margin-bottom: 16px;
}

.well-share-highlight {
  background: var(--accent-light);
  border: 1px dashed var(--accent);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  color: #92400e;
  font-size: 15px;
  margin-bottom: 16px;
}

.well-features {
  list-style: none;
  font-size: 13px;
  text-align: left;
  margin-bottom: 20px;
  flex-grow: 1;
}

.well-features li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-border);
}

.btn-toyyib {
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  display: block;
  text-align: center;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}
.btn-toyyib:hover {
  background: var(--primary-dark);
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--royal-blue) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 40px;
}

.cta-box h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 24px;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: #0b132b;
  color: #94a3b8;
  padding: 60px 0 24px;
  font-size: 14px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-col p {
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--white);
}

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

/* Article Detail Styles */
.article-header {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-border);
}

.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
  margin-top: 30px;
  line-height: 1.8;
  font-size: 17px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 30px 0 16px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--royal-blue);
}

.article-content p {
  margin-bottom: 18px;
}

.article-content img {
  border-radius: 8px;
  margin: 24px auto;
  box-shadow: var(--shadow);
}

.img-caption {
  text-align: center;
  font-size: 14px;
  color: var(--gray-medium);
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}


.akad-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: center;
}

.akad-box h4 {
  color: #b45309;
  font-size: 18px;
  margin-bottom: 12px;
}

.reasons-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-border);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.reason-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.reason-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.reason-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.reason-text p {
  font-size: 14px;
  color: var(--gray-medium);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  background: #fafafa;
}

.faq-answer {
  padding: 16px 20px;
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.7;
  border-top: 1px solid var(--gray-border);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hero-title {
    font-size: 28px;
  }
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* Keep article typography from overriding package card headings. */
.article-content .well-header h3 { color: white; margin: 0; font-size: 17px; }
.article-content .well-img img { margin: 0; border-radius: 0; box-shadow: none; }
/* Compact navigation and clear donation hierarchy */
.header-inner { padding: 14px 20px; gap: 24px; }
.brand { gap: 10px; flex-shrink: 0; }
.brand-text .brand-name { margin: 0; color: var(--dark); }
.brand-text p:not(.brand-name) { max-width: 240px; font-size: 11px; }
.main-nav { margin-left: auto; }
.nav-links { gap: 18px; }
.nav-links a { white-space: nowrap; font-size: 14px; }
.header-actions { order: 3; display: flex; align-items: center; gap: 10px; }
.btn-header, .btn-toyyib { background: #f59e0b; color: #78350f !important; white-space: nowrap; }
.btn-header:hover, .btn-toyyib:hover { background: #fbbf24; }
.menu-toggle { display: none; border: 1px solid var(--gray-border); background: white; color: var(--primary-dark); width: 44px; height: 44px; border-radius: 8px; font-size: 24px; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #d97706; outline-offset: 4px; }
.hero { background: linear-gradient(120deg, #073c36, #14665c); padding: 56px 0; }
.hero-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
.hero-title { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -1px; }
.hero-desc { max-width: 520px; font-size: 18px; }
.hero-tag { font-size: 11px; letter-spacing: 1.3px; background: rgba(255,255,255,.08); }
.btn-secondary { background: transparent; box-shadow: none; }
.hero-text-link { display: inline-block; margin-top: 20px; color: #e0f2e9; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.hero-text-link:hover { color: white; }
.hero-trust { font-size: 12px; color: #c7e5dc; margin-top: 24px; }
.hero-photo { position: relative; border-radius: 18px; overflow: hidden; margin: 0; box-shadow: 0 20px 48px #001f2440; }
.hero-photo > img { width: 100%; height: 420px; object-fit: cover; }
.hero-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 58px 24px 24px; background: linear-gradient(transparent, #072f2cf0); }
.hero-photo figcaption span { display: block; font-size: 10px; letter-spacing: 1.5px; color: #e5c988; }
.hero-photo figcaption strong { display: block; font-size: 21px; margin: 6px 0; }
.hero-photo figcaption p { font-size: 12px; color: #d4e8e1; }
.wakaf-photo > img { object-position: center 43%; }
.wakaf-price { font-size: 34px; font-weight: 800; color: #fbbf24; margin-bottom: 20px; }
.wakaf-price span { font-size: 14px; font-weight: 500; color: #d4e8e1; }
#program-utama, #pakej-wakaf { scroll-margin-top: 100px; }

.impact-gallery figure { margin: 0; min-width: 0; background: white; border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; }
.impact-gallery img { width: 100%; height: 250px; object-fit: cover; }
.impact-gallery figcaption { padding: 16px 18px; font-weight: 600; color: var(--primary-dark); }
.akad-box { background: #f8fafc; border: 1px solid var(--gray-border); text-align: left; padding: 20px; }
.akad-box summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); }
.akad-box[open] summary { margin-bottom: 16px; }

/* Contact details remain readable on narrow screens. */
.contact-grid { margin-top: 30px; }
.contact-grid > * { min-width: 0; }
.contact-email { overflow-wrap: anywhere; }
.contact-steps { padding-left: 22px; }
.contact-steps li { padding-left: 4px; margin-bottom: 10px; }
#cara-sumbangan, #dokumen-wakaf { scroll-margin-top: 100px; }
@media (max-width: 768px) {
  .contact-grid { gap: 20px; }
  #cara-sumbangan, #dokumen-wakaf { scroll-margin-top: 86px; }
}
@media (max-width: 1240px) {
  .top-bar { display: none; }
  .header-inner { position: relative; padding: 12px 20px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 20px 20px; background: white; border-bottom: 1px solid var(--gray-border); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: block; }
  .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 12px 8px; }
  .nav-links a.active::after { display: none; }
  .hero-inner { gap: 32px; }
}
@media (max-width: 768px) {
  .brand img { width: 38px; height: 38px; }
  .brand-text .brand-name { font-size: 13px; }
  .brand-text p:not(.brand-name) { display: none; }
  .brand { gap: 8px; }
  .header-inner { gap: 8px; padding: 10px 16px; }
  .btn-header { padding: 10px 12px; font-size: 13px; }
  .hero { padding: 32px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-title { font-size: 32px; line-height: 1.2; }
  .hero-desc { font-size: 16px; margin-bottom: 22px; }
  .hero-btns { gap: 10px; }
  .hero-btns a { padding: 12px 16px; font-size: 14px; text-align: center; }
  .hero-photo > img { height: 240px; }
  .hero-photo figcaption { padding: 40px 18px 16px; }
  .hero-photo figcaption strong { font-size: 18px; }
  .hero-trust { margin-top: 18px; }
  .wakaf-photo > img { height: 290px; }
  .wakaf-price { font-size: 30px; }
  .article-content { padding: 22px 18px; font-size: 16px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 25px; }
  .cta-box, .reasons-box { padding: 24px 18px; }
  .stats-section { padding: 26px 0; }
  .stat-item h3 { font-size: 28px; }
  .stat-item p { font-size: 12px; }
  #program-utama, #pakej-wakaf { scroll-margin-top: 86px; }
}

