/* Project Detail - Premium Editorial Design */

:root {
  --font-heading: 'Outfit', sans-serif;
  /* Assuming Outfit or similar modern sans */
  --font-body: 'Inter', sans-serif;
  --color-text-main: #1a202c;
  --color-text-muted: #4a5568;
  --color-primary: #ec1c24;
  /* DotRed Primary */
  --color-bg-light: #f8f9fa;
  --color-border: #e2e8f0;
}

/* Hero Section */
.project-hero {
  background: white;
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  /* Keep hero centered for impact */
  background: linear-gradient(180deg, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.5) 100%);
}

.project-hero .breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.project-hero .breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.project-hero .breadcrumbs a:hover {
  color: var(--color-primary);
}

.project-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-hero .lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-main);
  font-size: 0.9375rem;
  font-weight: 500;
  background: white;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.meta-item i {
  color: var(--color-primary);
}

.project-hero .btn {
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
}

/* Main Content */
.project-main {
  padding: 5rem 0;
  background: white;
  text-align: left;
  /* Reset separation from center */
}

/* Gallery - Masonry Layout */
.project-gallery {
  margin-bottom: 6rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 992px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Content Wrapper */
.project-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  /* Center the column */
}

.content-section {
  margin-bottom: 4rem;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Decorative line for headers */
.content-section h2::after {
  content: '';
  display: block;
  height: 2px;
  flex: 1;
  background: var(--color-border);
  opacity: 0.5;
}

/* Rich Text Styling */
.content-text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  /* Slightly darker for readability */
}

.content-text p {
  margin-bottom: 1.5rem;
}

.content-text ul,
.content-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-text li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.content-text h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.content-text strong {
  color: #111;
  font-weight: 700;
}

.content-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Testimonial */
.testimonial-section {
  background: #f8fafc;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin: 4rem 0;
  position: relative;
  border: 1px solid var(--color-border);
  text-align: center;
}

.testimonial-section::before {
  content: '“';
  font-family: serif;
  font-size: 6rem;
  color: var(--color-primary);
  opacity: 0.1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-section blockquote {
  margin: 0;
  position: relative;
  z-index: 1;
}

.testimonial-section p {
  font-size: 1.25rem;
  font-style: italic;
  color: #2d3748;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-section cite {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  font-style: normal;
}

.testimonial-section cite::before {
  content: '— ';
  color: var(--color-primary);
}

/* Related Projects */
.related-projects {
  background: #fff;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
}

.related-projects h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  group: no-action;
  /* Just a marker comment */
}

.project-card-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover .project-card-image {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  /* Aspect handled by container/grid usually, or ensure aspect-ratio css is here if needed. */
  aspect-ratio: 16/10;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.project-card:hover h3 {
  color: var(--color-primary);
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .gallery-item {
    grid-column: span 12 !important;
    /* Stack gallery images on tablet/mobile */
  }
}

@media (max-width: 768px) {
  .project-hero h1 {
    font-size: 2.5rem;
  }

  .project-content-wrapper {
    padding: 0 1rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }
}