/* 홈 · 렌탈 프로그램 섹션 */
.rental-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .rental-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.rental-all {
  align-self: flex-start;
  white-space: nowrap;
  text-decoration: none;
}

@media (min-width: 768px) {
  .rental-all {
    align-self: auto;
  }
}

.rental-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rental-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rental-card {
  display: flex;
  flex-direction: column;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rental-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.rental-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.rental-icon svg {
  width: 24px;
  height: 24px;
}

.rental-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
}

.rental-new {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--electric);
  color: var(--text);
  vertical-align: middle;
  margin-left: 0.25rem;
}

.rental-for {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rental-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.rental-tags li {
  font-size: 0.8125rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.rental-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rental-demos {
  font-size: 0.875rem;
}

.rental-demos a,
.rental-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.rental-demos a:hover,
.rental-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rental-more {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
