.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}

body {
  min-height: max(884px, 100dvh);
}

.nav-item {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #006633;
  transition: 0.3s;
}

.nav-item:hover::after {
  width: 100%;
}

/* =========================================
   CARD PUBLIKASI
========================================= */

.pub-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out;
  will-change: transform, opacity;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 26rem;
  overflow: hidden;
  border-radius: 0 0 0.75rem 0.75rem;
  background: #f0fdf4;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pub-card:nth-child(3n + 1) {
  transform: translateX(-40px);
}

.pub-card:nth-child(3n + 2) {
  transform: translateY(30px);
}

.pub-card:nth-child(3n + 3) {
  transform: translateX(40px);
}

.pub-card.show {
  opacity: 1;
  transform: translate(0, 0);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.pub-card img {
  flex: 0 0 12rem;
  transition: transform 0.4s ease;
}

.pub-card.show:hover {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 16px 30px rgba(0, 75, 36, 0.2);
  z-index: 1;
}

.pub-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.pub-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.pub-card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.pub-card-more {
  display: none;
  margin-top: 0.25rem;
  color: #047857;
  font-size: 0.875rem;
  font-weight: 600;
}

.pub-card-description.is-truncated + .pub-card-more {
  display: inline-block;
}

.pub-card-date {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* =========================================
   ANIMASI TITLE
========================================= */

.title-loop {
  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(-8px);
  }

  20% {
    transform: translateY(0);
  }
}

/* =========================================
   SCROLL TO TOP
========================================= */

#scrollTopBtn {
  transform: translateY(20px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* =========================================
   HEADER SCROLL
========================================= */

#mainHeader {
  transition: transform 0.3s ease;
}

#mainHeader.header-hidden {
  transform: translateY(-100%);
}

/* =========================================
   HERO SECTION
========================================= */

#heroSection {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: margin-top 0.3s ease;
  background-color: #004b24;
}

#heroSection.hero-top {
  margin-top: 0;
}

/* =========================================
   HERO SLIDER
========================================= */

#heroSection #slider {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
}

#heroSection #slider > div {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #006633;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   GAMBAR HERO
========================================= */

#heroSection .hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;

  object-fit: cover;
  object-position: center;

  border: 0;
  border-radius: 0;
  background-color: #006633;
}

<<<<<<< HEAD
/* Hindari garis/celah latar hero akibat pembulatan subpiksel saat slide
   digeser pada viewport ponsel. */
=======
>>>>>>> 01607de (feat/be1-reihan: tambah fitur guest)
@media (max-width: 640px) {
  #heroSection .hero-image {
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
  }
}
