/* ── Portfolio Listing Page styles ── */

.pl-hero {
  /* background: linear-gradient(to bottom, #b2e7fe 0%, #b2e7fe 57%, #fff 100%); */
  padding: clamp(80px, 12vw, 160px) clamp(16px, 4vw, 180px) clamp(40px, 5vw, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
  position: relative;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  bottom: 0;
  top: inherit;
  background:
    radial-gradient(ellipse 70% 60% at 12% 75%,
      rgba(190, 230, 255, 0.75) 0%,
      rgba(190, 230, 255, 0) 70%),
    radial-gradient(ellipse 70% 60% at 88% 75%,
      rgba(215, 200, 245, 0.75) 0%,
      rgba(215, 200, 245, 0) 70%),
    linear-gradient(135deg,
      #ffffff 0%,
      #f7fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}


body::after {
  background: url(../src/hero-top.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 479px;
  z-index: 1;
}

.page-content-bg {
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 60% at 10% 75%,
      rgba(190, 230, 255, 0.8),
      transparent 70%),
    radial-gradient(ellipse 70% 60% at 90% 75%,
      rgba(215, 200, 245, 0.8),
      transparent 70%),
    linear-gradient(180deg,
      #ffffff 0%,
      #f8fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}

.pl-hero-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
  max-width: 1275px;
}

.container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw, 1.25rem);
}

.pl-hero-sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  color: #454f5b;
  max-width: 955px;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1560px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.pl-card {
  background: #f9fafb;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s;
  min-width: 0;
}

.pl-card:hover {
  box-shadow: 0 8px 32px rgba(33, 43, 54, 0.1);
}

.pl-card-image-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 505 / 308;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.pl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pl-card-body {
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pl-card-title {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: #212b36;
}

.pl-card-desc {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
}

@media (max-width: 1600px) {
  .container {
    max-width: 95%;
  }
}

@media (max-width: 1440px) {
  .pl-card-title {
    min-height: 68px;
  }
}

@media (max-width: 1200px) {
  .pl-card {
    border-radius: 20px;
    box-shadow: 0px 2px 6px 0 #00000024;
  }
}


@media (max-width: 1024px) {
  .pl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 60px;
  }

  body::after {
    height: 150px;
    background-size: 100% 150px;
    background-repeat: no-repeat;
  }

  .page-content-bg {
    padding-top: 40px;
  }
}

@media (max-width: 768px) {
  .pl-hero {
    gap: 20px;
  }

  .pl-grid {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .container {
    max-width: 97%;
  }
}