.home-projects-section {
  margin-bottom: 0;
  padding-top: 4px;
}

.home-projects-header {
  margin-bottom: 8px;
}

.home-projects-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.home-projects-eyebrow {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.home-projects-view-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.18);
  white-space: nowrap;
}

.home-projects-view-all:hover {
  color: #fff;
  text-decoration: none;
}

.home-projects-view-all i {
  font-size: 12px;
}

.home-projects-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.home-projects-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #64748b;
}

.home-projects-slider {
  overflow: hidden;
  border-radius: 12px;
}

.home-projects-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-projects-slide {
  flex: 0 0 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.home-project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8edf3;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-project-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.home-project-media {
  padding: 6px 6px 0;
}

.home-project-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.home-project-main img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.home-project-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.45), transparent);
  pointer-events: none;
}

.home-project-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  line-height: 1.2;
}

.home-project-badge.is-ongoing {
  background: rgba(25, 135, 84, 0.9);
}

.home-project-badge.is-completed {
  background: rgba(37, 99, 235, 0.9);
}

.home-project-subgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.home-project-sub {
  border-radius: 6px;
  overflow: hidden;
}

.home-project-sub img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  display: block;
}

.home-project-info {
  padding: 8px 10px 10px;
}

.home-project-name {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.home-project-location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #64748b;
}

.home-project-location i {
  font-size: 12px;
  color: #2563eb;
  flex-shrink: 0;
  line-height: 1.2;
}

.home-project-meta {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: #198754;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-projects-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 15px 4px;
}

.home-projects-nav-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.home-projects-nav-btn:hover {
  background: #111827;
  color: #fff;
}

.home-projects-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-projects-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.home-projects-dot.is-active {
  width: 14px;
  border-radius: 999px;
  background: #198754;
}

.projects-all-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-page-header {
  margin-bottom: 8px;
}

.projects-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.projects-search-input {
  border-radius: 999px;
  height: 44px;
  padding-right: 42px;
  font-size: 14px;
}

.projects-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #64748b;
  pointer-events: none;
}

.projects-search-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
}

.projects-list-item {
  display: block;
}

/* Project Location */
.home-location-section {
  padding-top: 4px;
  margin-bottom: 0;
}

.home-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.home-city-tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.home-city-tabs li a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-city-tabs li.active a,
.home-city-tabs li a:hover {
  color: #fff;
  background: #198754;
  border-color: #198754;
}

.home-location-list-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-location-list-title span {
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.home-location-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 4px;
  padding: 0 15px 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.home-location-scroll-wrap::-webkit-scrollbar {
  height: 5px;
}

.home-location-scroll-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.home-location-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 2px;
}

.home-location-item {
  flex: 0 0 210px;
  width: 210px;
}

.home-location-item.is-hidden {
  display: none !important;
}

.home-location-scroll-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf3;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-location-scroll-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.home-location-scroll-img {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
}

.home-location-scroll-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-location-scroll-body {
  padding: 8px 10px 10px;
  flex: 1;
}

.home-location-scroll-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-location-scroll-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.home-loc-chip i {
  font-size: 10px;
}

.home-loc-chip-city {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.home-loc-chip-status {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.home-location-empty {
  display: none;
  margin: 0 15px 8px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
}

.home-location-empty.is-visible {
  display: block;
}

/* Material Based Work */
.home-materials-section {
  padding-top: 4px;
  padding-bottom: 8px;
}

.home-material-grid {
  padding-bottom: 4px;
}

.home-material-grid .row {
  --bs-gutter-x: 8px;
  --bs-gutter-y: 8px;
}

.home-material-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-material-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.home-material-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.home-material-card h3 {
  margin: 0;
  padding: 6px 2px 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
