/* --- Global & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
}

/* --- Header Styling --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2.5%;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-left .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-role { 
  font-size: 1rem; 
  color: #555; 
}

.btn-contact {
  padding: 10px 20px;
  background-color: #00bfff;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-contact:hover { 
  background-color: #009acd; 
}

/* --- Hamburger Menu Button --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: #222;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.hamburger:hover {
  background-color: #f0f0f0;
}

/* --- MAIN LAYOUT WITH SIDEBAR --- */
.main-layout {
  display: flex;
  height: calc(100vh - 70px);
}

/* --- Sidebar Base Styling --- */
.sidebar {
  width: 260px;
  background-color: #f5f6fa;
  overflow-y: auto;
  color: #333;
}

/* --- Sidebar Header --- */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #222;
  text-decoration: none;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #555;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sidebar-close:hover {
  background-color: #e0e0e0;
}

/* --- Sidebar Navigation --- */
.sidebar-nav {
  padding: 20px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  margin-bottom: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav li a i {
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav li a:hover {
  background-color: #e0e1e6;
  color: #007bff;
}

.sidebar-nav li a.active {
  background-color: #00bfff;
  color: white;
  font-weight: 600;
}

/* --- Sidebar Static (Desktop) --- */
.sidebar-static {
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* --- Sidebar Overlay (Mobile) --- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: -260px;
  height: 100%;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1001;
}

.sidebar-overlay.active {
  left: 0;
}

/* --- Main Content Area --- */
.main-content {
  flex-grow: 1;
  overflow-y: auto;
  background-color: #f5f6fa;
}

/* === RESPONSIVE BEHAVIOR === */
/* Desktop: Show static sidebar, hide hamburger and overlay */
@media screen and (min-width: 993px) {
  .hamburger {
    display: none !important;
  }
  
  .sidebar-static {
    display: block;
  }
  
  .sidebar-overlay {
    display: none !important;
  }
  
  .sidebar-close {
    display: none;
  }
  
  /* Hide sidebar header (logo) on desktop */
  .sidebar-static .sidebar-header {
    display: none;
  }
  
  
}

/* Mobile: Show hamburger and overlay sidebar, hide static */
@media screen and (max-width: 992px) {
  .hamburger {
    display: inline-flex;
  }
  
  .sidebar-static {
    display: none !important;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  /* Show sidebar header (logo) on mobile */
  .sidebar-overlay .sidebar-header {
    display: flex;
  }
  
  /* Auto-scaling header elements */
  .header {
    height: max(50px, 8vw);
    padding: 1.5vw 3vw;
  }
  
  .header-left {
    gap: 2vw;
  }
  
  .header-left .logo {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .header-right {
    gap: 2.5vw;
  }
  
  .header-role {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }
  
  .btn-contact {
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
    font-size: clamp(0.8rem, 3vw, 1rem);
  }
  
  .hamburger {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    padding: clamp(0.25rem, 1vw, 0.5rem);
  }
}

/* === HALAMAN BERANDA (INDEX.HTML) === */
.timeline-section {
  padding: 30px;
}

.timeline-container {
  display: block;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.timeline-container .splide {
  width: 100%;
}

.splide__slide img {
  width: 100%;
  display: block;
  aspect-ratio: 3200 / 1000;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-extra-links { 
  display: flex; 
  gap: 20px; 
  justify-content: space-between; 
  padding: 30px; 
  flex-wrap: wrap; 
}

.link-card { 
  background-color: white; 
  border-radius: 16px; 
  padding: 20px; 
  flex: 1 1 48%; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
  text-align: left; 
  transition: transform 0.2s ease; 
}

.link-card:hover { 
  transform: translateY(-3px); 
}

.link-card h3 { 
  font-size: 1.2rem; 
  color: #007bff; 
  margin-bottom: 10px; 
}

.link-card p { 
  font-size: 0.95rem; 
  color: #555; 
  margin-bottom: 15px; 
}

.link-btn { 
  display: inline-block; 
  background-color: #e9f4ff; 
  color: #007bff; 
  border: 1px solid #b3dcff; 
  padding: 8px 16px; 
  border-radius: 10px; 
  font-weight: 600; 
  text-decoration: none; 
  transition: background-color 0.3s ease, color 0.3s ease; 
}

.link-btn:hover { 
  background-color: #007bff; 
  color: white; 
}

.search-section { 
  padding: 30px; 
  background-color: #fff; 
  border-radius: 16px; 
  margin: 0 30px 0px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

.search-section h3 { 
  text-align: center; 
  font-weight: 600; 
  margin-bottom: 15px; 
}

.search-bar { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background-color: #ffffff; 
  border-radius: 12px; 
  padding: 10px 15px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  border: 1px solid #eee; 
}

.search-input { 
  flex: 1; 
  border: none; 
  outline: none; 
  font-size: 1rem; 
  color: #333; 
  background: #f3f3f3; 
  padding: 10px 15px; 
  border-radius: 12px; 
}

.search-bar .search-btn { 
  background: none; 
  border: none; 
  font-size: 1.1rem; 
  cursor: pointer; 
  color: #555; 
}

.search-note { 
  font-size: 0.85rem; 
  color: #444; 
  text-align: center; 
  margin-top: 20px; 
  line-height: 1.6; 
}

.search-note span { 
  background-color: #e0f2ff; 
  color: #007bff; 
  font-weight: 500; 
  padding: 2px 8px; 
  border-radius: 8px; 
  font-size: 13px; 
  display: inline-block; 
}

.faq-section { 
  padding: 0 30px 40px; 
}

.faq-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px; 
}

.faq-card { 
  background-color: white; 
  padding: 20px; 
  border-radius: 16px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
}

.faq-user { 
  font-weight: 600; 
  color: #333; 
  margin-bottom: 10px; 
}

.faq-question { 
  font-size: 0.95rem; 
  color: #444; 
  margin-bottom: 12px; 
}

.faq-label { 
  font-weight: bold; 
  margin: 12px 0 5px; 
}

.faq-answer {
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
  line-height: 1.2em;
  color: #555;
  font-size: 0.9rem;
}

.faq-answer.collapsed {
  max-height: 4.8em;
}

.faq-answer.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}

.faq-answer:not(.collapsed) {
  max-height: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 0;
  text-align: left;
  display: block;
}

.faq-card hr { 
  border: none; 
  border-top: 1px solid #eee; 
  margin: 10px 0; 
}

.faq-tags { 
  margin: 10px 0; 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.tag { 
  padding: 4px 10px; 
  background-color: #e9f4ff; 
  color: #007bff; 
  border: 1px solid #b3dcff; 
  border-radius: 12px; 
  font-size: 0.8rem; 
  font-weight: 500; 
}

.pagination { 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  margin-top: 20px; 
  flex-wrap: wrap; 
}

.pagination button { 
  padding: 8px 12px; 
  border-radius: 8px; 
  background-color: #e9f4ff; 
  color: #007bff; 
  border: 1px solid #b3dcff; 
  cursor: pointer; 
  font-weight: 500; 
}

.pagination button.active, 
.pagination button:hover { 
  background-color: #007bff; 
  color: white; 
}

/* === HALAMAN REKOMENDASI UMUM (Caffe, ATK, dll) === */
.page-header { 
  padding: 30px; 
  background-color: #F5F6FA;  
  margin-bottom: 0px; 
}

.page-header h1 { 
  font-size: 2rem; 
  font-weight: 600; 
  margin-bottom: 5px; 
}

.page-header p { 
  font-size: 1rem; 
  color: #666; 
}

.recommendation-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 20px; 
  padding: 0 30px 30px; 
}

.reco-card { 
  background-color: #fff; 
  border-radius: 16px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.reco-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); 
}

.reco-card-img { 
  width: 100%; 
  height: 180px; 
  object-fit: cover; 
}

.reco-card-body { 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  flex-grow: 1; 
}

.reco-card-body h3 { 
  font-size: 1.25rem; 
  font-weight: 600; 
  margin-bottom: 10px; 
}

.reco-card-description { 
  font-size: 0.95rem; 
  color: #555; 
  line-height: 1.5; 
  margin-bottom: 15px; 
  flex-grow: 1; 
}

.reco-card-tags { 
  margin-bottom: 20px; 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
}

.reco-card-tags .tag { 
  font-size: 0.75rem; 
}

.reco-card-btn { 
  display: inline-block; 
  align-self: flex-start; 
  background-color: #00bfff; 
  color: white; 
  padding: 10px 18px; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 500; 
  transition: background-color 0.2s ease; 
}

.reco-card-btn:hover { 
  background-color: #009acd; 
}

.reco-card-btn i { 
  margin-left: 8px; 
}

/* === HALAMAN KOS-KOSAN SPESIFIK === */
.filter-bar { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 15px; 
  align-items: center; 
  padding: 20px 30px; 
  background-color: #fff; 
  margin: 0 30px 30px; 
  border-bottom: 1px solid #e0e0e0; 
  border-radius: 16px; 
}

.filter-search { 
  display: flex; 
  align-items: center; 
  background-color: #f3f3f3; 
  border-radius: 8px; 
  padding: 0 12px; 
  flex-grow: 1; 
}

.filter-search i { 
  color: #888; 
}

.filter-search input { 
  border: none; 
  background: none; 
  outline: none; 
  padding: 12px 10px; 
  font-size: 1rem; 
  width: 100%; 
}

.filter-btn-group { 
  display: flex; 
  gap: 5px; 
}

.filter-bar .filter-btn { 
  padding: 10px 18px; 
  border: 1px solid #ddd; 
  background-color: #fff; 
  color: #333; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 500; 
  transition: all 0.5;
  
}

/* === CONTRIBUTOR PAGE STYLES === */

/* Header Role Link */
.header-role {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-role:hover {
  color: #007bff;
}

/* Contributor Hero Section */
.contributor-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.contributor-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contributor-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contributor Section */
.contributor-section {
  padding: 60px 30px;
  background-color: #f8f9fa;
}

.contributor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contributor Cards */
.contributor-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.contributor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.contributor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Contributor Avatar */
.contributor-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Contributor Info */
.contributor-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contributor-nrp {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.contributor-role {
  font-size: 1rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 20px;
}

.contributor-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contributor-tags .tag {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border: 1px solid #90caf9;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Call to Action Section */
.contributor-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.cta-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .contributor-hero {
    padding: 40px 20px;
  }
  
  .contributor-hero-content h1 {
    font-size: 2rem;
  }
  
  .contributor-section {
    padding: 40px 20px;
  }
  
  .contributor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contributor-card {
    padding: 25px;
  }
  
  .contributor-cta {
    padding: 40px 20px;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
}

/* Target untuk iPhone SE (320px & 375px) dan perangkat sempit lainnya */
@media screen and (max-width: 480px) {

  /* --- Penyesuaian Header --- */
  .header {
    padding: 0 15px; /* Mengurangi padding horizontal */
  }

  .header-left .logo {
    font-size: 1.2rem; /* Ukuran logo sedikit lebih kecil */
  }

  .header-right {
    gap: 10px; /* Mengurangi jarak antar elemen kanan */
  }

  .btn-contact {
    padding: 8px 12px; /* Tombol lebih kecil */
    font-size: 0.85rem;
  }

  /* --- Penyesuaian Konten Utama --- */
  .main-content {
    padding: 20px 15px; /* Mengurangi padding konten utama */
  }

  /* --- Penyesuaian Halaman Beranda --- */
  .timeline-section,
  .faq-extra-links,
  .search-section,
  .faq-section {
    padding: 20px 15px; /* Padding lebih kecil untuk semua section */
  }

  .search-section {
    margin: 0 15px;
  }
  


  .faq-container,
  .recommendation-grid {
    grid-template-columns: 1fr; /* Semua grid menjadi satu kolom */
    gap: 15px;
  }

  /* --- Penyesuaian Kartu Rekomendasi & Kos --- */
  .recommendation-grid {
    padding: 0 15px 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ukuran minimum kartu lebih kecil */
  }

  .kos-card .reco-card-body {
    padding: 20px;
  }
  
  .kos-card .kos-name {
    font-size: 1.15rem;
  }
  
  .kos-card .kos-price {
    font-size: 1.2rem;
  }

  .kos-card .kos-facilities li {
    font-size: 0.8rem; /* Ukuran font fasilitas sedikit lebih kecil */
    padding: 6px 10px;
  }
  
  /* --- Penyesuaian Halaman Kontributor --- */
  .contributor-section,
  .owners-section,
  .supporters-section {
    padding: 40px 15px;
  }
  
  .contributor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contributor-card {
    padding: 20px;
  }

  .contributor-hero-content h1 {
    font-size: 1.8rem;
  }
  
  .contributor-hero-content p {
    font-size: 1rem;
  }
  
  .supporters-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }

  .collab-container {
    padding: 0 15px;
  }

  /* --- Penyesuaian Filter Bar --- */
  .filter-bar {
    padding: 15px;
    margin: 0 15px 20px;
  }

  .filter-btn-group {
    flex-wrap: wrap; /* Memastikan tombol filter tidak tumpah */
    justify-content: center;
    width: 100%;
  }

  .filter-bar .filter-btn {
    flex-grow: 1; /* Tombol filter memenuhi ruang */
  }
}
/* === Contributors Page Extensions === */

/* Pemegang Utama */
.owners-section {
  padding: 60px 30px;
  background: #ffffff;
}
.owners-section h2 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

/* Tim Support */
.supporters-section {
  padding: 60px 30px;
  background: #f0f4ff;
}
.supporters-section h2 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.supporter-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.supporter-card:hover {
  transform: translateY(-4px);
}

/* Kolaborasi UKM */
.collaboration-section {
  padding: 60px 0;
  background: #ffffff;
}
.collaboration-section h2 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
.collab-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 0 30px;
  scroll-behavior: smooth;
}
.collab-card {
  flex: 0 0 auto;
  width: 140px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}
.collab-card img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
}
.collab-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
}
.collab-card:hover {
  transform: translateY(-6px);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .collab-container {
    gap: 12px;
    padding: 0 20px;
  }
}
/* === KOS CARD STYLING (ENHANCED) === */

/* Kos Card Container */
.kos-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.kos-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Kos Card Image Container */
.kos-card-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.kos-card-img-container .reco-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kos-card:hover .reco-card-img {
  transform: scale(1.05);
}

/* Status Badge */
.kos-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.status-available {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.status-full {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Kos Card Body */
.kos-card .reco-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 15px;
}

/* Kos Name */
.kos-card .kos-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kos Type and Location */
.kos-card .kos-type {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

.kos-card .kos-type .kos-location {
  color: #34495e;
  font-weight: 600;
}

.kos-card .kos-type i {
  color: #e74c3c;
  font-size: 0.85rem;
}

/* Kos Price */
.kos-card .kos-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.kos-card .kos-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7f8c8d;
}

/* Kos Facilities */
.kos-card .kos-facilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.kos-card .kos-facilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  transition: all 0.2s ease;
}

.kos-card .kos-facilities li:hover {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #90caf9;
  color: #1565c0;
}

.kos-card .kos-facilities li i {
  font-size: 0.9rem;
  color: #007bff;
  width: 16px;
  text-align: center;
}

/* Special facility icons colors */
.kos-card .kos-facilities li .fa-snowflake {
  color: #17a2b8;
}

.kos-card .kos-facilities li .fa-wifi {
  color: #28a745;
}

.kos-card .kos-facilities li .fa-tv {
  color: #6610f2;
}

.kos-card .kos-facilities li .fa-bed {
  color: #fd7e14;
}

.kos-card .kos-facilities li .fa-home {
  color: #e83e8c;
}

/* Contact Button */
.kos-card .reco-card-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: auto;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kos-card .reco-card-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.kos-card .reco-card-btn i {
  transition: transform 0.3s ease;
}

.kos-card .reco-card-btn:hover i {
  transform: translateX(3px);
}

/* Grid Layout Enhancement */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 30px 30px;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  color: #6c757d;
  font-size: 1.1rem;
  background: white;
  border-radius: 20px;
  border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .recommendation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px 20px;
  }
  
  .kos-card-img-container {
    height: 200px;
  }
  
  .kos-card .reco-card-body {
    padding: 20px;
    gap: 12px;
  }
  
  .kos-card .kos-name {
    font-size: 1.2rem;
  }
  
  .kos-card .kos-price {
    font-size: 1.25rem;
  }
  
  .kos-card .kos-facilities {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .kos-card .kos-facilities {
    grid-template-columns: 1fr;
  }
  
  .kos-card .kos-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .kos-card .reco-card-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Loading State (optional) */
.kos-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.kos-card.loading .reco-card-img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/*
 * =========================================
 * 1. PENGATURAN INTI & VARIABEL
 * =========================================
 */

:root {
  /* Palet Warna */
  --color-bg: #F5F6FA;
  --color-surface: #FFFFFF;
  --color-border: #EAEFF5;

  --color-text-primary: #2C3E50;
  --color-text-secondary: #8A95A5;

  --color-brand-primary: #007BFF;
  --color-brand-dark: #0056B3;

  --color-status-success: #28A745;
  --color-icon-accent: #E74C3C;

  /* Gradien */
  --gradient-brand: linear-gradient(45deg, var(--color-brand-primary), var(--color-brand-dark));

  /* Ukuran & Efek */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

/*
 * =========================================
 * 2. STRUKTUR LAYOUT UTAMA
 * =========================================
 */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5%;
  height: 70px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-layout {
  display: flex;
  height: calc(100vh - 70px);
}

.sidebar {
  width: 260px;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 20px;
  flex-shrink: 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
  color: var(--color-brand-primary);
}

.sidebar-nav a.active {
  background-color: var(--color-brand-primary);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
}

.main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
}

/*
 * =========================================
 * 3. KOMPONEN INTI (Tombol & Kartu)
 * =========================================
 */

/* --- Tombol (Button) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 25px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.header .btn { /* Tombol kontak di header sedikit lebih kecil */
  padding: 10px 20px;
}

/* --- Kartu (Card) --- */
.recommendation-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); */
  gap: 30px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card__image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background-color: var(--color-status-success);
}

.card__body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

/*
 * =========================================
 * 4. DETAIL KARTU KOS
 * =========================================
 */

.card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.card__meta i {
  color: var(--color-icon-accent);
  font-size: 0.9rem;
}

.card__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 5px 0;
}

.card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.card__facilities {
  list-style: none;
  padding: 12px 15px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap; /* Untuk banyak fasilitas */
}

.card__footer {
  margin-top: auto; /* Mendorong tombol ke bawah */
  padding-top: 10px;
}

/*
 * =========================================
 * 5. HALAMAN KONTRIBUTOR
 * =========================================
 */

/* --- Bagian Umum & Judul --- */
.owners-section,
.supporters-section,
.collaboration-section {
  padding: 60px 30px;
}

.owners-section h2,
.supporters-section h2,
.collaboration-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-primary);
}

.supporters-section {
  background-color: var(--color-bg); /* Latar belakang netral */
}

/* --- Hero Section Kontributor --- */
.contributor-hero {
  background: var(--gradient-brand); /* Menggunakan gradien biru utama */
  color: white;
  padding: 60px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.contributor-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white; /* Pastikan teks tetap putih */
  margin-bottom: 15px;
}

.contributor-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Kartu Kontributor Utama --- */
.contributor-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.contributor-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contributor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* Garis aksen di atas kartu */
.contributor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-brand); /* Menggunakan gradien biru */
}

.contributor-avatar {
  width: 80px;
  height: 80px;
  background: var(--gradient-brand); /* Avatar juga menggunakan gradien biru */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Bayangan biru */
}

.contributor-info h3 {
  font-size: 1.4rem;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.contributor-role {
  font-size: 1rem;
  color: var(--color-brand-primary); /* Peran menggunakan warna biru primer */
  font-weight: 600;
  margin-bottom: 15px;
}

/* --- Kartu Tim Support & Kolaborasi --- */
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.supporter-card,
.collab-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  color: var(--color-text-primary);
}

.supporter-card:hover,
.collab-card:hover {
  transform: translateY(-5px);
}

.collab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.collab-card img {
  height: 60px;
  object-fit: contain;
}

/* --- Bagian Call to Action (CTA) --- */
.contributor-cta {
  background: var(--gradient-brand);
  color: white;
  padding: 60px 30px;
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}