/* =========================================================
   Project Detail Page
   ========================================================= */

/* ---------- Hero additions (light section) ---------- */
.pd-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px;
  text-transform: capitalize;
  letter-spacing: 0.1em;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s;
}

.pd-hero-back:hover {
  color: #0097b2;
}

.pd-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pd-hero-tag {
  font-size: 15px;
  text-transform: capitalize;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(0, 0, 0, 0.5);
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  padding: 5px 12px;
  border-radius: 100px;
}

.pd-hero-tag--meta {
  color: #0097b2;
  border-color: rgba(0, 151, 178, 0.3);
}

/* ---------- Dark body ---------- */
.pd-body {
  color: #fff;
  padding-bottom: 0;
}

/* ---------- Shared label ---------- */
.pd-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1rem;
}

.pd-label--center {
  text-align: center;
}

.pd-label--left {
  text-align: left;
}

/* ---------- Divider ---------- */
.pd-divider {
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 3rem;
}

/* ---------- ① Cover image ---------- */
.pd-cover {
  padding: 3rem 3rem 0;
}

.pd-cover__wrap {
  border-radius: 14px;
  overflow: hidden;
  /* background: #111; */
}

.pd-cover__wrap img {
  width: 100%;
  aspect-ratio: 12 / 6.5;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ---------- ② Two-col overview ---------- */
.pd-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding: 4rem 3rem;
  align-items: start;
}

.pd-overview-no-image {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 5rem;
  padding: 4rem 3rem;
  align-items: start;
}

.pd-overview__left {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pd-overview__text {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.8;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

/* Info panel (below overview text) */
.pd-info-panel {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.pd-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}

.pd-info-label {
  font-size: 15px;
  text-transform: capitalize;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  flex-shrink: 0;
}

.pd-info-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.pd-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.pd-info-link:hover {
  color: #00c4db;
}

.pd-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.pd-info-tag {
  font-size: 15px;
  text-transform: capitalize;
  letter-spacing: 0.07em;
  color: #fff;
  border: 0.5px solid #fff;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---------- Device mockups (right col of overview) ---------- */
.pd-overview__right {
  position: relative;
}

.pd-devices {
  position: relative;
  width: 100%;
  padding-bottom: 30%;
}

.pd-device {
  position: absolute;
  overflow: hidden;
}

.pd-device--tablet {
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
}

.pd-device--phone {
  width: 38%;
  bottom: 0;
  right: 0;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
}


.pd-device__screen {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.pd-device--tablet .pd-device__screen {
  width: 100%;
  height: 100%;
}

.pd-device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.pd-device__home {
  width: 28%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 6px auto;
  flex-shrink: 0;
}

/* ---------- ③ Editorial challenge block ---------- */
.pd-editorial {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 5rem;
  padding: 5rem 3rem;
  align-items: center;
}

.pd-editorial__visual {
  display: flex;
  justify-content: left;
}

.pd-editorial__visual .pd-devices {
  width: 100%;
  max-width: 260px;
  padding-bottom: 0;
  height: 480px;
  position: relative;
}

.pd-editorial__visual .pd-device--phone {
  width: 100%;
  position: relative;
  bottom: auto;
  right: auto;
}

.pd-editorial__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pd-editorial__text {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.7;
  color: #fff;
  margin: 0;
}



.pd-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 16px;
  color: #fff;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.pd-feature-item:first-child {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}

.pd-feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0097b2;
  flex-shrink: 0;
}

/* ---------- ⑤ Results ---------- */
.pd-results {
  padding: 0 3rem 5rem;
}

.pd-results .pd-label--center {
  padding-top: 4rem;
}

.pd-results__grid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.pd-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.pd-result__value {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pd-result__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

/* ---------- ⑥ Footer CTA ---------- */
.pd-foot {
  margin-top: 2rem;
}

.pd-foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem;
  gap: 2rem;
}

.pd-foot__cta-text {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}

.pd-foot__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.pd-btn--primary {
  background: #fff;
  color: #0d0d0d;
}

.pd-btn--primary:hover {
  background: #fff;
}

.pd-btn--ghost {
  background: none;
  color: #fff;
  border: 0.5px solid #fff;
}

.pd-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pd-overview {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }

  .pd-editorial {
    grid-template-columns: 260px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 767px) {
  .pd-cover {
    padding: 2rem 1.25rem 0;
  }

  .pd-cover__wrap img {
    aspect-ratio: 12 / 6.5;
  }

  .pd-divider {
    margin: 0 1.25rem;
  }

  .pd-overview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.25rem;
  }

  .pd-devices {
    padding-bottom: 45%;
  }

  .pd-device--tablet {
    width: 100%;
  }

  .pd-device--phone {
    width: 35%;
  }

  .pd-editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.25rem;
  }

  .pd-editorial__visual .pd-devices {
    max-width: 180px;
    height: 340px;
    margin: 0 auto;
  }

  .pd-results {
    padding: 0 1.25rem 3rem;
  }

  .pd-results__grid {
    gap: 2.5rem;
  }

  .pd-foot__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.25rem;
  }
}
