/* =========================================================================
   STAI NURUL HUDA MASYKURIYAH - STYLESHEET RESMI
   Model Tampilan & Menu: Inspirasi staialanwar.ac.id
   Palet Warna Tetap: Gradien Biru Gelap ke Biru Terang & Aksen Emas
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Brand Colors - Dark Blue to Light Blue Gradient & Royal Gold */
  --primary-dark: #001833;      /* Deep Midnight Navy */
  --primary-navy: #002b5b;      /* Academic Royal Navy */
  --primary-blue: #0056b3;      /* Classic Blue */
  --primary-light: #0075ff;     /* Vivid Vibrant Blue */
  --accent-cyan: #00c2ff;       /* Bright Cyan */
  --accent-gold: #c59b27;       /* Royal Islamic Gold */
  --accent-gold-light: #f3e5ab; /* Soft Gold */

  /* Neutral Shades */
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #001833 0%, #002b5b 50%, #0075ff 100%);
  --grad-hero: linear-gradient(135deg, rgba(0, 24, 51, 0.90) 0%, rgba(0, 43, 91, 0.80) 50%, rgba(0, 117, 255, 0.65) 100%);
  --grad-accent: linear-gradient(135deg, #0075ff 0%, #00c2ff 100%);
  --grad-topbar: linear-gradient(90deg, #001833 0%, #002b5b 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 24, 51, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 43, 91, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 24, 51, 0.12);
}

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

/* -------------------------------------------------------------------------
   1. TOPBAR (Model staialanwar.ac.id dengan palet Biru & Emas)
   ------------------------------------------------------------------------- */
.topbar-alanwar {
  background: var(--grad-topbar);
  font-size: 0.82rem;
  color: #e2e8f0;
  border-bottom: 2px solid var(--accent-gold);
  padding: 8px 0;
}
.topbar-alanwar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
}
.topbar-alanwar a:hover {
  color: var(--accent-gold-light);
}
.topbar-quick-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.topbar-quick-links li a {
  padding: 2px 4px;
}
.topbar-quick-links li::after {
  content: '|';
  color: rgba(255, 255, 255, 0.2);
  margin-left: 14px;
}
.topbar-quick-links li:last-child::after {
  display: none;
}
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-socials a {
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   2. NAVBAR & DROPDOWN MENU (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.navbar-alanwar {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 43, 91, 0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
}
.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #001833 0%, #0075ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 117, 255, 0.25);
}
.brand-text-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
  letter-spacing: -0.3px;
  display: block;
}
.brand-text-sub {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.navbar-site-logo {
  height: 52px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar-brand-logo:hover .navbar-site-logo {
  transform: scale(1.02);
  opacity: 0.95;
}
@media (max-width: 575.98px) {
  .navbar-site-logo {
    height: 42px;
    max-width: 220px;
  }
}

/* Menu Nav Items */
.navbar-alanwar .nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e293b;
  padding: 10px 14px !important;
  transition: all 0.2s ease;
  position: relative;
}
.navbar-alanwar .nav-link:hover,
.navbar-alanwar .nav-link.active {
  color: var(--primary-light) !important;
}
.navbar-alanwar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.navbar-alanwar .nav-link:hover::after,
.navbar-alanwar .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown Hover Animation */
@media (min-width: 992px) {
  .navbar-alanwar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .navbar-alanwar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 35px rgba(0, 24, 51, 0.12);
    padding: 8px;
    min-width: 220px;
  }
}
.dropdown-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-light);
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   3. HERO SLIDER / BANNER (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.hero-slider-alanwar {
  position: relative;
  background-color: var(--primary-dark);
}
.hero-slide-item {
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
}
.hero-welcome-badge {
  display: inline-block;
  background: rgba(197, 155, 39, 0.25);
  color: var(--accent-gold-light);
  border: 1px solid rgba(197, 155, 39, 0.4);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-main-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-sub-text {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 650px;
  margin-bottom: 1.75rem;
}
@media (max-width: 767.98px) {
  .hero-slide-item { height: 420px; }
  .hero-main-title { font-size: 2rem; }
  .hero-sub-text { font-size: 0.95rem; }
}

/* -------------------------------------------------------------------------
   4. SECTION DIVIDER & HEADING (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.section-header-alanwar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  position: relative;
}
.section-header-alanwar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background: var(--primary-light);
}
.section-title-alanwar {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0;
}
.btn-lihat-semua {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-lihat-semua:hover {
  color: var(--primary-navy);
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------
   5. BERITA & ACARA GRID (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.news-grid-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 117, 255, 0.25);
}
.news-thumb-box {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--primary-dark);
}
.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-grid-card:hover .news-thumb-img {
  transform: scale(1.05);
}
.news-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 24, 51, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}
.news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-navy);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.news-grid-card:hover .news-card-title {
  color: var(--primary-light);
}
.news-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* -------------------------------------------------------------------------
   6. COUNTER STATISTIK (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.counter-section-alanwar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0;
}
.counter-box-alanwar {
  text-align: center;
  padding: 15px;
}
.counter-title-alanwar {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.counter-num-alanwar {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-navy);
  font-family: var(--font-main);
}
.counter-divider-v {
  border-right: 1px solid var(--border-color);
}
@media (max-width: 767.98px) {
  .counter-divider-v {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

/* -------------------------------------------------------------------------
   7. GOOGLE MAPS SECTION
   ------------------------------------------------------------------------- */
.maps-container-alanwar {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 380px;
  width: 100%;
}
.maps-container-alanwar iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------------------------------------------------------------------------
   8. FOOTER (Model staialanwar.ac.id)
   ------------------------------------------------------------------------- */
.footer-alanwar {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 25px;
  border-top: 3px solid var(--accent-gold);
}
.footer-alanwar h6 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-alanwar h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-gold);
}
.footer-alanwar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-alanwar a:hover {
  color: var(--accent-gold-light);
}

.footer-bottom-bar {
  background: #001124;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* -------------------------------------------------------------------------
   9. PAGE TEMPLATE (Untuk halaman profil, akademik, unit dll)
   ------------------------------------------------------------------------- */
.page-banner-header {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 60px 0 45px;
  position: relative;
}
.page-banner-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.page-breadcrumb a:hover {
  color: #ffffff;
}
.page-content-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  margin-top: -30px;
  position: relative;
  z-index: 20;
}
