/* =========================================
   ROOT COLOR
========================================= */
:root{
  --bg:#F5F7F8;
  --card:#ffffff;
  --accent:#0A9E8C;
  --accent-soft:#16C8B2;
  --text:#11443F;
  --muted:#6c8a86;

  --c1:#0FB8A4;
  --c2:#13C7B7;
  --c3:#F4A340;
  --c4:#8F7EF2;
}

*{
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ===========================
   GALERI
=========================== */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtext {
    color: var(--muted);
    margin-bottom: 40px;
}

/* --- GRID YANG BENAR --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;

    justify-content: center; /* sudah ada */
    align-items: start; 
    justify-items: center;   /* ini yang bikin item benar-benar center */
}


/* CARD GALERI */
.gallery-item {
    background: var(--card);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.2s;
    width: 100%; /* sangat penting! */
    max-width: 360px; /* menjaga ukuran agar tidak gepeng */
    margin: 0 auto;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;              /* tambahkan tinggi tetap */
    object-fit: cover;
    object-position: center;    /* gambar selalu center */
    border-radius: 12px;
}



.gallery-caption {
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;

    background: #0A9E8C; /* accent utama */
    color: #ffffff;

    border-radius: 10px;
    display: inline-block;
}



/* =========================================
   MOBILE NAVBAR
========================================= */
@media(max-width: 780px){
  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    width: 100%;
    row-gap: 14px;
    align-items: center;
  }

  .nav-logo {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .nav-btn {
    grid-column: 3 / 4;
    grid-row: 1;
  }

  .nav-links {
    grid-column: 1 / 4;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .nav-logo img {
    height: 52px;
  }

  /* tombol hamburger */
.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--accent);
}

/* mobile */
@media (max-width: 780px) {

  .menu-toggle {
    display: block;
  }

  /* sembunyikan menu default */
  .nav-links,
  .nav-btn {
    display: none;
  }

  nav.active {
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
  }

  nav.active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    padding: 20px 0;
    border-radius: 12px;
  }

  nav.active .nav-btn {
    display: inline-block;
  }
}

}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}

.footer-logo {
    width: 70px;
    margin-bottom: 1rem;
    background-color: white;
    padding: 2px;
    border-radius: 50%;
}

.footer-links li a {
    color: var(--white);
    opacity: .8;
}
.footer-links li a:hover {
    opacity: 1;
}

.link-media {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    opacity: .8;
    font-size: .9rem;
}

/* Penyesuaian agar footer-grid memiliki 4 kolom saat desktop */
.footer-grid {
    display: grid;
    gap: 2rem;
    /* Ubah dari minmax(200px, 1fr) ke 4 kolom langsung agar terlihat rapi */
    grid-template-columns: repeat(4, 1fr); 
}

/* Menyesuaikan grid untuk mobile/tablet */
@media(max-width: 768px) {
    .footer-grid {
        /* Kembali ke auto-fit agar bisa menyesuaikan 2 kolom, 1 kolom, atau lebih */
        grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    }
}

