/**
 * SMK YPI REMBANG - Modern School Theme 2026
 * Ultra-Modern, Responsive, Clean & Premium Design
 */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand Color Tokens */
  --color-primary: #0f172a;        /* Slate 900 */
  --color-primary-light: #1e293b;  /* Slate 800 */
  --color-secondary: #0d9488;      /* Modern Teal / Islamic Green */
  --color-secondary-dark: #0f766e;
  --color-accent: #2563eb;         /* Royal Tech Blue */
  --color-accent-hover: #1d4ed8;
  --color-amber: #f59e0b;          /* Gold highlight */
  
  /* Surface & Neutrals */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  /* Text */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 12px 28px -6px rgba(37, 99, 235, 0.25);
  
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 90%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  zoom: 90%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   TOP CONTACT BAR
   ============================================================ */
.top-bar {
  background: linear-gradient(135deg, #09101d 0%, #0f172a 100%);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #cbd5e1;
}

.top-bar a:hover {
  color: #38bdf8;
}

.top-left-info, .top-right-info {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-bar i {
  color: #38bdf8;
  margin-right: 6px;
}

/* ============================================================
   MAIN HEADER BRANDING
   ============================================================ */
.main-brand-header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
  transition: var(--transition-smooth);
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-text h1.school-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p.school-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
  max-width: 600px;
  line-height: 1.4;
}

.header-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-spmb-cta {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--border-radius-full);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.btn-spmb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.45);
  background: linear-gradient(135deg, #0f766e 0%, #047857 100%);
  color: #ffffff !important;
}

/* ============================================================
   STICKY NAVBAR & CARD NAVIGATION
   ============================================================ */
.menu-bar {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(13, 148, 136, 0.5);
  padding: 10px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 999;
  transition: all 0.3s ease;
}

.menu-bar.sticky.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.9);
  animation: slideDown 0.35s ease-out;
  border-bottom: 2px solid var(--color-secondary);
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar {
  padding: 0;
}

.navbar-toggler {
  border: none;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: #ffffff;
}

/* SmartMenus Mini-Card Styling */
.sm-clean {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.sm-clean > li {
  margin: 0;
  display: inline-flex;
}

.sm-clean > li > a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sm-clean > li > a i {
  font-size: 12px;
  color: #38bdf8;
  transition: transform 0.25s ease;
}

.sm-clean > li > a:hover, 
.sm-clean > li > a:focus, 
.sm-clean > li > a:active, 
.sm-clean > li > a.highlighted {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2.5px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sm-clean > li > a:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

/* BERANDA Highlight */
.sm-clean > li:first-child > a {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.35) 0%, rgba(5, 150, 105, 0.2) 100%);
  border-color: rgba(13, 148, 136, 0.55);
  color: #34d399;
}

.sm-clean > li:first-child > a i {
  color: #34d399;
}

.sm-clean > li:first-child > a:hover {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: #ffffff !important;
  border-color: #34d399;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.5);
}

.sm-clean > li:first-child > a:hover i {
  color: #ffffff;
}

/* Submenu Dropdown */
.sm-clean ul {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 8px;
  min-width: 230px;
}

.sm-clean ul > li {
  margin-bottom: 3px;
}

.sm-clean ul > li:last-child {
  margin-bottom: 0;
}

.sm-clean ul a {
  color: #cbd5e1;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  text-transform: uppercase;
  display: block;
  transition: var(--transition-fast);
}

.sm-clean ul a:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35) 0%, rgba(13, 148, 136, 0.2) 100%);
  color: #38bdf8;
  padding-left: 18px;
}

.nav-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-search-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   HERO IMAGE SLIDER
   ============================================================ */
.hero-slider-container {
  margin-bottom: 28px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-slider-container .carousel-item {
  height: 480px;
  background-color: #0f172a;
}

.hero-slider-container .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.hero-slider-container .carousel-caption {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 24px 30px;
  bottom: 40px;
  left: 40px;
  right: auto;
  max-width: 650px;
  text-align: left;
  box-shadow: var(--shadow-md);
  animation: fadeInUp 0.5s ease;
}

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

.hero-slider-container .carousel-caption h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-slider-container .carousel-caption p {
  font-size: 14.5px;
  color: #e2e8f0;
  margin-bottom: 0;
  line-height: 1.5;
}

.hero-slider-container .carousel-indicators {
  bottom: 15px;
}

.hero-slider-container .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  transition: var(--transition-fast);
}

.hero-slider-container .carousel-indicators li.active {
  background-color: #38bdf8;
  width: 32px;
  border-radius: 6px;
}

/* ============================================================
   QUICK ACCESS ACTION GRID
   ============================================================ */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 35px;
}

.quick-action-card {
  background: #ffffff;
  padding: 20px 18px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-accent);
  transition: var(--transition-fast);
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  color: var(--color-accent);
}

.quick-action-card:hover::before {
  width: 8px;
}

.quick-action-card.card-green::before { background: #059669; }
.quick-action-card.card-blue::before { background: #2563eb; }
.quick-action-card.card-amber::before { background: #d97706; }
.quick-action-card.card-purple::before { background: #7c3aed; }
.quick-action-card.card-cyan::before { background: #0891b2; }

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.quick-action-card.card-green .quick-action-icon { background: #ecfdf5; color: #059669; }
.quick-action-card.card-blue .quick-action-icon { background: #eff6ff; color: #2563eb; }
.quick-action-card.card-amber .quick-action-icon { background: #fffbeb; color: #d97706; }
.quick-action-card.card-purple .quick-action-icon { background: #f5f3ff; color: #7c3aed; }
.quick-action-card.card-cyan .quick-action-icon { background: #ecfeff; color: #0891b2; }

.quick-action-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--color-primary);
}

.quick-action-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   SAMBUTAN KEPALA SEKOLAH & STATISTIK
   ============================================================ */
.welcome-section {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 35px;
}

.headmaster-card {
  display: flex;
  gap: 28px;
  align-items: center;
}

.headmaster-img-wrapper {
  position: relative;
  flex-shrink: 0;
}

.headmaster-photo {
  width: 140px;
  height: 175px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

.headmaster-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: var(--border-radius-full);
  white-space: nowrap;
}

.headmaster-content h3.speech-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.headmaster-content p.speech-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.headmaster-author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
}

.headmaster-author small {
  display: block;
  font-weight: 500;
  color: var(--color-secondary);
}

/* ============================================================
   JURUSAN & PROGRAM KEAHLIAN SHOWCASE
   ============================================================ */
.section-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-header-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-accent);
}

.section-header-modern h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-modern h3 i {
  color: var(--color-accent);
}

.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.jurusan-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.jurusan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #93c5fd;
}

.jurusan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.badge-tkj { background: #eff6ff; color: #2563eb; }
.badge-akl { background: #ecfdf5; color: #059669; }
.badge-ponpes { background: #fdf4ff; color: #9333ea; }

.jurusan-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.jurusan-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   BERITA & ARTIKEL GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 35px;
}

.post-card-modern {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.post-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.post-thumb-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card-modern:hover .post-thumb-img {
  transform: scale(1.06);
}

.post-date-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
}

.post-card-title a {
  color: var(--color-primary);
}

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

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.post-card-meta i {
  margin-right: 4px;
}

/* ============================================================
   GALERI MEDIA (FOTO & VIDEO)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 35px;
}

.gallery-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb-img {
  transform: scale(1.08);
}

.gallery-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.gallery-card:hover .gallery-overlay-btn {
  opacity: 1;
}

.gallery-overlay-btn .btn-preview {
  background: #ffffff;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  border: none;
}

.gallery-card-body {
  padding: 14px 16px;
}

.gallery-card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   KUTIPAN & MUTIARA HIKMAH (TICKER)
   ============================================================ */
.quote-ticker-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--border-radius);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.quote-ticker-label {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-ticker-text {
  padding: 14px 20px;
  flex-grow: 1;
  font-size: 13.5px;
  font-style: italic;
  color: #e2e8f0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-secondary);
}

/* Widget Search */
.search-form-modern .input-group {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.search-form-modern .form-control {
  border: none;
  font-size: 13.5px;
  padding: 10px 14px;
}

.search-form-modern .form-control:focus {
  box-shadow: none;
}

.search-form-modern .btn-search {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
}

/* Popular Posts Widget */
.widget-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.widget-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-post-thumb {
  width: 68px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.widget-post-info h5 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
}

.widget-post-info h5 a {
  color: var(--color-primary);
}

.widget-post-info h5 a:hover {
  color: var(--color-accent);
}

.widget-post-info small {
  font-size: 11.5px;
  color: var(--text-light);
}

/* Categories & Tags List */
.category-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list-modern li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.category-list-modern li:last-child {
  border-bottom: none;
}

.category-list-modern a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 500;
}

.category-list-modern a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.category-badge {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
}

.tag-cloud-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-modern a {
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.tag-cloud-modern a:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* ============================================================
   SINGLE POST & ARTICLE CONTENT
   ============================================================ */
.single-post-container {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 35px;
  margin-bottom: 35px;
}

.single-post-header {
  margin-bottom: 24px;
}

.single-post-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.single-post-meta i {
  color: var(--color-accent);
  margin-right: 5px;
}

.single-post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.single-post-body {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.single-post-body p {
  margin-bottom: 1.5rem;
}

.single-post-body img {
  border-radius: var(--border-radius-sm);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.single-post-body blockquote {
  border-left: 4px solid var(--color-secondary);
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
  margin: 1.5rem 0;
}

/* ============================================================
   DIRECTORY CARDS (GURU, SISWA, ALUMNI)
   ============================================================ */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.directory-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition-smooth);
}

.directory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.directory-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.directory-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.directory-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   MODERN FOOTER
   ============================================================ */
footer {
  background: #09101d;
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 50px;
  border-top: 4px solid var(--color-secondary);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-widget h4.footer-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h4.footer-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-school-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-school-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-school-brand h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}

.footer-contact-list i {
  color: #38bdf8;
  margin-top: 4px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 6px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  background: #060b14;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #64748b;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 991px) {
  .hero-slider-container .carousel-item {
    height: 360px;
  }
  .hero-slider-container .carousel-caption {
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 16px 20px;
  }
  .hero-slider-container .carousel-caption h2 {
    font-size: 18px;
  }
  .headmaster-card {
    flex-direction: column;
    text-align: center;
  }
  .header-badges {
    justify-content: flex-start;
    margin-top: 14px;
  }
  .top-left-info, .top-right-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .hero-slider-container .carousel-item {
    height: 260px;
  }
  .hero-slider-container .carousel-caption {
    display: none !important;
  }
  .brand-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .brand-text h1.school-name {
    font-size: 19px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .quick-action-grid {
    grid-template-columns: 1fr;
  }
  .single-post-container {
    padding: 20px;
  }
  .single-post-title {
    font-size: 20px;
  }
}

/* ============================================================
   MODERN SEARCH MODAL DIALOG
   ============================================================ */
.search-modal-backdrop {
  z-index: 999999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
}

.search-modal-backdrop.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.search-modal-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(37, 99, 235, 0.2);
  width: 100%;
  max-width: 620px;
  padding: 32px 28px;
  position: relative;
  text-align: left;
  animation: modalScaleIn 0.3s ease-out;
}

@keyframes modalScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.btn-close-search {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #94a3b8;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  line-height: 1;
  padding: 0 0 2px 0;
}

.btn-close-search:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.85);
  border-color: #ef4444;
  transform: scale(1.1);
}

.search-input-wrapper {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}

.search-input-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.search-input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 13px 20px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  font-family: var(--font-main);
}

.search-input-field::placeholder {
  color: #64748b;
  font-size: 14px;
}

.btn-search-submit {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-search-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #059669 100%);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* ============================================================
   RETURN TO TOP BUTTON
   ============================================================ */
#return-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transition: var(--transition-smooth);
  z-index: 9999;
}

#return-to-top i {
  font-size: 18px;
  line-height: 1;
}

#return-to-top:hover {
  background: #1d4ed8;
  transform: translateY(-4px);
  color: #ffffff;
}
