:root {
  --color-primary: #2b2d42;
  --color-secondary: #4f539c;
  --color-accent: #8d99ae;
  --color-background: #ffffff;
  --color-surface: #edf2f4;
  --color-border: #e2e8f0;
  --color-error: #ef233c;
  --color-footer-bg1: #2b2d42;
  --color-footer-bg2: #4f539c;
  --color-footer-text: rgba(255, 255, 255, 0.8);
  --color-footer-line: rgba(255, 255, 255, 0.2);
  --color-hover-bg: rgba(255, 255, 255, 0.1);
  --color-white: #ffffff;
  --color-gradient-start: var(--color-primary);
  --color-overlay-bg: rgba(43, 45, 66, 0.6);
  --color-overlay-border: #ffd700;
  --shadow-light: 0 4px 18px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(43, 45, 66, 0.15);
  --shadow-hover: 0 10px 35px rgba(43, 45, 66, 0.18);
  --color-gold: #ffd700;
  --color-silver: #c0c0c0;
  --color-bronze: #cd7f32;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  background: var(--color-surface);
  font-family: 'Poppins', Arial, Helvetica Neue, Helvetica, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--safe-area-top);
}

body.menu-active {
  overflow: hidden;
}

::selection {
  background-color: var(--color-secondary);
  color: white;
}

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

.inner-width {
  margin: auto;
  padding: 0 20px;
  width: 100%;
  max-width: 1400px;
}

section {
  padding: 60px 0;
}

section.bg-putih {
  background-color: var(--color-background);
}
section.bg-abu {
  background-color: var(--color-surface);
}

.navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  z-index: 1000;
  padding: calc(12px + var(--safe-area-top)) 0 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-white);
  z-index: 1001;
}

.navigation-bar .toggle-button {
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--color-white);
  z-index: 1200;
  padding: 5px;
}

.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  z-index: 1202;
  overflow-y: auto;
  padding: calc(60px + var(--safe-area-top)) 10px 20px 10px;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  list-style: none;
}

.main-menu.active {
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

a.menu-item {
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

a.menu-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

a.menu-item:hover {
  background-color: var(--color-hover-bg);
}

.menu-item-desktop {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 60px 0;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url('/img/hero-wave.svg') no-repeat center/cover;
  opacity: 0.1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  width: 100%;
  max-width: 800px;
  padding: 0 15px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

.hero-sub {
  color: var(--color-accent);
  margin: 1rem 0 1.5rem 0;
}

.hero-desc {
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  background-color: var(--color-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
}

.hero-arrow {
  margin-top: 3rem;
  font-size: 1.5rem;
  color: var(--color-white);
  animation: bounce 2s infinite;
}

.kategori-card {
  display: flex;
  align-items: center;
  margin: 0 0 25px 0;
}

.kategori-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-right: 15px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  flex-shrink: 0;
}

.kategori-title {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.layanan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-light);
  aspect-ratio: 2/3;
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(43, 45, 66, 0.2);
  border-color: var(--color-secondary);
}

.card-img-container {
  position: relative;
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffffff 0%, var(--color-surface) 100%);
  padding: 20px;
}

.card-img-container img,
.card-img-container svg {
  width: 65%;
  height: 65%;
  object-fit: contain;
  display: block;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.layanan-card:hover .card-img-container img,
.layanan-card:hover .card-img-container svg {
  transform: scale(1.15) rotate(-3deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.card-img-container i {
  font-size: 3rem;
  color: var(--color-secondary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.layanan-card:hover .card-img-container i {
  transform: scale(1.05);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  min-height: 80px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  z-index: 3;
}

.layanan-card:hover .card-content {
  opacity: 1;
  transform: translateY(0);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  color: var(--color-white);
}

.card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.card-action {
  display: none;
}

.show-more-container {
  text-align: center;
  margin-top: 35px;
}

#loading-indicator {
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: var(--color-accent);
}

#show-more-btn {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(43, 45, 66, 0.2);
}

#show-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(43, 45, 66, 0.3);
}

.donasi-card {
  background: linear-gradient(145deg, var(--color-primary), #3c3f5e);
  border-radius: 20px;
  padding: 25px 20px;
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(43, 45, 66, 0.2);
}

.donasi-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-footer-line);
}

.donasi-header-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.donasi-header-text p {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-top: 5px;
}

.btn-donasi-glow {
  background: var(--color-secondary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, box-shadow 0.3s;
  color: var(--color-white);
  white-space: nowrap;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.btn-donasi-glow:hover {
  background: #6266b5;
  box-shadow: 0 0 15px rgba(141, 153, 174, 0.5);
}

.donasi-body h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donasi-body .fa-crown {
  color: var(--color-gold);
}

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

.donation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 8px;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.donation-item:nth-child(2) {
  animation-delay: 0.1s;
}
.donation-item:nth-child(3) {
  animation-delay: 0.2s;
}
.donation-item:nth-child(4) {
  animation-delay: 0.3s;
}
.donation-item:nth-child(5) {
  animation-delay: 0.4s;
}

.donor-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
  min-width: 0;
}

.donor-rank {
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.donor-rank .fa-trophy.gold {
  color: var(--color-gold);
}
.donor-rank .fa-trophy.silver {
  color: var(--color-silver);
}
.donor-rank .fa-trophy.bronze {
  color: var(--color-bronze);
}

.donor-name {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donor-amount {
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-left: 10px;
}

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

.halaman-card-v2 {
  position: relative;
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 20px 15px;
  min-height: 130px;
  color: var(--color-primary);
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.halaman-card-v2:hover {
  box-shadow: 0 12px 25px rgba(79, 83, 156, 0.2);
  transform: translateY(-5px);
  border-color: rgba(79, 83, 156, 0.3);
}

.halaman-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

.halaman-card-v2:hover .halaman-card-content {
  transform: translateY(-15px);
}

.card-icon-v2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
  display: block;
}

.card-title-v2 {
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 1;
  transform: translateY(0);
}

.halaman-card-v2:hover .card-title-v2 {
  opacity: 0;
  transform: translateY(10px);
}

.halaman-card-reveal {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  padding: 0 15px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.halaman-card-v2:hover .halaman-card-reveal {
  transform: translateY(0);
  opacity: 1;
}

.halaman-card-reveal p {
  font-size: 0.85rem;
  color: var(--color-accent);
  line-height: 1.3;
}

.card-contain {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-why {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  padding: 25px;
  text-align: center;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.why-atas b {
  color: var(--color-overlay-border);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.why-atas h1 {
  color: var(--color-white);
  margin: 5px 0 10px 0;
  font-size: 1.8rem;
}

.why-atas p {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.6;
}

.why-bawah {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 15px;
  margin-top: 25px;
}

.why-con i {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-overlay-border);
}

.why-con h1 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin: 5px 0;
}

.why-con p {
  color: var(--color-accent);
  font-size: 0.9rem;
}

.why-bawah-pay {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.why-bawah-pay img {
  width: 100%;
  max-width: 300px;
  height: auto;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
}

footer {
  padding: 40px 0 20px 0;
  background: linear-gradient(135deg, var(--color-footer-bg1) 0%, var(--color-footer-bg2) 100%);
  text-align: center;
}

.footer-text-head h3 {
  color: var(--color-white);
  font-size: 1.8rem;
}

.footer-text-head p {
  color: var(--color-footer-text);
  margin: 15px 0 25px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-icon-con {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-icon {
  color: var(--color-footer-text);
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

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

.footer-text-body {
  margin: 30px 0;
  font-size: 1rem;
}

.footer-text-body h2 {
  color: var(--color-white);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.footer-body {
  color: var(--color-footer-text);
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.garis-footer {
  background-color: var(--color-footer-line);
  height: 1px;
  margin: 25px 0;
}

.footer-copyright {
  color: var(--color-footer-text);
  font-size: 0.85rem;
}

.overlay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: none;
}

.cookie-card {
  display: none;
  position: fixed;
  bottom: calc(15px + var(--safe-area-bottom));
  left: 15px;
  right: 15px;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 1300;
  animation: slideUp 0.5s ease-out;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 1.8rem;
  color: var(--color-secondary);
}

.cookie-content {
  flex-grow: 1;
}

.cookie-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--color-accent);
}

.cookie-content p a {
  color: var(--color-secondary);
  font-weight: 500;
  text-decoration: underline;
}

.cookie-actions {
  margin-left: auto;
  width: 100%;
}

.accept-btn {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  width: 100%;
}

.accept-btn:hover {
  background-color: var(--color-primary);
}

@media (max-width: 360px) {
  html {
    font-size: 90%;
  }
  .kategori-title {
    font-size: 1.3rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 600px) {
  .layanan-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cookie-card {
    flex-wrap: nowrap;
    padding: 20px;
  }
  .cookie-actions {
    width: auto;
  }
  .accept-btn {
    width: auto;
  }

  .donasi-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .btn-donasi-glow {
    width: auto;
  }
}

@media (min-width: 900px) {
  .layanan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 100%;
  }

  .inner-width {
    padding: 0 40px;
  }

  .navigation-bar {
    padding: 15px 0;
  }
  .navigation-bar .toggle-button {
    display: none;
  }

  .main-menu {
    position: static;
    transform: translateX(0);
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    height: auto;
    width: auto;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    gap: 10px;
    z-index: auto;
  }

  a.menu-item {
    padding: 8px 12px;
    font-size: 0.95rem;
    gap: 8px;
  }

  .menu-item-desktop {
    display: list-item;
  }

  .btn-nav-contact {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.95rem;
    color: var(--color-primary);
    background-color: var(--color-white);
    border-radius: 6px;
    margin-left: 10px;
    font-weight: 600;
  }

  .hero {
    text-align: left;
  }
  .hero-content {
    margin: 0 auto 0 0;
    padding: 0;
    max-width: 600px;
  }
  .hero-arrow {
    display: none;
  }

  .layanan-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .card-content {
    padding: 10px;
  }
  .card-title {
    font-size: 0.95rem;
  }

  .halaman-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  footer {
    text-align: left;
    padding: 60px 0 30px 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .footer-text-head,
  .footer-text-body {
    margin: 0;
  }
  .footer-icon-con {
    justify-content: flex-start;
  }
  .footer-copyright {
    text-align: center;
  }

  .card-contain {
    flex-direction: row;
    align-items: stretch;
  }
  .card-why {
    flex: 1;
    text-align: left;
  }
  .why-bawah {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-card {
    bottom: 30px;
    left: 30px;
    right: auto;
    max-width: 450px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .layanan-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .layanan-card {
    aspect-ratio: 3/4;
  }
  .card-img-container i {
    font-size: 3.5rem;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 110%;
  }
  .inner-width {
    max-width: 1500px;
  }

  .hero-content {
    max-width: 700px;
  }
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (min-width: 2500px) {
  html {
    font-size: 150%;
  }
  .inner-width {
    max-width: 2000px;
  }
  .layanan-grid {
    gap: 30px;
  }
}
