/* Dr. Hendra Wijaya, M.Pd. — Academic Portfolio */
/* Warna: #1b5e20 primer | #a5d6a7 aksen | #f1f8e9 bg */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1b5e20;
  --green-mid:   #2e7d32;
  --green-light: #4caf50;
  --accent:      #a5d6a7;
  --bg:          #f1f8e9;
  --bg-white:    #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #555;
  --border:      #c8e6c9;
  --shadow:      0 2px 12px rgba(27,94,32,.12);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { font-family: var(--font); font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── DEMO BAR ── */
.demo-bar {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  font-size: .78rem;
  padding: .45rem 1rem;
  letter-spacing: .02em;
}
.demo-bar a { color: var(--accent); font-weight: 600; }
.demo-bar a:hover { color: #fff; }

/* ── HEADER & NAV ── */
header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--green-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-wrap {
  max-width: 1080px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem;
}
.nav-brand { font-size: 1rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.nav-brand span { display: block; font-size: .72rem; font-weight: 400; color: var(--text-muted); }

/* checkbox hack */
#nav-toggle { display: none; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: .3rem;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--green-dark); border-radius: 2px;
  transition: .3s;
}
nav ul {
  display: flex; gap: .2rem;
}
nav ul li a {
  display: block; padding: .45rem .8rem;
  border-radius: 6px; font-size: .88rem; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--green-dark); color: #fff; text-decoration: none;
}

@media (max-width: 680px) {
  .nav-burger { display: flex; }
  nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-white); border-bottom: 2px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 320px; }
  nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  nav ul li a { padding: .65rem .8rem; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  color: #fff; text-align: center; padding: 3.5rem 1.2rem 4rem;
}
.hero-avatar {
  width: 110px; height: 110px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: rgba(255,255,255,.15);
  border: 4px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-avatar svg { width: 72px; height: 72px; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: .3rem; }
.hero .subtitle { font-size: 1rem; opacity: .85; margin-bottom: .5rem; }
.hero .affil { font-size: .88rem; opacity: .7; margin-bottom: 1.6rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.hero-tags span {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: .3rem .9rem; font-size: .8rem;
}
.btn {
  display: inline-block; padding: .7rem 1.6rem;
  border-radius: 30px; font-weight: 700; font-size: .92rem;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.hero-btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--bg-white); border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 960px; margin: auto; padding: 1.4rem 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3rem;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

/* ── SECTION WRAPPER ── */
.section { padding: 3rem 1.2rem; max-width: 1080px; margin: auto; }
.section-sm { padding: 2rem 1.2rem; max-width: 1080px; margin: auto; }
.section-title {
  font-size: 1.4rem; font-weight: 800; color: var(--green-dark);
  margin-bottom: .4rem; border-left: 4px solid var(--green-light);
  padding-left: .7rem;
}
.section-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }

/* ── CARD GRID ── */
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(27,94,32,.18); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .4rem; }
.card p { font-size: .88rem; color: var(--text-muted); }
.card-tag {
  display: inline-block; margin-top: .7rem;
  background: var(--bg); color: var(--green-dark);
  border: 1px solid var(--border); border-radius: 12px;
  padding: .2rem .7rem; font-size: .75rem; font-weight: 600;
}

/* ── RISET PAGE ── */
.riset-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.filter-btn {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 20px; padding: .35rem .9rem; font-size: .82rem;
  cursor: pointer; color: var(--green-dark); font-weight: 500;
}
.filter-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-item {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow);
}
.pub-item h3 { font-size: .97rem; font-weight: 700; color: var(--green-dark); margin-bottom: .35rem; }
.pub-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.pub-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: .15rem .6rem; font-size: .75rem; color: var(--green-dark);
}
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 10px;
  font-size: .75rem; font-weight: 700;
}
.badge-green { background: #e8f5e9; color: var(--green-dark); }
.badge-blue  { background: #e3f2fd; color: #1565c0; }
.badge-orange{ background: #fff3e0; color: #e65100; }

/* ── MENGAJAR PAGE ── */
.course-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.course-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s;
}
.course-card:hover { transform: translateY(-3px); }
.course-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff; padding: 1rem 1.2rem;
}
.course-header .code { font-size: .78rem; opacity: .75; margin-bottom: .2rem; }
.course-header h3 { font-size: 1rem; font-weight: 700; }
.course-body { padding: 1rem 1.2rem; }
.course-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: .7rem; }
.course-detail { display: flex; flex-wrap: wrap; gap: .5rem; }
.course-detail span {
  font-size: .78rem; color: var(--green-dark);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .2rem .6rem;
}

.jadwal-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.jadwal-table th, .jadwal-table td {
  padding: .7rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border); font-size: .88rem;
}
.jadwal-table th { background: var(--green-dark); color: #fff; font-weight: 600; }
.jadwal-table tr:hover td { background: #e8f5e9; }

/* ── CV PAGE ── */
.cv-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cv-layout { grid-template-columns: 280px 1fr; } }

.cv-sidebar {
  background: var(--green-dark); color: #fff;
  border-radius: 14px; padding: 1.8rem 1.4rem;
}
.cv-photo {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.cv-photo svg { width: 56px; height: 56px; }
.cv-name { text-align: center; font-size: 1.05rem; font-weight: 800; margin-bottom: .2rem; }
.cv-gelar { text-align: center; font-size: .82rem; opacity: .75; margin-bottom: 1.2rem; }
.cv-sidebar h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; margin: 1.2rem 0 .5rem; }
.cv-sidebar p, .cv-sidebar a { font-size: .85rem; opacity: .9; color: #fff; }
.cv-sidebar ul li { font-size: .85rem; opacity: .9; padding: .15rem 0; }
.cv-sidebar ul li::before { content: "▸ "; opacity: .6; }

.cv-main {}
.cv-section { margin-bottom: 2rem; }
.cv-section-title {
  font-size: 1rem; font-weight: 800; color: var(--green-dark);
  border-bottom: 2px solid var(--green-light); padding-bottom: .3rem; margin-bottom: 1rem;
}
.cv-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cv-item:last-child { border-bottom: none; }
.cv-item-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem; }
.cv-item h4 { font-size: .95rem; font-weight: 700; color: var(--text); }
.cv-item .year {
  font-size: .8rem; color: var(--bg-white);
  background: var(--green-dark); border-radius: 10px; padding: .15rem .6rem; font-weight: 600;
}
.cv-item .inst { font-size: .85rem; color: var(--green-dark); font-weight: 600; margin-top: .2rem; }
.cv-item p { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

.award-list { display: flex; flex-direction: column; gap: .7rem; }
.award-item {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 8px; padding: .8rem 1rem;
}
.award-icon { flex-shrink: 0; width: 36px; height: 36px; }
.award-icon svg { width: 36px; height: 36px; }
.award-text h5 { font-size: .9rem; font-weight: 700; color: var(--green-dark); }
.award-text p { font-size: .82rem; color: var(--text-muted); }

/* ── KONTAK PAGE ── */
.kontak-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .kontak-grid { grid-template-columns: 1fr 1fr; } }

.kontak-info-card {
  background: var(--green-dark); color: #fff;
  border-radius: 14px; padding: 2rem 1.5rem;
}
.kontak-info-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.2rem; }
.kontak-row { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.kontak-row svg { flex-shrink: 0; margin-top: 2px; }
.kontak-row div { font-size: .88rem; }
.kontak-row .label { opacity: .65; font-size: .78rem; }
.kontak-row a { color: var(--accent); }

.form-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem 1.5rem; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: .9rem; color: var(--text);
  background: var(--bg); transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--green-light); outline: none; background: #fff;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; padding: .8rem; border: none; border-radius: 30px;
  background: var(--green-dark); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }

.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #25d366; color: #fff; border-radius: 30px;
  padding: .75rem 1.4rem; font-weight: 700; font-size: .95rem;
  margin-top: 1rem; transition: background .2s;
}
.wa-btn:hover { background: #128c7e; text-decoration: none; }

/* ── QUOTE BLOCK ── */
.quote-block {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff; border-radius: 14px; padding: 2rem 2rem;
  text-align: center; margin: 2.5rem 0;
}
.quote-block blockquote { font-size: 1.1rem; font-style: italic; opacity: .95; margin-bottom: .5rem; }
.quote-block cite { font-size: .82rem; opacity: .7; }

/* ── HIGHLIGHT LIST ── */
.highlight-list { display: flex; flex-direction: column; gap: .7rem; }
.highlight-item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 10px; padding: .9rem 1.1rem; box-shadow: var(--shadow);
}
.hi-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
}
.hi-content h4 { font-size: .93rem; font-weight: 700; color: var(--green-dark); }
.hi-content p { font-size: .84rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
  background: var(--green-dark); color: rgba(255,255,255,.8);
  text-align: center; padding: 2rem 1.2rem;
  margin-top: 3rem;
}
footer .footer-name { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
footer p { font-size: .82rem; }
footer a { color: var(--accent); }

/* ── UTILS ── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.chip {
  display: inline-block; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: .2rem .7rem; font-size: .78rem; color: var(--green-dark); font-weight: 600;
}
