.hero-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 48px;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.25);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

.hero-slideshow:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
}

.hero-arrow--prev {
  left: 16px;
}

.hero-arrow--next {
  right: 16px;
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.projects-hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #fff;
  height: 100%;
}

.projects-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.projects-hero:hover .projects-hero-img {
  transform: scale(1.03);
}

.projects-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.projects-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 48px;
}

.projects-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.projects-hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}

.projects-hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects-hero-meta {
  display: flex;
  gap: 28px;
  align-items: center;
}

.projects-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

.projects-hero-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.projects-hero-cta {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.projects-hero:hover .projects-hero-cta {
  opacity: 1;
  gap: 12px;
}

.projects-hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.projects-hero:hover .projects-hero-cta svg {
  transform: translateX(3px);
}

.projects-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 32px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.5px;
}

.projects-stats-count {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
}

.projects-stats-sep {
  margin: 0 4px;
  opacity: 0.3;
}

.pf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 40px;
  flex-wrap: wrap;
}

.pf-btn {
  padding: 10px 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  border-radius: 2px;
  white-space: nowrap;
}

.pf-btn:hover {
  color: rgba(0, 0, 0, 0.75);
  border-color: rgba(0, 0, 0, 0.25);
}

.pf-btn.active {
  background: #231f20;
  color: #fff;
  border-color: #231f20;
}

.pf-btn .pf-count {
  display: inline-block;
  font-size: 10px;
  opacity: 0.5;
  margin-left: 4px;
}

.pf-btn.active .pf-count {
  opacity: 0.7;
}

.pg-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(0, 0, 0, 0.3);
  font-weight: 500;
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-section-label::before {
  content: '';
  width: 12px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.5;
}

.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.pg-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pg-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.pg-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.pg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pg-card:hover .pg-card-img {
  transform: scale(1.04);
}

.pg-card-status {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.pg-card-status.ongoing {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.pg-card-status.completed {
  background: rgba(255, 255, 255, 0.92);
  color: #231f20;
  backdrop-filter: blur(4px);
}

.pg-card-status.upcoming {
  background: var(--accent);
  color: #fff;
}

.pg-card-body {
  padding: 24px;
}

.pg-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #231f20;
  transition: color 0.3s ease;
}

.pg-card:hover .pg-card-title {
  color: var(--accent);
}

.pg-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}

.pg-card-location svg {
  width: 13px;
  height: 13px;
  opacity: 0.4;
}

.pg-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pg-card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pg-card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
}

.pg-card-stat svg {
  width: 13px;
  height: 13px;
  opacity: 0.35;
}

.pg-card-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease;
}

.pg-card:hover .pg-card-arrow {
  background: var(--accent);
}

.pg-card-arrow svg {
  width: 12px;
  height: 12px;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

.pg-card:hover .pg-card-arrow svg {
  color: #fff;
}

@media (max-width: 991px) {
  .hero-slideshow {
    min-height: 420px;
  }
  .projects-hero-img {
    height: 420px;
  }
  .projects-hero-content {
    padding: 32px;
  }
  .projects-hero-title {
    font-size: 28px;
  }
  .projects-hero-cta {
    bottom: 32px;
    right: 32px;
  }
}

@media (max-width: 767px) {
  .hero-arrow {
    width: 36px;
    height: 36px;
    opacity: 1;
  }
  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }
  .hero-arrow--prev {
    left: 10px;
  }
  .hero-arrow--next {
    right: 10px;
  }
  .hero-slideshow {
    min-height: 380px;
    margin-bottom: 32px;
  }
  .hero-dots {
    bottom: 14px;
  }
  .projects-hero-img {
    height: 380px;
  }
  .projects-hero-content {
    padding: 20px;
  }
  .projects-hero-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }
  .projects-hero-title {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .projects-hero-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
    line-height: 1.5;
  }
  .projects-hero-meta {
    gap: 12px;
    flex-wrap: wrap;
  }
  .projects-hero-meta-item {
    font-size: 12px;
    gap: 4px;
  }
  .projects-hero-meta-item svg {
    width: 12px;
    height: 12px;
  }
  .projects-hero-cta {
    position: static;
    margin-top: 14px;
    font-size: 12px;
  }
  .projects-stats {
    font-size: 12px;
    padding-bottom: 20px;
  }
  .pg-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pf-bar {
    gap: 6px;
    padding-bottom: 24px;
  }
  .pf-btn {
    padding: 8px 14px;
    font-size: 11px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .pg-card-body {
    padding: 18px;
  }
  .pg-card-title {
    font-size: 17px;
    margin-bottom: 6px;
  }
  .pg-card-location {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .pg-card-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .pg-card-footer {
    gap: 14px;
    padding-top: 12px;
  }
  .pg-card-stat {
    font-size: 11px;
    gap: 4px;
  }
  .pg-card-stat svg {
    width: 11px;
    height: 11px;
  }
  .pg-card-arrow {
    width: 24px;
    height: 24px;
  }
  .pg-card-arrow svg {
    width: 10px;
    height: 10px;
  }
  .pg-section-label {
    font-size: 10px;
    padding: 16px 0 14px;
    margin-bottom: 20px;
  }
}

@media (max-width: 479px) {
  .hero-slideshow {
    min-height: 340px;
  }
  .projects-hero-img {
    height: 340px;
  }
  .projects-hero-content {
    padding: 16px;
  }
  .projects-hero-title {
    font-size: 20px;
  }
  .projects-hero-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .projects-hero-meta {
    gap: 8px 14px;
  }
  .projects-hero-meta-item {
    font-size: 11px;
  }
  .pg-grid {
    gap: 16px;
  }
  .pg-card-img-wrap {
    aspect-ratio: 16 / 9;
  }
  .pg-card-body {
    padding: 14px;
  }
  .pg-card-title {
    font-size: 16px;
  }
  .pg-card-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .pg-card-footer {
    gap: 10px;
  }
  .pg-card-stat {
    font-size: 10px;
  }
  .pf-btn {
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.8px;
  }
}
