
/* Reset dasar untuk konsistensi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}


/* ================= MENU ATAS ================= */
#nav-portal {
    background-color: #032A45; /* warna latar biru */
	
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

#nav-portal .wrap {
    display: flex;
    justify-content: center; /* pusatkan horizontal */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Menu list di tengah */
#nav-portal ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

#nav-portal ul li {
    display: inline-block;
}

#nav-portal ul li a {
    text-decoration: none;
    color: #F4F5E1;
    font-size: 14px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

#nav-portal ul li a:hover {
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
}


/* Toggle button (Nav Portal text) */
#nav-portal-toogle {
  display: none; /* Disembunyikan di desktop */
  background: #0f5c15;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Menu daftar link */
#sidr ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

#sidr ul li {
  display: inline-block;
}

#sidr ul li a {
  padding: 5px 0;
  display: block;
}

/* Ikon search */
#nav-portal .toggleSearch {
  cursor: pointer;
  margin-left: 15px;
}

/* Form search */
.ms-global-search_form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-global-search_form p {
  margin: 0;
  font-size: 12px;
  color: #fff;
}

.ms-global-search_vbox {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
}

.ms-global-search_form .button {
  background: #ffb833;
  border: none;
  padding: 4px 10px;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
}

.ms-global-search_form .button:hover {
  background: #ffc94d;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  #nav-portal-toogle {
    display: inline-block;
  }
  #sidr {
    display: none;
    width: 100%;
  }
  #sidr ul {
    flex-direction: column;
    gap: 0;
  }
  #sidr ul li {
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  #sidr ul li a {
    padding: 8px 0;
  }
  /* Tampilkan menu saat toggle di klik */
  #sidr.active {
    display: block;
  }
  .ms-global-search_form {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 8px;
  }
}


/* =========================
   HEADER (LOGO + NAMA WEBSITE)
========================= */
#head {
  background-color: #ffffff; /* Putih bersih */
  padding: 15px 0;
  border-bottom: 2px solid #e0e0e0;
}

#header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Logo di kiri, teks di kanan */
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#logo {
  max-height: 80px; /* Tinggi logo */
  width: auto;
}

#header-text {
  font-size: 18px;
  color: #333;
margin-left: auto;
  text-align: right;
  font-weight: 600;
  line-height: 1.4;
}

#header-text br {
  display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #header-container {
    flex-direction: column;
    /* Ubah ini dari center menjadi flex-start */
    align-items: flex-start; 
    /* Hapus text-align: center; atau ganti menjadi text-align: left; */
    text-align: left; 
    gap: 10px;
  }
  #logo {
    max-height: 60px;
  }
  #header-text {
    font-size: 18px;
  }
}

/* ================= MENU UTAMA (Desktop) ================= */
#mainnav {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
    background-color: #032A45;
    display: flex;
    /* Ubah ini menjadi flex-start untuk membantu perataan kiri di mobile */
    justify-content: center; 
}

#mainnav .wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  /* Tambahkan display flex agar bisa menampung toggle dan menu berdampingan di desktop */
  display: flex; 
  justify-content: center;
}

#mainnav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#mainnav li {
    position: relative;
}

#mainnav a {
    color: #D9EDFA;
    padding: 12px 18px;
    display: block;
    text-decoration: none;
    font-weight: bold;
}

#mainnav a:hover {
    background-color: #1E75B3;
}

#mainnav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #032A45;
    display: none;
    min-width: 250px;
    max-width: 350px;
    white-space: normal;
    word-wrap: break-word;
    z-index: 1000;
}

#mainnav li:hover > .sub-menu {
    display: block;
}

#mainnav .sub-menu li a {
    padding: 10px;
    font-size: 13px;
}

#mainnav .sub-menu li a:hover {
    background-color: #1E75B3 !important;
    color: #fff !important;
}

/* Tombol Toggle disembunyikan di desktop */
.menu-toggle-btn {
    display: none;
}
/* ================= RESPONSIVE MENU MOBILE (Perbaikan Final) ================= */
@media (max-width: 768px) {
    
    /* 1. WADAH NAVIGASI (#mainnav dan .wrap) */
    #mainnav {
        z-index: 10000; /* Z-Index sangat tinggi agar menu muncul di atas semua konten */
        position: relative; 
    }
    
    #mainnav .wrap {
        display: flex; /* Pastikan flex aktif untuk menata toggle */
        justify-content: flex-start; /* Tombol ke kiri */
        width: 95%; 
        margin: 0 auto;
    }

    /* 2. TOMBOL TOGGLE (HAMBURGER) */
    .menu-toggle-btn {
        display: block; 
        order: 1; 
        padding: 10px 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #403939;
        /* Posisikan di kiri */
        margin-right: auto;
        margin-left: 0; 
        z-index: 10001; 
    }
    
    /* 3. MENU UTAMA (UL) - SEMBUNYIKAN DEFAULT */
    /* Target #mainnav ul lebih aman, tetapi #menu-main-nav ID juga digunakan untuk spesifisitas */
    #mainnav ul,
    #menu-main-nav {
        /* Wajib sembunyikan secara paksa */
        display: none !important; 
        
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #032A45;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 9999; /* Z-index tinggi saat terbuka */
    }
    
    /* 4. TAMPILKAN MENU UTAMA KETIKA AKTIF (JS TOGGLE) */
    #menu-main-nav.menu-open {
        display: flex !important; /* Wajib pakai !important agar menu muncul */
    }

    /* 5. GAYA ITEM MENU (LI dan A) */
    #mainnav li {
        width: 100%; 
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        /* Pastikan position: relative tetap ada untuk sub-menu */
        position: relative; 
    }
    
    #mainnav a {
        padding: 15px 20px;
        text-align: left;
    }
    
    /* 6. SUB-MENU (DISEM BUNYIKAN DAN TAMPILKAN DENGAN ACTIVE CLASS) */
    #mainnav .sub-menu {
        position: static; /* Mengalir di bawah item utama */
        display: none; /* Sembunyikan default */
        min-width: unset;
        max-width: unset;
        background-color: #032A45; /* Warna Sub-Menu */
        padding-left: 15px; 
    }
    
    /* NONAKTIFKAN HOVER (Mencegah masalah klik ganda/navigasi) */
    #mainnav li:hover > .sub-menu {
        display: none !important; 
    }
    
    /* TAMPILKAN SUB-MENU KETIKA LI MEMILIKI CLASS 'active' (dari JS) */
    #menu-main-nav li.active > .sub-menu {
        display: block !important; /* Tampilkan sub-menu */
        margin: 0;
        padding: 5px 0 5px 30px; /* Tambahkan indentasi lebih dalam */
        width: 100%;
    }

    /* Ini hanya untuk compatibility, sudah dicakup oleh li.active di atas */
    .menu-item-has-children.active > .sub-menu {
         display: block !important;
    }
}

/* =========================
   SLIDER FULL WIDTH
========================= */
#rotator {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  z-index: 1;
}

#rotator > div {
  width: 100%;
  height: auto;
}

#rotator img {
  width: 100%;
  height: 500px; /* tinggi default desktop */
  object-fit: cover; /* isi penuh tanpa distorsi */
  display: block;
}

#hero {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#hero .wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  #rotator img {
    height: 300px; /* tinggi tablet */
  }
}



@media (max-width: 768px) {
  #rotator img {
    height: 220px; /* tinggi hp */
  }
  
 #rotator > div {
  width: 100%;
  height: 120px;
} 
}


/* ================= PMB (a_middle) ================= */
/* ===================== */
/* 6. PMB */
/* ===================== */
#a_middle {
  position: relative;
  width: 70%;
  margin: -450px auto 50px auto; /* naik 50px agar di depan slider */
  z-index: 9;
}

#pmb1 {
  width: 100%;
  background-color: #ecf0f1;
}

#pmb1 .pmb1-list {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
     transition: all 0.3s ease-in-out; /* transisi halus */
    cursor: pointer; 
  
}

#pmb1 .pmb1-list li {
  width: 25%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;

  color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;  
}

/* Efek hover interaktif */
#pmb1 .pmb1-list li:hover {
   /* transform: scale(1.05);  membesar 5% */
    filter: brightness(1.1); /* mencerahkan warna */
    transform: translateY(-8px) scale(1.05); /* sedikit terangkat + membesar */
    background-color: #f9d423; /* ubah warna background */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25); /* bayangan lebih tegas */
    filter: brightness(1.05); /* sedikit lebih terang */
}

/* Efek klik (active) untuk kesan interaktif */
#pmb1 .pmb1-list li:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#pmb1 .pmb1-list li:nth-child(1) { background-color: #ffb833; }
#pmb1 .pmb1-list li:nth-child(2) { background-color: #ffd133; }
#pmb1 .pmb1-list li:nth-child(3) { background-color: #ffdd33; }
#pmb1 .pmb1-list li:nth-child(4) { background-color: #ffe633; }

#pmb1 .pmb1-list li a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Judul blok */
#event-block-title.block-title {
  font-size: 1.5rem;
  margin-bottom: 35px;
  color: #157c20; /* hijau sesuai tema */
}


/* RESPONSIVE */

/* ... media queries slider yang sudah ada ... */

@media (max-width: 768px) {
    /* Tinggi slider di mobile */
    #rotator {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 1. Atur ulang PMB agar berada di bawah slider */
    #a_middle {
        /* Hilangkan posisi relatif */
        position: static; 
        /* Hilangkan margin negatif (yang menariknya ke atas) */
        margin: 0 auto 30px auto; 
        /* Sesuaikan lebar agar lebih besar di layar kecil */
        width: 95%; 
        /* Hilangkan z-index: 9; jika sudah diatur ke static */
        
    }
    
    /* 2. Tata letak List PMB menjadi Vertikal */
    #pmb1 .pmb1-list {
        /* Ubah tata letak Flex dari horizontal menjadi vertikal (kolom) */
        flex-direction: column; 
    }
    
    /* 3. Sesuaikan Lebar dan Tinggi setiap Item List */
    #pmb1 .pmb1-list li {
        width: 100%; /* Setiap item mengambil lebar penuh */
        height: auto; /* Biarkan tinggi menyesuaikan konten */
        padding: 15px 0; /* Tambahkan padding vertikal agar tidak terlalu tipis */
        /* Hapus atau nonaktifkan efek transform/hover di mobile jika tidak diperlukan */
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Nonaktifkan efek hover di mobile */
    #pmb1 .pmb1-list li:hover {
        transform: none !important;
        filter: none !important;
        background-color: #ecf0f1 !important; /* Kembalikan ke warna background normal */
        box-shadow: none !important;
    }

    /* 4. Sesuaikan Gaya Teks/Konten jika perlu */
    #pmb1 .pmb1-list li a {
        padding: 0 15px; /* Tambahkan padding horizontal agar konten tidak menempel */
    }
}



/* ================= TEMPLATE HALAMAN STATIS ================= */
#content-wrap {
    background-color: #fff;
    padding: 20px;
}
.page-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* === Responsive: Sidebar di bawah berita untuk mobile === */
@media (max-width: 992px) {
    .sidebar-container {
        max-width: 100%;
        flex-direction: column;
    }
}


/*-----------------------------*/

.footer-banner {
  background-color: #2F0F5C;  /*  */
  color: #ffffff;             /* teks putih */
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Semua teks di footer */
.footer-banner p,
.footer-banner h4,
.footer-banner h5,
.footer-banner li {
  color: #ffffff; /* putih */
}

/* Link di footer */
.footer-banner a {
  color: #ffffff;            /* putih */
  text-decoration: none;
}

.footer-banner a:hover {
  color: #d0ffd0;            /* hijau muda saat hover */
  text-decoration: underline;
}

/* Jarak antar kolom */
.footer-banner .alamat,
.footer-banner .map,
.footer-banner .tautan {
  flex: 1;
  margin: 0 15px;
}

.footer-banner .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Kolom alamat */
.footer-banner .alamat {
  flex: 1;
  min-width: 440px;
  padding-left: 0px;   /* jarak dari kiri */
  padding-right: 40px;  /* jarak ke tengah */
  border-right: 1px solid #ddd;
}

/* Kolom map */
.footer-banner .map {
  flex: 1;
  min-width: 300px;
  padding-left: 40px;   /* jarak dari kiri */
  padding-right: 40px;  /* jarak ke kanan */
  border-right: 1px solid #ddd;
}

/* Kolom tautan */
.footer-banner .tautan {
  flex: 1;
  min-width: 250px;
  color: #ffffff;
  padding-left: 40px;   /* jarak dari tengah */
  padding-right: 20px;  /* jarak dari kanan */
}

.footer-banner .footer-col h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #ffffff;
}

.footer-banner .alamat p {
  margin: 0;
  line-height: 1.6;
}

.footer-banner .map-container iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
}

.footer-banner .tautan ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-banner .tautan ul li {
  margin-bottom: 8px;
}
.footer-banner .tautan ul li a {
  color: #007bff;
  text-decoration: none;
}
.footer-banner .tautan ul li a:hover {
  text-decoration: underline;
}

/* Warna link footer */
.footer-banner a:link,
.footer-banner a:visited {
  color: #ffffff !important;   /* putih */
  text-decoration: none;
}

.footer-banner a:hover,
.footer-banner a:active {
  color: #d0ffd0 !important;   /* hijau muda saat hover */
  text-decoration: underline;
}



/* Responsif */
@media (max-width: 768px) {
  .footer-banner .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-banner .alamat,
  .footer-banner .map,
  .footer-banner .tautan {
    padding-left: 0;
    padding-right: 0;
    border: none;
  }
}








/* ================= FOOTER ================= */

/* FOOTER */
footer,
.wrap-footer {
    background-color: #2F0F5C;
    color: #fff;
    padding: 20px 0;
    font-size: 13px;
}

#about {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

#about img#logo1 {
    max-width: 80px;
    height: auto;
}

#about p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    line-height: 1.5;
    color: #fff;
}

/* COPYRIGHT & SOCIAL */
.footer-bottom {
    max-width: 1100px;
    margin: 15px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#copy {
    color: #fff;
}

#social {
    display: flex;
    align-items: center;
    gap: 8px;
}

#social a img {
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#social a:hover img {
    transform: scale(1.2);
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #about {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


#credit {
    background-color: #2F0F5C; 
	/*background-color: #0a0a0a;*/
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* ===================== */
/* 8. RESPONSIVE */
/* ===================== */
@media (max-width: 768px) {
  #header-container {
    flex-direction: column;
    text-align: center;
  }
  
  #pmb1 .pmb1-list {
    flex-direction: column;
  }
  
  #pmb1 .pmb1-list li {
    width: 100%;
  }
  
  #menu-main-nav {
    flex-direction: column;
  }
}

<!-- Tab Profil KR -->

.tab-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-buttons button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    padding: 12px 20px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    border-radius: 5px;
}

.tab-buttons button.active {
    background-color: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.tabs {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-buttons button {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.tab-buttons button.active {
    background-color: #4caf50;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Card Styling (same as earlier) */
.person-card {
    background: white;
    font-size: 0.9em;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 220px;
}

.person-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #4caf50;
}

.members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.line-vertical {
    width: 4px;
    height: 30px;
    background: #333;
    margin: 20px auto;
}

.leader {
    margin-bottom: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
}


/* ===== Profil Kelompok Riset ===== */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
}

.profile-header h2 {
    font-size: 1.8rem;
    margin: 5px 0;
    color: #2c3e50;
}

.profile-header h3 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666;
}

.profile-header p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    color: #444;
}

/* ===== Tab Container Umum ===== */
.tab-container {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-link {
    background: #f1f1f1;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background: #e0e0e0;
}

.tab-link.active {
    background: #ffc107;
    color: #000;
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* ===== Struktur Organisasi ===== */
.org-chart {
    text-align: center;
}

.person-card {
    display: inline-block;
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    margin: 10px;
    width: 220px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    vertical-align: top;
}

.person-card img {
    width: 120px;      /* lebar seragam */
    height: 120px;     /* tinggi seragam */
    object-fit: cover; /* crop supaya tidak gepeng */
    border-radius: 8px; /* opsional, agak membulat */
    border: 2px solid #ddd;	
	
}

.person-card h4 {
    font-size: 1.1rem;
    margin: 5px 0;
    color: #333;
}

.person-card p {
    margin: 3px 0;
    font-size: 0.9rem;
    color: #555;
}

.line-vertical {
    width: 2px;
    background: #ccc;
    height: 40px;
    margin: 10px auto;
}

/* ===== Penelitian List ===== */
#tab2 ul {
    list-style: disc;
    padding-left: 20px;
}

#tab2 h3 {
    margin-top: 20px;
    color: #444;
}

/* ===== Responsif ===== */
@media (max-width: 768px) {
    .person-card {
        width: 90%;
    }
    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-link {
        width: 100%;
    }
}

/* Breadcrumb sejajar dengan konten utama */
.breadcrumb {
    background: none;
    padding: 8px 15px;
    margin: 0 auto 15px auto;
    font-size: 0.9rem;
    color: #666;
    max-width: 1000px; /* mengikuti lebar konten utama */
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
/* =========================
   AGENDA TERBARU (AGENDA-ATAS.PHP)
========================= */
#event {
    max-width: 1330px;
    margin: 30px auto;
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

#event-block-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #157c20;
    padding-bottom: 5px;
    color: #157c20;
}

.event-wrap {
    display: flex;
    gap: 15px;
    overflow: hidden;
}

.event-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.event-item-title a {
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #157c20;
    display: block;
    margin-bottom: 5px;
}

.event-item-title a:hover {
    text-decoration: underline;
    color: #0e5d16;
}

.event-item-date {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-item-location {
    font-size: 0.85rem;
    color: #555;
}

.event-nav {
    position: absolute;
    top: 15px;
    right: 15px;
}

.event-nav a {
    display: inline-block;
    padding: 4px 8px;
    margin-left: 5px;
    background: #157c20;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.event-nav a:hover {
    background: #0e5d16;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .event-wrap {
        flex-direction: column;
    }
    .event-item {
        width: 100%;
    }
}

/* =========================
   DETAIL AGENDA (AGENDA-DETAIL.PHP)
========================= */
#content-wrap {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#content-wrap .page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #157c20;
}

#content-wrap .page-title a {
    color: inherit;
    text-decoration: none;
}

#content-wrap .page-title a:hover {
    text-decoration: underline;
}

.sosnet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.sosnet span {
    font-weight: bold;
    color: #555;
}

.sosnet .addthis_toolbox a {
    display: inline-block;
    margin-right: 5px;
}

.post {
    margin-top: 15px;
}

.post .field {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.post .field label {
    font-weight: bold;
    color: #333;
}

.post .wpcf7-form-control-wrap {
    display: inline-block;
    color: #555;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Sidebar di detail agenda */
#sidebar {
    flex: 1 1 25%;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === KONTENER UTAMA BERITA + PENGUMUMAN === */
#content-container {
  max-width: 1355px;  /* batas lebar */
  margin: 0 auto;     /* posisikan di tengah */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;          /* jarak antar kolom */
  padding: 0 15px;    /* padding kiri-kanan */
}

/* Kotak berita (kolom kiri) */
#berita {
  flex: 2 1 69%;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Kotak pengumuman (kolom kanan) */
#pengumuman {
  flex: 1 1 25%;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsif HP */
@media (max-width: 768px) {
  #content-container {
    flex-direction: column;
  }
  #berita, #pengumuman {
    flex: 1 1 100%;
  }
}



/* =========================
   SIDEBAR PENGUMUMAN
========================= */
#pengumuman-sidebar {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
}

#pengumuman-block-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #157c20;
    color: #157c20;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block-list li {
    margin-bottom: 8px;
    position: relative;
}

.block-list li a {
    display: block;
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative; /* pastikan link berada di atas semua elemen */
}

.block-list li a:hover {
    background: #eaf5ea;
    color: #157c20;
}

.block-title-arsip {
    margin-top: 12px;
    text-align: right;
    font-size: 0.9rem;
}

.block-title-arsip a {
    text-decoration: none;
    color: #157c20;
    font-weight: bold;
}

.block-title-arsip a:hover {
    text-decoration: underline;
}

/* Fix kemungkinan overlay yang menutupi link */
#pengumuman-sidebar, 
#pengumuman-sidebar * {
    pointer-events: auto;
}


/* Pastikan link Arsip Pengumuman bisa diklik */
.block-title-arsip {
    margin-top: 15px;
    text-align: right;
    position: relative;
    z-index: 10; /* pastikan di atas elemen lain */
}

.block-title-arsip a {
    display: inline-block;
    color: #157c20;
    font-weight: bold;
    text-decoration: none;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
    pointer-events: auto; /* pastikan klik aktif */
}

.block-title-arsip a:hover {
    background: #eaf5ea;
    text-decoration: underline;
}

/* Tambahan umum untuk mencegah overlay menutupi */
#pengumuman-sidebar {
    position: relative;
    z-index: 5;
}

#pengumuman-sidebar * {
    pointer-events: auto;
}




/* === GRID ISI BERITA DI DALAM #BERITA === */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 3 kolom otomatis */
  gap: 20px;
}

/* Kartu berita */
.berita-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.berita-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Thumbnail berita */
.berita-item .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* Judul berita */
.berita-item h4 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #333;
}
.berita-item h4 a {
  text-decoration: none;
  color: inherit;
}

/* Tanggal berita */
.berita-item .date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}

/* Isi ringkasan berita */
.berita-item p {
  font-size: 0.85rem;
  color: #444;
  margin: 0;
}

/* Responsif tablet/HP */
@media (max-width: 992px) {
  .berita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .berita-grid {
    grid-template-columns: 1fr;
  }
}





/* =========================
   SIDEBAR PMB (LINK TERKAIT)
========================= */
#pmb {
    margin-top: 20px;
}

#pmb-block-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px solid #157c20;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #157c20;
}

.pmb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmb-list li {
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pmb-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.pmb-list a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.pmb-list .pmb-title {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
    color: #157c20;
}

.pmb-list .pmb-desc {
    font-size: 0.85rem;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .pmb-list li {
        margin-bottom: 12px;
    }
}

/* =========================
   FORM KONTAK
========================= */
.wpcf7-form {
    max-width: 600px;
    margin: 20px auto;
}

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.req {
    color: red;
}

.wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    border-color: #157c20;
    outline: none;
    box-shadow: 0 0 3px rgba(21,124,32,0.3);
}

.btn-submit {
    background: #157c20;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #0e5d16;
}


/* =========================
   SLIDESHOW / ROTATOR
========================= */
#rotator {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#rotator img {
    width: 100%;
    height: 400px; /* default desktop */
    object-fit: cover;
    display: block;
}

/* Caption overlay */
.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 30px;
    background: rgba(0,0,0,0.5);
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    max-width: 500px;
}

.slide-caption .slide-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.slide-caption .slide-description {
    font-size: 1rem;
    margin: 0;
}

/* Responsive tinggi gambar */
@media (max-width: 1024px) {
    #rotator img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #rotator img {
        height: 220px;
    }
    .slide-caption {
        left: 15px;
        right: 15px;
        bottom: 10px;
        padding: 10px;
        max-width: 90%;
    }
    .slide-caption .slide-heading {
        font-size: 1.2rem;
    }
    .slide-caption .slide-description {
        font-size: 0.9rem;
    }
}

ul.pagination li .page-link {
  display: block;
  padding: 4px 8px;      /* padding lebih kecil */
  font-size: 13px;       /* <— atur ukuran font */
  color: #007bff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-decoration: none;
}

ul.pagination li.active .page-link {
  background-color: #157c20;
  color: #fff;
  border-color: #157c20;
}

/*Hibah css
/* Judul blok */
.hibah-block-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #157c20; /* warna hijau sesuai tema */
}
.hibah-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  gap: 20px;
}

.hibah-item {
  background:#fff;
  border:1px solid #eee;
  border-radius:6px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:box-shadow .3s ease;
}
.hibah-item:hover {
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.hibah-thumb img {
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

.hibah-info {
  padding:12px;
  display:flex;
  flex-direction:column;
}

.hibah-title {
  font-size:16px;
  margin:0 0 5px;
}
.hibah-title a {
  color:#333;
  text-decoration:none;
}
.hibah-title a:hover {
  color:#007bff;
}

.hibah-date {
  font-size:12px;
  color:#888;
  margin-bottom:5px;
}

.hibah-institusi {
  font-size:13px;
  color:#555;
  margin-bottom:8px;
  line-height:1.4em;
  min-height:40px; /* supaya seragam */
}

.read-more-btn {
  font-size:13px;
  color:#007bff;
  text-decoration:none;
  font-weight:600;
  align-self:flex-start;
}
.read-more-btn:hover {
  text-decoration:underline;
}

.hibah-arsip {
  margin-top:15px;
  text-align:right;
}
.hibah-arsip a {
  color:#007bff;
  font-weight:600;
  text-decoration:none;
}
.hibah-arsip a:hover {
  text-decoration:underline;
}


.info-hibah-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
  border-bottom: 2px solid #157c20;
  padding-bottom: 5px;
}

.info-hibah-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-hibah-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.info-hibah-item:last-child {
  border-bottom: none;
}

.info-hibah-item .thumb img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.info-hibah-item .content {
  flex: 1;
}

.info-hibah-item .content .title {
  font-size: 1rem;
  font-weight: 600;
  color: #157c20;
  text-decoration: none;
}

.info-hibah-item .content .title:hover {
  text-decoration: underline;
}

.info-hibah-item .meta {
  font-size: 0.8rem;
  color: #888;
  margin: 3px 0;
}

.info-hibah-item .desc {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.info-hibah-arsip {
  margin-top: 10px;
  text-align: right;
}

.info-hibah-arsip a {
  font-size: 0.9rem;
  color: #157c20;
  text-decoration: none;
}

.info-hibah-arsip a:hover {
  text-decoration: underline;
}

/* responsif */
@media (max-width: 600px) {
  .info-hibah-item {
    flex-direction: column;
  }
  .info-hibah-item .thumb img {
    width: 100%;
    height: auto;
  }
}



/* --- tampilan halaman detail di frontend --- */
.center-container {
  max-width: 70%;
  padding: 0 10px;
}

form .form-group input,
form .form-group select {
  width: 850px; /* lebar normal di desktop */
  max-width: 100%; /* batasi agar tidak meluber */
}

/* --- Select2 Responsif --- */
.select2-container {
  width: 850px !important;
  max-width: 100% !important;
}

.select2-selection {
  min-height: 38px;
}

.select2-selection__rendered {
  white-space: normal !important;
  line-height: 1.4;
}


/* --- Table Responsif --- */
.table-responsive {
  overflow-x: auto;
}

/* --- Responsif Tablet & HP --- */
@media (max-width: 992px) {
  .form-inline {
    flex-direction: column;
    align-items: stretch !important;
  }

.center-container {
  max-width: 100%;
  padding: 0 10px;
}

  .form-group {
    width: 100%;
  }

  .form-group input,
  .form-group select {
    width: 100% !important;
  }


/* Pastikan dropdown tidak ketutup elemen lain */
.select2-container {
  width: 100% !important;
  z-index: 9999 !important;
}

.select2-dropdown {
  z-index: 99999 !important;
}

/* Pastikan parent tidak sembunyikan dropdown */
.card-body, .form-group {
  overflow: visible !important;
}


  .btn {
    width: 100%;
    margin-top: 5px;
  }

  .table th, .table td {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 10px;
  }

  .table th, .table td {
    font-size: 0.8rem;
  }

  .btn i {
    margin-right: 3px;
  }
}

