/* ═══════════════════════════════════════════
   UT Salut Mandalika — Neobrutalism + Bento
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800;9..40,900&display=swap');

:root {
  --bg: #fafaf9;
  --bg-alt: #f0efed;
  --bg-dark: #29176d;
  --border: #29176d;
  --primary: #29176d;
  --primary-light: #4a2d9e;
  --accent: #ffed00;
  --accent-light: #fff44f;
  --gold: #b8960f;
  --gold-light: #d4b01a;
  --text: #1e293b;
  --text-light: #475569;
  --text-white: #f8fafc;
  --shadow: 4px 4px 0px #29176d;
  --shadow-lg: 6px 6px 0px #29176d;
  --radius: 12px;
  --radius-sm: 8px;
  --border-w: 1.3px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: var(--border-w) solid var(--border);
  height: 68px;
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.3px;
  text-transform: uppercase;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { font-size: .65rem; font-weight: 400; color: var(--text-light); letter-spacing: 0; text-transform: none; }
.nav-links { display: flex; gap: .1rem; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  transition: all .15s;
  position: relative;
  border: var(--border-w) solid transparent;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { border-color: var(--border); background: #fff; }
.nav-links a.active { border-color: var(--border); background: #fff; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--primary) !important;
  border: var(--border-w) solid var(--border) !important;
  font-weight: 800 !important;
}
.nav-cta:hover { background: #1e0f52 !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--primary); z-index: 1002; }

/* ─── Mobile overlay ─── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.open { display: block; opacity: 1; }

/* ─── Hero ─── */
.hero-pendaftaran,
.hero-info,
.hero-form,
.hero-galeri,
.hero-fakultas,
.hero-main,
.hero,
.page-header {
  background: var(--bg-dark) !important;
  border-bottom: var(--border-w) solid var(--border);
}
.hero-pendaftaran::before,
.hero-info::before,
.hero-form::before,
.hero-galeri::before,
.hero-fakultas::before,
.hero-main::before,
.hero::before { display: none; }

.hero-pendaftaran h1,
.hero-info h1,
.hero-form h1,
.hero-galeri h1,
.hero-fakultas h1,
.hero-main h1,
.hero h1,
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.5px;
  text-transform: uppercase;
}
.hero-pendaftaran p,
.hero-info p,
.hero-form p,
.hero-galeri p,
.hero-fakultas p,
.hero-main p,
.hero p,
.page-header p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.6;
  font-weight: 500;
}
.hero-pendaftaran h1 span,
.hero-info h1 span,
.hero-form h1 span,
.hero-galeri h1 span,
.hero-fakultas h1 span,
.hero-main h1 span,
.hero h1 span {
  color: var(--accent) !important;
  -webkit-text-fill-color: unset;
  background: none;
}

/* ─── Scribble underline on hero spans ─── */
.hero-main h1 span,
.hero-pendaftaran h1 span,
.hero-galeri h1 span {
  position: relative;
  display: inline-block;
}
.hero-main h1 span::after,
.hero-pendaftaran h1 span::after,
.hero-galeri h1 span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,6 Q20,1 40,6 T80,6 T98,4' stroke='%23ffed00' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 60px 6px;
  opacity: .7;
}

.hero { padding: 8rem 0 4rem; }
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-image {
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  border: var(--border-w) solid #fff;
  box-shadow: var(--shadow-lg);
}

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; border-top: var(--border-w) solid var(--border); border-bottom: var(--border-w) solid var(--border); }
.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: .35rem;
  letter-spacing: -.3px;
  text-transform: uppercase;
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 500;
}
.section-dark .section-title { color: var(--accent); }
.section-dark .section-sub { color: rgba(255,255,255,.6); }

/* ─── Bento Grid ─── */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.bento-2 { grid-template-columns: 2fr 1fr; }
.bento-2r { grid-template-columns: 1fr 2fr; }
.bento-full { grid-column: 1 / -1; }
.bento-card {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s;
  box-shadow: 3px 3px 0px var(--border);
}
.bento-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border);
}

/* ─── Grids ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: .875rem; }

/* ─── Cards ─── */
.card {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s;
  box-shadow: 3px 3px 0px var(--border);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border);
}
.card-icon {
  width: 44px; height: 44px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .35rem; color: var(--primary); text-transform: uppercase; letter-spacing: -.2px; }
.card p { font-size: .82rem; color: var(--text-light); line-height: 1.6; font-weight: 500; }

/* ─── Stats ─── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stats-grid > div { border-radius: var(--radius-sm); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.3rem; font-weight: 700;
  font-size: .82rem; text-decoration: none; border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s; font-family: var(--font);
  background: #fff; color: var(--text);
  box-shadow: 3px 3px 0px var(--border);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--border); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0px var(--border); }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #e6d500; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: 3px 3px 0px rgba(255,255,255,.3); }

/* ─── Footer ─── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.5);
  padding: 4rem 0 0;
  border-top: var(--border-w) solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-size: .8rem; margin-bottom: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.footer a { color: rgba(255,255,255,.45); text-decoration: none; display: block; font-size: .82rem; margin-bottom: .5rem; transition: all .15s; font-weight: 500; }
.footer a:hover { color: var(--accent); padding-left: 4px; }
.footer p { font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.7; font-weight: 500; }
.footer-logo { font-size: 1.1rem; font-weight: 900; color: #fff; margin-bottom: .75rem; display: block; text-transform: uppercase; }
.footer-bottom { border-top: var(--border-w) solid rgba(255,255,255,.08); padding: 1.5rem 0; margin-top: 3rem; text-align: center; font-size: .72rem; color: rgba(255,255,255,.25); font-weight: 500; }

/* ─── Page Header ─── */
.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
}

/* ─── Table ─── */
.table-wrap { overflow-x: auto; border: var(--border-w) solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { background: var(--primary); padding: .65rem 1rem; text-align: left; font-weight: 700; color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: var(--border-w) solid var(--border); }
td { padding: .6rem 1rem; border-bottom: var(--border-w) solid var(--border); }
tr:last-child td { border: none; }
tr:hover td { background: var(--bg-alt); }

/* ─── Form ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem .85rem;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem; font-family: var(--font);
  transition: all .15s; background: #fff;
  box-shadow: 2px 2px 0px var(--border);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border);
}

/* ─── Page-specific shared styles ─── */

/* stat-line */
.stat-line {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0;
  border-bottom: var(--border-w) solid rgba(255,255,255,.1);
}
.stat-line:last-child { border: none; }
.stat-line .num { font-size: 1.8rem; font-weight: 900; color: var(--accent); min-width: 80px; }
.stat-line .lbl { color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; }
.stat-line .sub { color: rgba(255,255,255,.35); font-size: .75rem; font-weight: 500; }

/* FAQ items */
.faq-item {
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; cursor: pointer; transition: all .15s;
  background: #fff; box-shadow: 2px 2px 0px var(--border);
}
.faq-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--border); }
.faq-item summary { font-weight: 700; font-size: .88rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

/* Prodi cards */
.prodi-card {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: all .2s;
  box-shadow: 2px 2px 0px var(--border);
}
.prodi-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border);
}
.gelar {
  display: inline-block;
  font-size: .7rem; font-weight: 800;
  padding: .15rem .5rem; margin-top: .5rem;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* Feature cards */
.feature-card {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s;
  box-shadow: 2px 2px 0px var(--border);
}
.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border);
}

/* Info highlight */
.info-highlight {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .15s;
  box-shadow: 2px 2px 0px var(--border);
}
.info-highlight:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--border); }

/* Syarat items */
.syarat-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .15s;
  box-shadow: 2px 2px 0px var(--border);
}
.syarat-item:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--border); }

/* Galeri cards */
.galeri-card {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
  box-shadow: 3px 3px 0px var(--border);
}
.galeri-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--border);
}

/* ─── FUN ANIMATIONS ─── */

/* Scribble strikethrough on hover for headings */
@keyframes scribble {
  0% { width: 0; left: 0; }
  100% { width: 100%; left: 0; }
}

.scribble-hover {
  position: relative;
  display: inline-block;
}
.scribble-hover::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,6 Q20,1 40,6 T80,6 T98,4' stroke='%23ffed00' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") repeat-x bottom;
  background-size: 40px 8px;
  transition: width .4s cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
}
.scribble-hover:hover::after { width: 100%; }

/* No click animations */

/* Marker highlight effect */
.marker {
  position: relative;
  display: inline-block;
}
.marker::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  right: -2px;
  height: 30%;
  background: rgba(41,23,109,.12);
  z-index: -1;
  transform: rotate(-.5deg);
}

/* No wobble button animations */

/* No shake stat animations */

/* ─── Staggered fade-in ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .feature-card, .prodi-card, .galeri-card, .bento-card {
  animation: fadeUp .4s ease both;
}
.card:nth-child(2), .feature-card:nth-child(2), .prodi-card:nth-child(2), .bento-card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .feature-card:nth-child(3), .prodi-card:nth-child(3), .bento-card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4), .feature-card:nth-child(4), .prodi-card:nth-child(4), .bento-card:nth-child(4) { animation-delay: .15s; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-2, .bento-2r { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 1rem 1rem;
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
    z-index: 1000;
    gap: .25rem;
    align-items: stretch;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    border-right: var(--border-w) solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-pendaftaran h1, .hero-info h1, .hero-form h1, .hero-galeri h1, .hero-fakultas h1, .hero-main h1, .hero h1 { font-size: 1.8rem; }

  .bento { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(3,1fr);gap:1.5rem"] { grid-template-columns: 1fr !important; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.4rem; }
  .section { padding: 3rem 0; }

  .hero-pendaftaran, .hero-info, .hero-form, .hero-galeri, .hero-fakultas, .hero-main { text-align: center; }
  .hero-pendaftaran p, .hero-info p, .hero-form p, .hero-galeri p, .hero-fakultas p, .hero-main p { margin-left: auto; margin-right: auto; }
  .hero-actions, [style*="display:flex;gap:.75rem;flex-wrap:wrap"] { justify-content: center !important; }

  .fak-link { font-size: .7rem; padding: .3rem .6rem; }
  .info-highlight { padding: 1rem; }
  .card { padding: 1.15rem; }
  .footer { padding: 3rem 0 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  [style*="grid-template-columns:repeat(3,1fr);gap:1.5rem"] { grid-template-columns: 1fr !important; }
  .hero-pendaftaran, .hero-info, .hero-form, .hero-galeri, .hero-fakultas, .hero-main { padding: 6rem 0 2rem; }
  .hero-pendaftaran h1, .hero-info h1, .hero-form h1, .hero-galeri h1, .hero-fakultas h1, .hero-main h1 { font-size: 1.4rem; }
  .nav-logo span { display: none; }
}
