/* ==========================================================================
   Portfolio detail page
   Layout ported from the Foxisa "project-single" template, recoloured with
   the Davis palette (yellow #fec544 accent on dark navy #070d1b).
   ========================================================================== */

.pd-page {
  position: relative;
  color: #a9adb8;
}

.pd-wrap { position: relative; z-index: 1; }

/* ---- Top info ---------------------------------------------------------- */
.pd-title h4 {
  color: #fec544;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.pd-title h2 {
  color: #fdfeff;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 20px;
}

.pd-title p {
  color: #a9adb8;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 30px;
  max-width: 620px;
}

@media (max-width: 767px) {
  .pd-title h2 { font-size: 28px; }
}

/* Project meta card */
.pd-info {
  background: #101624;
  border: 1px solid rgba(254, 197, 68, 0.18);
  border-radius: 10px;
  padding: 30px 32px;
}

@media (max-width: 991px) {
  .pd-info { margin-top: 40px; }
}

.pd-info ul li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pd-info ul li:first-child { padding-top: 0; }
.pd-info ul li:last-child { padding-bottom: 0; border-bottom: 0; }

.pd-info ul li h3 {
  color: #fdfeff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.pd-info ul li span { color: #a9adb8; font-size: 15px; }
.pd-info ul li span a { color: #fec544; }
.pd-info ul li span a:hover { text-decoration: underline; }

/* ---- Galleries --------------------------------------------------------- */
.pd-gallery { margin-top: 50px; }
.pd-gallery .row { row-gap: 24px; }
.pd-gallery-img {
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
}
.pd-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pd-gallery-img:hover img { transform: scale(1.04); }

/* ---- Facts / results content ------------------------------------------ */
.pd-content { margin-top: 60px; }

.pd-item {
  display: flex;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pd-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 767px) {
  .pd-item { flex-direction: column; gap: 16px; }
}

.pd-item-left { flex: 0 0 38%; max-width: 38%; }
@media (max-width: 767px) {
  .pd-item-left { flex: 0 0 100%; max-width: 100%; }
}

.pd-item-left h2 {
  color: #fdfeff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  padding-left: 22px;
  margin: 0;
}
.pd-item-left h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: #fec544;
}

.pd-item-right { flex: 1; }
.pd-item-right p { color: #a9adb8; font-size: 16px; line-height: 1.7; margin: 0 0 22px; }

/* two-column bullet list */
.pd-checklist { display: flex; gap: 40px; flex-wrap: wrap; }
.pd-checklist ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: #fdfeff;
  font-size: 15px;
  font-weight: 500;
}
.pd-checklist ul li::before {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: #fec544;
  font-size: 13px;
}

/* results list with headings */
.pd-result-list ul li { margin-bottom: 24px; }
.pd-result-list ul li:last-child { margin-bottom: 0; }
.pd-result-list ul li h3 {
  color: #fdfeff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-result-list ul li h3 i {
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: #fec544;
  color: #070d1b;
  font-size: 12px;
}
.pd-result-list ul li span { color: #a9adb8; font-size: 15px; line-height: 1.6; }

/* ---- Prev / next ------------------------------------------------------- */
.pd-nav {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pd-nav-prev, .pd-nav-next { display: flex; flex-direction: column; gap: 6px; }
.pd-nav-next { text-align: right; }

.pd-nav-prev > a:first-child,
.pd-nav-next > a:first-child {
  color: #fec544;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pd-nav-name { color: #fdfeff; font-size: 18px; font-weight: 600; }
.pd-nav-name:hover { color: #fec544; }

.pd-nav-grid {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  line-height: 54px;
  text-align: center;
  border-radius: 8px;
  background: #fec544;
  color: #070d1b;
  font-size: 18px;
  transition: all 0.3s ease;
}
.pd-nav-grid:hover { color: #070d1b; transform: translateY(-3px); }

@media (max-width: 575px) {
  .pd-nav-name { font-size: 15px; }
  .pd-nav { gap: 12px; }
}
