body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.blog-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px; /* diperpanjang dari 400px menjadi 600px */
    margin-bottom: 30px;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.search-bar:hover {
    border-color: #3a5372; /* warna border saat hover */
    box-shadow: 0 0 8px rgba(58, 83, 114, 0.3); /* efek glow halus */
}

.search-bar input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: transparent;
}

.search-bar i {
    color: #888;
    margin-right: 8px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #5a6d89;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* KARTU POST */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* pastikan fleksibel */
    min-height: 360px; /* opsional: batas bawah agar seragam */
    max-height: 480px; /* opsional: hindari terlalu panjang */
    transition: transform 0.2s ease;
}

.post-card-2 {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.post-card-2:hover {
    transform: translateY(-5px);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Konten dalam post */
.post-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    color: #3a5372;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.category-list a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: #007bff;
    color: white;
}


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ✨ ini wajib supaya sejajar */
  margin-bottom: 25px;
}

.section-header .section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif; /* ✨ pake Poppins */
  line-height: 1.2; /* biar tinggi teks ga terlalu besar */
}

.filter-btn {
  margin-left: 15px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 18px;  /* ukuran tombol pas */
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center; /* ✨ icon + text rata tengah */
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif; /* ✨ pake Poppins */
  color: #111;
  line-height: 1; /* biar pas sama tinggi button */
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background:  #0e0d38;
}





/* ✅ Category Buttons */
.category-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f1f1f1;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.category-btn:hover {
    background: #1A194D;
    color: white;
}
.category-btn.active {
    background: #1A194D;
    color: white;
}

/* ✅ Grid Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.post-card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.post-card:hover {
    transform: translateY(-4px);
}
.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.post-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.post-date, .post-author {
    font-size: 13px;
    color: #777;
}

.blog-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
}
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
}

.search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
}

.search-btn {
  padding: 8px 14px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.category-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}



.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 15px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.post-date {
  font-size: 13px;
  color: #666;
}

.post-title {
  font-size: 18px;
  font-weight: bold;
  margin: 6px 0;
}

.post-excerpt {
  font-size: 14px;
  color: #444;
  flex-grow: 1;
}

.post-author {
  font-size: 13px;
  color: #777;
  margin: 6px 0;
}

.post-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.like-form {
  margin: 0;
  padding: 0;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 25px;
}

.page-item {
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.page-item.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.page-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.filter-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  transition: all 0.3s ease;
}

.filter-btn i {
  font-size: 16px;
}

.filter-btn:hover {
  background: #f3f4f6;
  border-color: #bbb;
}



.post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    flex-grow: 1; /* bantu isi ruang jika perlu */
}

.post-author {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px;
    color: #aaa;
    margin-top: auto; /* dorong ke bawah bila perlu */
}

.iconwifi img {
    margin-left: 860px;
    margin-top: -60px;
}

.post-card-3 {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.post-card-3:hover {
    transform: translateY(-5px);
}

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ganti ke 3 kalau ingin 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .search-bar {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 400px; /* diperpanjang dari 400px menjadi 600px */
        margin-bottom: 30px;
        border: 1px solid #ccc;
        padding: 10px 10px;
        border-radius: 30px;
        background-color: #fff;
        transition: all 0.3s ease;
    }

    .iconwifi img {
        margin-left: 460px;
    }
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    flex-wrap: wrap; /* biar responsif di mobile */
}

form input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

form input[type="text"]:focus {
    border-color: #574ddb;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

form button {
    padding: 10px 18px;
    background-color: #18145e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #574ddb;
    transform: scale(1.05);
}

form select {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    background: #fff;
    min-width: 160px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

form select:focus {
    border-color: #574ddb;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Styling khusus untuk pagination Laravel */
nav[role="navigation"] {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Kecilkan panah bawaan (SVG) */
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
}

/* Rapiin link dan nomor */
nav[role="navigation"] .hidden {
    display: none; /* buang teks yang disembunyikan Tailwind */
}

nav[role="navigation"] span,
nav[role="navigation"] a {
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Aktif */
nav[role="navigation"] span[aria-current="page"] {
    background-color: #6c63ff;
    color: white;
    border-color: #6c63ff;
}

/* Hover efek */
nav[role="navigation"] a:hover {
    background-color: #f0f0f0;
}

/* Disabled */
nav[role="navigation"] span[aria-disabled="true"] {
    color: #ccc;
    pointer-events: none;
}
.kategori-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.kategori-btn {
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  background: #f9f9f9;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
}


/* === Blog Filter === */
.blog-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto 40px auto;
  max-width: 800px;
}

.blog-filter select,
.blog-filter input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.blog-filter button {
  background: #1d1a39;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
}

.blog-filter button:hover {
  background: #302b63;
}

/* === Posts Grid === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.post-date {
  font-size: 13px;
  color: #777;
}

.post-title {
  font-size: 18px;
  font-weight: bold;
  margin: 6px 0;
  color: #1d1a39;
}

.post-excerpt {
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.post-author {
  font-size: 13px;
  font-style: italic;
  color: #666;
  margin-bottom: 8px;
}

.post-meta {
  font-size: 13px;
  color: #555;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.category-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f9f9f9;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: #302b63;
  color: #302b63;
  border-color: #302b63;
}

.category-btn.active {
  background: #1d1a39;
  color: #fff;
  border-color: #1d1a39;
}

.search-form {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.category-btn {
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #ccc;
  transition: all .2s;
}

#allCategoryToggle:hover {
  background: #000;      /* hitam saat hover */
  color: #fff;           /* teks putih */
  border-color: #000;
  transform: translateY(-2px);
}



.category-btn.active {
  background: #000;
  color: #fff !important;
  border-color: #000;
}

.blog-filter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Search form sejajar */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search-form button {
  padding: 0.6rem 1.2rem;
  background-color: #0d0b33;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #2c2969;
}

/* Kategori (di bawah search bar) */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
}

.category-btn.active {
  background-color: #0d0b33;
  color: white;
  border-color: #0d0b33;
}
    /* 👉 Custom pagination style */
    .pagination-nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 80px; /* jarak dari post */
       margin: 30px 0 70px;
    }

    .pagination-nav a,
    .pagination-nav span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        font-size: 26px;
        font-weight: bold;
        border-radius: 50%;
        background: #fff;
        color: #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        transition: all 0.2s ease;
        text-decoration: none;
        border-color: #302b63;
    }

    .pagination-nav a:hover {
        background: #f1f1f1;
        border-color: #302b63;
    }

    .pagination-nav .disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

   .pagination-nav {
  display: flex;
  gap: 10px;
}

.pagination-nav .page-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  transition: all 0.3s ease;
}

.pagination-nav .page-item:hover {
  background: #f1f1f1;
}

.pagination-nav .active {
  background: #2c3e50;
  color: #fff;
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

.pagination-nav .disabled {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}
.post-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.post-meta button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
}





@media (max-width: 992px) {
  .post-card img {
    height: 160px;
  }
  .post-title {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
  .post-card img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post-card img {
    height: 200px;
  }
  .post-title {
    font-size: 15px;
  }
  .post-excerpt {
    font-size: 13px;
  }
}

/* === Tombol Filter (bersih & fix hover/active) === */
.filter-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  color: #111;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #f3f4f6;
  border-color: #302b63;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.filter-btn:active {
  background: #e5e7eb;
  border-color: #111;
  transform: scale(0.96); /* efek ditekan */
}

/* === Category Button === */
.category-btn {
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #333;
  transition: all .2s ease;
  
}

.category-btn:hover {
  background: #302b63;
  color: #fff;
  border-color: #302b63;
}

.category-btn.active {
  background: #1d1a39;
  color: #fff;
  border-color: #1d1a39;
}

/* === Category Button === */
.category-btn {
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #333;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Hover → cuma border biru dongker */
.category-btn:hover {
  border-color: #1d1a39;
  background: #f9f9f9;
  color: #111;
}

/* Active → full biru dongker */
.category-btn.active {
  background: #1d1a39;
  color: #fff;
  border-color: #1d1a39;
}
.category-btn:focus {
  outline: none;        /* hilangin garis biru bawaan */
  box-shadow: none;     /* hilangin glow biru */
}

.category-btn:active {
  border: 2px solid #0a0a33;   /* biru dongker tegas */
  background-color: #0a0a33;   /* biar kaya active */
  color: #fff;
  transform: scale(0.97);      /* efek tombol ditekan */
}

/* === UNTUK BUTTON FILTER & KATEGORI === */
.filter-button,
.category-btn {
  font-family: 'Poppins', sans-serif;
  border: 2px solid #ddd;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover effect */
.filter-button:hover,
.category-btn:hover {
  border-color: #0a0a33;  /* biru dongker saat hover */
}

/* Saat tombol dipencet (active) → cuma border yg biru dongker */
.filter-button:active,
.category-btn.active {
  background-color: #0a0a33 !important; 
  color: #fff !important;
  border-color: #0a0a33 !important;
}


/* Hilangkan highlight biru bawaan browser */
.filter-button:focus,
.category-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* ✅ Styling tombol filter */
.filter-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

/* ✅ Box filter */
.filter-box {
  margin-top: 15px;
  display: none;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
}

/* ✅ Search */
.search-container {
  margin-bottom: 15px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.search-btn {
  padding: 8px 14px;
  border: none;
  background:  #0a0a33;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* ✅ Kategori */
.category-list {
  margin-top: 10px;
}

.category-btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 14px;
}

.category-btn:hover {
  border-color: #0a0a33;
  color:  #0a0a33;
}

.category-btn.active {
  background-color:  #0a0a33;
  color: #fff;
  border-color:  #0a0a33;
}

/* ✅ Grid kategori muncul setelah klik Semua Kategori */
.extra-categories {
  margin-top: 15px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

/* responsive */
@media (max-width: 1024px) {
  .extra-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .extra-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tombol Filter */
.filter-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
  border-color: #0a1a4f;
}

/* Box Filter */
.filter-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
   margin-bottom: 30px; 
}

/* Search */
.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.search-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #0a1a4f;
  color: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
  background: #112266;
}

/* Kategori */
.category-wrapper {
  margin-top: 14px;
  justify-content: center;

}

.category-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 80px; /* biar seragam sama tombol Cari */
}

.category-btn:hover {
  border-color: #0a1a4f;
}

.category-btn.active {
  background: #0a1a4f;
  color: #fff;
  border-color: #0a1a4f;
  margin-top:-9px;
}

/* Semua kategori grid */
.category-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.hidden {
  display: none;
}

/* Wrapper kategori */
.category-wrapper {
  margin-top: 1rem;
  display: flex;
  justify-content: center; /* awalnya di tengah */
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* biar kalau kepanjangan turun ke bawah */
  transition: all 0.3s ease-in-out;
}

/* Saat aktif -> tombol pindah ke kiri */
.category-wrapper.active {
  justify-content: flex-start;
  justify-content: center;
}

/* Tombol toggle (Semua Kategori) */
.toggle-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.toggle-btn.active {
  background:  #0a1a4f;
  color: #fff;
  border-color:  #0a1a4f;
}

/* Daftar kategori sejajar ke samping */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-list.hidden {
  display: none;
}

/* Button kategori */
.category-btn {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
.category-btn:hover {
  border-color: #0a1a4f;
}
.category-btn.active {
  background:  #0a1a4f;
  color: white;
  border-color: #0a1a4f;
}

/* Hapus kotak background filter */
.filter-box {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Biar search bar keliatan clean */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  border: 1px solid #ddd;  /* tipis aja biar gak full kotak */
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
}

.search-btn {
  border: none;
  background: #007bff; /* biru misalnya */
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Kategori tanpa kotak wrapper */
.category-wrapper {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Biar kategori button tetep rapih */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.category-btn {
  background: #f1f1f1;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.category-btn:hover {
  background: #e0e0e0;
}

.category-btn.active {
  background: #007bff;
  color: #fff;
}
/* Pastikan tombol tidak berubah ukuran ketika ditekan */
#allCategoryToggle {
  display: inline-block;
  background: #f1f1f1;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;   /* samain padding dengan category-btn */
  cursor: pointer;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  line-height: normal; /* cegah jadi gepeng */
  box-sizing: border-box;
}

#allCategoryToggle:active {
  transform: none;          /* cegah mengecil */
  background: #e0e0e0;      /* efek klik */
}

#allCategoryToggle.active {
  background: #003366;      /* biru dongker */
  color: #fff;
}




.category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.category-header {
    margin-bottom: 10px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #000;
    color: #fff;
}

.category-btn.active {
    background: #0a0a3d;
    color: #fff;
}


