.research-box {
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  height: 100%;
  text-align: justify;
}

.research-box h3 {
  font-size: 20px;
  color: #012970;
  margin-bottom: 10px;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.research-meta i {
  color: #012970;
}

.research-info {
  padding-left: 18px;
}

.research-info li {
  margin-bottom: 6px;
}

.badge.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge.ongoing {
  background: #ffc107;
  color: #000;
}

.badge.completed {
  background: #198754;
  color: #fff;
}

/* Filter Container */
.research-filters,
.publication-filters,
.teaching-filters, .community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* Button Style */
.filter-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #495057;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Hover */
.filter-btn:hover {
  background: #f0f4ff;
  color: #012970;
  border-color: #012970;
}

/* Active */
.filter-btn.active {
  background: #012970;
  color: #ffffff;
  border-color: #012970;
  box-shadow: 0 6px 18px rgba(1,41,112,0.35);
}

/* Mobile Friendly */
@media (max-width: 576px) {
  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}


.publication-badges {
  display: flex;
  gap: 12px;
}

.publication-badges .badge {
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge.scopus {
  background-color: #f48024;
}

.badge.sinta {
  background-color: #2c7be5;
}

.badge.scholar {
  background-color: #f45142;
}

.badge.orcid {
  background-color: #91c011;
}

.badge.researchgate {
  background-color: #00a79d;
}

.badge.wos {
  background-color: #5e2b97;
}

.publication-filters {
  margin-bottom: 25px;
}

.filter-btn {
  padding: 8px 15px;
  border: none;
  background: #e9ecef;
  border-radius: 20px;
  margin-right: 8px;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: #012970;
  color: #fff;
}

.publication-item {
  margin-bottom: 15px;
}

.teaching-box {
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  height: 100%;
  text-align: justify;
}

.teaching-box h3 {
  font-size: 20px;
  color: #012970;
  margin-bottom: 10px;
}

.teaching-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 12px;
}

.teaching-meta i {
  color: #012970;
}

.teaching-info {
  padding-left: 18px;
}

.teaching-info li {
  margin-bottom: 6px;
}

.community-box {
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  height: 100%;
  text-align: justify;
}

.community-box h3 {
  font-size: 20px;
  color: #012970;
  margin-bottom: 10px;
}

.community-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 12px;
}

.community-meta i {
  color: #012970;
}

.community-info {
  padding-left: 18px;
}

.community-info li {
  margin-bottom: 6px;
}

.pkm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.pkm-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.3px;
  display: inline-block;
  text-transform: uppercase;
}

/* DRTPM */
.pkm-badge.drtpm {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* Matching Fund */
.pkm-badge.matching {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  border: 1px solid #0d6efd;
}

/* Mandiri */
.pkm-badge.mandiri {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid #198754;
}

/* =====================================================
   Academic Filter Style (Non-destructive)
===================================================== */
.academic-filters {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.academic-filters li {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #ffffff;
  color: #495057;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.academic-filters li:hover {
  background: #f0f4ff;
  color: #012970;
  border-color: #012970;
}

.academic-filters li.filter-active {
  background: #012970;
  color: #ffffff;
  border-color: #012970;
  box-shadow: 0 6px 18px rgba(1,41,112,0.35);
}

/* Mobile friendly */
@media (max-width: 576px) {
  .academic-filters li {
    padding: 8px 14px;
    font-size: 13px;
  }
}

.loading {
  display: none;
  color: #555;
}

.error-message {
  display: none;
  color: #df1529;
  font-weight: 600;
}

.sent-message {
  display: none;
  color: #18d26e;
  font-weight: 600;
}

.publication-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
}

.publication-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 576px) {
  .publication-badges .badge {
    flex: 1 1 calc(50% - 10px); /* 2 kolom */
    justify-content: center;
    text-align: center;
  }
}

/* CSS untuk semua kotak skill */
.skill-box {
  display: flex;
  flex-direction: column; /* isi vertikal */
  justify-content: flex-start; /* mulai dari atas */
  height: auto; /* otomatis menyesuaikan panjang */
  width: 100%; /* tetap memenuhi kolom */
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  margin-bottom: 1rem;
}

/* optional: teks tengah-tengah header skill */
.skill-box h5 {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* optional: list */
.skill-box ul {
  padding-left: 1rem;
}

.workshop-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.workshop-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.workshop-box h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.workshop-box p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.skill-title {
  display: inline-block;
  border-bottom: 2px solid #0d6efd; /* underline warna primary Bootstrap */
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.4rem;
  margin-top: 10px;
}

.hero-btn {
  margin-top: 25px;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.3px;

  background-color: var(--accent-color);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease;
}

.hero-btn:hover {
  background-color: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transform: translateY(-1.5px);
}

.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Container list jadi grid */
#hki-patents .publication-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Item tidak perlu margin bawah lagi */
.publication-item {
  margin: 0;
}

/* Card HKI */
.hki-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
}

/* Hover efek */
.hki-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Meta */
.hki-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 6px;
}

/* Judul */
.hki-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.4;
}

/* Info bawah */
.hki-info {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Badge */
.hki-info .badge {
  background: #16a34a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Institusi */
.hki-info .institution {
  font-size: 0.8rem;
  color: #374151;
}

@media (max-width: 992px) {
  #hki-patents .publication-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #hki-patents .publication-list {
    grid-template-columns: 1fr;
  }
}

.editorial-board,
.reviewer-activities,
.conference-committees {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.activity-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
}

.activity-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Role (Editor, Reviewer, Committee) */
.activity-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
  margin-bottom: 6px;
}

/* Title */
.activity-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
  line-height: 1.4;
}

/* Meta */
.activity-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 992px) {
  .editorial-board,
  .reviewer-activities,
  .conference-committees {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .editorial-board,
  .reviewer-activities,
  .conference-committees {
    grid-template-columns: 1fr;
  }
}

.preview-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 22px;
  margin-top: 10px;
}

details {
  margin-top: 15px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  background-color: #f4f6fb;
  color: #2c3e50;
  transition: all 0.3s ease;
  border: 1px solid #e0e6ed;
}

details summary:hover {
  background-color: #e9edf5;
  color: #1a73e8;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: " +";
  font-weight: bold;
  margin-left: 6px;
  transition: 0.3s ease;
}

details[open] summary::after {
  content: " −";
}
