body{
    font-family: "Plus Jakarta Sans", sans-serif;
}




/* ==========SEC 1=============== */

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

.filter-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* ICON ROTATE */
.filter-icon {
  transition: transform 0.3s ease;
}

/* CONTENT */
.filter-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-form {
    display: flex;
}

.filter-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 200px 0 0 0;
}

.filter-box {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔑 */
  gap: 16px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.filter-label {
  min-width: 80px;
  font-weight: 600;
}

.filter-select {
  flex: 1;
  padding: 10px 44px 10px 14px; /* ruang icon */
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  background-color: #fff;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}


.filter-btn {
  min-width: 150px;
}

.btn-reset-filter{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(90deg, #f00000 0%, #690000 100%);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;

    gap: 8px;
    transition: 0.2s ease-in-out;
}

/* Efek hover seperti tombol premium */
.btn-reset-filter:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.custom-select-trigger span{
  padding: 0 12px 0 0;
}

.custom-select-trigger i{
  font-size: 12px;
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    z-index: 999;
}

.custom-select-search {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
}

.custom-select-options {
    max-height: 220px;
    overflow-y: auto;
}

.custom-select-options .option {
    padding: 8px 10px;
    cursor: pointer;
}

.custom-select-options .option:hover {
    background: #f5f5f5;
}


.multi-select {
  position: relative;
  flex: 1;
}

.multi-select-trigger {
  padding: 10px 14px;
  padding-right: 44px; /* samakan dengan select */
  border-radius: 10px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}

.multi-select-trigger i {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: #444444;
  transition: transform 0.3s ease;
}

/* rotate saat aktif */
.multi-select.active .multi-select-trigger i {
  transform: rotate(180deg);
}


.multi-select-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 10px 12px;
  display: none;
  z-index: 20;
  max-height: 250px;   /* batas tinggi dropdown */
  overflow-y: auto;   /* aktifkan scroll */
}

.multi-select-search {
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 6px;
    border: 1px solid #eee;
    border-radius: 4px;
    outline: none;
}

.multi-select-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  cursor: pointer;
}

.multi-select-trigger span {
  display: block;
  white-space: nowrap;       /* 🔑 1 baris */
  overflow: hidden;          /* 🔑 sembunyikan sisa */
  text-overflow: ellipsis;   /* 🔑 tambahin ... */
  max-width: 100%;
}




/* ============SEC 2================ */

.profile-section {
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.profile-grid {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.profile-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: 0.3s;
  align-items: stretch; /* 🔑 */
  cursor: pointer;
}

.profile-card:hover {
  border-color: #1e88e5;
}

.profile-card img {
  width: 130px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  object-fit: cover;      /* 🔑 biar tidak penyok */
  object-position: center;
  flex-shrink: 0;         /* 🔑 cegah ketarik flex */
}


.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔑 */
  height: 130px; /* 🔑 samakan dengan tinggi gambar */
}

.limit-text {
  max-width: 20ch;      /* 10 karakter */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* jadi ... */
}

.nama {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #555;
}

.profile-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.profile-card-link:hover {
    text-decoration: none;
}


.profile-info p {
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons i {
  font-size: 20px;
  cursor: pointer;
}

.bi-instagram { color: #E1306C; }
.bi-tiktok { color: #000; }
.bi-youtube { color: #FF0000; }
.bi-facebook { color: #1877F2; }
.bi-x { color: #000; }

/* =========Profile=========== */





/* ===================================
   TABLET VERSION (max-width: 991px)
=================================== */
@media (max-width: 991px) {

    body {
        height: auto;
        background-position: top center;
    }

    

    .desktop-only {
        display: none; /* hide desktop label */
    }

    .mobile-only {
        display: flex; /* show mobile header */
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
    }

    .filter-section{
        margin: 100px 0 0 0;
    }

    .filter-box {
        flex-direction: column;
        width: 95%;
    }

    .filter-content {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .filter-box.active .filter-content {
        display: flex;
    }

    .filter-box.active .filter-icon {
        transform: rotate(180deg);
    }

    .filter-select,
    .btn-nav-kontak {
        width: 100%;
    }

    .profile-section {
      width: 100%;
      padding: 40px 0;
      display: flex;
      justify-content: center;
    }

    .profile-grid {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)); /* 🔥 */
      gap: 10px;
    }

    .profile-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      min-width: 0;          /* 🔥 */
      box-sizing: border-box;
    }


    .limit-text {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    .profile-card img {
        width: 150px;
        height: 150px;
        border-radius: 14px;
        max-width: 100%;
    }


    .profile-info {
        height: auto;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        margin-top: 12px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 12px;
    }

    .multi-select{
        width: 100%;
    }
}

/* ===================================
   MOBILE VERSION (max-width: 767px)
=================================== */
@media (max-width: 767px) {

    body {
        height: auto;
        background-position: top center;
    }

    

    .desktop-only {
        display: none; /* hide desktop label */
    }

    .mobile-only {
        display: flex; /* show mobile header */
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
    }

    .filter-section{
        margin: 100px 0 0 0;
    }

    .filter-box {
        flex-direction: column;
        width: 95%;
    }

    .filter-content {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .filter-box.active .filter-content {
        display: flex;
    }

    .filter-box.active .filter-icon {
        transform: rotate(180deg);
    }

    .filter-form {
        display: flex;
        width: 100%;
    }


    .filter-select,
    .btn-nav-kontak {
        width: 100%;
    }

    .profile-section {
      width: 100%;
      padding: 40px 0;
      display: flex;
      justify-content: center;
    }

    .profile-grid {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* 🔥 */
      gap: 10px;
    }

    .profile-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 100%;
      min-width: 0;          /* 🔥 */
      box-sizing: border-box;
    }


    .limit-text {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    .profile-card img {
        width: 150px;
        height: 150px;
        border-radius: 14px;
        max-width: 100%;
    }


    .profile-info {
        height: auto;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        margin-top: 12px;
    }

    .social-icons {
        justify-content: center;
        margin-top: 12px;
    }

    .multi-select{
        width: 100%;
    }
}