/* ==========================================================================
   PORTAL PEMBELAJARAN LAB REKAM MEDIS - UDINUS
   Design System: Deep Blue Hero & Clean Light Cards
   ========================================================================== */

:root {
  /* UDINUS Brand Palette */
  --udinus-primary: #0b4ea2;
  --udinus-dark: #073673;
  --udinus-deep: #052959;
  --udinus-light: #1b6fd8;
  --udinus-soft: #eef5fc;
  
  --accent-gold: #f2b705;
  --accent-dark: #d49f00;
  --accent-light: #ffdc6b;
  --accent-soft: #fff9e6;

  /* Card Colors */
  --color-dashboard: #0b4ea2;
  --color-dashboard-soft: #eef5fc;
  
  --color-simgos: #d97706;
  --color-simgos-soft: #fef3c7;
  
  --color-mlite: #059669;
  --color-mlite-soft: #d1fae5;
  
  --color-anatomy: #0284c7;
  --color-anatomy-soft: #e0f2fe;
  
  --color-booking: #7c3aed;
  --color-booking-soft: #ede9fe;

  --color-inacbg: #e11d48;
  --color-inacbg-soft: #ffe4e6;

  --color-khanza: #0d9488;
  --color-khanza-soft: #ccfbf1;

  /* Neutrals */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-card: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(11, 78, 162, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(11, 78, 162, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 32px -6px rgba(11, 78, 162, 0.16);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-xl: 24px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--accent-gold);
  color: #052959;
}

/* ==========================================================================
   HERO SECTION (WARNA BIRU KHAS UDINUS DENGAN AKSEN EMAS)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background-color: var(--udinus-dark);
  background-image: 
    radial-gradient(circle at 50% 18%, rgba(242, 183, 5, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 12% 80%, rgba(27, 111, 216, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 88% 80%, rgba(27, 111, 216, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, #052959 0%, #073673 50%, #0b4ea2 100%);
  color: #ffffff;
  padding: 3.75rem 1.5rem 5.5rem;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-gold);
  text-align: center;
}

/* Ambient Glow Orbs */
.hero-glow-center {
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28rem;
  height: 28rem;
  background: rgba(242, 183, 5, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   LOGO SHOWCASE ROW (4 LOGO BERJEJER HORISONTAL)
   ========================================================================== */
.logos-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.logos-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  .logos-capsule {
    gap: 2rem;
    flex-wrap: nowrap;
  }
}

.logos-capsule:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-badge:hover {
  transform: scale(1.08);
}

.logo-badge img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

@media (min-width: 600px) {
  .logo-badge img {
    height: 56px;
  }
}

.logo-divider {
  width: 1.5px;
  height: 38px;
  background-color: #cbd5e1;
  display: none;
}

@media (min-width: 600px) {
  .logo-divider {
    display: block;
  }
}

/* Institution Badge Pill */
.institution-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Hero Title & Subtitle */
.hero-title {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.85rem;
  }
}

.hero-title .text-accent {
  color: var(--accent-gold);
  display: inline-block;
}

.hero-univ-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
  margin-top: 0.35rem;
}

@media (min-width: 768px) {
  .hero-univ-title {
    font-size: 1.75rem;
  }
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.6;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* Wave Curve Transition at Bottom of Hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
}

@media (min-width: 640px) {
  .hero-wave svg {
    height: 44px;
  }
}

/* ==========================================================================
   MAIN CARDS SECTION (GRID OF 5 CARDS)
   ========================================================================== */
.main-content {
  flex: 1;
  background-color: var(--bg-page);
  padding: 3rem 1.5rem 5rem;
  position: relative;
  z-index: 20;
}

.main-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-item:nth-child(7) {
    grid-column: span 2;
    max-width: 580px;
    width: 100%;
    justify-self: center;
  }
}

@media (min-width: 1024px) {
  /* 3-Column Grid: 3 kartu di baris 1, 3 kartu di baris 2, dan kartu ke-7 di baris 3 terpusat */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .card-item:nth-child(7) {
    grid-column: 2 / span 1;
    max-width: none;
    justify-self: stretch;
  }
}

/* Card Item Component */
.card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-accent, var(--udinus-primary));
}

/* Color Variables per Card */
.card-dashboard {
  --card-accent: var(--color-dashboard);
  --card-bg-soft: var(--color-dashboard-soft);
}

.card-simgos {
  --card-accent: var(--color-simgos);
  --card-bg-soft: var(--color-simgos-soft);
}

.card-mlite {
  --card-accent: var(--color-mlite);
  --card-bg-soft: var(--color-mlite-soft);
}

.card-anatomy {
  --card-accent: var(--color-anatomy);
  --card-bg-soft: var(--color-anatomy-soft);
}

.card-booking {
  --card-accent: var(--color-booking);
  --card-bg-soft: var(--color-booking-soft);
}

.card-inacbg {
  --card-accent: var(--color-inacbg);
  --card-bg-soft: var(--color-inacbg-soft);
}

.card-khanza {
  --card-accent: var(--color-khanza);
  --card-bg-soft: var(--color-khanza-soft);
}

/* Card Header: Icon & Pill Badge */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--card-bg-soft);
  color: var(--card-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.card-item:hover .card-icon-box {
  transform: scale(1.06);
  background: var(--card-accent);
  color: #ffffff;
}

.card-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--card-bg-soft);
  color: var(--card-accent);
}

.card-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--card-accent);
}

/* Card Body: Title & Ringkasan Penjelasan */
.card-body {
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.card-item:hover .card-title {
  color: var(--card-accent);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Card Notice / Catatan Pembelajaran */
.card-notice {
  font-size: 0.725rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
  font-weight: 500;
}

.card-notice i {
  color: #d97706;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Card Action Buttons (2 Kolom: Buka & Salin) */
.card-footer {
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--card-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-open:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-copy:hover {
  background: #e2e8f0;
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background: var(--udinus-dark);
  color: #ffffff;
  padding: 3.25rem 1.5rem 2rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* 4 Logo Berjejer di Footer (Tanpa latar putih) */
.footer-brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand-logos img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.footer-brand-logos img:hover {
  transform: scale(1.08);
}

.footer-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  max-width: 480px;
  line-height: 1.55;
}

.footer-social-wrap h4 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-social-links {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--accent-gold);
  color: #052959;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #052959;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.toast-content h5 {
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.toast-content p {
  font-size: 0.725rem;
  color: #cbd5e1;
}

/* Floating Back to Top (Diposisikan di Kanan Bawah) */
.btn-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #052959;
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: all var(--transition);
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.btn-back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(242, 183, 5, 0.5);
}
