/* ==========================================================================
   LIUTONG FOUNTAIN - project-content page styles (split from content.css)
   ========================================================================== */

/* ---------- Project Detail: Overview Header ---------- */
.pd-header-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.pd-header-text h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--brand);
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0 0 20px;
  line-height: 1.2;
}

/* ---------- Project Info Table ---------- */
.pd-info-table-wrap {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.pd-info-table {
  width: 100%;
  border-collapse: collapse;
}
.pd-info-table tr {
  border-bottom: 1px solid var(--line);
}
.pd-info-table tr:last-child {
  border-bottom: none;
}
.pd-info-table th {
  text-align: left;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 24px;
}
.pd-info-table td {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
}

/* ---------- Project Detail: 3 Images Row ---------- */
.pd-images-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-img-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.pd-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pd-img-item:hover img {
  transform: scale(1.04);
}

/* ---------- Project Detail: Overview Text ---------- */
.pd-overview-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 16px;
}

/* ---------- Project Detail: Challenge List ---------- */
.pd-challenge-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.pd-challenge-list li {
  margin-bottom: 20px;
}
.pd-challenge-list li:last-child {
  margin-bottom: 0;
}
.pd-challenge-list li strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.pd-challenge-list li p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Project Detail: Solution Grid ---------- */
.pd-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.pd-solution-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.pd-sol-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-water);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-solution-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.pd-solution-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Project Detail: Feedback Quote ---------- */
.pd-feedback-quote {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin: 0 0 24px;
  border: none;
  padding: 0;
  position: relative;
}

/* ---------- Project Detail: Related Grid ---------- */
.pd-related-grid {
  grid-template-columns: repeat(2, 1fr);
}@media (max-width: 1024px) {
.pd-header-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 1024px) {
.pd-images-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
.pd-solution-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
.pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
.pd-images-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
.pd-solution-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 768px) {
.pd-related-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   RELATED PROJECTS (Project Content Page)
   ========================================================================== */

/* Change the related projects grid to 2 columns */
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
  gap: 32px;
}

/* Ensure the dots container is centered and has proper spacing */
.pd-related-grid + .testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

/* Style the dots to match the screenshot */
.pd-related-grid + .testimonial-dots .tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e2e8f0; /* Light gray inactive dot */
  transition: background-color 0.3s;
  cursor: pointer;
}

/* Active dot styling */
.pd-related-grid + .testimonial-dots .tdot.active {
  background-color: var(--brand-3, #0088ff) !important; /* Brand blue */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .pd-related-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
  }
}