:root{
  --main-green:#0c809b;
  --secondary-green:#0c809b;
  --man4bantul-blue:#085669;
  --man4bantul-gold:#e6c513;

  /* tinggi komponen */
  --topbar-h:90px;   /* header lebih besar */
  --navbar-h:60px;   /* tinggi kira-kira navbar */
}

/* konten tidak ketiban header */
/* konten tidak ketiban header */
body{
  font-family:"Segoe UI",sans-serif;
  margin:0;
   padding-top: calc(var(--topbar-h) + var(--navbar-h));
}


.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  right: 20px;
  background-color: #0c9b4e;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}





/* ================= Topbar ================= */
.topbar{
  background:linear-gradient(90deg, var(--main-green), var(--secondary-green));
  color:#ffffff;
  height:var(--topbar-h);
  z-index:1060;
  padding:0;
  border-bottom:1px solid rgba(0,0,0,.1);
}
.topbar .container{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-left: 8px !important;
  padding-right: 8px !important;
  max-width: 100%
}

/* kiri: logo + nama sekolah */
.topbar img{
  max-height:calc(var(--topbar-h) - 30px);
  width:auto;
  margin-right:14px;
}
.school-name{ 
  font-weight:700; 
  font-size:24px; 
  line-height:1.2; 
  color:#ffffff;
}
.school-sub1{ 
  font-weight:700; 
  font-size:20px; 
  line-height:1.2; 
  color:#e6c513; 
}
.school-sub2{ 
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight:700; 
  font-size:20px; 
  line-height:1.2; 
  color:#ffffff; 
}


.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px; /* jarak antar ikon */
}

/* Style ikon sosmed */
.topbar-right a {
  color: #ffffff;        /* warna putih */
  font-size: 25px;       /* ukuran ikon */
  text-decoration: none;
  transition: color 0.3s;
}

.topbar-right a:hover {
  color: #e6c513;        /* warna emas saat hover */
}

/* Garis pembatas */
.topbar-right .border-end {
  border-right: 1px solid #ffffff;
  height: 20px;
}

/* Search form */
.topbar .search-form {
  display: flex;
  align-items: center;
  background: #d3e1de;
  padding: 2px 4px;
  border-radius: 4px;
}

.topbar .search-form input {
  height: 26px;
  padding: 2px 8px;
  font-size: 13px;
  border: none;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.topbar .search-form button {
  height: 26px;
  border: none;
  background: none;
  color: #000;
  cursor: pointer;
  padding: 0 8px;
}

/* ========== SEARCH BAR STYLE ========== */ 
.search-container {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 2px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: fit-content;
}

.search-container input {
  border: none;
  outline: none;
  padding: 2px 6px;
  font-size: 15px;
  width: 150px;
}

.search-container button {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  cursor: pointer;
}
.search-container button:hover {
  background: #333;
}

/*SIDEBAR SEARCH*/
/* Sidebar search full screen */
.search-sidebar {
  height: 100%;
  width: 0; /* awalnya tertutup */
  position: fixed;
  top: 0; right: 0;
  background-color: #085669;
  overflow-x: hidden;
  transition: 0.5s ease;
  z-index: 9999;
  padding-top: 100px;
}

/* Tombol close */
.search-sidebar .closebtn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
}

/* Konten tengah */
.search-sidebar-content {
  text-align: center;
  margin-top: 60px;
}
.search-sidebar-content input[type=text] {
  padding: 15px 20px;
  width: 60%;
  font-size: 22px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #ffffff;
  outline: none;
}
.search-sidebar-content button {
  padding: 15px 20px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
}

/* Footer logo */
.footer-brand {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.footer-brand hr {
  display: inline-block;
  width: 120px;
  border: 1px solid #e6c513;
  margin: 0 20px;
  vertical-align: middle;
}
.footer-brand img {
  height: 80px;
  vertical-align: middle;
}

.search-sidebar-content input[type=text]::placeholder {
  color: #ffffff;        /* putih */
  opacity: 0.8;          /* sedikit transparan biar elegan */
}
.logo {
  width: 80px; /* atur sesuai kebutuhan */
  height: auto; /* biar proporsional */
  object-fit: contain; /* mencegah gepeng */
  display: block;
  margin: 0 auto; /* tengah */
}


/* Sidebar search full screen */
.search-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 0; /* tertutup awal */
  background: #085669;
  backdrop-filter: blur(8px);
  transition: width 0.5s ease;
  z-index: 9999;

  /* flex biar konten di tengah */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikal tengah */
  align-items: center;     /* horizontal tengah */
  
}

/* Konten tengah */
.search-sidebar-content {
  text-align: center;
  width: 100%;
  max-width: 1200px; /* bisa kamu ubah jadi 1000px, 1200px, bahkan 100% */
  padding: 0 20px;
  transform: translateY(-60px);
}

/* Input search */
.search-sidebar-content input[type=text] {
  width: 90%;            /* memenuhi hampir seluruh layar */
  padding: 18px 24px;    /* lebih besar */
  font-size: 24px;       /* lebih besar */
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
}
.search-sidebar-content input[type=text]:focus {
  background: rgba(255,255,255,0.2);
  border-color: #0c809b;
  box-shadow: 0 0 20px rgba(12,128,155,0.6);
}

/* Tombol search */
.search-sidebar-content button {
  margin-left: 14px;
  padding: 18px 22px;   /* lebih besar */
  font-size: 24px;
  color: #fff;
  background: #0c809b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.search-sidebar-content button:hover {
  background: #0a6a7f;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(12,128,155,0.6);
}


/* ==== TOMBOL MENU ==== */
.menu-toggle {
  display: none;
}
.menu-toggle {
  font-size: 35px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* ==== SIDEBAR ==== */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--man4bantul-blue, #0c809b);
  overflow-y: auto;
  transition: width 0.4s ease-in-out, box-shadow 0.3s;
  z-index: 1200;
  color: #fff;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

/* Saat terbuka (dari JS = width:100%) → benar-benar full layar */
.sidebar[style*="width: 100%"] {
  width: 100% !important;
  max-width: 100% !important;
}

.sidebar-header {
  display: flex;
  align-items: center; /* Biar logo dan teks sejajar vertikal */
  justify-content: flex-start; /* Semua ke kiri */
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  text-align: left !important;
}

.sidebar-header img.logo {
  height: 80px;
  margin: 0 10px 0 0;
  flex-shrink: 0;
}

.sidebar-header .school-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0;
}

.sidebar-header .school-name {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
}

.sidebar-header .school-sub1 {
  color: var(--man4bantul-gold, #e6c513);
  font-size: 14px;
  margin-top: 3px;
}

.sidebar-header .school-sub2 {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 1px;
  font-style: italic;
}

/* Tombol X */
.sidebar .closebtn {
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
  align-self: center; /* biar sejajar tengah dengan logo dan teks */
  transition: color 0.3s;
  position: absolute;
  right: 20px;
}
.sidebar .closebtn:hover {
  color: var(--man4bantul-gold, #e6c513);
}


/* ==== SEARCH ==== */
.sidebar-search {
  display: flex;
  margin: 15px 20px;
  background: #fff;
  border-radius: 25px;
  padding: 6px 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.sidebar-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 25px;
}

.sidebar-search button {
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar-search i {
  font-size: 18px;
  color: #000;
}

/* ==== NAVIGATION ==== */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 10px 0 40px 0;
  width: 100%;
}

.sidebar-nav li {
  width: 100%;
}

.sidebar-nav a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--man4bantul-gold, #e6c513);
}

/* ==== DROPDOWN ==== */
.sidebar-nav .dropdown-menu {
  display: none;
  list-style: none;
  padding: 5px 0;
  background: #085669;
  margin: 5px 0 0 0;
  width: 100%;
  border-radius: 0 0 6px 6px;
}

.sidebar-nav .dropdown.active > .dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

.sidebar-nav .dropdown-menu li a {
  padding: 8px 30px;
  font-size: 15px;
}

.sidebar-nav .dropdown-menu li a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--man4bantul-gold, #e6c513);
}

/* Animasi buka dropdown */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==== SEGITIGA DROPDOWN ==== */
.sidebar-nav .dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  transition: transform 0.3s;
}

.sidebar-nav .dropdown.active > a::after {
  transform: rotate(180deg);
  border-color: transparent transparent #fff transparent;
}





/* ================= Navbar ================= */
.navbar-man4bantul{
  position:fixed;
  top:var(--topbar-h);
  left:0; right:0;
  width:100%;
  background:var(--man4bantul-blue);
  z-index:1050;
  border-top: 3px solid var(--man4bantul-gold);
}

.navbar-man4bantul .nav-link{
  color:#ffffff !important;
  font-weight:400;
  font-family: "Poppins", sans-serif;
  font-size:20px;       /* menu sedikit lebih kecil */
  padding:6px 12px;     /* ramping */
}

.navbar-man4bantul .nav-item {
  margin-right: 15px; 
}

.navbar-man4bantul .nav-link:hover{ color:var(--man4bantul-gold) !important; }

.nav-item {
  position: relative; /* biar dropdown nempel ke item induknya */
}

/* ====== Dropdown Menu ====== */
.navbar .dropdown-menu {
  width: auto;
  background: #085669;           
  border: none;                  /* hilangin border default bootstrap */
  border-radius: 6px;            /* rounded */
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,1,1); /* shadow lembut */

  /* animasi */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease-in-out;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-link .dropdown-toggle::after {
  transition: transform 0.25s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* ====== Dropdown Item ====== */
.dropdown-menu a {
  color: #ffffff;                /* ungu gelap */
  font-size: 18px;
  font-weight: 500;
  padding: 10px 16px;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(90, 45, 130, 0.05); /* hover tipis */
  color: var(--man4bantul-gold, #ffffff);
}



/* ================= Mobile Menu ================= */
@media (max-width: 992px) {
  /* Hilangkan navbar */
  .navbar-man4bantul {
    display: none !important;
  }

  /* Semua konten ikut naik: beri padding-top pada body */
  body {
    padding-top: calc(var(--topbar-h) + 12px); /* jarak wajar di bawah topbar */
  }

.topbar img{
  max-height:calc(var(--topbar-h) - 20px);
  width:auto;
  margin-right:8px;
}
.school-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff; /* hijau */
}
.school-sub1{ 
  font-weight:700; 
  font-size:15px; 
  line-height:1.2; 
  color:#e6c513; 
}
.school-sub2{ 
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight:700; 
  font-size:15px; 
  line-height:1.2; 
  color:#ffffff; 
}

.topbar-right {
    display: none !important;
  }


    /* ==== TOMBOL MENU ==== */
 .menu-toggle {
  display: flex
}

}



/* ===== Konten Berita ===== */
/* ===== Tombol Kembali ===== */
/* Wrapper breadcrumb + counter */
.meta-wrap {
  background: transparent;  /* transparan, nyatu sama background halaman */
  padding: 0;               /* hilangkan padding */
  border-radius: 0;         /* tanpa sudut membulat */
  box-shadow: none;         /* hilangkan bayangan */
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Breadcrumb style */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;   /* tanpa kotak */
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #085669;            /* teks utama biru */
}

.breadcrumb-item {
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";              /* separator modern */
  margin: 0 6px;
  color: #085669;            /* separator juga biru */
  font-weight: 500;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: #085669;            /* link biru */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #063f4c;            /* biru sedikit lebih gelap saat hover */
  transform: translateY(-1px);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #063f4c;            /* aktif lebih gelap */
  font-weight: 600;
  pointer-events: none;
}

/* View counter */
.view-counter {
  color: #085669;            /* tetap biru */
  background: transparent;   /* tanpa kotak */
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  box-shadow: none;
}



/* Tombol Kembali - desain seperti Arsip Madrasah */
.btn-kembali {
  display: inline-block;
  margin: 16px 0 28px 0;
  font-size: 15px;
  color: #085669;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  background-color: rgba(25, 135, 84, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-kembali:hover {
  color: #085669;
  text-decoration: none;
  background-color: rgba(13,110,253,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-kembali:active {
  transform: scale(0.92);
  box-shadow: 0 0 12px #085669;
}



/* ===== Judul Berita ===== */
.judul-berita {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 8px;
}

/* ===== Topik / Kategori ===== */
.topik-box {
  display: inline-block;
  background: #ffffff;
  color: #085669;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ===== Info Berita ===== */
.info-berita {
  font-size: 0.9rem;
  color: #6c757d;
}

.info-berita span {
  margin-right: 15px;
}

.info-berita i {
  margin-right: 5px;
  color: #085669;
}

/* ===== Gambar Utama ===== */
.img-utama {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.img-utama:hover {
  transform: scale(1.03);
}

/* ===== Isi Berita ===== */
.isiberita p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  color: #333;
}

.isiberita h5 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: #085669;
  position: relative;
}

.isiberita h5::before {
  content: "▸";
  color: #085669;
  margin-right: 6px;
}

/* ===== List Standar ===== */
.list-standar li {
  margin-bottom: 6px;
  padding-left: 1.2rem;
  position: relative;
}

.list-standar li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #085669;
  font-size: 0.9rem;
}

/* ===== Sidebar ===== */
.sidebar-box {
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.sidebar-box:hover {
  transform: translateY(-3px);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #085669;
  border-bottom: 2px solid #e6c513;
  display: inline-block;
  padding-bottom: 4px;
}

.sidebar-box ul li {
  margin-bottom: 8px;
}

.sidebar-box ul li a {
  color: #444;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-box ul li a:hover {
  color: #085669;
  text-decoration: underline;
  padding-left: 4px;
}
@media (max-width: 768px) {
  .sidebar-box {
    margin-top: 10px; 
  }
}



/* ===== Bagikan (Final Alignment) ===== */
.share {
  font-size: 1.55rem;
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.share span {
  margin-right: 12px;
  font-weight: 600;
  color: #444;
  font-size: 1.05rem;
}

.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  color: #085669;
  font-size: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none !important;
  overflow: hidden; /* penting: rapikan bagian bawah ikon */
}

.share a i {
  line-height: 1;
}

/* Penyesuaian spesifik setiap ikon */
.share a i.bi-facebook {
  transform: translateY(1px);
}

.share a i.fa-x-twitter {
  transform: translateY(2px) scale(1.05); /* geser dikit dan perbesar dikit */
}

.share a i.bi-whatsapp {
  transform: translateY(1px);
}

/* Hover efek */
.share a:hover {
  background: #085669;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share a:active {
  transform: scale(0.93);
}

/* Responsive */
@media (max-width: 768px) {
  .share a {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    margin-right: 8px;
  }

  .share span {
    font-size: 0.95rem;
  }
}



/* ===== Info Box Tambahan ===== */
.info-box {
  background: #ffffff;
  border-left: 4px solid #085669;
  padding: 15px 18px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-box h6 {
  font-weight: 600;
  margin-bottom: 5px;
  color: #085669;
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

/* ===== Tags ===== */
.tags {
  margin-top: 15px;
  font-size: 0.9rem;
}

.tags span {
  font-weight: 600;
  margin-right: 8px;
  color: #555;
}

.tags a {
  display: inline-block;
  margin: 3px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ffffff;
  color: #085669;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tags a:hover {
  background: #085669;
  color: #ffffff;
}




/* ======= Footer ======= */
.footer-m4b {
  background-color: #0c809b; 
  padding: 40px 20px;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  margin: 0;
  padding: 0;
}

.footer-m4b img {
  height: auto;
  width: auto;
}

.footer-m4b h5 {
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-m4b p,
.footer-m4b .small {
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-m4b a {
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.footer-m4b a:hover {
  color: #e6c513; /* gold saat hover */
}

/* Sosial Media */
.footer-m4b .fa {
  margin: 0 6px;
}
/* Sosial Media */
.footer-m4b .sosialmedia i {
  font-size: 28px;     /* ubah sesuai kebutuhan, misal 32px kalau mau lebih besar */
  margin: 0 10px;
  color: #ffffff;      /* sesuaikan warna */
  transition: transform 0.2s ease, color 0.3s ease;
}

.footer-m4b .sosialmedia i:hover {
  color: #e6c513;      /* efek hover warna kuning */
  transform: scale(1.2); /* sedikit membesar saat hover */
}


.footer-illustration {
  margin: 0;
  padding: 0;
  width: 100%;
}

.footer-illustration .footer-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

