body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

/* ==== NAVBAR ==== */
.navbar {
  background: #003366;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap; /* supaya responsive */
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ==== FILTER DROPDOWN + SEARCH ==== */
.navbar .controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#filterTheme {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: #ffffff;
  box-shadow: 0 0 3px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

#filterTheme:focus {
  box-shadow: 0 0 5px #f0b429;
}

.search-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#searchInput,
#univInput {
  padding: 0.45rem 0.7rem;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
  background: #ffffff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

#searchInput:focus,
#univInput:focus {
  box-shadow: 0 0 5px #f0b429;
}

/* Responsif untuk navbar */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .navbar .controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  #filterTheme,
  #searchInput,
  #univInput {
    width: 100%;
    margin-top: 0.3rem;
  }
}

/* ==== MAIN LAYOUT ==== */
.main-container {
  display: flex;
  flex-wrap: wrap;
}

/* ==== SIDEBAR ==== */
.sidebar {
  flex: 0 0 200px;
  background: #ffffff;
  padding: 1rem;
  border-right: 1px solid #ccc;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  height: fit-content;
}

/* ==== CONTENT ==== */
.content {
  flex: 3;
  padding: 1.5rem;
}

/* ==== GRID CARD ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  height: 270px;
}

.card:hover {
  transform: translateY(-5px);
}

iframe {
  width: 100%;
  height: 150px;
  border: none;
}

h3 {
  margin: 0.8rem;
  color: #003366;
  font-size: 1rem;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.8rem;
  margin-top: 0.6rem;
}

.card-info h3 {
  margin: 0;
  color: #003366;
  font-size: 1rem;
  font-weight: 600;
}

.card-info .univ {
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
  text-align: right;
}

.download-btn {
  display: block;
  margin: 0.8rem;
  background: #f0b429;
  color: white;
  text-align: center;
  padding: 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.download-btn:hover {
  background: #d99a1c;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 1rem;
  background: #003366;
  color: white;
}

/* ==== RESPONSIVE GRID ==== */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-container {
    flex-direction: column;
  }

  .sidebar {
    order: 2;
    width: 100%;
    position: relative;
    top: 0;
    border-right: none;
    border-top: 1px solid #ccc;
  }

  .content {
    order: 1;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ==== WA BUTTON ==== */
.wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.3s;
}

.wa-button:hover {
  background: #1ebd5a;
}

.wa-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ==== PRODUCT SLIDER ==== */
.product-slider {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-slider img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.product-slider img.active {
  opacity: 1;
}

.banner-iklan {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.banner-iklan iframe {
  border: none;
  width: 100%;
  max-width: 728px;
  height: 90px;
}

.suggest-box {
  margin-top: 20px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.suggest-box h3 {
  color: #003366;
  margin-bottom: 10px;
}

.suggest-box input,
.suggest-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  resize: none;
}

.suggest-box button {
  width: 100%;
  background: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.suggest-box button:hover {
  opacity: 0.9;
}

#statusMsg {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}

