:root {
  --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-status-error: #f44336;
  --color-icon-accent: #E74C3C;
  --gradient-brand: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-dark));
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  background: linear-gradient(to bottom right, #e8ebf2, #f8fafc, #dbeafe);
  min-height: 100vh;
}

/* Header & Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5%;
  height: 70px;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.header-role {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header-role:hover {
  color: var(--color-brand-primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text-primary);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.hamburger:hover {
  background-color: #f0f0f0;
}

/* Buttons */
.btn, .btn-contact, .reco-card-btn, .cta-btn, .link-btn, .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn--primary, .btn-contact, .reco-card-btn {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn--primary:hover, .btn-contact:hover, .reco-card-btn:hover {
  background: linear-gradient(135deg, var(--color-brand-dark), #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.reco-card-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.reco-card-btn:hover i {
  transform: translateX(3px);
}

.link-btn {
  background-color: #e9f4ff;
  color: var(--color-brand-primary);
  border: 1px solid #b3dcff;
}

.link-btn:hover {
  background-color: var(--color-brand-primary);
  color: white;
}

.filter-btn {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid #ddd;
}

.filter-btn:hover {
  background-color: #f0f0f0;
}

/* Sidebar */
.main-layout {
  display: flex;
  height: calc(100vh - 70px);
}

.sidebar {
  width: 260px;
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  color: var(--color-text-primary);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.sidebar-close:hover {
  background-color: #e0e0e0;
}

.sidebar-nav {
  padding: 20px;
}

.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: all 0.2s ease;
}

.sidebar-nav a i {
  width: 22px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav a:hover {
  background-color: #e0e1e6;
  color: var(--color-brand-primary);
}

.sidebar-nav a.active {
  background-color: var(--color-brand-primary);
  color: white;
  font-weight: 600;
}

.sidebar-static {
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.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 {
  flex-grow: 1;
  overflow-y: auto;
  padding: 30px;
}

/* Home Page Sections */
.timeline-section, .faq-extra-links, .search-section, .faq-section {
  padding: 30px;
}

.timeline-container .splide {
  width: 100%;
}

.splide__slide img {
  width: 100%;
  aspect-ratio: 3200 / 1000;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-extra-links {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.link-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  flex: 1 1 48%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.link-card:hover {
  transform: translateY(-3px);
}

.link-card h3 {
  font-size: 1.2rem;
  color: var(--color-brand-primary);
  margin-bottom: 10px;
}

.link-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.search-section {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  margin: 0 30px;
  box-shadow: var(--shadow-sm);
}

.search-section h3 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 15px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--color-text-primary);
  background: #f3f3f3;
  padding: 10px 15px;
  border-radius: var(--radius-md);
}

.search-bar .search-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-secondary);
}

.search-note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.search-note span {
  background-color: #e0f2ff;
  color: var(--color-brand-primary);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-card {
  background-color: var(--color-surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-user {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.faq-question {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.faq-label {
  font-weight: 600;
  margin: 12px 0 5px;
}

.faq-answer {
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
  line-height: 1.2em;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.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: var(--color-brand-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

.faq-card hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 10px 0;
}

.faq-tags, .contributor-tags, .reco-card-tags, .kos-card .kos-facilities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  background-color: #e9f4ff;
  color: var(--color-brand-primary);
  border: 1px solid #b3dcff;
  border-radius: var(--radius-md);
  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: var(--radius-sm);
  background-color: #e9f4ff;
  color: var(--color-brand-primary);
  border: 1px solid #b3dcff;
  cursor: pointer;
  font-weight: 500;
}

.pagination button.active, .pagination button:hover {
  background-color: var(--color-brand-primary);
  color: white;
}

/* Recommendation & Kos Card */
.page-header {
  padding: 30px;
  /* background-color: var(--color-bg); */
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.page-header p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  padding: 0 30px 30px;
}

.reco-card, .kos-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.reco-card:hover, .kos-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.reco-card-img-container, .kos-card-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.reco-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reco-card:hover .reco-card-img, .kos-card:hover .reco-card-img {
  transform: scale(1.05);
}

.reco-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.reco-card-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.reco-card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.reco-card-tags .tag {
  font-size: 0.75rem;
}

.kos-card {
  border: 1px solid #f0f0f0;
}

.kos-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.status-available {
  background: linear-gradient(135deg, var(--color-status-success), #45a049);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.status-full {
  background: linear-gradient(135deg, var(--color-status-error), #d32f2f);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.kos-card .kos-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kos-card .kos-type {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.kos-card .kos-type .kos-location {
  color: var(--color-text-primary);
  font-weight: 600;
}

.kos-card .kos-type i {
  color: var(--color-icon-accent);
  font-size: 0.85rem;
}

.kos-card .kos-price {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.kos-card .kos-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.kos-card .kos-facilities {
  list-style: none;
  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 var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  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: var(--color-brand-primary);
  width: 16px;
  text-align: center;
}

.kos-card .kos-facilities li .fa-snowflake { color: #17a2b8; }
.kos-card .kos-facilities li .fa-wifi { color: var(--color-status-success); }
.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; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 30px;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--color-surface);
  margin: 0 30px 30px;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.filter-search {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  flex-grow: 1;
}

.filter-search i {
  color: var(--color-text-secondary);
}

.filter-search input {
  border: none;
  background: none;
  outline: none;
  padding: 12px 10px;
  font-size: 1rem;
  width: 100%;
}

.filter-btn-group {
  display: flex;
  gap: 5px;
}

/* Contributor & Collaboration */
.contributor-hero, .contributor-cta {
  background: var(--gradient-brand);
  color: white;
  padding: 60px 30px;
  text-align: center;
  border-radius: var(--radius-lg);
}

.collaboration-section {
  padding: 60px 30px;
  /* background: var(--color-surface); */
}

.collaboration-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.collab-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.collab-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  height: auto;
  display: center ;
  flex-direction: column;
  justify-content: space-between;
}

.collab-card img {
  max-width: 100px;
  height: 100px;  
  object-fit: scale-down;
  margin-bottom: 15px;
  /* background: linear-gradient(135deg, #e3f2fd, #bbdefb); */
  /* border-radius: 50%; */
  padding: 10px;
  transition: transform 0.3s ease;
}

.collab-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.collab-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collab-card .tag {
  display: inline-block;
  background: #e9f4ff;
  color: var(--color-brand-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.collab-card:hover img {
  transform: scale(1.1);
}

.collab-card:hover .tag {
  background-color: var(--color-brand-primary);
  color: white;
}

.collab-container::-webkit-scrollbar {
  height: 8px;
}

.collab-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.collab-container::-webkit-scrollbar-thumb {
  background: var(--color-brand-primary);
  border-radius: 4px;
}

.collab-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-dark);
}

.collab-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collab-card-link:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
}

.contributor-hero-content h1, .cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contributor-hero-content p, .cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content p {
  margin-bottom: 30px;
}

.cta-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.cta-btn:hover {
  background: rgba(255,255,255,0.3);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.owners-section, .supporters-section {
  padding: 60px 30px;
}

.owners-section h2, .supporters-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.supporters-section {
  /* background: #f0f4ff; */
}

.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::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-brand);
}

.contributor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.contributor-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.contributor-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0;
}

.contributor-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.contributor-nrp {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.contributor-role {
  font-size: 1rem;
  color: var(--color-brand-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.contributor-tags .tag {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  border: 1px solid #90caf9;
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.supporter-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;
}

.supporter-card:hover {
  transform: translateY(-5px);
}

.contributor-card.simple {
  text-align: center;
  padding: 1.5rem 1rem;
}

.contributor-card.simple .contributor-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contributor-card.simple .contributor-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-1 { animation-delay: 0.10s; }
.fade-in-2 { animation-delay: 0.23s; }
.fade-in-3 { animation-delay: 0.36s; }
.fade-in-4 { animation-delay: 0.49s; }
.fade-in-5 { animation-delay: 0.62s; }
.fade-in-6 { animation-delay: 0.75s; }
.fade-in-7 { animation-delay: 0.88s; }
.fade-in-8 { animation-delay: 1.01s; }

/* Loading Animation */
.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; }
}

/* Responsive Design */
@media screen and (min-width: 993px) {
  .hamburger, .sidebar-overlay, .sidebar-close, .sidebar-overlay .sidebar-header {
    display: none !important;
  }
  .sidebar-static {
    display: block;
  }
  .sidebar-static .sidebar-header {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .hamburger {
    display: inline-flex;
  }
  .sidebar-static {
    display: none !important;
  }
  .sidebar-overlay {
    display: block;
  }
  .sidebar-overlay .sidebar-header {
    display: flex;
  }
  .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);
  }
}

@media screen and (max-width: 768px) {
  .contributor-hero, .contributor-section, .owners-section, .supporters-section, .contributor-cta, .collaboration-section {
    padding: 40px 20px;
  }
  .contributor-hero-content h1, .cta-content h2 {
    font-size: 2rem;
  }
  .contributor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contributor-card {
    padding: 25px;
  }
  .cta-content h2 {
    font-size: 1.6rem;
  }
  .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;
  }
  .collab-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 20px;
  }
  .collab-card {
    padding: 20px;
    height: 280px;
  }
  .collab-card img {
    max-width: 80px;
    height: 80px;
  }
  .collab-card h3 {
    font-size: 1.1rem;
  }
  .collab-card p {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .header {
    padding: 0 15px;
  }
  .header-left .logo {
    font-size: 1.2rem;
  }
  .header-right {
    gap: 10px;
  }
  .btn-contact {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .main-content, .timeline-section, .faq-extra-links, .search-section, .faq-section, .filter-bar {
    padding: 20px 15px;
  }
  .search-section, .filter-bar {
    margin: 0 15px;
  }
  .faq-container, .recommendation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .recommendation-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .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;
    padding: 6px 10px;
  }
  .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;
  }
  .contributor-hero-content h1, .cta-content h2 {
    font-size: 1.8rem;
  }
  .contributor-hero-content p, .cta-content p {
    font-size: 1rem;
  }
  .contributor-section, .owners-section, .supporters-section {
    padding: 40px 15px;
  }
  .supporters-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  .collab-container {
    padding: 0 15px;
  }
  .collab-card {
    padding: 15px;
    height: 250px;
  }
  .collab-card img {
    max-width: 70px;
    height: 70px;
  }
  .collab-card h3 {
    font-size: 1rem;
  }
  .collab-card p {
    -webkit-line-clamp: 2;
  }
  .filter-btn-group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .filter-bar .filter-btn {
    flex-grow: 1;
  }
}