/* ====== Topbar ====== */
.topbar {
  background-color: #003c46;
  color: #fff;
  font-size: 14px;
  padding: 5px 20px;
}


/* ====== Navbar ====== */
.navbar {
  background: #003399 !important;
  transition: all 0.3s ease-in-out;
  z-index: 1030;
  margin-left: -15px; /* geser navbar ke kiri */
}

.navbar-brand img {
  height: auto;
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-height: 40px;
  }
}


/* Warna default link */
.nav-link {
  font-weight: 500;
  color: #FFFFFF !important; 
  transition: color 0.3s ease-in-out;
}

/* Warna saat hover */
.nav-link:hover {
  color: #FFD700 !important; 
}

/* Link aktif */
.navbar .navbar-nav .nav-link.active {
  color: #FFFFFF !important; 
  background-color: #FFD700 !important; 
  border-radius: 6px;
  font-weight: 700;
  padding: 8px 14px;
  transition: all 0.3s ease;
}


/* Hover pada link aktif */
.navbar .navbar-nav .nav-link.active:hover {
  background-color: #ffcc00 !important; 
  color: #003399 !important;
}

/* Tombol navbar di mobile */
.navbar-toggler {
  border-color: #FFD700 !important;
}

.navbar-toggler-icon {
  filter: invert(81%) sepia(66%) saturate(594%) hue-rotate(12deg) brightness(102%) contrast(102%);
}

.nav-link {
  font-weight: 500;
  color: #FFFFFF !important; 
  transition: color 0.3s ease-in-out;
  white-space: nowrap; /* >>> Tambahkan baris ini <<< */
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.navbar .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

#navbarResponsive {
    margin-left: 0 !important;
}
.navbar-brand img {
    margin-left: 0 !important;
}




/* ====== Dropdown ====== */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 9999 !important;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 8px;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  display: none;
  opacity: 0;
  visibility: hidden;
}

.dropdown-menu .dropdown-item {
  padding: 10px 16px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #003c46;
  color: #fff;
}

/* Dropdown muncul saat hover (desktop) */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  margin-top: 0;
}
.navbar.scrolled .nav-link {
  color: #FFFFFF !important; 
}

.navbar.scrolled .nav-link.active {
  color: #FFFFFF !important;
  background-color: #FFD700 !important; 
}



/* ====== Mobile Navbar Adjustments ====== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #003399; /* Ensure background for collapsed menu */
    padding: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ====== Kategori Card ====== */
.kategori-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  background-color: #E6BE00; 
}

.kategori-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  background-color: #FFD700; 
}

.kategori-card img {
  transition: transform 0.3s ease;
}

.kategori-card:hover img {
  transform: scale(1.1);
}


/* ====== Body Spacing ====== */
body {
  padding-top: 80px; 
}

/* ====== Berita Carousel Arrows ====== */
#beritaCarousel .carousel-control-prev,
#beritaCarousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 10;
}

#beritaCarousel .custom-prev,
#beritaCarousel .custom-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
}

#beritaCarousel .carousel-control-prev {
  left: 10px;  
}

#beritaCarousel .carousel-control-next {
  right: 10px; 
}


.contact-info .info-item {
  display: flex;
  align-items: flex-start; 
  margin-bottom: 14px;
}

.contact-info .info-item i {
  flex: 0 0 22px;     
  font-size: 20px;
  margin-right: 10px;
  margin-top: 2px;      
  color: #28a745;
}

.contact-info .info-item div {
  line-height: 1.6;
  color: #333;
  max-width: 350px;
}

.sejarah-section {
  background: #FFF8DC;
  padding: 80px 0;
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  font-size: 100px;
  color: rgba(0, 60, 70, 0.1); 
  animation: float 8s ease-in-out infinite;
}

/* variasi posisi & delay */
.bg-icon:nth-child(1) { top: 20%; left: 15%; }
.bg-icon:nth-child(2) { top: 50%; left: 70%; animation-delay: 2s; }
.bg-icon:nth-child(3) { top: 80%; left: 40%; animation-delay: 4s; }

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-25px); }
  100% { transform: translateY(0); }
}

/* ====== Visi Misi Section ====== */
.visimisi-section {
  background: #FFF4B0;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

section p,
section ol li {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}



/* Ornamen bergerak */
.ornament {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
}

.ornament.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #003c46;
  top: 10%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.ornament.zigzag {
  width: 120px;
  height: 20px;
  background: repeating-linear-gradient(
    -45deg,
    #003c46,
    #003c46 10px,
    transparent 10px,
    transparent 20px
  );
  top: 50%;
  right: 10%;
  animation: float 10s ease-in-out infinite;
  animation-delay: 2s;
}

.ornament.dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(#003c46 2px, transparent 2px);
  background-size: 20px 20px;
  bottom: 5%;
  left: 40%;
  animation: float 12s ease-in-out infinite;
  animation-delay: 4s;
}

/* ====== Animasi Float ====== */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-25px); }
  100% { transform: translateY(0); }
}

.struktur-section {
  padding-top: 120px; /* kasih jarak supaya judul keliatan */
}

/* ====== Struktur Organisasi Fit to Screen ====== */

.tree, .tree ul, .tree li {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.tree ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: space-between; /* isi rata */
  flex-wrap: nowrap;              /* tetap dalam satu baris */
  width: 100%;
}

/* setiap item kolom */
.tree li {
  position: relative;
  text-align: center;
  padding: 20px 5px 0 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* biar semua anak bagi lebar rata */
}

/* garis horizontal antar sibling */
.tree li::before,
.tree li::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 20px;
  border-top: 2px solid #cfcfcf;
}

.tree li::before { right: 50%; }
.tree li::after  { left: 50%; }

.tree li:only-child::before,
.tree li:only-child::after {
  display: none;
}
.tree li:only-child { padding-top: 0; }

.tree li:first-child::before { border: none; }
.tree li:last-child::after   { border: none; }

/* garis vertikal parent -> anak */
.tree li > ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px solid #cfcfcf;
  width: 0;
  height: 20px;
}

/* kotak node (sama semua) */
.tree .box {
  display: flex;
  flex-direction: column;   /* isi ditumpuk ke bawah */
  align-items: center;      /* rata tengah horizontal */
  justify-content: center;  /* rata tengah vertical */
  text-align: center;

  width: 240px;
  padding: 12px;

  border: 2px solid #003c46;
  border-radius: 8px;
  background: #ffffff;
  color: #003c46;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* styling jabatan */
.tree .box .jabatan {
  font-weight: 600;
  margin-bottom: 8px;   /* jarak ke nama */
  display: block;
}

/* styling nama */
.tree .box .nama {
  font-weight: 500;
  font-style: italic;
  display: block;
}



.tree .box:hover {
  transform: translateY(-4px);
  background: #003c46;
  color: #fff;
}

/* responsive mobile */
@media (max-width: 767px) {
  .tree ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .tree li::before,
  .tree li::after,
  .tree li > ul::before {
    display: none;
  }
  .tree .box {
    min-width: 200px;
    max-width: 90%;
  }
}

/* Kotak Ketua lebih kecil & beda warna */
.tree .box.ketua {
  min-width: 180px;
  max-width: 180px;
  font-size: 15px;
  background: #003c46;
  color: #fff;
}

.tree-wrapper {
  overflow-x: auto;   /* scroll horizontal kalau kepanjangan */
  overflow-y: visible;
  padding: 40px 60px;
  width: 100%;
}

.calendar {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.calendar-header {
  background: #003c46;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.calendar-table th {
  background: #eaeaea;
}

.done {
  background: #28a745;
  color: #fff;
  font-weight: bold;
}

.ongoing {
  background: #ffc107;
  color: #000;
  font-weight: bold;
}

.upcoming {
  background: #17a2b8;
  color: #fff;
  font-weight: bold;
}
.filled { background:#28a745 !important; color:#fff; }
.pink { background:#e83e8c !important; color:#fff; }
.blue { background:#0d6efd !important; color:#fff; }
.purple { background:#6f42c1 !important; color:#fff; }
.red { background:#dc3545 !important; color:#fff; }
.brown { background:#795548 !important; color:#fff; }
.darkpurple { background:#4b0082 !important; color:#fff; }
.orange { background:#fd7e14 !important; color:#fff; }
.green { background:#dde4e3 !important; color:#fff; }
.lightblue { background:#54d8f0 !important; color:#fff; }
.lightpink { background:#f08ab9 !important; color:#fff; }
.darkbrown { background:#654321 !important; color:#fff; }
.darkblue { background:#00008B !important; color:#fff; }
.lightgreen { background:#49e904 !important; color:#fff; }
.darkgreen { background:#103101 !important; color:#fff; }

.done {
  background: #28a745;
  color: #fff;
  font-weight: bold;
  text-align: center;
}


.table th.nama-kegiatan,
.table td.nama-kegiatan {
  min-width: 350px;  
  text-align: left;  
  white-space: normal; 
}

.card-img-top {
  width: 100%;
  height: 220px; 
  object-fit: cover; 
  border-top-left-radius: 0.375rem; 
  border-top-right-radius: 0.375rem;
}

.contact-section {
  background-color: #fdfbf7;
  padding: 60px 0;
}

.contact-card {
  background: #FFF4B0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 30px;
  color: #0d6efd; 
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ====== PORNAS ====== */

/* ====== JUDUL HALAMAN ====== */
.page-title {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  text-transform: none;
  margin-bottom: 20px;
}

.page-section-title {
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0 10px;
}

/* ====== TABEL ====== */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  border: 1px solid #ccc; 
}

.custom-table th, 
.custom-table td {
  border: 1px solid #ccc; 
  padding: 10px 14px;
}

.custom-table th {
  background-color: #707070;
  color: #fff;
  font-weight: 600;
}

.custom-table tr:nth-child(even) {
  background-color: #fafafa;
}

.custom-table tr:hover {
  background-color: #f1f1f1;
  transition: 0.2s ease;
}

.custom-table td:nth-child(2),
.custom-table th:nth-child(2) {
  text-align: left;
}


.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ====== LOGIN PAGE ====== */
body.login-page {
  background: linear-gradient(135deg, #003c46, #008c9e);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
}

.login-container {
  background: #fff;
  padding: 40px 35px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-title {
  font-weight: 700;
  margin-bottom: 25px;
  color: #003c46;
  font-size: 22px;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.login-form input:focus {
  border-color: #008c9e;
  box-shadow: 0 0 4px rgba(0,140,158,0.3);
}

.login-form button {
  width: 100%;
  padding: 10px 0;
  background-color: #008c9e;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.login-form button:hover {
  background-color: #007481;
}

/* ====== ADMIN DASHBOARD ====== */
body.admin-dashboard {
  font-family: 'Poppins', sans-serif;
  display: flex;
  background: #FFFFE0;
  margin: 0;
}

/* Sidebar */
.sidebar {
  width: 230px;
  background: #003c46;
  color: #fff;
  height: 100vh;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 15px;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: #008c9e;
}

/* Main content */
.main-content {
  margin-left: 250px;
  padding: 40px 50px;
  flex: 1;
}

.dashboard-header h1 {
  font-size: 24px;
  color: #003c46;
  margin-bottom: 5px;
}

.dashboard-header p {
  color: #666;
  margin-bottom: 30px;
}

/* Dashboard cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.dashboard-cards .card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.dashboard-cards .card h3 {
  color: #003c46;
  font-size: 18px;
  margin-bottom: 10px;
}

.dashboard-cards .card p {
  color: #555;
  font-size: 14px;
  margin-bottom: 20px;
}

.dashboard-cards .btn {
  background: #008c9e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
  font-weight: 600;
}

.dashboard-cards .btn:hover {
  background: #006f7d;
}

/* ====== HALAMAN ADMIN BERITA ====== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header .btn {
  background: #008c9e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.dashboard-header .btn:hover {
  background: #006f7d;
}

/* Table style */
.table-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #eee;
  padding: 12px 10px;
  text-align: left;
}

.admin-table th {
  background: #003c46;
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
}

.admin-table tr:hover {
  background: #f8f8f8;
}

.thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.btn-edit,
.btn-delete {
  text-decoration: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 5px;
  transition: background 0.3s;
}

.btn-edit {
  background: #ffc107;
}

.btn-edit:hover {
  background: #e0a800;
}

.btn-delete {
  background: #dc3545;
}

.btn-delete:hover {
  background: #b52a36;
}

.no-data {
  text-align: center;
  color: #777;
  font-style: italic;
  padding: 20px;
}

/* ==========================================================
   FORM BERITA (Admin)
   ========================================================== */
.form-container {
  max-width: 700px;
  background: #fff;
  margin: 50px auto;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-container h2 {
  text-align: center;
  color: #003c46;
  margin-bottom: 25px;
}

.form-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-container input[type="text"],
.form-container textarea,
.form-container input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.form-container button.btn {
  background: #008c9e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.form-container button.btn:hover {
  background: #006f7d;
}

.btn-secondary {
  background: #ccc;
  color: #000;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #b0b0b0;
}

/* ==========================================================
   HALAMAN BERITA (User)
   ========================================================== */
.page-header {
  text-align: center;
  margin: 40px 0 20px;
}

.page-header h2 {
  color: #003c46;
  font-size: 28px;
  font-weight: 700;
}

.page-header p {
  color: #555;
  font-size: 15px;
}

/* ====== CONTAINER BERITA ====== */
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 30px;
  max-width: 1200px;
  margin: 0 auto; /* biar halaman tetap di tengah, tapi grid-nya mulai dari kiri */
  justify-content: start; /* ⬅️ ubah dari 'center' jadi 'start' */
}

/* ====== CARD BERITA ====== */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 280px;
 
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.news-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-content {
  padding: 12px 16px;
}

.news-content h3 {
  font-size: 16px;
  color: #003c46;
  margin-bottom: 6px;
  font-weight: 700;
}

.news-date {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
  display: block;
}

.news-content p {
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.btn-readmore {
  display: inline-block;
  background: #008c9e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.3s ease;
}

.btn-readmore:hover {
  background: #006f7d;
}

/* ====== RESPONSIVE UNTUK HP ====== */
@media (max-width: 600px) {
  .news-container {
    grid-template-columns: 1fr;
    padding: 10px 15px;
  }

  .news-img {
    height: 180px;
  }

  .news-card {
    max-width: 100%;
  }
}


/* ==========================================================
   DETAIL BERITA
   ========================================================== */
.detail-container {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.detail-container h2 {
  color: #003c46;
  margin-bottom: 10px;
  text-align: center;
}

.detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

.detail-content {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}

.btn-back {
  display: inline-block;
  margin-top: 20px;
  background: #ccc;
  color: #000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-back:hover {
  background: #b0b0b0;
}

/* ===== WEBINAR SECTION ===== */
.webinar-section {
  background: #f9f9f9;
  padding: 60px 0;
}

.page-title {
  text-align: center;
  font-weight: 700;
  color: #003c46;
  margin-bottom: 40px;
}

/* Container Grid */
.webinar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card Style */
.webinar-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.webinar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Gambar */
.webinar-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Isi Card */
.webinar-info {
  padding: 18px;
}

.webinar-info h4 {
  font-size: 18px;
  color: #003c46;
  font-weight: 600;
  margin-bottom: 8px;
}

.webinar-info p {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

.webinar-info i {
  color: #007b7f;
  margin-right: 6px;
}

/* Tombol Gabung */
.btn-join {
  display: inline-block;
  background-color: #007b7f;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-join:hover {
  background-color: #005f63;
  color: #fff;
}

/* Responsif */
@media (max-width: 576px) {
  .webinar-info h4 {
    font-size: 16px;
  }
  .webinar-info p {
    font-size: 13px;
  }
  .btn-join {
    width: 100%;
  }
}

.navbar,
.navbar.scrolled {
  background-color: #003399 !important;
}

.navbar .nav-link,
.navbar.scrolled .nav-link {
  color: #ffffff !important;
}

.navbar .nav-link.active,
.navbar.scrolled .nav-link.active {
  background-color: #FFD700 !important;
  color: #003399 !important; 
}


.navbar-brand img {
  margin-left: -90px !important;   /* geser lebih ke kiri */
}

.navbar .container {
  display: flex;
  align-items: center; /* meratakan logo & menu secara vertikal */
}


.navbar-brand {
  margin-left: -15px !important; ; /* shift navbar brand (logo) 15px left to create more space for menu */
  padding: 0 10px; /* add some horizontal padding */
}

.navbar-brand img {
  height: 60px !important;
  width: auto !important;
  object-fit: contain;
  max-width: none;
  max-height: 60px !important;
  border-radius: 12px;
  vertical-align: middle;
  transition: all 0.3s ease; 
}

.page-heading .text-content h2 {
    text-transform: none !important;
}


@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 45px !important; /* reduce max height on tablets and smaller */
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .navbar {
    margin-left: 0; /* reset navbar shift to prevent logo cutoff */
  }
  .navbar-brand img {
    max-height: 35px !important; /* further reduce size on small mobile */
    height: auto !important;
    width: auto !important;
    margin-left: 0 !important; /* reset negative margin to prevent cutoff */
  }
}

/* Warna default link navbar */
.navbar .nav-link {
  color: #ffffff !important; /* Putih */
  transition: color 0.3s ease-in-out;
}

/* Warna saat hover */
.navbar .nav-link:hover,
.navbar .nav-item:hover > .nav-link {
  color: #FFD700 !important; /* Kuning emas */
}

/* Navbar dengan background batik */
.navbar {
  background: url("../images/batik1.png") center/cover no-repeat !important;
  position: relative;
}

.navbar .nav-link {
  color: #fff !important;
}

.navbar .nav-link:hover {
  color: #ffd700 !important; /* efek hover keemasan */
}
.edaran-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.card .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card h3 {
  color: #003399;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.card p {
  color: #555;
  font-size: 14px;
  margin: 0 0 15px;
  line-height: 1.5;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #003399;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-download:hover {
  background: #001f66;
}

.navbar-brand {
  margin-left: -15px; /* shift navbar brand (logo) 15px left to create more space for menu */
  padding: 0 10px; /* add some horizontal padding */
}


.page-heading .text-content h2 {
    text-transform: none !important;
}

.artikel-detail-img {
    width: 100%;
    max-width: 200px;   /* batas maksimal lebar gambar lebih kecil */
    height: auto;
    display: block;
    margin: 0 auto;     /* agar gambar tetap center */
    border-radius: 10px;
}




