/* ==============================================================
   CSS Variables untuk Redesign Modern Educational
============================================================== */
:root {
  --color-primary:     #0A1628;   /* Navy gelap — background utama */
  --color-secondary:   #1E5FC8;   /* Biru electric — aksi utama */
  --color-accent:      #F5A623;   /* Gold/amber — highlight & badge */
  --color-surface:     #FFFFFF;   /* Putih — background kartu */
  --color-bg:          #F4F7FB;   /* Abu sangat muda — background halaman */
  --color-text:        #1A1A2E;   /* Hampir hitam — teks utama */
  --color-muted:       #64748B;   /* Abu — teks sekunder */
  --color-border:      #E2E8F0;   /* Abu muda — border kartu */
}

body {
  background-color: var(--color-bg) !important;
  font-family: 'Lato', sans-serif !important;
  color: var(--color-text);
  padding-top: 80px; /* Mencegah konten tertutup fixed-top navbar */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ==============================================================
   1. NAVBAR STYLING
============================================================== */
.main-navbar {
  background: var(--color-primary);
  transition: all 0.3s ease;
  padding: 15px 0;
}

.main-navbar.scrolled {
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-brand-logo {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-accent) !important;
  background: transparent !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.btn-login {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==============================================================
   2. HERO SECTION
============================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.05);
  top: -100px; right: -100px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-section .hero-content {
  animation: fadeInUp 0.7s ease both;
  position: relative;
  z-index: 2;
}

/* ==============================================================
   3. INFORMASI UMUM CARD
============================================================== */
.info-umum-card {
  border-left: 4px solid var(--color-accent);
  background: #EBF3FF;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.info-umum-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-muted);
}

/* ==============================================================
   4. KARTU TENAGA PENGAJAR (GRID)
============================================================== */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .teacher-grid { grid-template-columns: 1fr; }
}

.teacher-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(30, 95, 200, 0.15);
}

.teacher-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem; color: white;
  border: 3px solid #E2E8F0;
  object-fit: cover;
}

.subject-badge {
  display: inline-block;
  background: #EBF3FF;
  color: var(--color-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.btn-profile {
  display: inline-block;
  border: 1.5px solid var(--color-secondary);
  color: var(--color-secondary);
  background: transparent;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  width: auto;
}

.btn-profile:hover {
  background: var(--color-secondary);
  color: white;
}

/* ==============================================================
   5. FOOTER STYLING
============================================================== */
.main-footer {
  background: var(--color-primary);
  border-top: 3px solid var(--color-accent);
  padding: 48px 0 24px;
  color: #CBD5E1;
}

.main-footer h5 {
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: #CBD5E1;
  transition: all 0.2s;
  margin-right: 8px;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-3px);
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
}
