/* ============================================================
   public/css/style.css
   MTs Website - Design System & Component Styles
   ============================================================ */

/* === CSS VARIABLES ========================================== */
:root {
  --primary:      #0B5E3C;
  --primary-dark: #084a2f;
  --primary-light:#e8f5ee;
  --accent:       #4CAF50;
  --gold:         #D4AF37;
  --gold-light:   #f5e87a;
  --white:        #FFFFFF;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-400:     #94a3b8;
  --gray-600:     #475569;
  --gray-800:     #1e293b;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Open Sans', sans-serif;
  
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.08);
  --shadow-md:    0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.12);
  --shadow-xl:    0 24px 64px rgba(0,0,0,.15);
  
  --transition:   all .28s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .18s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-800);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

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

/* === SCROLLBAR ============================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* === SELECTION ============================================== */
::selection { background: var(--primary); color: white; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 8px 0;
  letter-spacing: .02em;
}
.topbar-left span { color: rgba(255,255,255,.8); }
.topbar-left span i { color: var(--gold); }
.topbar-right a {
  color: rgba(255,255,255,.8);
  margin-left: 12px;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.topbar-right a:hover { color: var(--gold); }
.btn-topbar {
  background: rgba(255,255,255,.12);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .8rem !important;
  color: rgba(255,255,255,.9) !important;
}
.btn-topbar:hover { background: rgba(255,255,255,.22) !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-main {
  background: var(--white);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar-main.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(11,94,60,.15);
}

/* Logo */
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo-tagline {
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Nav links */
.navbar-main .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700, #374151) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { left: 14px; right: 14px; }

/* Dropdown */
.navbar-main .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  animation: dropdownFade .2s ease;
}
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.navbar-main .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700, #374151);
  transition: var(--transition-fast);
}
.navbar-main .dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.navbar-main .dropdown-item i { color: var(--accent); }

/* PPDB CTA */
.btn-ppdb {
  background: linear-gradient(135deg, var(--gold), #c9a227);
  color: white !important;
  border: none;
  padding: 9px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .88rem;
  font-family: var(--font-heading);
  box-shadow: 0 4px 14px rgba(212,175,55,.4);
  transition: var(--transition);
  margin-left: 12px;
}
.btn-ppdb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,.5);
  color: white !important;
}

/* Toggler */
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-icon {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.announcement-ticker {
  background: var(--primary);
  color: white;
  padding: 10px 0;
  font-size: .88rem;
  overflow: hidden;
}
.ticker-wrap { display: flex; align-items: center; gap: 0; }
.ticker-label {
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ticker-content { flex: 1; overflow: hidden; margin: 0 16px; }
.ticker-items {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
}
.ticker-item { color: rgba(255,255,255,.9); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-more {
  color: var(--gold);
  white-space: nowrap;
  font-weight: 600;
  font-size: .82rem;
  flex-shrink: 0;
}
.ticker-more:hover { color: var(--gold-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section { position: relative; height: 100vh; min-height: 600px; max-height: 900px; }

.hero-swiper, .hero-slide { height: 100%; }

.hero-slide {
  background: var(--bg, linear-gradient(135deg, var(--primary), #1a3a2a));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,94,60,.82) 0%, rgba(0,0,0,.45) 100%);
}

.hero-content {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding-top: 80px;
}

.hero-text { max-width: 700px; color: white; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(212,175,55,.2);
  border: 1px solid rgba(212,175,55,.5);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hero-title-accent {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold), #c9a227);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: .95rem;
  box-shadow: 0 6px 20px rgba(212,175,55,.4);
  transition: var(--transition);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(212,175,55,.5);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: .95rem;
  transition: var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.25);
  color: white;
  transform: translateY(-3px);
}

/* Hero controls */
.hero-next, .hero-prev {
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px);
  width: 50px !important; height: 50px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.3);
  color: white !important;
  font-size: 1.2rem;
  transition: var(--transition);
}
.hero-next:hover, .hero-prev:hover { background: rgba(255,255,255,.3) !important; }
.hero-next::after, .hero-prev::after { display: none; }
.hero-pagination { bottom: 30px !important; }
.swiper-pagination-bullet {
  background: rgba(255,255,255,.5) !important;
  width: 8px !important; height: 8px !important;
  transition: var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 28px !important;
  border-radius: 4px !important;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; right: 30px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 10;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:.6; transform: scaleY(1); } 50% { opacity:1; transform: scaleY(.8); } }

/* ============================================================
   QUICK ACCESS
   ============================================================ */
.quick-access { background: var(--white); position: relative; z-index: 5; }

.quick-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 18px 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  color: var(--gray-600);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}
.quick-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.4rem;
  transition: var(--transition);
}
.quick-card:hover .quick-icon { transform: scale(1.1) rotate(-5deg); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary), #1a6e4a);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.stat-card {
  text-align: center;
  color: white;
  padding: 20px;
}
.stat-icon {
  font-size: 2.5rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  letter-spacing: .03em;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag-light {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: .98rem;
  max-width: 540px;
}
.section-header {
  margin-bottom: 40px;
}
.section-header.text-center .section-subtitle { margin: 0 auto; }

/* ============================================================
   SAMBUTAN
   ============================================================ */
.section-sambutan { background: var(--gray-50); }

.sambutan-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.sambutan-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-xl);
}
.sambutan-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.sambutan-image:hover img { transform: scale(1.04); }
.sambutan-ornament {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  opacity: .3;
}
.sambutan-ornament.top-right { top: -20px; right: -20px; }
.sambutan-ornament.bottom-left { bottom: -20px; left: -20px; border-color: var(--accent); }
.sambutan-badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.sambutan-badge i { font-size: 1.8rem; color: var(--primary); }
.sambutan-badge strong { display: block; font-size: .8rem; color: var(--text-muted); }
.sambutan-badge span { font-size: .92rem; font-weight: 700; color: var(--gray-800); }

.sambutan-quote i { font-size: 4rem; color: var(--primary); opacity: .15; line-height: 1; }
.sambutan-text { color: var(--gray-600); line-height: 1.9; margin-bottom: 16px; }
.sambutan-signature { margin-top: 24px; }
.signature-line { width: 60px; height: 3px; background: var(--primary); border-radius: 2px; margin-bottom: 12px; }
.sambutan-signature strong { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
.sambutan-signature span { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.news-card .news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.news-card-featured .news-card-image { aspect-ratio: 3/2; height: 100%; }
.news-card .news-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-badge-float {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
/* Badge colors by category */
.news-badge, .news-badge-float {
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-block;
}
.news-badge.prestasi, .news-badge-float.prestasi,
.badge-prestasi { background: var(--gold) !important; }
.news-badge.keagamaan, .news-badge-float.keagamaan,
.badge-keagamaan { background: var(--accent) !important; }
.news-badge.pengumuman, .news-badge-float.pengumuman,
.badge-pengumuman { background: #2196F3 !important; }
.news-badge.akademik, .news-badge-float.akademik,
.badge-akademik { background: #9C27B0 !important; }

.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 14px; }
.news-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.45; }
.news-card-title a { color: var(--gray-800); }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { font-size: .88rem; color: var(--text-muted); flex: 1; line-height: 1.7; }

.btn-read-more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 14px;
  display: inline-flex; align-items: center;
  gap: 4px;
}
.btn-read-more:hover { color: var(--primary-dark); gap: 8px; }

/* Featured card overlay */
.news-card-featured { position: relative; }
.news-card-featured .news-card-image { height: 100%; aspect-ratio: unset; min-height: 380px; }
.news-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 40%, transparent);
}
.news-card-content-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: white;
}
.news-title-overlay { font-size: 1.35rem; font-weight: 800; margin: 10px 0 8px; line-height: 1.3; }
.news-title-overlay a { color: white; }
.news-meta-overlay { font-size: .82rem; color: rgba(255,255,255,.7); display: flex; gap: 16px; }

/* Horizontal card */
.news-card-horizontal {
  flex-direction: row !important;
  border-radius: var(--radius);
  overflow: hidden;
}
.news-card-horizontal .news-thumb {
  width: 100px; flex-shrink: 0;
  overflow: hidden;
}
.news-card-horizontal .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-horizontal .news-body { padding: 12px 14px; flex: 1; }
.news-title-sm { font-size: .9rem; font-weight: 700; margin: 6px 0 4px; line-height: 1.35; }
.news-title-sm a { color: var(--gray-800); }
.news-title-sm a:hover { color: var(--primary); }

/* ============================================================
   PROGRAM SECTION
   ============================================================ */
.section-program {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}
.program-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212,175,55,.06) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px);
}
.text-white-75 { color: rgba(255,255,255,.75) !important; }

.program-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.25);
}
.program-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: var(--transition);
}
.program-card:hover .program-icon { transform: scale(1.1); }
.program-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: white; }
.program-desc { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 16px; }
.program-line { height: 3px; width: 40px; border-radius: 2px; transition: var(--transition); }
.program-card:hover .program-line { width: 80px; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item-wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-hover {
  position: absolute; inset: 0;
  background: rgba(11,94,60,.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: white;
  opacity: 0;
  transition: var(--transition);
}
.gallery-hover i { font-size: 2rem; }
.gallery-hover span { font-size: .88rem; font-weight: 600; text-align: center; padding: 0 20px; }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }

/* ============================================================
   AGENDA
   ============================================================ */
.agenda-list { display: flex; flex-direction: column; gap: 12px; }
.agenda-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.agenda-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.agenda-indicator {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 0 2px 2px 0;
}
.agenda-date {
  width: 54px; flex-shrink: 0;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  transition: var(--transition);
}
.agenda-day { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--gray-800); }
.agenda-month { display: block; font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.agenda-content { flex: 1; }
.agenda-title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--gray-800); }
.agenda-desc { font-size: .83rem; color: var(--text-muted); margin-bottom: 6px; }
.agenda-type {
  font-size: .73rem; font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.agenda-type-akademik { background: #e8f5ee; color: var(--primary); }
.agenda-type-keagamaan { background: #e8f5e9; color: #2e7d32; }
.agenda-type-sosial { background: #fce4ec; color: #c62828; }
.agenda-type-umum { background: #e3f2fd; color: #1565c0; }

/* ============================================================
   PPDB BANNER
   ============================================================ */
.ppdb-banner {
  background: linear-gradient(135deg, var(--primary), #1a6e4a);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.ppdb-banner-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(212,175,55,.15) 0%, transparent 50%);
}
.ppdb-banner-text { color: white; position: relative; }
.ppdb-tag {
  display: inline-flex; align-items: center;
  background: rgba(212,175,55,.2);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.ppdb-banner-text h2 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.ppdb-banner-text p { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.ppdb-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ppdb-benefits li { color: rgba(255,255,255,.9); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.ppdb-benefits li i { color: var(--gold); }

.btn-ppdb-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(212,175,55,.4);
  transition: var(--transition);
}
.btn-ppdb-big:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(212,175,55,.5); color: white; }
.btn-ppdb-arrow { transition: var(--transition); }
.btn-ppdb-big:hover .btn-ppdb-arrow { transform: translateX(4px); }
.ppdb-deadline { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ============================================================
   GURU CARDS
   ============================================================ */
.guru-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.guru-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.guru-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-light);
  transition: var(--transition);
}
.guru-card:hover .guru-avatar { border-color: var(--primary); }
.guru-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guru-name { font-size: .88rem; font-weight: 700; margin-bottom: 4px; color: var(--gray-800); }
.guru-mapel { font-size: .78rem; color: var(--primary); font-weight: 600; }

/* ============================================================
   LOCATION
   ============================================================ */
.location-details { display: flex; flex-direction: column; gap: 18px; margin: 20px 0; }
.location-item { display: flex; gap: 14px; }
.location-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.location-item strong { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.location-item p { margin: 0; font-size: .92rem; font-weight: 500; color: var(--gray-700, #374151); }
.wa-link { color: #25D366; font-weight: 600; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-800); color: rgba(255,255,255,.8); }
.footer-main { padding: 64px 0 40px; }

.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  margin-bottom: 14px;
}
.logo-icon-sm {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem; flex-shrink: 0;
}
.footer-tagline {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.65);
}
.footer-contact-item i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.footer-heading {
  color: white; font-size: .9rem;
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: var(--transition-fast);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '›'; color: var(--accent); }
.footer-links a:hover { color: white; padding-left: 6px; }

.footer-programs { display: flex; flex-direction: column; gap: 10px; }
.footer-program-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.65);
}
.footer-program-item i { color: var(--gold); font-size: .95rem; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }

.footer-bottom {
  background: rgba(0,0,0,.25);
  padding: 16px 0;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.footer-akreditasi {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(11,94,60,.4);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11,94,60,.3);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-section { height: 80vh; min-height: 520px; }
  .hero-title { font-size: 1.9rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }
  .navbar-collapse { background: var(--white); padding: 16px; border-radius: var(--radius); margin-top: 12px; box-shadow: var(--shadow-lg); }
  .navbar-cta { margin-top: 12px; }
  .btn-ppdb { margin-left: 0 !important; }
}

@media (max-width: 575.98px) {
  .hero-section { height: 75vh; min-height: 460px; }
  .hero-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item-wide { grid-column: span 2; }
  .ppdb-banner { padding: 28px 20px; }
  .stat-number { font-size: 2rem; }
  .stats-section { padding: 40px 0; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .topbar, .navbar-main, .footer, .back-to-top { display: none !important; }
}

/* ── PAGE BANNER ─────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark,#084a2f), var(--primary,#0B5E3C));
  padding: 52px 0 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content:'';position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner-content { position:relative; }
.page-banner-breadcrumb {
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  font-size:.82rem;color:rgba(255,255,255,.7);margin-bottom:12px;
}
.page-banner-breadcrumb a { color:rgba(255,255,255,.85); }
.page-banner-breadcrumb i { font-size:.7rem; }
.page-banner-title    { font-size:clamp(1.6rem,4vw,2.5rem);font-weight:800;margin:0 0 8px;color:#fff; }
.page-banner-subtitle { font-size:.97rem;color:rgba(255,255,255,.8);margin:0; }

/* ── SIDEBAR WIDGETS (berita) ───────────────────── */
.sidebar-widget { background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 12px rgba(0,0,0,.06);margin-bottom:20px; }
.widget-title   { font-size:.95rem;font-weight:700;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid #e8edf2;color:#1e293b; }
.widget-cat-list { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px; }
.widget-cat-list a { display:flex;align-items:center;gap:8px;font-size:.88rem;color:#334155;text-decoration:none;transition:.2s; }
.widget-cat-list a:hover { color:var(--primary,#0B5E3C); }
.cat-dot { width:10px;height:10px;border-radius:50%;flex-shrink:0; }
.widget-popular-list { display:flex;flex-direction:column;gap:10px; }
.popular-item { display:flex;align-items:flex-start;gap:10px;text-decoration:none;color:inherit; }
.popular-num  { width:22px;height:22px;background:var(--primary,#0B5E3C);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;flex-shrink:0;margin-top:2px; }
.popular-thumb { width:60px;height:44px;border-radius:8px;overflow:hidden;flex-shrink:0; }
.popular-thumb img { width:100%;height:100%;object-fit:cover; }
.popular-info p { margin:0;font-size:.83rem;font-weight:600;line-height:1.35;color:#1e293b; }
.popular-info small { color:#64748b;font-size:.75rem; }
.ppdb-widget    { background:linear-gradient(135deg,var(--primary,#0B5E3C),#1a6e4a) !important;color:#fff; }
.ppdb-widget .widget-title { color:#fff;border-color:rgba(255,255,255,.2); }
.ppdb-widget-inner { text-align:center; }
.ppdb-widget-icon { font-size:2.5rem;color:#D4AF37;display:block;margin-bottom:10px; }
.ppdb-widget p { color:rgba(255,255,255,.85);font-size:.88rem; }

/* ── SEARCH BAR ─────────────────────────────────── */
.search-bar-wrap { display:flex;background:#fff;border:1.5px solid #e8edf2;border-radius:12px;overflow:hidden; }
.search-bar-wrap i { padding:0 12px;display:flex;align-items:center;color:#64748b; }
.search-bar-wrap input { flex:1;border:none;outline:none;padding:10px 4px;font-size:.9rem; }
.search-bar-wrap .btn { border-radius:0;border:none; }

/* ── CATEGORY PILLS ─────────────────────────────── */
.category-pills { display:flex;gap:8px;flex-wrap:wrap; }
.cat-pill { padding:5px 16px;border-radius:20px;background:#f1f5f9;color:#475569;font-size:.82rem;font-weight:600;text-decoration:none;transition:.2s; }
.cat-pill:hover, .cat-pill.active { background:var(--primary,#0B5E3C);color:#fff; }

/* ── EMPTY RESULT ───────────────────────────────── */
.empty-result { text-align:center;padding:60px 20px;color:#94a3b8; }
.empty-result i { font-size:3.5rem;display:block;margin-bottom:14px; }
.empty-result h4 { color:#475569;margin-bottom:6px; }
