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;
}

.sikomenkulogo{
    height: 100px;
}

/* 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;
}

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

.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;
}

@media (max-width: 1024px) {
   .header-logo-desa img {
        width: 100%;
        max-width: 200px;
        height: auto;
        object-fit: contain;
    }
  .header-box {
    padding: 20px 60px;
    bottom: -90px;
  }

  .sikomenkulogo{
    height: 100px;
  }

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


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

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

  .sikomenkulogo{
    height: 90px;
  }
  .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;
  }
}


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

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

  .sikomenkulogo{
    height: 50px;
  }

  .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;
  }
}


@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;
  }
}


@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;
  }
}
