/* =========================================================
   Projects Page
   ========================================================= */

.projects-page {
  padding-bottom: 80px;
}

.projects-hero {
  padding-bottom: 0;
}

.projects-intro {
  max-width: 820px;
  margin: 0 auto;
}

.projects-section {
  margin-top: 50px;
}

.projects-section-header {
  margin-bottom: 0;
  padding-bottom: 0;
}

.projects-section-header .page-intro {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;

  width: 100%;
  max-width: 1100px;

  margin: 36px auto 0;
  padding: 0 20px;
}

.company-projects .projects-grid {
  margin-top: 28px;
}

.company-projects .project-card {
  min-height: 520px;
}

.project-card {
  display: flex;
  flex-direction: column;

  width: 100%;
  padding: 28px;

  text-align: left;
}

.project-card-header {
  margin-bottom: 18px;
  text-align: center;
}

.project-title {
  margin-bottom: 6px;

  color: var(--text-dark);
  font-size: 1.45rem;
  font-weight: 700;
}

.project-period {
  margin: 0;

  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 500;
}

.project-description {
  max-width: 760px;
  margin: 0 auto 22px;

  color: var(--text-dark);
  line-height: 1.8;
  text-align: center;
}

.project-section-title {
  margin: 24px 0 14px;

  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.project-responsibilities {
  margin: 0 auto 24px;
  padding-left: 22px;

  color: var(--text-dark);
  line-height: 1.7;
}

.project-responsibilities li {
  margin-bottom: 10px;
}

.project-card-actions {
  justify-content: center;
  margin-top: auto;
}

.experience-projects {
  margin-top: 72px;
}

.projects-note {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 16px 20px;

  background: #fafafa;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.project-closing {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 0 20px;

  text-align: center;
}

.project-section-heading {
  margin-bottom: 8px;

  color: var(--text-dark);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
}

.projects-final-actions {
  margin-top: 24px;
}

/* =========================================================
   Project Detail Page
   ========================================================= */

.projects-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.projects-detail-page .request-details-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-detail-card {
  padding: 36px;
}

.project-detail-section {
  margin-top: 56px;
}

.project-detail-section:first-of-type {
  margin-top: 0;
}

.project-detail-section .work-list {
  margin-top: 20px;
  margin-bottom: 24px;
}

.project-detail-card .project-section-title {
  margin-bottom: 26px;
  font-size: 1.2rem;
}

.project-detail-card .project-description {
  margin-bottom: 0;
}

.project-detail-card .project-responsibilities {
  margin-bottom: 0;
}

.project-detail-card .project-card-actions {
  justify-content: center;
  margin-top: 48px;
}

/* =========================================================
   Gallery
   ========================================================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;

  margin-top: 24px;
}

.project-gallery img {
  display: block;
  width: 100%;

  border: 1px solid #ddd;
  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Reference Preview
   ========================================================= */

.project-reference-preview {
  max-width: 520px;
  margin: 24px auto 28px;
}

.project-reference-preview img {
  display: block;
  width: 100%;

  border: 1px solid #ddd;
  border-radius: 10px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

  transition: transform 0.25s ease;
}

.project-reference-preview img:hover {
  transform: scale(1.02);
}

/* =========================================================
   RTL
   ========================================================= */

[dir="rtl"] .project-card-header,
[dir="rtl"] .project-title,
[dir="rtl"] .project-section-title,
[dir="rtl"] .project-section-heading,
[dir="rtl"] .project-period,
[dir="rtl"] .project-description,
[dir="rtl"] .page-intro {
  text-align: center;
}

[dir="rtl"] .project-responsibilities {
  padding-right: 28px;
  padding-left: 0;

  text-align: right;
}

[dir="rtl"] .projects-note {
  border-right: 4px solid var(--gold);
  border-left: none;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {
  .projects-page,
  .projects-detail-page {
    padding-bottom: 50px;
  }

  .projects-section,
  .experience-projects {
    margin-top: 44px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;

    margin-top: 28px;
    padding: 0 16px;
  }

  .company-projects .project-card {
    min-height: auto;
  }

  .project-card,
  .projects-detail-page .project-card {
    padding: 22px 18px;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .project-description {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .project-responsibilities li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .projects-detail-page .request-details-wrapper {
    padding: 0 16px;
  }

  .project-detail-card {
    padding: 22px 18px;
  }

  .project-detail-section {
    margin-top: 36px;
  }

  .project-detail-section .work-list {
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-reference-preview {
    max-width: 100%;
  }
}
