* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* HEADER */
.site-header {
  width: 100%;
  background: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.brand-logo {
  width: 150px;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  max-width: 145px;
  display: block;
  object-fit: contain;
}

.search-box {
  flex: 1;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: none;
  outline: none;
  background: #eee;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
}

.header-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.head-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.head-btn.daftar {
  background: #0077ff;
  color: #fff;
}

.head-btn.login {
  background: #111;
  color: #fff;
}

/* HERO */
.hero {
  text-align: center;
  padding: 42px 18px 20px;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

/* MENU */
.category-menu {
  text-align: center;
  padding: 10px 12px 24px;
}

.category-menu a {
  display: inline-block;
  margin: 5px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

/* GRID SIMPLE RAPI */
.masonry {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.card img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.card-content {
  padding: 14px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #555;
  line-height: 1.5;
  font-size: 14px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 20px;
  color: #777;
}

/* POPUP */
.image-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.88);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-popup.active {
  display: flex;
}

.popup-content {
  max-width: 92%;
  max-height: 88vh;
  border-radius: 16px;
}

.popup-close {
  position: fixed;
  top: 20px;
  right: 34px;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }

  .brand-logo {
    width: 110px;
    height: 42px;
  }

  .brand-logo img {
    height: 32px;
    max-width: 110px;
  }

  .search-box {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
  }

  .header-buttons {
    margin-left: auto;
  }

  .head-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .card {
    border-radius: 14px;
  }

  .card h2 {
    font-size: 15px;
  }

  .card p {
    font-size: 13px;
  }
}

.popup-img {
  cursor: zoom-in;
}

.image-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-popup.active {
  display: flex;
}

.popup-content {
  max-width: 92%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(0, 119, 255, 0.45);
  animation: popupZoom 0.25s ease;
}

.popup-close {
  position: fixed;
  top: 22px;
  right: 34px;
  color: #ffffff;
  font-size: 42px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.popup-close:hover {
  color: #00aaff;
}

@keyframes popupZoom {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .popup-content {
    max-width: 96%;
    max-height: 82vh;
    border-radius: 12px;
  }

  .popup-close {
    top: 14px;
    right: 22px;
    font-size: 36px;
  }
}
