/* ─────────────────────────────────────────────────────────────
   ALWIN — Project detail page (project.html)
   Extends work-details-area from style.css + alwin.css tokens. RTL-first.
───────────────────────────────────────────────────────────── */

html[lang="fa"] .body-project-detail .main-menu > ul > li > a.active {
  color: var(--alwin-primary);
  position: relative;
}
html[lang="fa"] .body-project-detail .main-menu > ul > li > a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--alwin-primary);
}

/* breadcrumb */
.project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--alwin-gray);
  margin-bottom: 28px;
}
.project-breadcrumb a {
  color: var(--alwin-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.project-breadcrumb a:hover {
  opacity: 0.75;
}
.project-breadcrumb .sep {
  opacity: 0.45;
}
.project-breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

/* hero title tweaks */
.body-project-detail .work-details-area .section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.body-project-detail .work-details-area .section-title-wrapper .title-thumb {
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.12);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f4f6;
  max-width: 315px;
}
.body-project-detail .work-details-area .section-title-wrapper .title-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.project-type-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--alwin-primary);
  background: rgba(0, 67, 133, 0.08);
  padding: 8px 16px;
  border-radius: 999px;
}

.project-type-tag[hidden] {
  display: none !important;
}

/* meta row */
.body-project-detail .work-details-area .meta-item .title {
  font-size: 14px;
  color: var(--alwin-gray);
  margin-bottom: 6px;
}
.body-project-detail .work-details-area .meta-item .text {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

/* hero banner */
.project-detail-hero-image {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
  background: #f2f4f6;
  overflow: hidden;
}
.project-detail-hero-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.project-detail-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

/* overview */
.body-project-detail .work-details-area .section-info .title {
  font-weight: 700;
  line-height: 1.35;
}
.body-project-detail .work-details-area .section-info .text {
  font-size: 17px;
  line-height: 1.95;
  color: var(--alwin-gray);
}
.body-project-detail .work-details-area .section-info .feature-list li {
  font-size: 15px;
}

/* specs cards */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.project-specs-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.project-specs-grid--1 {
  grid-template-columns: 1fr;
  max-width: 360px;
}
.project-specs-grid[hidden],
.meta-wrapper[hidden],
.feature-list[hidden],
.section-details[hidden] {
  display: none !important;
}
@media (max-width: 991px) {
  .project-specs-grid,
  .project-specs-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .project-specs-grid,
  .project-specs-grid--2,
  .project-specs-grid--1 {
    grid-template-columns: 1fr;
    max-width: none;
  }
}
.project-spec-card {
  background: var(--alwin-gray-light);
  border-radius: 20px;
  padding: 28px 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-spec-card:hover {
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
  transform: translateY(-3px);
}
.project-spec-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--alwin-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.project-spec-card .label {
  font-size: 13px;
  color: var(--alwin-gray);
  margin-bottom: 6px;
}
.project-spec-card .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
  margin: 0;
}

/* pagination RTL */
html[dir="rtl"] .body-project-detail .work-details-area .pagination {
  flex-direction: row-reverse;
}
html[dir="rtl"] .body-project-detail .work-details-area .pagination a svg {
  transform: scaleX(-1);
}
.body-project-detail .work-details-area .pagination a {
  font-family: inherit;
  font-weight: 500;
  border-radius: 999px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.body-project-detail .work-details-area .pagination a:hover {
  background: var(--alwin-primary);
  border-color: var(--alwin-primary);
  color: #fff;
}
.body-project-detail .work-details-area .pagination a small.label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.body-project-detail .work-details-area .pagination a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* not found */
.project-not-found {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.project-not-found h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.project-not-found p {
  color: var(--alwin-gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

html[lang="fa"] .body-project-detail .cta-area .section-title {
  max-width: 14rem;
}
