
/* ── Design tokens ── */
:root {
  --brand: #b91c1c;
  --brand-2: #dc2626;
  --brand-dark: #7f1d1d;
  --gold: #facc15;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 4% 0%,
      rgba(250, 204, 21, 0.28),
      transparent 28rem
    ),
    radial-gradient(
      circle at 95% 8%,
      rgba(185, 28, 28, 0.12),
      transparent 26rem
    ),
    linear-gradient(180deg, #fffdf2 0%, #f8fafc 38%, #eef2f7 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}

/* ── Material Symbols ── */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" 0,
    "wght" 600,
    "GRAD" 0,
    "opsz" 24;
}

/* ── Bento card shell ── */
.bento-card {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  /* height: 100%; */
}

/* During masonry measurement: lift overflow so scrollHeight is unclamped */
.bento-card.is-measuring {
  overflow: visible !important;
  height: auto !important;
}

.bento-card.is-measuring .card-inner {
  overflow: visible !important;
  height: auto !important;
}

.bento-card.is-measuring .absolute {
  display: none !important;
}

/* The inner wrapper — no h-full/overflow so scrollHeight measures freely */
.card-inner {
  width: 100%;
  /* height: 100%; */
  border-radius: inherit;
}

/* ── Scrollbar ── */
.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

/* ── Placeholder image ── */
.placeholder-img {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.78),
      rgba(248, 250, 252, 0.9)
    ),
    linear-gradient(135deg, #fee2e2 0%, #fff7ed 45%, #e0f2fe 100%);
}

.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 24% 24%,
      rgba(185, 28, 28, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 64%,
      rgba(250, 204, 21, 0.18),
      transparent 36%
    );
}

.placeholder-img::after {
  content: "image";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Material Symbols Rounded";
  font-size: 28px;
  color: rgba(100, 116, 139, 0.55);
}

/* FAB WhatsApp */
/* FAB WhatsApp Modern */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 20px;
  /* Modern rounded square */
  box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fab-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.6);
}

/* Efek Denyut Halus */
.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .fab-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }
}

/* ── Overlay Menu (Mobile) ── */
@media (max-width: 1023px) {
  /* Mengubah card menu menjadi overlay drawer */
  [data-card="menu"] {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    /* Top, Right, Bottom, Left */
    width: 280px !important;
    height: 100dvh !important;
    /* dVH untuk layar mobile */
    z-index: 1000 !important;
    transform: translateX(-100%) !important;
    /* Ditambahkan !important agar wajib bergeser keluar layar saat ditutup */
    visibility: hidden !important;
    /* Memastikan drawer benar-benar tidak terlihat saat tertutup */
    pointer-events: none !important;
    /* Menonaktifkan interaksi klik/sentuh saat tertutup */
    border-radius: 0 !important;
    border: none !important;
    background: white !important;
    transition:
      transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.4s !important;
    overflow-y: auto;
    margin: 0 !important;
    box-shadow: none !important;
  }

  [data-card="menu"].is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    /* Memunculkan kembali drawer saat kelas .is-open aktif */
    pointer-events: auto !important;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1) !important;
  }

  [data-card="menu"] .card-inner {
    border-radius: 0 !important;
    min-height: 100%;
  }
}

/* FAB Hamburger Menu (Kiri Atas) */
.fab-menu {
  position: fixed;
  top: 24px;
  right: 20px;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: white;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fab-menu:active {
  transform: scale(0.95);
}

@media (min-width: 1024px) {
  .fab-menu {
    display: none;
  }
}

/* Sembunyikan di Desktop */

/* Backdrop Gelap Menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Animasi Running Text Modern ── */
@keyframes marquee-speed {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-custom {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-speed 25s linear infinite;
}

/* Jeda animasi saat di-hover agar mudah dibaca */
.animate-marquee-custom:hover {
  animation-play-state: paused;
}

.subject-table-wrapper {
  margin-top: 2rem;
}

.subject-table-wrapper > * + * {
  margin-top: 3rem;
}

.subject-table-wrapper h4 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
}

.subject-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-align: left;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.subject-table th {
  background: #0f172a;
  padding: 0.75rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.subject-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 0.75rem;
  transition: background-color 0.2s ease;
}

.subject-table tr:last-child td {
  border-bottom: 0;
}

.subject-table tr:hover td {
  background: rgba(254, 242, 242, 0.5);
}

.badge-acc {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  background: #ecfdf5;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.ukt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ukt-table th {
  background: #b91c1c;
  color: white;
  padding: 6px 8px;
  text-align: center;
  font-weight: 700;
  font-size: 10px;
}

.ukt-table td {
  padding: 5px 8px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

.ukt-table tr:nth-child(even) td {
  background: #fef2f2;
}

.ukt-table tr:hover td {
  background: #fee2e2;
}

.jurusan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.jurusan-table th {
  background: #b91c1c;
  color: white;
  padding: 6px 10px;
  text-align: left;
  font-weight: 700;
}

.jurusan-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.jurusan-table tr:hover td {
  background: #fef2f2;
}

.fakultas-header {
  background: #7f1d1d;
  color: white;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 11px;
}
