/* ============================================================
   SMK KARYA BHAKTI BREBES - Main Stylesheet
   Version: 1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-blue: #0d47a1;
  --secondary-blue: #1976d2;
  --accent-orange: #ff9800;
  --bg-light: #f5f7fb;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(13,71,161,0.08);
  --shadow-md: 0 4px 20px rgba(13,71,161,0.12);
  --shadow-lg: 0 8px 40px rgba(13,71,161,0.18);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: clip;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: clip;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--secondary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }

/* ============================================================
   TOP HEADER BAR
   ============================================================ */
#top-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding: 12px 0;
  border-bottom: 3px solid var(--accent-orange);
}

#top-header .school-logo {
  width: auto;
  height: 80px;
  object-fit: contain;
}

#top-header .school-name p {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

#top-header .school-name h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}

#top-header .school-name p {
  font-size: 0.78rem;
  opacity: 0.85;
  margin: 0;
}

#top-header .top-info {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
}

#top-header .top-info i { color: var(--accent-orange); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-navbar {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#main-navbar .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 18px 14px;
  transition: var(--transition);
  position: relative;
}

#main-navbar .navbar-nav .nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent-orange);
  transition: var(--transition);
  transform: translateX(-50%);
}

#main-navbar .navbar-nav .dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 4px;
}

#main-navbar .navbar-nav .nav-link:hover,
#main-navbar .navbar-nav .nav-link.active {
  color: var(--primary-blue);
}

#main-navbar .navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
#main-navbar .navbar-nav .nav-link:not(.dropdown-toggle).active::after {
  width: 100%;
}

#main-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  border-top: 3px solid var(--accent-orange);
  padding: 8px 0;
  min-width: 220px;
}

#main-navbar .dropdown-item {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 20px;
  color: var(--text-dark);
  transition: var(--transition);
}

#main-navbar .dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
  padding-left: 28px;
}

#main-navbar .navbar-toggler {
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
section { padding: 70px 0; }

.section-header { margin-bottom: 50px; }

.section-label {
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ============================================================
   STATISTICS BAR
   ============================================================ */
#stats-bar {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  padding: 30px 0;
}

.stat-item {
  text-align: center;
  color: white;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ============================================================
   JURUSAN CARDS
   ============================================================ */
#jurusan { background: var(--white); }

.jurusan-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(13,71,161,0.06);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.jurusan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.jurusan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.jurusan-card:hover::before { transform: scaleX(1); }

.jurusan-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
}

.jurusan-card:hover .jurusan-icon {
  background: linear-gradient(135deg, var(--accent-orange), #ff6d00);
  transform: rotate(5deg) scale(1.1);
}

.jurusan-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

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

.btn-jurusan {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-jurusan:hover {
  background: var(--primary-blue);
  color: white;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about { background: var(--bg-light); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.about-feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.about-feature h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.about-feature p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
#berita { background: var(--white); }

.news-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(13,71,161,0.06);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.news-card-body {
  padding: 20px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.news-card-body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  text-align: justify;   
}

.btn-read-more {
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-read-more:hover { color: var(--accent-orange); gap: 10px; }

/* ============================================================
   AGENDA SECTION
   ============================================================ */
#agenda { background: var(--bg-light); }

.agenda-item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: var(--transition);
  border-left: 4px solid var(--primary-blue);
}

.agenda-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent-orange);
}

.agenda-date-box {
  background: var(--primary-blue);
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 58px;
}

.agenda-date-box .day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-date-box .month {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}

.agenda-info h6 {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.agenda-info .agenda-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.agenda-info .agenda-meta i { color: var(--accent-orange); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
#testimonial {
  background: linear-gradient(rgba(13,71,161,0.82), rgba(13,71,161,0.82)),
              url('../images/galeri/3.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

#testimonial::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.testimonial-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
}

.btn-lihat-semua {
  border: 2px solid white;
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lihat-semua:hover {
  background: white;
  color: var(--primary-blue);
}

/* ============================================================
   LINK TERKAIT
   ============================================================ */
#link-terkait { background: var(--white); }

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  border: 1px solid rgba(13,71,161,0.06);
  font-size: 0.85rem;
  font-weight: 500;
}

.link-card:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.link-card i { color: var(--accent-orange); font-size: 1.2rem; }
.link-card:hover i { color: white; }

/* ============================================================
   LOGO SLIDER (Link Terkait)
   ============================================================ */
.logo-slider-wrapper {
  overflow: hidden;
  background: var(--white);
  padding: 20px 0 10px;
  position: relative;
}

.logo-slider-wrapper::before,
.logo-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.logo-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.logo-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.logo-slider-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: logoScroll 12s linear infinite;
  width: max-content;
}

.logo-slider-track:hover {
  animation-play-state: paused;
}

.logo-slide-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-slide-item img {
  height: 70px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: var(--transition);
}

.logo-slide-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

#footer .footer-brand h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 14px;
}

#footer .footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

#footer .footer-heading {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

#footer .footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
}

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

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

#footer .footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

#footer .footer-links a:hover { color: var(--accent-orange); padding-left: 5px; }

#footer .footer-links a i { font-size: 0.7rem; color: var(--accent-orange); }

#footer .footer-contact { font-size: 0.85rem; }
#footer .footer-contact li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
#footer .footer-contact i { color: var(--accent-orange); margin-top: 3px; min-width: 16px; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 18px 0;
  margin-top: 50px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
  margin-right: 6px;
}

.footer-social a:hover { background: var(--accent-orange); color: white; }

.visitor-count {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-top: 16px;
}

.visitor-count .count { font-size: 1.8rem; font-weight: 800; color: var(--accent-orange); }
.visitor-count .label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  padding: 50px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 200px;
  background: rgba(255,152,0,0.1);
  border-radius: 50%;
  transform: translate(50%, 50%);
}

.page-hero h1 { font-size: 1.8rem; font-weight: 800; }

.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; }
.breadcrumb-item.active { color: var(--accent-orange); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============================================================
   CONTENT CARDS
   ============================================================ */
.content-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(13,71,161,0.06);
}

.content-card h3 {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.2rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}
.content-card p {
  text-align: justify;
}
/* ============================================================
   STAFF CARDS
   ============================================================ */
.staff-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.staff-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
}

.staff-info { padding: 20px; }
.staff-info h5 { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 4px; }
.staff-info .position { font-size: 0.8rem; color: var(--accent-orange); font-weight: 600; }
.staff-info .detail { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table-custom {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-custom thead th {
  background: var(--primary-blue);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  padding: 14px 16px;
}

.table-custom tbody tr { transition: var(--transition); }
.table-custom tbody tr:hover { background: rgba(13,71,161,0.04); }
.table-custom tbody td { font-size: 0.85rem; padding: 12px 16px; vertical-align: middle; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  position: relative;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,71,161,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(13,71,161,0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,71,161,0.4);
  color: white;
}

.btn-orange-custom {
  background: linear-gradient(135deg, var(--accent-orange), #ff6d00);
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255,152,0,0.35);
}

.btn-orange-custom:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 6px 20px rgba(255,152,0,0.45);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#back-to-top:hover { background: var(--accent-orange); transform: translateY(-3px); }
#back-to-top.show { display: flex; }

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

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 200px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ============================================================
   SLIDESHOW CARD 
   ============================================================ */
.welcome-text {
  padding: 40px 0 20px;
  background: var(--bg-light);
}

.welcome-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.welcome-text h2 span { color: var(--primary-blue); }

.welcome-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.slideshow-wrapper {
  position: relative;
  background: var(--bg-light);
  padding: 10px 60px 50px;
}

.slideshow-track-wrapper {
  overflow: hidden;
}

.slideshow-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.slide-card {
  min-width: calc((100% - 48px) / 3);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13,71,161,0.06);
  flex-shrink: 0;
}

.slide-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.slide-card:hover .slide-card-img img {
  transform: scale(1.05);
}

.slide-card-body {
  padding: 16px 20px 20px;
}

.slide-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.slide-card-sub {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.slide-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slide-card-meta i {
  color: var(--text-muted);
  margin-right: 3px;
}

.slideshow-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slideshow-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev { left: 10px; }
.slideshow-btn.next { right: 10px; }

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slideshow-dots .dot.active {
  background: var(--accent-orange);
  width: 28px;
  border-radius: 5px;
}

@media (max-width: 991.98px) {
  .slide-card { min-width: calc((100% - 24px) / 2); }
  .slideshow-wrapper { padding: 10px 50px 40px; }
}

@media (max-width: 767.98px) {
  .slide-card { min-width: 100%; }
  .slideshow-wrapper { padding: 10px 50px 40px; }
}
/* ============================================================
   RESPONSIVE UMUM
   ============================================================ */
@media (max-width: 991.98px) {
  section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 767.98px) {
  section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }
  #top-header .top-info { display: none !important; }
  .testimonial-main-title { font-size: 2rem; }
}

@media (max-width: 767.98px) {
  #top-header {
    position: relative;
  }
  #main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}
/* ============================================================
   GALERI PAGE
   ============================================================ */
.galeri-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 30px;
  border: 2px solid rgba(0,0,0,0.12);
  background: white;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--text-dark);
  color: white;
  border-color: var(--text-dark);
}

.filter-btn:hover:not(.active) {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.galeri-caption {
  font-size: 0.78rem;
  text-align: center;
  margin-top: 6px;
  color: var(--text-muted);
}

.galeri-hidden,
.video-hidden {
  display: none;
}

.video-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-card .video-wrapper {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.video-card .galeri-caption {
  padding: 10px;
}

/* ============================================================
   BERITA PAGE
   ============================================================ */
.berita-terbaru-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-light);
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

.berita-terbaru-item:last-child { border-bottom: none; }
.berita-terbaru-item:hover { color: var(--primary-blue); }

.berita-terbaru-img {
  width: 70px;
  height: 55px;
  min-width: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
}

.berita-terbaru-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berita-terbaru-info h6 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.berita-terbaru-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pagination-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(13,71,161,0.15);
  background: white;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.kategori-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  transition: var(--transition);
}

.kategori-link:last-child { border-bottom: none; }

.kategori-link:hover,
.kategori-link.active {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.kategori-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: 6px;
}

.kategori-link.active .kategori-count {
  color: var(--primary-blue);
}
.artikel-content img {
  max-width: 100%;
  width: 100%;
  height: auto !important;
  border-radius: 8px;
  margin: 16px 0;
  display: block;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: none !important;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown.show > .dropdown-menu {
    display: block !important;
  }
}
.filter-btn { transition: all 0.2s; }
.filter-btn:not(.active) {
  background: var(--bg-light) !important;
  color: var(--text-dark) !important;
  border: 1px solid #dee2e6 !important;
}
.filter-btn:not(.active):hover {
  background: var(--primary-blue) !important;
  color: white !important;
}
.pengumuman-item {
  border-radius: 12px;
  border: 1px solid rgba(13,71,161,0.08);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: white;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pengumuman-item:hover {
  box-shadow: 0 4px 16px rgba(13,71,161,0.10);
  transform: translateY(-2px);
}
.pengumuman-item.pinned-item {
  border-left: 3px solid var(--accent-orange);
}
.pengumuman-item p {
  text-align: justify;
}
#detail-isi {
  text-align: justify;
}

#detail-isi p,
#detail-isi li {
  text-align: justify;
}
.badge-kategori {
  border-radius: 20px;
  font-size: 0.72rem;
  padding: 4px 12px;
  white-space: nowrap;
  font-weight: 600;
}
.pinned-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.84rem;
  transition: color 0.2s;
}
.pinned-link:last-child { border-bottom: none; }
.pinned-link:hover { color: var(--primary-blue); }

/* ============================================================
   AGENDA PAGE
   ============================================================ */
.agenda-card {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(13,71,161,0.08);
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.agenda-card:hover {
  box-shadow: 0 4px 16px rgba(13,71,161,0.10);
  transform: translateY(-2px);
}
.agenda-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.agenda-thumb:hover { opacity: 0.85; }

/* Hover effect pengumuman list */
#home-pengumuman-list .list-group-item {
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

#home-pengumuman-list .list-group-item:hover {
  background: var(--bg-light);
  transform: translateX(4px);
}

#home-pengumuman-list .list-group-item:hover a {
  color: var(--primary-blue) !important;
}

/* Lightbox Overlay */
#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox-overlay.active {
  display: flex;
}
#lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
}
#lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

/* Perbesar slide card */
.slide-card {
  cursor: pointer;
}
.slide-card-img {
  height: 320px !important; /* sebelumnya biasanya ~240-260px, naikkan sesuai selera */
}

/* Fix navbar mobile */
@media (max-width: 991.98px) {
  #navbarMain {
    display: none !important;
  }
  #navbarMain.show,
  #navbarMain.collapsing {
    display: block !important;
  }
}
/* Fix ikon hamburger mobile */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C 0%2C 0%2C 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em !important;
  height: 1.5em !important;
  display: inline-block !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% !important;
}

/* Ratakan tombol Detail di jurusan card */
.jurusan-card {
  display: flex;
  flex-direction: column;
}

/* Jurusan card paragraph */
.jurusan-card p {
  flex: 1;
  text-align: center;
  hyphens: auto;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 18px;
}
/* Rata kanan kiri teks about */
#about p,
#about .about-feature p {
  text-align: justify;
}
/* Samakan tinggi card kurikulum di halaman pembelajaran */
#main-content .content-card .row > div {
  display: flex;
}

#main-content .content-card .row > div > div {
  flex: 1;
}
/* Efek timbul foto kegiatan saat hover */
.foto-kegiatan {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.foto-kegiatan:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Samakan tinggi card kompetensi di halaman jurusan */
.content-card .row.g-2 > div {
  display: flex;
}

.content-card .row.g-2 > div > div {
  flex: 1;
  align-items: flex-start !important;
}
/* Efek timbul card alumni saat hover */
#alumni-container .p-3 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

#alumni-container .p-3:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
/* Fix lightbox alumni */
#lightbox-alumni {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85) !important;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox-alumni.active {
  display: flex !important;
}

/* ============================================================
   DROPDOWN ITEM AKTIF
   ============================================================ */
#main-navbar .dropdown-item.active {
  background-color: rgba(13, 71, 161, 0.08) !important;
  color: var(--primary-blue) !important;
  font-weight: 600;
  border-left: 3px solid var(--primary-blue);
  padding-left: calc(1.25rem + 3px);
}

#main-navbar .dropdown-item.active:hover {
  background-color: rgba(13, 71, 161, 0.12) !important;
  padding-left: calc(1.75rem + 3px);
}

/* ── About scroll animation ── */
#about-text,
#about-video {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

#about-text.about-hidden  { transform: translateX(-60px); opacity: 0; }
#about-video.about-hidden { transform: translateX(60px);  opacity: 0; }

#about-text.about-visible,
#about-video.about-visible { transform: translateX(0); opacity: 1; }

#about-text.about-exit  { transform: translateX(-60px); opacity: 0; }
#about-video.about-exit { transform: translateX(60px);  opacity: 0; }

/* ============================================================
   GURU CARD ANIMATION
   ============================================================ */
.guru-card-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.guru-card-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ============================================================
   SLIDESHOW ANIMATION
   ============================================================ */
.slide-card-hidden {
  opacity: 0;
  transform: translateX(-60px);
}

.slide-card-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1s ease, transform 1s ease;
}

/* ============================================================
   JURUSAN ANIMATION
   ============================================================ */
.jurusan-header-hidden {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.jurusan-header-visible {
  opacity: 1;
  transition: opacity 1.5s ease;
}

.jurusan-from-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jurusan-from-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jurusan-animate-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   BERITA SLIDE UP ANIMATION
   ============================================================ */
#berita #berita-container .news-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

#berita #berita-container .news-card.slide-up {
  opacity: 1;
  transform: translateY(0);
}
/* Animasi slide up */
  @keyframes slideUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .galeri-item, .video-item {
    animation: slideUp 0.45s ease both;
  }

  /* Card foto */
  .foto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .foto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  }
  .foto-card .foto-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    position: relative;
  }
  .foto-card .foto-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  .foto-card:hover .foto-img-wrap img {
    transform: scale(1.05);
  }
  .foto-card .foto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    color: white;
    font-size: 1.6rem;
  }
  .foto-card:hover .foto-overlay {
    opacity: 1;
  }

  .foto-title {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    background: white;
    text-align: center;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .video-title {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    background: white;
    margin: 0;
    text-align: center;
    height: 58px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

 /* Card video */
  .video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
  }

  /* Fix video responsive mobile */
  @media (max-width: 767.98px) {
  /* Nonaktifkan hover transform yang memblokir touch di iOS */
  .video-card:hover {
    transform: none;
  }

  .video-card .video-wrapper {
    padding-bottom: 56.25%;
    height: 0;
    position: relative;
    overflow: visible; /* ← ubah dari hidden ke visible agar touch event tidak terblokir */
    border-radius: 0;
    box-shadow: none;
  }

  .video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }
}
/* ============================================================
   SAMBUTAN KEPALA SEKOLAH
   ============================================================ */
.sambutan-hero {
  position: relative;
  background: linear-gradient(135deg, #0d2d5e 0%, #1a5fa8 60%, #2a7dd4 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.sambutan-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.sambutan-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-light);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.hero-breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: var(--transition);
}
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: rgba(255,255,255,0.4); }
.hero-breadcrumb .current { color: #fff; font-weight: 600; }
.sambutan-body { padding: 70px 0 80px; }
.kepsek-card {
  position: sticky;
  top: 90px;
}
.kepsek-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 280px;
}
.kepsek-photo-wrap::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 100%; height: 100%;
  border: 3px solid #1a5fa8;
  border-radius: 14px;
  opacity: 0.35;
  z-index: 0;
}
.kepsek-photo-inner {
  position: relative; z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #1a5fa8;
  background: #fff;
}
.kepsek-photo-inner img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}
.kepsek-info {
  background: #1a5fa8;
  padding: 16px;
  text-align: center;
}
.kepsek-info .jabatan {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 5px;
}
.kepsek-info .nama {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 3px;
}
.kepsek-info .sekolah {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.bio-list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bio-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.bio-list li .bi {
  color: #1a5fa8;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.bio-list li strong {
  color: var(--text-dark);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}
.sambutan-content-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 48px 52px;
  border: 1px solid rgba(26,95,168,0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sambutan-content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #1a5fa8, #2a7dd4);
  border-radius: 4px 0 0 4px;
}
.quote-mark {
  font-size: 7rem;
  line-height: 0.8;
  color: #1a5fa8;
  opacity: 0.1;
  font-family: Georgia, serif;
  margin-bottom: -10px;
  display: block;
  user-select: none;
}
.sambutan-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,95,168,0.08);
  color: #1a5fa8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.sambutan-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
  line-height: 1.3;
}
.sambutan-text p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 2;
  margin-bottom: 20px;
  text-align: justify;
}
.sambutan-text p:last-child { margin-bottom: 0; }
.salam-open {
  color: #1a5fa8 !important;
  font-weight: 700 !important;
  text-align: left !important;
}
.sambutan-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
}
.sambutan-divider .line {
  flex: 1;
  height: 1px;
  background: rgba(26,95,168,0.15);
}
.sambutan-divider .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1a5fa8;
  opacity: 0.4;
}
.sambutan-closing {
  background: rgba(26,95,168,0.04);
  border-left: 4px solid #1a5fa8;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-top: 32px;
}
.sambutan-closing .wassalam {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a5fa8;
  margin-bottom: 16px;
}
.sambutan-closing .ttd-nama {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.sambutan-closing .ttd-jabatan {
  font-size: 0.8rem;
  color: var(--text-muted);
}
#sambutan p {
  text-align: justify;
}

.ttd-line {
  width: 80px;
  height: 2px;
  background: #1a5fa8;
  opacity: 0.5;
  margin: 10px 0;
  border-radius: 2px;
}
.visi-misi-strip {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 36px 40px;
  border: 1px solid rgba(26,95,168,0.1);
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
}
.visi-misi-strip h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #1a5fa8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visi-misi-strip h3 .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(26,95,168,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.visi-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.misi-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.misi-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.misi-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1a5fa8;
  flex-shrink: 0;
  margin-top: 7px;
}
.fade-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 991px) {
  .kepsek-card { position: static; margin-bottom: 32px; }
  .kepsek-photo-wrap { max-width: 240px; }
  .sambutan-content-card { padding: 32px 28px; }
}
@media (max-width: 575px) {
  .sambutan-content-card { padding: 28px 20px; }
  .visi-misi-strip { padding: 24px 20px; }
}
/* ================================================================
   CINEMATIC HERO — Crossfade + Ken Burns Effect
   ================================================================ */

.hero-cinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #0a1628;
}

/* ── Setiap layer gambar ── */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  /* HANYA opacity yang pakai CSS transition — transform dikontrol penuh oleh JS */
  transition: opacity 1s ease-in-out;
  will-change: opacity, transform;
  z-index: 1;
}

/* State: gambar sedang tampil */
.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

/* State: gambar sedang keluar — fade out, transform TIDAK di-override (zoom freeze) */
.hero-slide.is-leaving {
  opacity: 0;
  z-index: 3;
  transition: opacity 1s ease-in-out;
}

/* ── Overlay gelap cinematic ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* Gradien vertikal: lebih gelap di bawah agar teks mudah dibaca */
  background: linear-gradient(
    to bottom,
    rgba(0,  0,  0, 0.25) 0%,
    rgba(0,  0,  0, 0.45) 40%,
    rgba(0,  0,  0, 0.65) 100%
  );
  pointer-events: none;
}

/* ── Konten teks di tengah ── */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  /* Offset ke atas sedikit agar tidak tertutup dot */
  padding-bottom: 80px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 5px 18px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  animation: heroFadeUp 1s ease 0.3s both;
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 4px 24px rgba(0, 0, 0, 0.4);
  animation: heroFadeUp 1s ease 0.5s both;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  animation: heroFadeUp 1s ease 0.7s both;
}

/* ── Tombol CTA ── */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroFadeUp 1s ease 0.9s both;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: #1a5fa8;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 2px solid #1a5fa8;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(26, 95, 168, 0.45);
}

.hero-btn-primary:hover {
  background: #1550a0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 95, 168, 0.55);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Dot indikator ── */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.35);
}

/* ── Progress bar bawah (opsional, tunjukkan sisa waktu) ── */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 5;
  width: 0%;
  transition: none;
}

.hero-progress.is-running {
  transition: width 5s linear;
  width: 100%;
}

/* ── Animasi masuk teks ── */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-cinematic {
    min-height: 100svh; /* safe area mobile */
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn-primary,
  .hero-btn-outline {
    width: 220px;
    justify-content: center;
  }
}
