/* ===== FEATURES ITEM STYLING ===== */
.features-item-wrapper {
  transition: all 0.3s ease;
}

.features-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.features-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border-color: rgba(13, 110, 253, 0.2);
}

.features-item-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.features-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f4ff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.features-item:hover .features-icon {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.features-text {
  flex: 1;
  min-width: 0;
}

.features-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.features-text h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.features-text h3 a:hover {
  color: #0d6efd;
}

.badge-mhs,
.badge-non-mhs {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.badge-mhs {
  background: #e3f2fd;
  color: #0d47a1;
}

.badge-non-mhs {
  background: #f5f5f5;
  color: #616161;
}

/* ===== VIEW TOGGLE BUTTONS ===== */
.view-toggle .view-btn {
  border-radius: 0;
  padding: 6px 14px;
  font-size: 14px;
}

.view-toggle .view-btn:first-child {
  border-radius: 20px 0 0 20px;
}

.view-toggle .view-btn:last-child {
  border-radius: 0 20px 20px 0;
}

.view-toggle .view-btn.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.view-toggle .view-btn:hover:not(.active) {
  background-color: #e9ecef;
}

/* ===== FILTER BUTTONS ===== */
.filter-controls .filter-btn {
  margin: 0 4px 4px 0;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.filter-controls .filter-btn.active {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.filter-controls .filter-btn:hover:not(.active) {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

/* ===== SEARCH INPUT ===== */
.search-input {
  border-radius: 20px;
  padding: 6px 18px;
  border: 1.5px solid #e9ecef;
  transition: all 0.3s ease;
  font-size: 14px;
}

.search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* ===== LIST VIEW ===== */
.features-container.list-view .features-item-wrapper {
  flex: 0 0 100%;
  max-width: 100%;
}

.features-container.list-view .features-item {
  padding: 15px 20px;
}

.features-container.list-view .features-item-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.features-container.list-view .features-icon {
  width: 50px;
  height: 50px;
}

.features-container.list-view .features-text h3 {
  font-size: 18px;
}

/* ===== HIDE FILTERED ITEMS ===== */
.features-item-wrapper.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .features-item-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .features-text h3 {
    font-size: 14px;
  }
  
  .features-icon {
    width: 50px;
    height: 50px;
  }
  
  .features-item {
    padding: 15px;
  }
  
  .filter-controls {
    text-align: center;
  }
  
  .view-toggle {
    justify-content: center;
    display: flex;
  }
  
  .features-container.list-view .features-item-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .features-item-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== ANIMATIONS ===== */
.features-item-wrapper {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delay sudah diatur via data-aos-delay */