/* =========================
   GOOGLE FONTS
========================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Viga&display=swap");
@import url("https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&display=swap");

/* =========================
   GLOBAL RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: #f5f6fa;
}

/* =========================
   LOGIN PAGE
========================= */
body.bg-light {
  background: url('../images/basket.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.bg-light::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 0;
}

.card {
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 2rem;
}

/* =========================
   ADMIN PAGE
========================= */
body.admin-page {
  background: #f5f6fa;
}

.dashboard-title {
  font-weight: 700;
  color: #2a5298;
  margin-top: 2rem;
}

.dashboard-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.dashboard-card {
  width: 260px;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: .3s;
}

.dashboard-card:hover {
  transform: translateY(-6px) scale(1.03);
}

/* =========================
   NAVBAR
========================= */
.navbarKu {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 45px;
  margin-right: 8px;
}

.brand-title {
  font-family: 'Viga', sans-serif;
  font-size: .95rem;
  line-height: 1.1;
  color: #000;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #000;
}

.navbar-nav .nav-link:hover,
.nav-item.active .nav-link {
  color: #ffc107;
}

/* =========================
   SEARCH & LOGIN
========================= */
.login-btn {
  font-weight: 500;
  padding: 8px 16px;
  height: 38px;
}

.mobile-search-btn {
  width: 38px;
  height: 38px;
}

/* =========================
   SLIDESHOW
========================= */
.slideshow {
  width: 100%;
  height: 100vh;
  position: relative;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   ARTIKEL
========================= */
.titleArtikel {
  padding-top: 130px;
}

.artikel .perArtikel {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.artikel .perArtikel img {
  width: 250px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.artikel .perArtikel h3 {
  font-weight: 600;
}

.artikel .perArtikel p {
  font-size: .95rem;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #263238;
  padding: 30px 0 60px;
  margin-top: 120px;
  color: #fff;
}

.footerCopyright {
  background: #111;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .artikel .perArtikel {
    flex-direction: column;
  }

  .artikel .perArtikel img {
    width: 100%;
    height: 220px;
  }

  .dashboard-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .brand-title {
    font-size: .8rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .login-btn {
    font-size: .85rem;
    padding: 6px 12px;
  }
}
