/* =======================================================
   GENERAL SECTION STYLES & BACKGROUND ALTERNATION
======================================================= */

.section-label {
  display: inline-block;
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* สลับโทนสีพื้นหลังของแต่ละ Section เพื่อสร้างมิติ */
.project-hero {
  padding: 100px 0 60px;
  background: #ffffff;
}

.project-about {
  background: #f8f9fa;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.project-development {
  background: #ffffff;
}

.project-learned {
  background: #f8f9fa;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.project-related {
  background: #ffffff;
}

/* =======================================================
   1. PROJECT HERO
======================================================= */

.project-main-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.project-main-image:hover {
  transform: translateY(-4px);
}

.version-text {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-category {
  display: inline-block;
  color: var(--primary-orange);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8c98a4;
  text-transform: uppercase;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: #e9ecef;
  margin: 24px 0;
}

.project-hero .lead {
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-badge {
  color: #fff;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}

.project-badge-orange { background: var(--primary-orange); }
.project-badge-year { background: #4a5568; }
.project-badge-green { background: #198754; }

.project-image-caption {
  font-size: 0.82rem;
  color: #6c757d;
  text-align: center;
}

/* =======================================================
   2. PROJECT ABOUT
======================================================= */

.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.project-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.project-card-title h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
}

.project-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff4e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-card-icon i {
  font-size: 1.4rem;
  color: var(--primary-orange);
}

.project-card p {
  color: #475569;
  line-height: 1.85;
  font-size: 1rem;
}

.project-highlight {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #ffe8cc;
  border-radius: 12px;
}

.highlight-icon {
  color: var(--primary-orange);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.project-highlight h6 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.9rem;
  color: #1e293b;
}

.project-highlight p {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item span {
  color: #64748b;
  font-size: 0.9rem;
}

.spec-item strong {
  text-align: right;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
}

/* =======================================================
   3. PROJECT DEVELOPMENT
======================================================= */

.development-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.development-gallery,
.development-evolution {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.development-gallery h3,
.development-evolution h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.development-gallery h3 i,
.development-evolution h3 i {
  color: var(--primary-orange);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-photo:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.gallery-overlay span {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary-orange);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Timeline / Evolution Line */
.evolution-line {
  position: relative;
  padding-left: 28px;
}

.evolution-line::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #ffd8a8;
}

.evolution-step {
  position: relative;
  margin-bottom: 24px;
}

.evolution-step:last-child {
  margin-bottom: 0;
}

.dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary-orange);
}

.evolution-step span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.evolution-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 2px 0 4px;
}

.evolution-step p {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0;
}

/* =======================================================
   4. LESSONS LEARNED
======================================================= */

.lesson-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  height: 100%;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.lesson-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff4e8;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.lesson-card h5 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #1e293b;
}

.lesson-card p {
  color: #64748b;
  line-height: 1.85;
  margin-bottom: 0;
  font-size: 1rem;
}

/* =======================================================
   5. RELATED PROJECTS & NAVIGATION
======================================================= */

.related-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.25s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-body {
  padding: 20px;
}

.related-year {
  color: var(--primary-orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.related-body h5 {
  margin: 8px 0;
  font-weight: 700;
  font-size: 1rem;
}

.related-body p {
  color: #64748b;
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.related-link {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.related-link:hover {
  color: var(--primary-hover);
}

/* Bottom Navigation */
.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.project-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.project-nav:hover {
  color: var(--primary-orange);
}

.project-nav small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.project-nav strong {
  font-size: 0.95rem;
}

.project-home {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary-orange);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.project-home:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* =======================================================
   6. RESPONSIVE QUERIES
======================================================= */

@media (max-width: 991px) {
  .development-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .project-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .project-nav-wrapper {
    width: 100%;
  }

  .project-nav.next {
    justify-content: flex-end;
  }

  .project-home {
    width: 100%;
    text-align: center;
    order: -1;
  }
}