/* === NAVBAR HEADER === */
.navbar .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .header-left img {
  width: 60px;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar .header-titles h1 {
  font-size: 18px;
  font-weight: 500;
  margin-left: -170px;
}

.navbar .header-titles h2 {
  font-size: 15px;
  font-weight: 500;
  margin-left: -170px;
}

/* === FILTER TABS === */
.filter-container {
  max-width: 600px;
  margin: -22px auto 40px;
  display: flex;
  background: var(--white);
  padding: 6px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
}

.filter-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filter-btn.active {
  background-color: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(91, 155, 213, 0.3);
}

/* === GRID KONTEN PRESTASI === */
.achievements-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Card Item */
.achievement-card {
  background-color: #f1f9ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Media Wrapper */
.card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e1e1e1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.achievement-card:hover .card-media img {
  transform: scale(1.05);
}

/* Badge Kategori */
.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.badge.akademik {
  background-color: var(--dark-blue);
}
.badge.non-akademik {
  background-color: var(--orange);
}

/* Detail Teks Konten */
.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.achievement-meta {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.achievement-meta i {
  color: var(--gold);
}

.achievement-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 12px;
  line-height: 1.4;
}

.achievement-desc {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .navbar .header-left img {
    width: 50px;
    height: auto;
  }
  .navbar .header-titles h1 {
    margin-left: -280px;
    font-size: 16px;
    font-weight: 400;
  }
  .navbar .header-titles h2 {
    margin-left: -280px;
    font-size: 14px;
    font-weight: 400;
  }
  .page-header {
    height: 270px;
  }
  .page-header h2 {
    font-size: 28px;
    margin: 30px 0;
  }
}

@media (max-width: 480px) {
  .navbar .header-left {
    display: flex;
    align-items: center;
  }
  .navbar .header-left img {
    margin-left: -35px;
    width: 35px;
    height: auto;
  }
  .navbar .header-titles h1 {
    margin-left: -100px;
    font-size: 10px;
    font-weight: 400;
  }
  .navbar .header-titles h2 {
    margin-left: -100px;
    font-size: 9px;
    font-weight: 400;
  }
  .page-header {
    height: 220px;
  }
  .page-header h2 {
    font-size: 18px;
    margin: -5px 0 20px 0;
  }
  .bar {
    margin-right: -10px;
  }
  .filter-container {
    margin: -22px auto 40px;
    display: flex;
    background: var(--white);
    padding: 6px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
  }

  .filter-btn {
    padding: 8px 10px;
    font-size: 12px;
    gap: 3px;
  }
}
