/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: clamp(360px, 58vh, 520px);
  display: flex;
  align-items: center;
  padding: 80px 0 36px;
  overflow: hidden;
  padding-bottom: 30px;
}

/* Background slider */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  filter: brightness(.95) saturate(1.05);
  transform: scale(1);
  animation: heroZoom 12s ease-in-out infinite;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.6) 100%
  );
}

/* Content wrapper */
.hero-content {
  z-index: 3;
  position: relative;
}

/* Jargon */
.hero-jargon {
  color: #fff;
  margin-bottom: 48px;
  text-align: center;
  text-shadow: 0 12px 45px rgba(0,0,0,.65);
}

.hero-jargon-line {
  width: 90px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 20px;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(255,255,255,.45);
}

.hero-jargon h1 {
  font-weight: 900;
  font-size: clamp(22px, 6.5vw, 56px);
  line-height: 1.12;
  letter-spacing: .6px;
  margin: 0;
  text-shadow: 0 8px 32px rgba(0,0,0,.55);
}

/* Visi & Misi */
.hero-card {
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-radius: 24px;
  padding: 22px 24px;
  color: #fff;
  transition: .35s;
}

.hero-card:hover {
  transform: translateY(-4px);
}

.hero-card h6 {
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: .3px;
  font-size: clamp(16px, 1.2vw, 20px);
}

.hero-card p {
  margin: 0;
  line-height: 1.8;
  color: #f3f4f6;
  font-size: clamp(15px, 1.2vw, 18px);
}

/* Desktop override */
@media (min-width: 768px) {
  .hero .glass-box,
  .hero .visi-box,
  .hero .misi-box {
    backdrop-filter: none;
    background: rgba(0,0,0,.55);
  }
}

/* Animation */
@keyframes heroZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ================= HOME ABOUT ================= */
.home-about-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  transition: .35s;
  display: inline-block;
}

.home-about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

/* Foto Kepsek */
.kepsek-img {
  width: 100%;
  max-width: 260px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 14px;
}

/* Box Sambutan */
.sambutan-box {
  background: #fff;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  position: relative;
}

/* Judul Sambutan */
.sambutan-title {
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

/* Paragraf Sambutan */
.sambutan-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .sambutan-title {
    text-align: left;
  }

  .sambutan-text {
    text-align: justify;
  }
}

/* ================= FEATURED TESTIMONIALS / BERITA ================= */

.featured-news-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: all .35s ease;
  height: 100%;
}

.featured-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
}

/* Gambar berita */
.featured-news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

/* Judul */
.featured-news-title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Ringkasan */
.featured-news-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* Link */
.featured-news-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-color);
  text-decoration: none;
}

.featured-news-link:hover {
  text-decoration: underline;
}

.agenda-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: all .35s ease;
  height: 100%;
  border-left: 5px solid var(--accent-color);
}

.agenda-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
}

/* Tanggal */
.agenda-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 6px;
}

/* Judul */
.agenda-title {
  margin-bottom: 6px;
  font-weight: 600;
}

/* Lokasi */
.agenda-location {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ================= DEPARTMENTS ================= */

.department-card {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  transition: .35s;
}

/* IMAGE WRAPPER */
.department-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* IMAGE */
.department-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}

.department-image:hover img {
  transform: scale(1.06);
}

/* OVERLAY ZOOM */
.department-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15));
  opacity: 0;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.department-image:hover .department-overlay {
  opacity: 1;
}

.department-overlay i {
  font-size: 42px;
  color: #fff;
}

/* CONTENT */
.department-content {
  margin-top: 18px;
}

/* ICON BULAT */
.department-icon {
  background: #ffffff !important;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  margin-bottom: 12px;
}

.department-icon img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* TITLE & DESC */
.department-content h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.department-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* BUTTON */
.btn-learn-more {
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}

.btn-learn-more:hover {
  text-decoration: underline;
}

/* ================= GALERI SLIDER ================= */

.galeri-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: all .35s ease;
  position: relative;
}

.galeri-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
}

/* IMAGE */
.galeri-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}

/* OVERLAY */
.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65),
    rgba(0,0,0,.15)
  );
  opacity: 0;
  transition: .35s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.galeri-card:hover .galeri-overlay {
  opacity: 1;
}

/* OVERLAY TEXT */
.galeri-overlay h6 {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.galeri-overlay small {
  color: #eee;
}

/* ================= PEGAWAI ================= */

/* ===== CARD UMUM ===== */
.pegawai-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: .35s;
  text-align: center;
}

.pegawai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
}

/* ===== VARIAN KEPSEK ===== */
.pegawai-card.kepsek {
  border-radius: 26px;
  box-shadow: 0 16px 45px rgba(0,0,0,.14);
}

.pegawai-card.kepsek:hover {
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
}

/* ===== VARIAN WAKASEK ===== */
.pegawai-card.wakasek {
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.pegawai-card.wakasek:hover {
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
}

/* ===== FOTO ===== */
.pegawai-photo {
  background: #f8f9fa;
  position: relative;
}

.pegawai-photo img {
  width: 100%;
  object-fit: contain;
  transition: .4s;
}

/* ukuran foto */
.photo-kepsek { height: 340px; }
.photo-wakasek,
.photo-pegawai { height: 260px; }

/* zoom khusus slider pegawai */
.pegawai-card.slider:hover img {
  transform: scale(1.06);
}

/* ===== INFO ===== */
.pegawai-info {
  padding: 18px;
}

.pegawai-info h5,
.pegawai-info h6 {
  margin: 0;
  font-weight: 700;
}

.pegawai-info small {
  color: #777;
  font-size: 13px;
}

/* ===== TOMBOL ===== */
.btn-pegawai {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  text-decoration: none;
  transition: .3s;
}

.btn-pegawai:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

/* ================= AGENDA SCROLL ================= */
.agenda-scroll-wrapper {
  max-height: 460px;   /* tinggi agenda */
  overflow-y: auto;
  padding-right: 6px;
}

/* scrollbar halus */
.agenda-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}
.agenda-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* ================= AGENDA SIDEBAR KOMPAK ================= */

/* tinggi area scroll agenda */
.agenda-scroll-wrapper {
  max-height: 420px;        /* lebih pendek */
  overflow-y: auto;
  padding-right: 6px;
}

/* perkecil ukuran card agenda */
.agenda-scroll-wrapper .agenda-card {
  padding: 12px 14px;       /* sebelumnya 22px */
  border-radius: 16px;      /* lebih kecil */
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* tanggal lebih kecil */
.agenda-scroll-wrapper .agenda-date {
  font-size: 12px;
  margin-bottom: 4px;
}

/* judul lebih ringkas */
.agenda-scroll-wrapper .agenda-title {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* jarak antar card */
.agenda-scroll-wrapper .agenda-card.mb-3 {
  margin-bottom: 10px !important;
}

/* scrollbar halus */
.agenda-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}
.agenda-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* ================= FOOTER ================= */

.site-footer {
  background: linear-gradient(180deg, #f7fbfc 0%, #eef5f6 100%);
  padding: 80px 0 0;
  font-family: 'Raleway', sans-serif;
  position: relative;
}

/* BRAND */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand img {
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
}

.footer-brand h4 {
  margin: 0;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .3px;
}

/* CONTACT */
.footer-contact {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
}

.footer-contact p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.footer-contact i {
  color: var(--accent-color);
  font-size: 17px;
  margin-top: 2px;
}

/* SOCIAL */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-color);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  transition: all .3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* MAP */
.footer-title {
  font-weight: 700;
  margin-bottom: 18px;
  color: #1f2937;
  letter-spacing: .3px;
}

.footer-map {
  width: 100%;
  height: 200px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  transition: .35s;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-map:hover {
  box-shadow: 0 26px 65px rgba(0,0,0,.25);
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.12), transparent);
  margin: 60px 0 10px;
}

/* COPYRIGHT */
.footer-bottom {
  padding: 0 0 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.footer-title {
  text-align: center;
}

.footer-map {
  margin: 0 auto;
}

/* MOBILE */
@media (max-width: 991px) {
  .footer-contact {
    font-size: 17px;
  }

  .footer-bottom p {
    font-size: 15px;
  }
  .footer-title {
    text-align: center;
  }

  .footer-map {
    margin: 0 auto;
  }
}


/* ================= STATISTIK SEKOLAH (MODEL AGENDA) ================= */

.stats {
  padding: 40px 0;
}

/* CARD */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;                 /* ringkas */
  border-left: 5px solid var(--accent-color); /* CIRI AGENDA */
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: .3s ease;
  height: 100%;
}

/* HOVER */
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}

/* ANGKA */
.stat-number {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-color); /* mirip tanggal agenda */
  margin-bottom: 4px;
}

/* TEKS */
.stat-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  line-height: 1.4;
}

/* MOBILE */
@media (max-width: 575px) {
  .stat-card {
    padding: 12px 14px;
  }

  .stat-number {
    font-size: 22px;
  }
}



/* Mobile */
@media (max-width: 575px) {
  .stat-card {
    padding: 26px 20px;
  }
}

.featured-news-link.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;            /* jarak sedikit lebih lega */
  font-size: 16px;    /* font teks diperbesar */
  font-weight: 600;   /* lebih tegas */
}

.featured-news-link.link-icon i {
  font-size: 18px;    /* ikon ikut membesar */
  transition: transform .25s ease;
}

.featured-news-link.link-icon:hover i {
  transform: translateX(4px);
}

/* Mobile: lebih nyaman dibaca & diklik */
@media (max-width: 991px) {
  .featured-news-link.link-icon {
    font-size: 17px;
  }

  .featured-news-link.link-icon i {
    font-size: 19px;
  }
}
.empty-state {
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}




/* GARIS PEMISAH BERITA & AGENDA */
@media (min-width: 992px) {
  #news-agenda .agenda-column {
    border-left: 2px solid #e5e7eb;
    padding-left: 24px;
  }
}

/* =========================
   LOGO & NAMA SEKOLAH
   ========================= */

/* DESKTOP */
@media (min-width: 992px) {
  .header .logo h1 {
    font-size: 20px;   /* lebih kecil & elegan */
    line-height: 1.3;
  }
  .header .logo img {
    height: 46px;   /* default biasanya 48–56px */
    width: auto;
  }
}


/* TABLET */
@media (min-width: 576px) and (max-width: 991px) {
  .header .logo h1 {
    font-size: 16px;
  }
}

/* MOBILE */
@media (max-width: 575px) {
  .header .logo img {
    max-height: 42px;
  }

  .header .logo h1 {
    display: block !important; /* override display:none */
    font-size: 18px;
    margin-left: 4px;
    white-space: nowrap;
  }
}

/* =========================
   JARGON SEKOLAH (IKUT FONT NAMA)
   ========================= */


.header .logo .tagline {
  font-family: var(--heading-font);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent-color);
}

/* Desktop */
@media (min-width: 992px) {
  .header .logo .tagline {
    font-size: 16px;
    line-height: 1.2;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
  .header .logo .tagline {
    font-size: 14px;
      line-height: 1.2;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .header .logo .tagline {
    font-size: 14px;
    margin-left: 4px;
     line-height: 1.2;
  }
}

@media (max-width: 991px) {
  #home-about {
    display: none;
  }
}

/* ================= PAGINATION (MODERN UI) ================= */

.pagination {
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

/* tombol */
.pagination .page-item .page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 14px;

  transition: all .25s ease;
}

/* hover */
.pagination .page-item .page-link:hover {
  background: rgba(0,0,0,.05);
  transform: translateY(-2px);
}

/* active */
.pagination .page-item.active .page-link {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transform: translateY(-3px);
}

/* prev & next */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 18px;
  font-weight: 800;
}

/* focus */
.pagination .page-link:focus {
  box-shadow: none;
}

/* ================= MOBILE ================= */
@media (max-width: 575px) {
  .pagination {
    padding: 6px;
    gap: 6px;
  }

  .pagination .page-item .page-link {
    min-width: 40px;
    height: 40px;
    font-size: 15px;
  }
}


/* ================= PAGINATION RESPONSIVE (MOBILE FIX) ================= */

/* cegah overflow horizontal */
.pagination {
  flex-wrap: wrap;
  justify-content: center;
}

/* mobile */
@media (max-width: 575px) {

  .pagination {
    gap: 4px;
    padding: 6px;
  }

  .pagination .page-item .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  /* SEMBUNYIKAN ELLIPSIS DI MOBILE */
  .pagination .page-item.disabled .page-link {
    display: none;
  }

}

/* ================= FILTER PEGAWAI (ANIMATED UNDERLINE) ================= */

/* ================= FILTER PEGAWAI (CARD MODERN) ================= */

.filter-card {
  display: inline-flex;
  gap: 28px;
  padding: 14px 26px;
  border-radius: 999px;

  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);

  position: relative;
}

/* tombol */
.filter-card .filter-btn {
  position: relative;
  padding: 4px 2px;   /* ⬅ dari 6px → 4px */
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: color .25s ease;
}

/* underline */
.filter-card .filter-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width .3s ease;
}

/* hover */
.filter-card .filter-btn:hover {
  color: var(--accent-color);
}

.filter-card .filter-btn:hover::after {
  width: 100%;
}

/* active */
.filter-card .filter-btn.active {
  color: var(--accent-color);
}

.filter-card .filter-btn.active::after {
  width: 100%;
}

/* mobile */
@media (max-width: 575px) {
  .filter-card {
    gap: 20px;
    padding: 12px 20px;
  }

  .filter-card .filter-btn {
    font-size: 14px;
  }
}







