:root {
  --primary-color: #1f7a4d;
  --secondary-color: #145c36;
  --accent-color: #c9a966;
  --accent-soft: #f3ecd1;
  --surface: #f4fbf3;
  --surface-strong: #e7f0e5;
  --text-primary: #0f172a;
  --text-secondary: #4b5563;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background-color: #e0efe7;
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(201, 169, 102, 0.26), transparent 10%),
    radial-gradient(circle at 76% 8%, rgba(31, 122, 77, 0.14), transparent 9%),
    radial-gradient(circle at 25% 75%, rgba(33, 106, 60, 0.12), transparent 11%),
    radial-gradient(circle at 88% 85%, rgba(201, 169, 102, 0.12), transparent 12%),
    linear-gradient(180deg, #f0fbf7 0%, #dff2ed 28%, #cfe7dd 56%, #d6e9df 100%);
  background-attachment: scroll;
  background-size: cover;
  background-repeat: no-repeat;
}

section {
  position: relative;
  z-index: 1;
  background-color: rgba(247, 252, 245, 0.92);
  border: 1px solid rgba(31, 122, 77, 0.08);
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 16%),
    radial-gradient(circle at bottom right, rgba(201, 169, 102, 0.08), transparent 18%);
}

section > .container {
  position: relative;
  z-index: 2;
}

.section-divider {
  width: 88px;
  height: 5px;
  background: linear-gradient(90deg, rgba(201, 169, 102, 0.95), rgba(31, 122, 77, 0.95));
  border-radius: 9999px;
}

.donasi-banner {
  min-height: 240px;
}

.donasi-overlay {
  transition: opacity 0.3s ease;
}

.donasi-card {
  background: rgba(252, 255, 250, 0.95);
  border: 1px solid rgba(31, 122, 77, 0.12);
  border-radius: 1.5rem;
  padding: 1.3rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.donasi-button {
  font-weight: 700;
}

.donasi-copy {
  gap: 1rem;
}

#donasi-copy,
#donasi-qris {
  min-width: 200px;
}

#donasi-copy:hover,
#donasi-qris:hover {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .donasi-banner {
    padding: 2rem 1.5rem;
  }
  .donasi-info {
    grid-template-columns: 1fr;
  }
  .donasi-copy {
    flex-direction: column;
    align-items: stretch;
  }
  #donasi-copy,
  #donasi-qris {
    width: 100%;
  }
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

h2 {
  color: #0b3924;
}

h3 {
  color: #164a2f;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

nav a,
nav button {
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link.active,
.nav-link:hover,
.menu-link:hover {
  color: var(--primary-color);
}

.btn-primary {
  background: linear-gradient(135deg, #1e7247, #22a15e);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.95rem 1.6rem;
  box-shadow: 0 18px 40px rgba(34, 161, 94, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(201, 169, 102, 0.15), rgba(31, 122, 77, 0.18));
  color: var(--secondary-color);
  border-radius: 9999px;
  border: 1px solid rgba(31, 122, 77, 0.18);
}

nav {
  background: rgba(241, 249, 241, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 122, 77, 0.08);
}

nav .container {
  position: relative;
  z-index: 2;
}

.hero-slider {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: radial-gradient(circle at top center, rgba(201, 169, 102, 0.15), transparent 25%);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(21, 74, 47, 0.14) 0%, rgba(14, 55, 34, 0.8) 95%);
  padding: 2rem;
}

.slide-copy h2 {
  text-shadow: 0 12px 30px rgba(5, 40, 20, 0.35);
}

.slide-copy p {
  color: rgba(248, 250, 252, 0.95);
}

.slide-copy a.btn-primary {
  box-shadow: 0 22px 60px rgba(34, 161, 94, 0.2);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.7) 100%);
  padding: 2rem;
}

.slide-copy {
  max-width: 640px;
  width: 100%;
  overflow-wrap: break-word;
}

.nav-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  transform: translateX(-50%);
  z-index: 10;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.nav-dot.active {
  background: var(--accent-color);
}

.card-hover {
  background: rgba(252, 255, 250, 0.95);
  border: 1px solid rgba(31, 122, 77, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 122, 77, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 9999px;
}

section:not(#home) {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

section h2,
section h3 {
  position: relative;
  z-index: 1;
}

section[data-aos] {
  position: relative;
}

#profile .space-y-6 > div {
  background: linear-gradient(135deg, rgba(31, 122, 77, 0.08), rgba(201, 169, 102, 0.06));
  border: 2px solid rgba(31, 122, 77, 0.15);
  box-shadow: 0 12px 30px rgba(31, 122, 77, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 1.75rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#profile .space-y-6 > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f7a4d, #c9a966);
  z-index: 1;
}

#profile .space-y-6 > div:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 122, 77, 0.28);
  box-shadow: 0 24px 48px rgba(31, 122, 77, 0.12);
  background: linear-gradient(135deg, rgba(31, 122, 77, 0.12), rgba(201, 169, 102, 0.09));
}

#profile h3 {
  background: linear-gradient(135deg, #1f7a4d, #145c36);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
}

#profile ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

#profile ul li {
  background: #f8faf6;
  border-radius: 1.25rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#profile ul li:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 18px 47px rgba(15, 23, 42, 0.08);
}

#profile ul li i {
  color: var(--primary-color);
  margin-top: 0.2rem;
}

#profile ul li p {
  margin: 0;
  color: var(--text-secondary);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 60;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: min(540px, calc(100% - 2rem));
  background: rgba(252, 255, 250, 0.98);
  border: 1px solid rgba(31, 122, 77, 0.08);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  border-radius: 9999px;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast.error {
  background: #dc2626;
}

.toast.success {
  background: #16a34a;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  z-index: 80;
  transition: opacity 0.3s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 3rem;
  height: 3rem;
  border: 5px solid rgba(46, 125, 50, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 9999px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  box-shadow: 0 20px 45px rgba(46, 125, 50, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-0.25rem);
}

.field-error {
  color: #991b1b;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.modal-show {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .slide-content {
    padding: 1.5rem;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 52vh;
    max-height: 85vh;
  }

  .slide-content {
    padding: 1rem;
    align-items: flex-end;
    justify-content: center;
  }

  .slide-copy {
    padding: 0.75rem;
    max-width: 100%;
  }

  .slide-copy h2 {
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .slide-copy p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .slide-copy a.btn-primary {
    width: 100%;
    justify-content: center;
  }

  .nav-dots {
    gap: 0.5rem;
  }

  .modal-dialog {
    padding: 1.5rem;
  }
}

/* ===== DONASI MODERN STYLING ===== */
.donasi-divider {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 4px 15px rgba(31, 122, 77, 0.3);
}

.donasi-whatsapp-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donasi-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 25px 50px rgba(37, 211, 102, 0.5);
}

.donasi-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.donasi-bank-card {
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.donasi-bank-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.donasi-bank-icon {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.donasi-bank-icon:hover {
  transform: scale(1.05);
}

.donasi-account {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.donasi-account:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.donasi-rek-number {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin: 4px 0;
  display: inline-block;
  transition: all 0.3s ease;
}

.donasi-rek-number:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.02);
}

.donasi-copy-btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.donasi-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.donasi-copy-btn:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.donasi-copy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.donasi-copy-btn:hover::before {
  left: 100%;
}

/* Responsive Donasi */
/* ===== BERITA CARD COLORFUL STYLING ===== */
#beritaContainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  #beritaContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #beritaContainer {
    grid-template-columns: repeat(3, 1fr);
  }
}

.berita-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  height: 100%;
}

.berita-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.berita-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: #f1f5f9;
}

.berita-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.berita-card:hover .berita-image img {
  transform: scale(1.08);
}

.berita-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.berita-date {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.berita-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.berita-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #059669;
  margin-top: auto;
  transition: color 0.3s ease;
}

.berita-card:hover .berita-readmore {
  color: #047857;
}

.berita-readmore i {
  transition: transform 0.3s ease;
}

.berita-card:hover .berita-readmore i {
  transform: translateX(4px);
}

.berita-skeleton {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.skeleton-img {
  width: 100%;
  padding-top: 60%;
  background: linear-gradient(90deg, #f1f5f9 0px, #e2e8f0 40px, #f1f5f9 80px);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-content {
  padding: 24px;
}

.skeleton-text {
  height: 12px;
  margin-bottom: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 0px, #e2e8f0 40px, #f1f5f9 80px);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-text.title { height: 20px; margin-bottom: 16px; width: 90%; }
.skeleton-text.date { height: 14px; width: 40%; margin-bottom: 16px; }
.skeleton-text.desc { width: 100%; }
.skeleton-text.desc-2 { width: 85%; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.berita-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background-color: #f8fafc;
  border-radius: 20px;
  border: 2px dashed #cbd5e1;
}
.berita-empty-icon {
  font-size: 40px;
  color: #94a3b8;
  margin-bottom: 16px;
}
.berita-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}
.berita-empty-text {
  color: #64748b;
}

/* ===== Donasi Responsive ===== */
@media (max-width: 1024px) {
  .donasi-bank-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  #donasi h2 {
    font-size: 2.5rem;
  }

  .donasi-whatsapp-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .donasi-bank-card {
    padding: 1.5rem;
  }

  .donasi-bank-icon {
    width: 3rem;
    height: 3rem;
  }

  .donasi-rek-number {
    font-size: 0.875rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .donasi-bank-card {
    padding: 1rem;
  }

  .donasi-account {
    padding: 10px;
  }

  .donasi-copy-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
