/* ===== Student Portal — Mobile First ===== */
:root {
  --green: #0B6E4F;
  --green-dark: #08523B;
  --mint: #E3F2EC;
  --ink: #14231D;
  --muted: #5A6B64;
  --line: #D4E2DB;
  --bg: #F7FAF8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* Gambar responsif (slide 11) */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }

/* ----- Header & navigasi: Flexbox (slide 10) ----- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--green);
  color: #fff;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 14px 0;
}
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.logo span { color: #A8E6CF; }

.menu-toggle {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px; padding: 6px 14px;
  font: inherit; cursor: pointer;
}

/* Mobile: menu disembunyikan, tampil saat .open */
.nav {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 4px;
}
.nav.open { display: flex; }
.nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}
.nav a:hover { background: var(--green-dark); }

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-inner { width: 90%; max-width: 1100px; margin: auto; }
.eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #A8E6CF; margin-bottom: 12px; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; font-weight: 800; margin-bottom: 14px; }
.hero-desc { color: #DCEFE7; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font: inherit; font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: #F2B705; color: var(--ink); }
.btn-primary:hover { background: #FFC933; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ----- Container (slide 8) ----- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 48px 0 8px;
}
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }

/* ----- Profil ----- */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.profile-photo {
  width: 140px; aspect-ratio: 1; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; border: 4px solid var(--mint);
  background: var(--green); color: #fff;
  font-size: 2.8rem; font-weight: 800;
}
.profile-data { width: 100%; display: grid; gap: 10px; }
.profile-data div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.profile-data dt { color: var(--muted); }
.profile-data dd { font-weight: 700; }
.badge { background: var(--mint); color: var(--green); padding: 2px 10px; border-radius: 99px; font-size: .85rem; }

/* ----- Kartu akademik: Grid mobile-first (slide 16) ----- */
.card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 12px;
  padding: 22px;
}
.card-label { color: var(--muted); font-weight: 500; }
.card-value { font-size: 2.4rem; font-weight: 800; color: var(--green); line-height: 1.2; }
.card-note { font-size: .9rem; color: var(--muted); }

/* ----- Form responsif (slide 11) ----- */
.form-container {
  width: 100%;
  max-width: 600px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
form label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, select, button {
  width: 100%;
  box-sizing: border-box;
}
input, select {
  font: inherit;
  padding: 12px;
  border: 1px solid #B8CCC3;
  border-radius: 8px;
  background: #fff;
}
form .btn { margin-top: 22px; }
#result { margin-top: 14px; font-weight: 700; min-height: 1.6em; }

/* ----- Footer ----- */
footer {
  margin-top: 56px;
  background: var(--ink);
  color: #C9D6D0;
  text-align: center;
  padding: 22px 5%;
  font-size: .9rem;
}

/* ===== Tablet (slide 16) ===== */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .nav, .nav.open { display: flex; flex-direction: row; width: auto; }
  .hero { padding: 80px 0 88px; }
  .hero h1 { font-size: 2.6rem; max-width: 720px; }
  .profile-card { flex-direction: row; align-items: center; gap: 32px; }
  .profile-photo { width: 160px; flex-shrink: 0; }
  .card-container { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Desktop (slide 16) ===== */
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.1rem; }
  .card-container { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
