/* ============================================
   MICROSITE UBISA — Global Stylesheet
   Universitas Bima Sakapenta, Tegal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:      #0f2654;
  --navy-mid:  #1a3a7c;
  --gold:      #d4a017;
  --gold-light:#f0c040;
  --surface:   #f4f6fb;
  --white:     #ffffff;
  --text:      #1c1c2e;
  --text-muted:#6b7280;
  --border:    #e5e9f0;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 2px 12px rgba(15,38,84,0.08);
  --shadow-lg: 0 8px 32px rgba(15,38,84,0.14);
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(15,38,84,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.navbar-brand img {
  height: 38px; width: auto;
  filter: brightness(0) invert(1);
}
.navbar-brand .brand-text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.navbar-brand .brand-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.95rem;
  color: var(--white); letter-spacing: 0.01em;
}
.navbar-brand .brand-sub {
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-gold {
  background: var(--gold); color: var(--navy);
  border: none; padding: 8px 20px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 60%, #2450a0 100%);
  position: relative; overflow: hidden;
  padding: 72px 28px 64px;
  text-align: center;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,160,23,0.18) 0%, transparent 70%);
  top: -120px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--gold-light); padding: 6px 18px;
  border-radius: 20px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: var(--font-head);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-title span { color: var(--gold-light); }
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.72);
  line-height: 1.7; max-width: 520px; margin: 0 auto 32px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 8px;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-head); font-size: 1.8rem;
  font-weight: 800; color: var(--gold-light); line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.75rem; color: rgba(255,255,255,0.55);
  margin-top: 4px; font-weight: 500;
}

/* ── BREADCRUMB ────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 28px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--navy-mid); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ── SECTION ───────────────────────────────── */
.section {
  max-width: 1060px; margin: 0 auto;
  padding: 44px 24px;
}
.section + .section { padding-top: 0; }

.section-header { margin-bottom: 24px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); margin-bottom: 6px;
  font-family: var(--font-head);
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy); line-height: 1.3;
}
.section-divider {
  width: 36px; height: 3px;
  background: var(--gold); border-radius: 2px;
  margin-top: 10px;
}

/* ── PRODI CARDS (index utama) ─────────────── */
.prodi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.prodi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.prodi-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.prodi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(212,160,23,0.3); }
.prodi-card:hover::after { transform: scaleX(1); }

.prodi-icon-wrap {
  width: 56px; height: 56px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border);
}
.prodi-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); line-height: 1.3;
}
.prodi-card .prodi-fak {
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500; margin-top: 2px;
}
.prodi-card .prodi-arrow {
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-mid);
}

/* ── MODULE CARDS ──────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.module-card:hover { border-color: var(--navy-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.module-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #eef2ff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.module-card .module-name {
  font-weight: 600; font-size: 0.9rem;
  color: var(--text); line-height: 1.3;
}
.module-card .module-type {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
}

/* ── ZOOM TABLE ────────────────────────────── */
.zoom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.zoom-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.zoom-matkul {
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700; color: var(--navy);
}
.zoom-meta {
  display: flex; flex-direction: column; gap: 4px;
}
.zoom-meta span {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.zoom-meta span strong { color: var(--text); font-weight: 600; }
.btn-zoom {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0b5cff; color: #fff;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  width: fit-content; margin-top: 4px;
  font-family: var(--font-body);
}
.btn-zoom:hover { background: #0047d1; transform: translateY(-1px); }

/* ── LINK GRID ─────────────────────────────── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.link-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
}
.link-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(212,160,23,0.15); }
.link-card .link-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; border: 1px solid var(--border);
}
.link-card .link-name {
  font-weight: 600; font-size: 0.87rem; color: var(--text);
}
.link-card .link-desc {
  font-size: 0.73rem; color: var(--text-muted); margin-top: 2px;
}

/* ── PENGUMUMAN BANNER ─────────────────────── */
.notice-banner {
  background: linear-gradient(90deg, #fff7e0, #fffbf0);
  border: 1px solid #f0c040;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.notice-banner .notice-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notice-banner .notice-title { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.notice-banner .notice-body { font-size: 0.82rem; color: #6b5a00; margin-top: 3px; line-height: 1.5; }

/* ── KONTAK DOSEN ──────────────────────────── */
.dosen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.dosen-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.dosen-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  font-family: var(--font-head); font-weight: 700;
}
.dosen-name { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.dosen-role { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.dosen-wa {
  font-size: 0.75rem; color: #25d366;
  font-weight: 600; text-decoration: none;
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
}

/* ── FOOTER ────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 36px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand .brand-name {
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700; color: var(--white);
}
.footer-brand .brand-addr {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 4px;
}
.footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.8rem; transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; margin-top: 4px;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .navbar-brand .brand-sub { display: none; }
  .hero { padding: 52px 18px 48px; }
  .hero-stats { gap: 24px; }
  .section { padding: 32px 16px; }
  .prodi-grid, .module-grid, .zoom-grid, .link-grid, .dosen-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
