/**
* MTs Assalafiyyah Mlangi - Main Stylesheet
* Based on KnightOne Template
* Optimized & Cleaned
* Last Updated: Berita Filter & Search UI
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading-font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --nav-font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

:root { 
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #282828;
  --accent-color: #009961; /* Hijau Identitas Sekolah */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

:root {
  --nav-color: #ffffff;
  --nav-hover-color: #009961;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #009961;
}

/* Color Presets */
.light-background {
  --background-color: #f9f9f9; 
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

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

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Helper Classes */
.rounded-custom {
    border-radius: 15px !important;
}

/*--------------------------------------------------------------
# Global Header & Navigation
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .logo img {
  max-height: 45px; 
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}

.header .logo span {
  font-size: 11px;
  color: var(--default-color);
  letter-spacing: 0.5px;
  opacity: 0.8;
  font-weight: 500;
}

/* Header on Scroll */
.scrolled .header {
  --background-color: rgba(40, 40, 40, 0.95);
  box-shadow: 0px 2px 15px rgba(0,0,0,0.1);
}

/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu { padding: 0; }
  .navmenu ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
  .navmenu li { position: relative; }
  .navmenu > ul > li { white-space: nowrap; padding: 15px 18px; }
  
  .navmenu a {
    color: color-mix(in srgb, var(--nav-color), transparent 30%);
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navmenu a i {
    font-size: 12px;
    line-height: 0;
    margin-left: 6px;
    transition: 0.3s;
  }

  .navmenu > ul > li > a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover > a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover > a,
  .navmenu .active {
    color: var(--nav-color);
  }

  /* Dropdown */
  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li { min-width: 200px; padding: 0; }
  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
    background-color: #f6f6f6;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .mobile-nav-active .mobile-nav-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
  }

  .navmenu ul {
    display: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0,0,0,0.2);
  }
  
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    z-index: 9997;
  }

  .mobile-nav-active .navmenu > ul { display: block; }
  
  .navmenu a {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navmenu .active { color: var(--accent-color); }
  .navmenu .dropdown ul { position: static; display: none; padding: 10px 0; margin: 10px 20px; background-color: #f9f9f9; }
  .navmenu .dropdown > .dropdown-active { display: block; }
}

/* Tombol PPDB di Header */
.header .btn-getstarted {
  background-color: var(--accent-color);
  color: #fff !important;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s;
  text-decoration: none;
}

.header .btn-getstarted:hover {
  background-color: #007a4d !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 153, 97, 0.4);
  color: #fff !important;
}


/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  margin: 0 4px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .ppasm-badge {
  transition: 0.3s;
}

.footer .ppasm-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 153, 97, 0.2) !important;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

/*--------------------------------------------------------------
# Preloader & Scroll Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top i { font-size: 24px; color: #fff; }
.scroll-top:hover { background-color: color-mix(in srgb, var(--accent-color), transparent 20%); }
.scroll-top.active { visibility: visible; opacity: 1; bottom: 15px; }

/*--------------------------------------------------------------
# Common Section Styles
--------------------------------------------------------------*/
section, .section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

.section-title {
  padding-bottom: 60px;
  position: relative;
  text-align: center;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}
.page-title:before {
  content: "";
  background-color: rgba(0,0,0,0.6);
  position: absolute;
  inset: 0;
}
.page-title .container { position: relative; z-index: 2; color: #fff; }
.page-title h1 { color: #fff; font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.page-title p { color: rgba(255,255,255,0.9); }
.page-title .breadcrumbs ol {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.8);
}
.page-title .breadcrumbs ol li+li::before { content: "/"; padding: 0 10px; }
.page-title .breadcrumbs a { color: #fff; }


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: rgba(0,0,0,0.5);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container { position: relative; z-index: 3; }
.hero h2 { margin: 0; font-size: 48px; font-weight: 700; color: #fff; }
.hero p { color: rgba(255,255,255,0.9); margin: 10px 0 20px 0; font-size: 24px; }

/* Pulsating Play Button (Video) */
.pulsating-play-btn {
  width: 94px; height: 94px;
  background: radial-gradient(var(--accent-color) 50%, rgba(0, 153, 97, 0.4) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}
.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translateX(-40%) translateY(-50%);
  border-left: 15px solid #fff;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}


/*--------------------------------------------------------------
# Sambutan Kepala Madrasah (About)
--------------------------------------------------------------*/
.kepala-card .img-frame {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 5px solid #fff;
  background: #fff;
}

.kepala-card:hover .img-frame {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.sambutan-content .content-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}
.sambutan-content .blockquote { border-left: none; padding: 10px; }

@media (max-width: 991px) {
  .kepala-card { position: static !important; margin-bottom: 30px; }
  .sambutan-content { padding-left: 0 !important; }
}


/*--------------------------------------------------------------
# Program Unggulan (Services)
--------------------------------------------------------------*/
.services .service-item {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.services .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 153, 97, 0.15);
  border-color: var(--accent-color);
}

.services .service-item h3 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.services .service-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.icon-box-primary i { color: #0d6efd; font-size: 42px; }
.icon-box-success i { color: #198754; font-size: 42px; }
.icon-box-info i    { color: #0dcaf0; font-size: 42px; }
.icon-box-warning i { color: #ffc107; font-size: 42px; }


/*--------------------------------------------------------------
# Data Sekolah / Stats
--------------------------------------------------------------*/
.stats { position: relative; overflow: hidden; padding: 80px 0; }
.stats .stats-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.stats .stats-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}
.stats .container { position: relative; z-index: 3; }

.stats .content h3 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.stats .content p { color: rgba(255, 255, 255, 0.8); font-size: 16px; }

.stats .stats-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.stats .stats-item i {
  font-size: 42px; margin-right: 20px; color: var(--accent-color);
  background: #fff; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.stats .stats-item span { font-size: 32px; font-weight: 700; color: #fff; display: block; line-height: 1; }
.stats .stats-item p { margin: 5px 0 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* Gradient & Pattern Background */
.stats-bg-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 75% 50%, #004d33 0%, #000000 70%);
    z-index: 1;
}

.stats-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    z-index: 2;
}


/*--------------------------------------------------------------
# Fasilitas Page
--------------------------------------------------------------*/
.facility-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: var(--accent-color);
}

.facility-img {
  height: 220px; width: 100%; overflow: hidden;
}

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

.facility-card:hover .facility-img img { transform: scale(1.1); }
.facility-content h4 { font-size: 18px; color: var(--heading-color); }


/*--------------------------------------------------------------
# Tenaga Pendidik / Team
--------------------------------------------------------------*/
.team .member {
  position: relative;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  transition: 0.3s;
  text-align: center;
}

.team .member:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid var(--accent-color);
}

.team .member .member-img {
  overflow: hidden;
  width: 150px; height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  position: relative;
  border: 5px solid #f9f9f9;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
}

.team .member .member-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: all 0.3s ease-in-out;
}
.team .member:hover .member-img img { transform: scale(1.1); }

.team .member h4 { font-weight: 700; margin-bottom: 5px; font-size: 18px; }
.team .member span.jabatan {
  display: block; font-size: 14px; font-weight: 600; color: var(--accent-color);
  margin-bottom: 10px;
}

.team .member .social {
  position: absolute; left: 0; bottom: 0; right: 0; height: 40px;
  opacity: 0; transition: ease-in-out 0.3s;
  background: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; justify-content: center;
}
.team .member:hover .social { opacity: 1; }
.team .member .social a { color: #444; margin: 0 8px; font-size: 18px; }
.team .member .social a:hover { color: var(--accent-color); }


/*--------------------------------------------------------------
# Ekstrakurikuler
--------------------------------------------------------------*/
/* Box Keagamaan (Vertikal) */
.shadow-hover {
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}
.shadow-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
  border-bottom-color: var(--accent-color);
}
.shadow-hover .icon { transition: transform 0.3s; }
.shadow-hover:hover .icon { transform: scale(1.1); }

/* Box Umum (Horizontal) */
.shadow-sm-hover { transition: all 0.3s ease; }
.shadow-sm-hover:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: var(--accent-color) !important;
}
.shadow-sm-hover .icon-box { transition: all 0.3s; }
.shadow-sm-hover:hover .icon-box {
  background-color: var(--accent-color) !important;
  color: #fff !important;
}


/*--------------------------------------------------------------
# Visi Misi Page
--------------------------------------------------------------*/
.visi-card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 5px solid var(--accent-color); 
}
.visi-card .bg-pattern-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.03;
  background-image: radial-gradient(#444 1px, transparent 1px);
  background-size: 20px 20px; z-index: 0; pointer-events: none;
}
.misi-item {
  background: #fff; padding: 25px; border-radius: 12px; height: 100%;
  transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.misi-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 153, 97, 0.1);
  border-color: var(--accent-color);
}
.misi-item .icon {
  width: 50px; height: 50px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 24px; transition: 0.3s;
}
.misi-item:hover .icon { background: var(--accent-color); color: #fff; }
.hover-top { transition: transform 0.3s ease; }
.hover-top:hover { transform: translateY(-10px); border-color: var(--accent-color) !important; }


/*--------------------------------------------------------------
# History Timeline
--------------------------------------------------------------*/
.history-timeline .timeline {
  position: relative; max-width: 1200px; margin: 0 auto;
}
.history-timeline .timeline::after {
  content: ''; position: absolute; width: 4px; background-color: #e9ecef;
  top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 5px;
}
.history-timeline .timeline-item {
  padding: 10px 40px; position: relative; background-color: inherit; width: 50%;
}
.history-timeline .left { left: 0; }
.history-timeline .right { left: 50%; }

.history-timeline .timeline-item::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  right: -10px; background-color: #fff;
  border: 4px solid var(--accent-color);
  top: 25px; border-radius: 50%; z-index: 1; transition: all 0.3s ease;
}
.history-timeline .right::after { left: -10px; }
.history-timeline .content {
  padding: 30px; background-color: #fff; position: relative;
  border-radius: 15px; border-left: 5px solid var(--accent-color);
}
.history-timeline .year {
  display: inline-block; background: var(--accent-color); color: #fff;
  padding: 5px 15px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
  .history-timeline .timeline::after { left: 31px; }
  .history-timeline .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .history-timeline .timeline-item.right { left: 0%; }
  .history-timeline .timeline-item::after { left: 21px; }
  .history-timeline .right::after { left: 21px; }
}


/* =========================================================
   # SECTION A: HOMEPAGE (RECENT POSTS)
   Class: .home-post-card
   ========================================================= */

.home-post-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.home-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 153, 97, 0.3);
}

/* Gambar di Home */
.home-post-card .post-img {
  height: 220px; /* Tinggi gambar di home */
  width: 100%;
  position: relative;
  overflow: hidden;
}

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

.home-post-card:hover .post-img img {
  transform: scale(1.1); /* Efek Zoom */
}

/* Badge Kategori Home */
.home-post-card .post-badge {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 2;
}

/* Konten Teks Home */
.home-post-card .post-content {
  padding: 20px;
  display: flex; flex-direction: column; flex-grow: 1;
}

.home-post-card h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.home-post-card h5 a {
  color: var(--heading-color);
  transition: 0.3s;
}

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


/* =========================================================
   # SECTION B: HALAMAN BERITA (ARCHIVE)
   Class: .archive-post-card
   ========================================================= */

.archive-post-card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.08); /* Border sedikit lebih tegas */
  border-radius: 12px; /* Radius sedikit berbeda */
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.archive-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--accent-color);
}

/* Gambar di Arsip */
.archive-post-card .post-img {
  height: 200px; /* Tinggi gambar di arsip sedikit lebih kecil */
  width: 100%;
  position: relative;
  overflow: hidden;
}

.archive-post-card .post-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}

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

/* Badge Kategori Arsip */
.archive-post-card .post-badge {
  position: absolute;
  top: 10px; left: 10px; /* Posisi badge di kiri */
  background: var(--accent-color); /* Background Hijau */
  color: #fff; /* Teks Putih */
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 4px;
  z-index: 2;
}

/* Konten Teks Arsip */
.archive-post-card .post-content {
  padding: 25px;
  display: flex; flex-direction: column; flex-grow: 1;
}

.archive-post-card h5 {
  font-size: 1.2rem; /* Judul lebih besar di halaman arsip */
  margin-bottom: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.archive-post-card h5 a {
  color: #333;
  text-decoration: none;
}

.archive-post-card h5 a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Berita Page Filter & Search UI */
.filter-box {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.cat-btn {
    border: 1px solid #eee;
    color: #666;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #fff;
}

.cat-btn:hover, .cat-btn.active {
    background: var(--accent-color);
    color: #fff !important;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 153, 97, 0.2);
}

.search-input {
    border: 1px solid #eee;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25 mil rgba(0, 153, 97, 0.1);
}

/* Helper Umum (Tetap digunakan keduanya) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  font-size: 20px; width: 44px; height: 44px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 50px; transition: all 0.3s ease-in-out; margin-right: 15px;
}
.contact .info-item:hover i { background: var(--accent-color); color: var(--contrast-color); }

.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0; box-shadow: none; font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus { border-color: var(--accent-color); }
.contact .php-email-form button[type=submit] {
  background: var(--accent-color); border: 0; padding: 10px 30px;
  color: #fff; transition: 0.4s; border-radius: 50px;
}
.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* --- Guru Card: Glowing Green Effect --- */
.guru-card {
  background: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.5rem; 
  z-index: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05); 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); 
}

.guru-card:hover {
  transform: translateY(-10px) !important;
  z-index: 2; 
  border-color: var(--accent-color) !important; 
  box-shadow: 0 10px 30px rgba(0, 153, 97, 0.25), 
              0 0 15px rgba(0, 153, 97, 0.1) !important; 
}

.guru-card .img-frame {
  position: relative;
  background-color: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.guru-card .img-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0, 153, 97, 0.8), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 15px;
  pointer-events: none;
}

.guru-card:hover .img-overlay { opacity: 1 !important; }

.guru-card .img-frame img {
  transition: transform 0.5s ease;
  border-radius: 15px;
  width: 100%;
  display: block;
  transform: scale(1);
}

.guru-card:hover .img-frame img { transform: scale(1.08) !important; }

.guru-card .social-overlay {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
}

.guru-card:hover .social-overlay { opacity: 1; transform: translateY(0); }

.guru-card .jabatan-text {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

/* --- PROGRAM UNGGULAN STYLES --- */
.program-card {
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.program-card:hover { transform: translateY(-10px); }
.program-card .feature-list li {
  margin-bottom: 12px; font-size: 15px; display: flex; align-items: center;
}

/* KARTU REGULER */
.program-card.reguler { background: #fff; border: 2px solid #f0f0f0; }
.program-card.reguler:hover {
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(0, 153, 97, 0.1);
}
.program-card.reguler .bg-shape {
  position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,153,97,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%; z-index: 0;
}

/* KARTU INTERNASIONAL */
.program-card.international {
  background: #0d6efd; border: none; box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}
.program-card.international:hover { box-shadow: 0 20px 50px rgba(13, 110, 253, 0.5); }

.program-card.international .bg-overlay-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; z-index: 0;
  transition: transform 5s ease;
}
.program-card.international:hover .bg-overlay-img { transform: scale(1.1); }

.program-card.international .bg-overlay-gradient {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(0, 39, 94, 0.85) 100%);
  z-index: 1;
}

.program-card.international .btn-light { color: #0b5ed7 !important; transition: 0.3s; }
.program-card.international .btn-light:hover { background: #FFC107; color: #000 !important; }