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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  text-align: center;
}

/* ==================== HEADER ==================== */
header {
  background: #a40000;
  height: 15px;
  position: relative;
}

/* Logo Desa Kiri Atas */
.header-logo-desa {
  position: absolute;
  top: 32px;
  left: 20px;
  z-index: 3;
  max-width: 32%;
}

.header-logo-desa img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
}

.sikomenkulogo{
    height: 100px;
}

/* Navigasi Kanan Atas */
.header-nav {
  position: absolute;
  z-index: 9999;
  top: 30px;
  right: 0;
  max-width: 32%;
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #8b0000;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 20px 14px 28px;
  border-radius: 40px 0 0 40px;
  font-weight: 700;
  line-height: 1.2;
}

.header-nav .nav-text {
  text-align: center;
  font-size: 14px;
}

.header-nav .nav-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-nav .nav-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* Box Header Tengah */
.header-box {
  position: absolute;
  left: 50%;
  bottom: -95px;
  transform: translateX(-50%);
  background: #a40000;
  padding: 22px 40px;
  border-radius: 0 0 12px 12px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 68%;
  box-sizing: border-box;
}

.header-text h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-text span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.2;
}

/* ==================== MENU ICON CARDS ==================== */
/* .menu-icon {
  display: flex;
  justify-content: center;
  gap: 45px;
  flex-wrap: wrap;
  margin-top: 140px;
  padding: 0 20px;
} */

.menu-icon {
  background-color: #f5f5f5;
  display: flex;
  position: fixed;
  top: 140px;
  left: 0;
  right: 0;
  justify-content: center;
  gap: 45px;
  flex-wrap: wrap;
  padding: 0 20px;
  z-index: 1000;
}


.menu-card {
  width: 100px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-card .icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.menu-card i {
  font-size: 38px;
  color: #e53935;
  transition: transform 0.3s ease;
}

.menu-card h3 {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #333;
}

/* Menu Card Active State */
.menu-card.active .icon-box,
.menu-card:hover .icon-box {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px rgba(229, 57, 53, 0.3);
}

/* ==================== MAIN LAYOUT ==================== */
.layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  max-width: 1400px;
  margin: 100px auto;
  padding: 0 20px;
  align-items: start;
}
/* ==================== LAYOUT BAWAH ==================== */
.layout-bawah {
  grid-template-columns: 1fr 400px;
  gap: 20px;
  max-width: 1300px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}

/* ==================== LEFT COLUMN - DANA CARDS ==================== */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dana-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.info-list {
  list-style: none;
  margin-bottom: 30px;
}

.info-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #e53935;
}

/* Card Progress Section */
.card-progress {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  flex-direction: row;
  flex-wrap: nowrap;
}

.progress-section {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amount {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #1eff00;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 9px;
  font-weight: 700;
  color: #000;
  width: 0%;
  transition: width 2s ease;
}

/* Circular Progress */
.progress-card {
  position: relative;
  width: 200px;
  height: 120px;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-card svg {
  display: block;
}

.progressArc {
  transition: stroke-dashoffset 2s ease;
}

.percent-text {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

/* ==================== RIGHT COLUMN - NEWS ==================== */
.news-wrapper {
  background: #7f1d1d;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-box .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card {
  background: #991b1b;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
  background: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.news-card img {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.news-card:hover img {
  transform: scale(1.1);
}

.news-card div {
  flex: 1;
}

.news-card h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover h4 {
  color: #fef2f2;
}

.news-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover p {
  color: rgba(255, 255, 255, 0.95);
}

/* ==================== SECTION BELANJA ==================== */
.section-title-wrapper {
  text-align: center;
  margin: 60px 0 20px;
}

.section-title {
  display: inline-block;
  font-size: 35px;
  font-weight: 900;
  padding-bottom: 10px;
  border-bottom: 3px solid #000;
}

.belanja-container {
  background: linear-gradient(180deg, #9ffcf6, #e9ffff);
  padding: 40px;
  border-radius: 16px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.belanja-title {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  padding-bottom: 5px;
}

.belanja-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 20px;
  align-items: center;
}

.belanja-box {
  background: #e8feff;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.belanja-center {
  background: #eaffff;
}

.belanja-box h4 {
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
}

.belanja-box p {
  margin: 6px 0;
  font-size: 14px;
  color: #555;
}

.belanja-progress-group {
  margin-bottom: 15px;
  text-align: left;
  font-size: 13px;
}

.belanja-progress {
  background: #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  height: 22px;
  margin-top: 6px;
}

.belanja-bar {
  background: #6bff00;
  height: 100%;
  color: #000;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: width 0.5s ease;
}
/* Arc Progress */
.arc-progress-card {
  position: relative;
  width: 200px;
  height: 120px;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arc-progress-card svg {
  display: block;
}

.arc-progress-path {
  transition: stroke-dashoffset 2s ease;
}

.arc-percent-text {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: #000;
}
/*  FOOTER  */
.footer {
  background-color: #9b2f2f;
  color: #ffffff;
  margin-top: 60px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  padding: 40px 60px;
  max-width: 100%;
  box-sizing: border-box;
}

/* === SEMUA KOLOM SAMA STRUKTUR === */
.footer-left,
.footer-middle,
.footer-right {
  display: flex;
  flex-direction: column;
}

/* === JUDUL === */
.footer-middle h3,
.footer-right h3,
.fake-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffcc00;
  margin-bottom: 10px;
  height: 18px; /* kunci kesejajaran */
}

/* === LEFT === */
.footer-left .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-left img {
  width: 72px;
}

.footer-left h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.footer-left .desc {
  font-size: 14px;
  white-space: nowrap; /* 1 BARIS */
  margin: 4px 0;
}

.footer-left span {
  font-size: 14px;
}

/* === LIST === */
.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-middle,
.footer-right {
  text-align: left;
}

.footer-middle li,
.footer-right li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-middle i,
.footer-right i {
  min-width: 18px;
  font-size: 16px;
}

/* BOTTOM BAR */
.footer-bottom {
  background-color: #7a0c0c;
  text-align: center;
  padding: 12px;
  color: #ffcc00;
  font-size: 14px;
  font-weight: 500;
}
/* ===== ANIMASI SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== JUDUL ===== */
.silpa-main-title {
  text-align: center;
  margin-top: 28px;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.silpa-main-title h1 {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}
.silpa-main-title .line {
  width: 160px;
  height: 4px;
  background: #000;
  margin: 10px auto 0;
}

/* ===== CARD BESAR (GRADIENT) ===== */
.container {
  max-width: 1020px;
  margin: 36px auto;
  background: linear-gradient(
    to bottom,
    #9ffdf6 0%,
    #bdfefe 55%,
    #ffffff 100%
  );
  border-radius: 26px;
  padding: 34px 30px 42px;
}

/* ===== SUB TITLE ===== */
.silpa-title {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
}
.silpa-line {
  width: 110px;
  height: 4px;
  background: #000;
  margin: 10px auto 34px;
}

/* ===== GRID (3 KOLOM) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== CARD KECIL ===== */
.silpa-card {
  background: #e7ffff;
  border-radius: 18px;
  padding: 18px 16px;
}
.silpa-card h3 {
  text-align: center;
  font-size: 19px;
  margin-bottom: 16px;
}

/* ===== LABEL ===== */
.label {
  font-size: 14px;
  margin-bottom: 5px;
}

/* ===== PROGRESS BAR ===== */
.progress {
  width: 100%;
  height: 16px;
  background: #d9d9d9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.silpa-progress-bar {
  height: 100%;
  width: 0;
  background: #7CFC00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  transition: width 1.4s ease-out;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 30px 30px;
  }
  .silpa-main-title h1 {
    font-size: 28px;
  }
  .silpa-title {
    font-size: 22px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .silpa-card {
    padding: 18px 16px;
  }
  .silpa-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }
  .label {
    font-size: 13px;
  }
  .progress {
    height: 14px;
    margin-bottom: 10px;
  }
  .silpa-progress-bar {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 15px auto;
    padding: 15px 10px 25px;
  }
  .silpa-main-title h1 {
    font-size: 24px;
  }
  .silpa-title {
    font-size: 20px;
  }
  .cards {
    gap: 20px;
  }
  .silpa-card {
    padding: 16px 14px;
  }
  .silpa-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .label {
    font-size: 12px;
  }
  .progress {
    height: 12px;
    margin-bottom: 8px;
  }
  .silpa-progress-bar {
    font-size: 10px;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet - Large */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 80px auto;
  }

  .layout-bawah {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 80px auto;
  }

  .news-wrapper {
    max-width: 100%;
    margin: 0;
  }

  .card-progress {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .progress-card, .arc-progress-card {
    width: 160px;
    height: 100px;
    margin: 0;
  }
}

/* Tablet - Medium */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 80px auto;
  }

  .layout-bawah {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 80px auto;
  }

  .news-wrapper {
    max-width: 100%;
    margin: 0;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-left {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-left .logo {
    justify-content: center;
    flex-direction: row;
  }

  .footer-middle li,
  .footer-right li {
    justify-content: flex-start;
  }

  .footer-left .desc {
    white-space: normal;
  }

  .belanja-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .progress-card, .arc-progress-card {
    width: 140px;
    height: 90px;
    margin: 0;
  }

  .header-box {
    padding: 20px 60px;
    bottom: -90px;
  }

  .header-logo-desa img {
    width: 100%;
    max-width: 200px;
  }


  .header-text h1 {
    font-size: 28px;
  }

  .menu-icon {
    gap: 35px;
    margin-top: 20px;
  }

  .section-title {
    font-size: 30px;
  }

  .silpa-main-title h1 {
    font-size: 30px;
  }
}

/* Mobile - Large (767px ke bawah) */
@media (max-width: 768px) {
  /* ===== HEADER ===== */
  .header-logo-desa {
    top: 16px;
    left: 8px;
    max-width: 28%;
  }

  .header-logo-desa img {
    width: 100%;
    max-width: 160px;
  }

  .sikomenkulogo{
    height: 50px;
  }

  .header-nav {
    top: 16px;
    right: 8px;
    max-width: 28%;
  }

  .header-nav a {
    padding: 8px 10px;
    gap: 8px;
  }

  .header-nav .nav-text {
    font-size: 10px;
    line-height: 1.1;
  }

  .header-nav .nav-logo {
    width: 35px;
    height: 35px;
  }

  .header-nav .nav-logo img {
    width: 39px;
    height: 39px;
  }

  .header-box {
    padding: 14px 20px;
    bottom: -65px;
    max-width: 76%;
  }

  .header-text h1 {
    font-size: 19px;
  }

  .header-text span {
    font-size: 10px;
  }

  /* ===== MENU CARDS ===== */
  .menu-icon {
    gap: 25px;
    margin-top: 10px;
    justify-content: center;
  }

  .menu-card {
    width: 90px;
  }

  .menu-card .icon-box {
    width: 65px;
    height: 65px;
  }

  .menu-card i {
    font-size: 30px;
  }

  .menu-card h3 {
    font-size: 11px;
    margin-top: 10px;
  }

  /* ===== LAYOUT ===== */
  .layout, .layout-bawah {
    margin: 60px auto;
    padding: 0 15px;
    gap: 20px;
  }

  .left-column {
    gap: 15px;
  }

  .card {
    padding: 18px;
  }

  .dana-card h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .info-list li {
    font-size: 14px;
    padding: 6px 0;
  }

  .card-progress {
    flex-direction: row;
    gap: 15px;
    align-items: flex-end;
  }

  .progress-section {
    flex: 1 1 auto;
  }

  .progress-bar {
    height: 20px;
  }

  .progress-fill {
    font-size: 12px;
  }

  .progress-card, .arc-progress-card {
    width: 120px;
    height: 75px;
    margin: 0;
    flex: 0 0 120px;
  }

  .percent-text, .arc-percent-text {
    font-size: 16px;
  }

  /* ===== BELANJA ===== */
  .section-title-wrapper {
    margin: 50px 0 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .belanja-container {
    padding: 25px 15px;
    margin: 0 auto 40px;
  }

  .belanja-title {
    font-size: 18px;
    width: 70px;
    margin-bottom: 20px;
  }

  .belanja-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .belanja-box {
    padding: 15px;
  }

  .belanja-box h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .belanja-box p {
    font-size: 13px;
    margin: 4px 0;
  }

  .belanja-progress-group {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .belanja-progress {
    height: 20px;
    margin-top: 5px;
  }

  .belanja-bar {
    font-size: 11px;
  }

  /* ===== NEWS ===== */
  .news-wrapper {
    padding: 15px;
    background: #7f1d1d;
  }

  .search-box {
    margin-bottom: 15px;
  }

  .search-box input {
    padding: 10px 35px 10px 12px;
    font-size: 13px;
  }

  .news-list {
    gap: 10px;
  }

  .news-card {
    padding: 10px;
    gap: 10px;
  }

  .news-card img {
    width: 75px;
    height: 55px;
  }

  .news-card h4 {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .news-card p {
    font-size: 11px;
  }

  /* ===== TITLES ===== */
  .silpa-main-title {
    margin-top: 25px;
  }

  .silpa-main-title h1 {
    font-size: 24px;
  }

  .silpa-main-title .line {
    width: 130px;
  }

  .silpa-title {
    font-size: 20px;
    border-bottom-width: 2px;
  }

  .silpa-line {
    width: 90px;
    margin-bottom: 25px;
  }

  .container {
    padding: 25px 15px 30px;
    margin: 30px auto;
    border-radius: 20px;
  }

  /* ===== FOOTER ===== */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 15px;
  }

  .footer-left .logo {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
  }

  .footer-left img {
    width: 50px;
    margin-right: 12px;
    margin-bottom: 0;
  }

  .footer-left h2 {
    font-size: 16px;
    color: white;
  }

  .footer-left .desc {
    font-size: 12px;
    color: white;
    text-align: left;
  }

  .footer-left span {
    text-align: left;
  }

  /* ===== FOOTER MOBILE STYLING ===== */
  .footer {
    background: #A13333;
    margin-top: 60px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 18px;
    background: #A13333;
  }

  .footer-left {
    grid-column: auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left .logo {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
  }

  .footer-left img {
    width: 50px;
    margin-right: 12px;
    margin-bottom: 0;
  }

  .footer-left h2 {
    font-size: 16px;
    color: white;
  }

  .footer-left .desc {
    font-size: 12px;
    color: white;
    text-align: left;
  }

  .footer-left span {
    text-align: left;
  }

  .footer-middle,
  .footer-right {
    text-align: left;
  }

  .footer-middle h3,
  .footer-right h3 {
    font-size: 15px;
    color: #FFBF00;
    margin-bottom: 15px;
  }

  .footer-middle ul,
  .footer-right ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-middle li,
  .footer-right li {
    font-size: 15px;
    color: white;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .footer-middle i,
  .footer-right i {
    font-size: 16px;
  }

  .footer-bottom {
    background: #8A0000;
    padding: 12px;
    font-size: 10px;
    color: #F9B703;
  }
}

/* Mobile - Small (480px ke bawah) */
@media (max-width: 480px) {
  /* ===== HEADER ===== */
  .header-logo-desa {
    top: 12px;
    left: 6px;
    max-width: 25%;
  }

  .header-logo-desa img {
    width: 100%;
    max-width: 100px;
  }

  .header-nav {
    top: 12px;
    right: 6px;
    max-width: 25%;
  }

  .header-nav a {
    padding: 6px 8px;
    gap: 6px;
  }

  .header-nav .nav-text {
    font-size: 8px;
    line-height: 1;
  }

  .header-nav .nav-logo {
    width: 28px;
    height: 28px;
  }

  .header-nav .nav-logo img {
    width: 32px;
    height: 32px;
  }

  .header-box {
    padding: 10px 15px;
    bottom: -55px;
    max-width: 80%;
  }

  .header-text h1 {
    font-size: 16px;
    letter-spacing: 0.3px;
  }

  .header-text span {
    font-size: 8px;
    margin-top: 3px;
  }

  /* ===== MENU CARDS ===== */
  .menu-icon {
    gap: 15px;
    margin-top: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-card {
    width: 80px;
  }

  .menu-card .icon-box {
    width: 55px;
    height: 55px;
  }

  .menu-card i {
    font-size: 24px;
  }

  .menu-card h3 {
    font-size: 10px;
    margin-top: 8px;
    line-height: 1.3;
  }

  /* ===== LAYOUT ===== */
  .layout, .layout-bawah {
    margin: 40px auto;
    padding: 0 10px;
    gap: 15px;
  }

  .left-column {
    gap: 12px;
  }

  .card {
    padding: 14px;
  }

  .dana-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .info-list {
    margin-bottom: 15px;
  }

  .info-list li {
    font-size: 13px;
    padding: 5px 0;
    padding-left: 15px;
  }

  .card-progress {
    flex-direction: row;
    gap: 12px;
    align-items: flex-end;
  }

  .progress-bar {
    height: 18px;
  }

  .progress-fill {
    font-size: 11px;
  }

  .progress-card, .arc-progress-card {
    width: 100px;
    height: 60px;
    margin: 0;
    flex: 0 0 100px;
  }

  .progress-card svg, .arc-progress-card svg {
    width: 100px;
    height: 60px;
  }

  .percent-text, .arc-percent-text {
    font-size: 14px;
  }

  /* ===== BELANJA ===== */
  .section-title-wrapper {
    margin: 40px 0 12px;
  }

  .section-title {
    font-size: 22px;
    border-bottom-width: 2px;
  }

  .belanja-container {
    padding: 18px 12px;
    margin: 0 auto 30px;
    border-radius: 14px;
  }

  .belanja-title {
    font-size: 16px;
    width: 60px;
    margin-bottom: 15px;
  }

  .belanja-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .belanja-box {
    padding: 12px;
    border-radius: 12px;
  }

  .belanja-box h4 {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .belanja-box p {
    font-size: 12px;
    margin: 3px 0;
  }

  .belanja-progress-group {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .belanja-progress {
    height: 18px;
    margin-top: 4px;
  }

  .belanja-bar {
    font-size: 10px;
  }

  /* ===== NEWS ===== */
  .news-wrapper {
    padding: 12px;
  }

  .search-box {
    margin-bottom: 12px;
  }

  .search-box input {
    padding: 9px 32px 9px 10px;
    font-size: 12px;
  }

  .search-box .icon {
    font-size: 14px;
  }

  .news-list {
    gap: 8px;
  }

  .news-card {
    padding: 8px;
    gap: 8px;
  }

  .news-card img {
    width: 65px;
    height: 50px;
    border-radius: 5px;
  }

  .news-card h4 {
    font-size: 11px;
    margin-bottom: 3px;
    line-height: 1.3;
  }

  .news-card p {
    font-size: 10px;
    line-height: 1.3;
  }

  /* ===== TITLES ===== */
  .silpa-main-title {
    margin-top: 20px;
    text-align: center;
  }

  .silpa-main-title h1 {
    font-size: 20px;
    font-weight: 800;
  }

  .silpa-main-title .line {
    width: 100px;
    height: 3px;
    margin: 8px auto 0;
  }

  .silpa-title {
    font-size: 16px;
    border-bottom-width: 2px;
  }

  .silpa-line {
    width: 70px;
    height: 3px;
    margin: 8px auto 20px;
  }

  .container {
    padding: 18px 12px 25px;
    margin: 20px auto;
    border-radius: 18px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .silpa-card {
    padding: 14px;
    border-radius: 14px;
  }

  .silpa-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .progress {
    height: 14px;
  }

  .silpa-progress-bar {
    font-size: 10px;
  }

  /* ===== FOOTER ===== */
  .footer {
    margin-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 12px;
  }

  .footer-left .logo {
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
  }

  .footer-left img {
    width: 50px;
    margin-right: 10px;
    margin-bottom: 0;
  }

  .footer-left h2 {
    font-size: 16px;
  }

  .footer-left .desc, .footer-left span {
    font-size: 11px;
    margin: 2px 0;
    text-align: left;
  }

  .footer-middle,
  .footer-right {
    text-align: left;
  }

  .footer-middle h3, .footer-right h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-middle li, .footer-right li {
    font-size: 11px;
    margin-bottom: 6px;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
  }

  .footer-middle i, .footer-right i {
    min-width: 16px;
    font-size: 14px;
  }

  .footer-bottom {
    padding: 8px;
    font-size: 11px;
  }
}

/* ===== LANDSCAPE MODE ===== */
@media (max-height: 600px) and (orientation: landscape) {
  .header-logo-desa img {
    width: min(250px, 20vw);
  }

  .header-nav .nav-logo {
    width: 35px;
    height: 35px;
  }

  .header-box {
    bottom: -60px;
    padding: 12px 40px;
  }

  .menu-icon {
    margin-top: 80px;
    gap: 25px;
  }

  .menu-card .icon-box {
    width: 55px;
    height: 55px;
  }

  .menu-card i {
    font-size: 28px;
  }

  .menu-card h3 {
    font-size: 11px;
  }

  .layout, .layout-bawah {
    margin: 50px auto;
  }
}

/* ===== ULTRA SMALL (320px) ===== */
@media (max-width: 360px) {
  .header-logo-desa {
    top: 12px;
    left: 5px;
    max-width: 20%;
  }

  .header-logo-desa img {
    width: 100%;
    max-width: 100px;
  }

  .header-nav {
    top: 12px;
    right: 5px;
    max-width: 20%;
  }

  .header-nav a {
    padding: 5px 6px;
    gap: 5px;
  }

  .header-nav .nav-text {
    font-size: 7px;
    line-height: 1;
  }

  .header-nav .nav-logo {
    width: 24px;
    height: 24px;
  }

  .header-nav .nav-logo img {
    width: 28px;
    height: 28px;
  }

  .header-box {
    padding: 8px 12px;
    bottom: -48px;
    max-width: 85%;
  }

  .header-text h1 {
    font-size: 14px;
  }

  .header-text span {
    font-size: 7px;
    margin-top: 2px;
  }

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

  .header-text h1 {
    font-size: 14px;
  }

  .menu-card {
    width: 70px;
  }

  .menu-card h3 {
    font-size: 9px;
  }

  .section-title {
    font-size: 18px;
  }

  .dana-card h2 {
    font-size: 14px;
  }

  .info-list li {
    font-size: 12px;
  }

  .belanja-box h4 {
    font-size: 12px;
  }

  .belanja-box p {
    font-size: 11px;
  }

  .footer-left h2 {
    font-size: 14px;
  }

  .footer-middle h3, .footer-right h3 {
    font-size: 12px;
  }

  .footer-middle li, .footer-right li {
    font-size: 10px;
  }
}
/* ==================== WRAPPER UNTUK PENDAPATAN & BERITA ==================== */
.pendapatan-berita-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 400px;
  gap: 20px;
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 20px;
  padding-top: 280px;
  align-items: start;
}

.kiri,
.tengah,
.kanan {
  width: auto;
}


/* Responsive untuk mobile */
@media (max-width: 1024px) {
  .pendapatan-berita-wrapper {
    grid-template-columns: 1fr;
    margin: 40px auto;
    padding-top: 300px;
  }

  .kanan {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pendapatan-berita-wrapper {
    padding: 0 15px;
    padding-top: 200px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pendapatan-berita-wrapper {
    padding: 0 10px;
    margin: 30px auto;
    padding-top: 200px;
  }
}
