/* Project Template CSS */
:root {
  --project-hero-bg: #f4f7f6;
  --project-border: #e2e8f0;
}

/* Base resets for project page */
.project-main {
  background-color: #ffffff;
}

/* 404 State */
.project-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.project-not-found h1 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.project-not-found p {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Hero Section */
.project-hero {
  padding: 80px 0 40px;
  background-color: var(--project-hero-bg);
  border-bottom: 1px solid var(--project-border);
}

.project-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.project-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.project-breadcrumb a:hover {
  text-decoration: underline;
}

.project-breadcrumb .sep {
  color: #94a3b8;
  font-size: 0.8rem;
}

.project-category-badge {
  display: inline-block;
  background: rgba(11, 110, 255, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.project-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.project-tagline {
  font-size: 1.25rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
}

.project-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-top: 1px solid var(--project-border);
  padding-top: 30px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Gallery Section */
.project-gallery-section {
  padding: 60px 0;
  background: #ffffff;
}

.project-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pg-main-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  object-fit: cover;
  max-height: 700px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg-main-img:hover {
  transform: scale(1.01);
}

.pg-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pg-secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg-secondary-img:hover {
  transform: scale(1.02);
}

/* Content Layout */
.project-content-section {
  padding: 60px 0;
}

.project-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 60px;
}

.section-label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.content-block h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 24px;
}

.content-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 20px;
}

/* Challenges Cards - Balanced 2x2 Grid */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  align-items: stretch;
}

.challenge-card {
  background: #ffffff;
  border: 1px solid var(--project-border, #e2e8f0);
  padding: 28px 30px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary, #0b6eff) 0%, #60a5fa 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(11, 110, 255, 0.12);
  border-color: rgba(11, 110, 255, 0.35);
}

.challenge-card:hover::before {
  opacity: 1;
}

.challenge-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(11, 110, 255, 0.08);
  color: var(--primary, #0b6eff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.challenge-card:hover .challenge-icon-wrap {
  background: var(--primary, #0b6eff);
  color: #ffffff;
}

.challenge-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.challenge-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--secondary, #0f172a);
  text-align: left;
  line-height: 1.35;
}

.challenge-card-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gray, #64748b);
  margin-bottom: 0;
  text-align: left;
  flex-grow: 1;
}

@media (max-width: 700px) {
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .challenge-card {
    padding: 24px 20px;
  }
}

/* Solutions Section & Stacked Horizontal Cards */
.project-solution-section {
  width: 100%;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 85px 0;
  margin: 50px 0;
}

.solution-section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.solution-header-block {
  margin-bottom: 44px;
}

.solution-header-block .section-label {
  color: var(--primary, #0b6eff);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  display: block;
}

.solution-heading {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--secondary, #0f172a);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.solution-summary-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--gray, #64748b);
  max-width: 780px;
  margin-bottom: 0;
}

/* Stacked List Container */
.solutions-stacked-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* Full-Width Horizontal Card (Desktop: 3 Areas) */
.solution-horizontal-card {
  background: #ffffff;
  border: 1px solid var(--project-border, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.04), 0 2px 6px -2px rgba(15, 23, 42, 0.02);
  padding: 28px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  z-index: 1;
}

/* Top-Left Blue Accent Line */
.solution-horizontal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--primary, #0b6eff);
  border-radius: 0 0 4px 0;
  transition: width 0.28s ease;
}

.solution-horizontal-card:hover::before {
  width: 100px;
}

/* Hover Interaction */
.solution-horizontal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 110, 255, 0.35);
  box-shadow: 0 16px 36px -10px rgba(11, 110, 255, 0.12), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
}

/* Left Area: Number + Icon */
.solution-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  flex-shrink: 0;
  position: relative;
}

.solution-card-left::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 110, 255, 0.12) 0%, rgba(11, 110, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.solution-number-badge {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary, #0b6eff);
  background: rgba(11, 110, 255, 0.08);
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: var(--font-heading, sans-serif);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.solution-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 14px;
  background: rgba(11, 110, 255, 0.08);
  color: var(--primary, #0b6eff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background-color 0.28s ease, color 0.28s ease;
  position: relative;
  z-index: 1;
}

.solution-horizontal-card:hover .solution-icon-wrap {
  background: var(--primary, #0b6eff);
  color: #ffffff;
}

/* Middle Area: Title & Description */
.solution-card-middle {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.solution-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary, #0f172a);
  margin-bottom: 8px;
  line-height: 1.35;
}

.solution-desc {
  font-size: 0.98rem;
  color: var(--gray, #64748b);
  line-height: 1.65;
  margin: 0;
}

/* Right Area: Outcome Panel */
.solution-card-right {
  width: 290px;
  min-width: 270px;
  max-width: 320px;
  flex-shrink: 0;
}

.solution-outcome-panel {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.solution-outcome-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  margin-bottom: 2px;
}

.solution-outcome-header i {
  font-size: 0.8rem;
  color: #16a34a;
}

.solution-outcome-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #15803d;
  line-height: 1.45;
  margin: 0 !important;
}

/* Responsive Behaviour */
@media (max-width: 992px) {
  .project-solution-section {
    padding: 70px 0;
    margin: 40px 0;
  }

  .solution-horizontal-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "left middle"
      "right right";
    gap: 20px 24px;
    align-items: start;
    padding: 24px 28px;
  }

  .solution-card-left {
    grid-area: left;
    align-items: flex-start;
  }

  .solution-card-left::after {
    display: none;
  }

  .solution-card-middle {
    grid-area: middle;
  }

  .solution-card-right {
    grid-area: right;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .project-solution-section {
    padding: 60px 0;
    margin: 30px 0;
  }

  .solution-horizontal-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 16px;
  }

  .solution-card-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: auto;
    width: 100%;
  }

  .solution-number-badge {
    margin-bottom: 0;
  }

  .solution-icon-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.15rem;
  }

  .solution-card-middle {
    width: 100%;
  }

  .solution-card-right {
    width: 100%;
    max-width: 100%;
  }
}

/* Process Section Redesign - Alternating Timeline */
.process-block {
  margin-bottom: 70px;
}

.process-subheading {
  font-size: 1.05rem;
  color: var(--gray, #64748b);
  line-height: 1.65;
  margin-top: -12px;
  margin-bottom: 40px;
  max-width: 800px;
  text-align: left;
}

.process-timeline-wrapper {
  position: relative;
  width: 100%;
}

.timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Central Vertical Line */
.timeline-line-base {
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: #cbd5e1;
  z-index: 1;
  border-radius: 2px;
}

.timeline-line-progress {
  position: absolute;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0%;
  max-height: calc(100% - 58px);
  background-color: var(--primary, #0b6eff);
  z-index: 2;
  border-radius: 2px;
  transition: height 0.15s ease-out;
}

/* Row Grid Layout (Desktop) */
.timeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  position: relative;
  z-index: 3;
}

.timeline-card-col {
  width: 100%;
  display: flex;
}

.timeline-row.is-left .timeline-card-col {
  justify-content: flex-end;
}

.timeline-row.is-right .timeline-card-col {
  justify-content: flex-start;
}

.timeline-empty-col {
  width: 100%;
}

/* Marker Column & Connector Lines */
.timeline-marker-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
  width: 100%;
}

.timeline-connector {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: #cbd5e1;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.left-connector {
  left: 0;
  right: 50%;
}

.right-connector {
  left: 50%;
  right: 0;
}

.timeline-row.is-active .timeline-connector {
  background-color: var(--primary, #0b6eff);
}

/* Circular Number Markers */
.timeline-marker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--primary, #0b6eff);
  color: var(--primary, #0b6eff);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 110, 255, 0.15);
  z-index: 5;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.timeline-row.is-active .timeline-marker {
  background: var(--primary, #0b6eff);
  color: #ffffff;
  border-color: var(--primary, #0b6eff);
  box-shadow: 0 6px 18px rgba(11, 110, 255, 0.35);
}

/* Process Cards */
.process-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px 28px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 4;
  text-align: left;
}

/* Card Header - Unified Centered Vertical Alignment & [Icon] Title Sequence for All Steps */
.process-card-header,
.timeline-row.is-left .process-card-header,
.timeline-row.is-right .process-card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
  text-align: left;
}

/* Standardized 36x36 Icon Container & Centering */
.step-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  align-self: center;
  border-radius: 10px;
  background: rgba(11, 110, 255, 0.08);
  color: var(--primary, #0b6eff);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.step-icon-wrap svg,
.step-icon-wrap i {
  display: block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  margin: 0;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  text-align: center;
}

.step-icon-wrap i::before {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Reset & Vertically Center Card Title */
.step-title,
.timeline-row.is-left .step-title,
.timeline-row.is-right .step-title {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 21px;
  font-weight: 700;
  color: var(--secondary, #0f172a);
  min-width: 0;
  text-align: left;
}

/* Consistent Description Spacing Below Header */
.step-desc,
.timeline-row.is-left .step-desc,
.timeline-row.is-right .step-desc {
  margin: 0;
  margin-top: 18px;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray, #64748b);
  text-align: left;
}

/* Card Hover Interactions */
.timeline-row.is-left .process-card:hover {
  transform: translateX(3px);
  border-color: rgba(11, 110, 255, 0.4);
  box-shadow: 0 10px 28px rgba(11, 110, 255, 0.12);
}

.timeline-row.is-right .process-card:hover {
  transform: translateX(-3px);
  border-color: rgba(11, 110, 255, 0.4);
  box-shadow: 0 10px 28px rgba(11, 110, 255, 0.12);
}

.process-card:hover .step-icon-wrap {
  box-shadow: 0 0 12px rgba(11, 110, 255, 0.35);
  background: rgba(11, 110, 255, 0.15);
}

/* Mobile Responsive Design (<868px) */
@media (max-width: 868px) {
  .timeline-grid {
    gap: 24px;
  }

  .timeline-line-base {
    left: 22px;
    transform: none;
    top: 22px;
    bottom: 22px;
    width: 3px;
  }

  .timeline-line-progress {
    left: 22px;
    transform: none;
    top: 22px;
    max-height: calc(100% - 44px);
    width: 3px;
  }

  .timeline-row {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 16px;
    align-items: center;
  }

  .timeline-empty-col {
    display: none !important;
  }

  .timeline-marker-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 44px !important;
  }

  .timeline-card-col {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    border-width: 3px;
    font-size: 0.95rem;
  }

  .timeline-connector {
    display: none !important;
  }

  .process-card,
  .timeline-row.is-left .process-card,
  .timeline-row.is-right .process-card {
    text-align: left !important;
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .process-card-header,
  .timeline-row.is-left .process-card-header,
  .timeline-row.is-right .process-card-header {
    justify-content: flex-start !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .step-title,
  .timeline-row.is-left .step-title,
  .timeline-row.is-right .step-title {
    align-items: center !important;
    min-height: 36px !important;
    text-align: left !important;
    font-size: 19px !important;
  }

  .step-desc,
  .timeline-row.is-left .step-desc,
  .timeline-row.is-right .step-desc {
    text-align: left !important;
    font-size: 15px !important;
    margin-top: 14px !important;
  }

  .timeline-row.is-left .process-card:hover,
  .timeline-row.is-right .process-card:hover {
    transform: translateY(-3px) !important;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

  .process-card,
  .timeline-marker,
  .timeline-line-progress,
  .step-icon-wrap,
  .timeline-connector {
    transition: none !important;
    transform: none !important;
  }
}

/* Tech Stack Cards */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tech-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--project-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.tech-icon {
  font-size: 2rem;
  color: var(--primary);
}

.tech-info h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 5px;
}

.tech-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.tech-info p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Results & Features lists */
.feature-list,
.results-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.feature-list li,
.results-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.05rem;
  color: var(--gray);
}

.feature-list li::before,
.results-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
}

/* Related Projects */
.related-projects-section {
  padding: 80px 0;
  background: var(--project-hero-bg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.related-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.rc-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rc-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rc-category {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.rc-desc {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rc-tech span {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 12px;
}

.rc-btn {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-btn i {
  transition: transform 0.3s ease;
}

.related-card:hover .rc-btn i {
  transform: translateX(4px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-title {
    font-size: 2.2rem;
  }

  .pg-secondary-grid,
  .tech-grid,
  .feature-list,
  .results-list {
    grid-template-columns: 1fr;
  }

  .meta-item {
    min-width: 120px;
  }
}

@media (max-width: 576px) {
  .project-title {
    font-size: 1.8rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .project-meta-grid {
    flex-direction: column;
    gap: 20px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}