/* === 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;
}

/* === GRID FASILITAS === */
.facility-container {
  max-width: 1200px;
  margin: 50px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Card Fasilitas */
.facility-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Gambar Fasilitas */
.facility-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-img {
  transform: scale(1.05);
}

.img-wrapper {
  overflow: hidden;
  position: relative;
}

/* Detail Teks */
.facility-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.facility-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.facility-title i {
  color: var(--primary-blue);
}

.facility-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-detail {
  margin-top: 15px;
  font-size: 13px;
  color: var(--primary-blue);
  font-weight: bold;
  text-align: right;
}

/* === MODAL POPUP INTERAKTIF === */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--white);
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ff4d4d;
}

.modal-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.modal-body {
  padding: 25px;
}

.modal-title {
  color: #1b16aa;
  font-size: 22px;
  margin-bottom: 12px;
}

.modal-text {
  color: #131327;
  font-size: 15px;
  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;
  }
  .page-header p {
    font-size: 18px;
    margin-bottom: 5px;
  }
}

@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: 16px;
    margin: -5px 0 20px 0;
  }
  .page-header p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .bar {
    margin-right: -10px;
  }
}
