:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
  --accent: #10b981;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* NAVIGATION */
.site-header .nav {
  display: flex;
  align-items: center;
  padding: 0.75rem 4%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
  gap: 1rem; /* jarak antar item */
}

/* Logo kampus */
.campus-logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Brand di sebelah logo */
.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fd8f00;
  text-decoration: none;
}

/* Menu terdorong ke kanan */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-left: auto; /* ini yang bikin menu ke kanan */
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: var(--surface);
  color: #fd8f00;
}
/* Toggle default (desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    margin-left: auto; /* dorong toggle ke kanan */
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 4%; /* menu dropdown muncul dari kanan */
    top: 52px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    flex-direction: column;
  }

  .nav-menu.show {
    display: flex;
  }
}
/* HERO */
.hero {
  background: linear-gradient(270deg, #fd8f00, #ffffff, #292930);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
  color: white;
  text-align: center;
  padding: 5rem 0;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.hero-content p {
  color: #f0f9ff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.btn-primary {
  background: #fd8f00;
  color: #fff;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  color: #000;
}
.btn-outline {
  color: var(--text);
  background: #fff;
}
.btn-outline:hover {
  background: #fd8f00;
  transform: translateY(-2px);
  color: #fff;
}

/* SECTIONS */
.section {
  padding: 3rem 0;
}
.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* CARD */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}
.card h2 {
  margin-bottom: 0.75rem;
  text-align: center;
}

/* PROGRAM */
.program-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}
.program-card img {
  width: 60%;
  height: auto;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.program-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
}
.program-card p {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* JOURNALS */
.journals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.chip.active,
.chip:hover {
  border-color: var(--primary);
  color: var(--primary-600);
  background: #f0f9ff;
}

.journal-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.journal-card {
  background: #fd8f00;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 80%;
  margin-left: 10%;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}
.journal-media {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.journal-media img {
  width: 50%; /* ukuran gambar lebih konsisten */
  height: auto; /* tinggi tetap */
  object-fit: cover; /* isi penuh tanpa distorsi */
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.journal-body {
  padding: 1.25rem; /* tambah jarak atas-bawah */
}
.journal-title {
  margin: 0.75rem 0; /* jarak lebih lega */
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}
.journal-desc {
  color: var(--muted);
  margin: 0.75rem 0 1rem; /* jarak lebih besar atas-bawah */
  font-size: 0.95rem;
  line-height: 1.5;
}
.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 0.5rem;
}
/* FOOTER */
.footer {
  background: linear-gradient(270deg, #fd8f00, #ffffff, #292930);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
  color: #000;
  margin-top: 3rem;
  text-align: center;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 2rem 0;
}
.footer h3,
.footer h4 {
  color: #000;
  margin-bottom: 0.5rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 0.75rem 4%;
  text-align: center;
}

/* RESPONSIVE NAV */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    right: 4%;
    top: 52px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    flex-direction: column;
  }
  .nav-menu.show {
    display: flex;
  }
}
