<style>

/* ======================================================
   1️⃣ GLOBAL STYLE (BODY, FONT, HEADING)
====================================================== */
body {
  /* Menggunakan gradien yang lebih netral & cerah agar navbar "pop out" */
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  background-attachment: fixed; /* Menjaga background tetap saat scroll */
  font-family: "Poppins", "Montserrat", sans-serif;
  scroll-behavior: smooth;
  color: #333;
}

h2 {
  font-weight: 600;
  /* Menggunakan warna hijau gelap yang senada dengan navbar untuk konsistensi */
  color: #0f3d1f; 
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

h2.text-warning {
  /* Memberikan efek glow emas yang lebih halus sesuai aksen brand */
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
  color: #b8962e !important;
}

/* Tambahan: Agar konten tidak menempel ke navbar yang sticky */
main, .container-fluid {
  padding-top: 20px;
}

/* ======================================================
   2️⃣ HEADER / NAVBAR
====================================================== */
.main-header {
  background: linear-gradient(90deg, #003366, #0055a5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
}

.main-header .logo a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.main-header .nav-link {
  color: #fff !important;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.main-header .nav-link:hover {
  color: #ffc107 !important;
}


/* ======================================================
   3️⃣ HERO VIDEO SECTION
====================================================== */
.video-wrapper {
  position: relative;
  overflow: hidden;
}

#bg-video {
  object-fit: cover;
  width: 100%;
  height: 100vh;
  z-index: -2;
}

.video-overlay {
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}


/* ======================================================
   4️⃣ ANIMATED TEXT
====================================================== */
.animated-text {
  overflow: hidden;
  height: 30px;
}

.slide-text {
  display: inline-block;
  white-space: nowrap;
  animation: slide-left 10s linear infinite;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 500;
}

@keyframes slide-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* ======================================================
   5️⃣ BUTTON STYLE (GLOBAL)
====================================================== */
.btn-warning {
  background-color: #ffc107;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #e6af06 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4) !important;
}

.main-button a {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.main-button a:hover {
  background-color: #e0a800;
  transform: scale(1.05);
}


/* ======================================================
   6️⃣ CARD GLOBAL STYLE
====================================================== */
.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
}


/* ======================================================
   7️⃣ SECTION BERITA
====================================================== */
#berita {
  background: linear-gradient(180deg, #ffffff, #f8f9fa);
  border-radius: 10px;
  padding: 50px 20px;
}

#berita .card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#berita .card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

#berita .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#berita .card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

#berita .card-text {
  font-size: 0.95rem;
  color: #555;
}

.berita-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.berita-card:hover img {
  transform: scale(1.07);
}


/* ======================================================
   8️⃣ SHARE ICONS
====================================================== */
.share-icons {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.berita-card:hover .share-icons {
  opacity: 1;
  transform: translateY(0);
}

.share-icons a {
  border-radius: 50%;
  padding: 8px;
  color: #fff;
  transition: transform 0.2s ease;
}

.share-icons a:hover {
  transform: scale(1.2);
}


/* ======================================================
   9️⃣ ARTIKEL CARD
====================================================== */
.artikel-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.artikel-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.artikel-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}


/* ==========================================
   MANTAN KEPALA - PERIODE DI BAWAH NAMA
========================================== */
 /* Container Utama Card */
.mantan-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none; /* Menghilangkan border default bootstrap jika ada */
}

/* Efek Hover */
.mantan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pengaturan Gambar */
.mantan-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top; /* Fokus ke area wajah */
    display: block;
}

/* Body Card (Area Teks) */
.mantan-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    background-color: #fff;
}

/* Judul / Nama */
.mantan-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Teks Periode */
.mantan-card .card-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Animasi Fade */
.fade {
    transition: opacity 1s ease-in-out;
    opacity: 1;
}

.fade-out {
    opacity: 0;
}
/* ======================================================
   1️⃣1️⃣ GURU CARD
====================================================== */
.guru-card {
  width: 150px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.guru-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.guru-card img {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #007bff;
}


/* ======================================================
   1️⃣2️⃣ FASILITAS
====================================================== */
#fasilitas {
  background: #f9fbfd;
  border-radius: 20px;
  padding: 40px 20px;
}

.fasilitas-card {
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.fasilitas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.fasilitas-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}


/* ======================================================
   1️⃣3️⃣ TIMELINE
====================================================== */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background-color: #009688;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-line {
  width: 2px;
  background-color: #e0e0e0;
  position: absolute;
  top: 60px;
  bottom: -30px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-card {
  background-color: #009688 !important;
  border-radius: 15px !important;
  color: white;
  transition: all 0.3s ease-in-out;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}


/* ======================================================
   1️⃣4️⃣ FOOTER
====================================================== */
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #ffc107;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* ======================================================
   1️⃣5️⃣ RESPONSIVE
====================================================== */
@media (max-width: 768px) {
  .header-text h2 { font-size: 2rem; }
  .slide-text { font-size: 1rem; }
}

@media (max-width: 767px) {
  #fasilitas { padding: 20px 10px; }
  .fasilitas-img { height: 180px; }
}

</style>