/* ===================================================================
   SMPN 6 CISOLOK SATU ATAP - CUSTOM STYLESHEET
   Desain Modern, Elegan, Responsif & Aksesibel
   =================================================================== */

:root {
  --primary: #0f2b5c;       /* Deep Navy */
  --primary-light: #1e3a8a; /* Indigo Navy */
  --secondary: #0d9488;     /* Emerald / Teal */
  --accent: #f59e0b;        /* Amber / Gold */
  --accent-light: #fef3c7;
  --dark: #0f172a;          /* Slate 900 */
  --light: #f8fafc;         /* Slate 50 */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Gradient & Patterns */
.hero-gradient {
  background: linear-gradient(135deg, rgba(15, 43, 92, 0.95) 0%, rgba(30, 58, 138, 0.88) 50%, rgba(13, 148, 136, 0.82) 100%),
              url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

/* Sub-header Wave / Pattern */
.bg-pattern-grid {
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Card Hover Elevation Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image zoom on hover */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.5s ease;
}
.img-zoom-container:hover img {
  transform: scale(1.08);
}

/* Custom Badges */
.badge-satap {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Line Clamp Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active Navigation Link */
.nav-link.active {
  color: #0d9488;
  font-weight: 700;
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0d9488;
  border-radius: 2px;
}

/* Modal Transitions */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.open,
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal.open .modal-content,
.modal.active .modal-content {
  transform: scale(1);
}

/* Printable PPDB Registration Slip */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-ppdb-card, #printable-ppdb-card * {
    visibility: visible;
  }
  #printable-ppdb-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white;
    color: black;
    box-shadow: none !important;
    border: 2px solid #000 !important;
  }
  .no-print {
    display: none !important;
  }
}
