.page-header {
  padding: 40px var(--pad-h) 32px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  direction: rtl;
}

.page-title-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-title {
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--bone);
}

.page-count {
  font-size: 12px;
  color: var(--gray);
}

.featured-parvande {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--border);
  min-height: 420px;
  direction: ltr;
  cursor: pointer;
  transition: background 0.2s;
}

.featured-parvande:hover {
  background: rgba(243, 235, 221, 0.01);
}

.featured-poster {
  position: relative;
  overflow: hidden;
  background: #111;
}

.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--yellow);
  background: rgba(5, 5, 5, 0.8);
  padding: 4px 10px;
  text-transform: uppercase;
}

.featured-info {
  padding: 40px var(--pad-h-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 0.5px solid var(--border);
  direction: rtl;
}

.featured-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.featured-title {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--bone);
  line-height: 1.4;
  margin-bottom: 10px;
}

.featured-subtitle {
  font-size: 13px;
  color: rgba(243, 235, 221, 0.5);
  margin-bottom: 28px;
  line-height: 1.6;
}

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--black);
  background: var(--yellow);
  padding: 8px 18px;
  width: fit-content;
  transition: opacity 0.2s;
}

.featured-link:hover {
  opacity: 0.88;
  color: var(--black);
}

.grid-label {
  padding: 16px var(--pad-h);
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gray);
  text-transform: uppercase;
}

.parvandeha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 0.5px solid var(--border);
}

.parvande-card {
  border-left: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.parvande-card:nth-child(3n + 1) {
  border-left: none;
}

.parvande-card:hover {
  background: rgba(243, 235, 221, 0.02);
}

.card-poster {
  width: 100%;
  aspect-ratio: 1 / 1.41;
  overflow: hidden;
  background: #0d0d0d;
  position: relative;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.parvande-card:hover .card-poster img {
  transform: scale(1.03);
}

.card-info {
  padding: 16px 20px;
  border-top: 0.5px solid var(--border);
}

.card-title {
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.parvande-card:hover .card-title {
  color: var(--yellow);
}

.card-subtitle {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-eps {
  font-size: 12px;
  color: var(--gray);
}

.card-status {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.card-status.active {
  color: var(--yellow);
}

.cases-archive {
  width: min(1164px, calc(100% - 72px));
  margin: 0 auto;
  padding: 96px 0 0;
  direction: rtl;
}

.cases-archive-head {
  position: relative;
  min-height: 245px;
  padding: 0 0 70px;
}

.cases-archive-kicker {
  margin-bottom: 22px;
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: #77736a;
}

.cases-archive-title {
  margin: 0;
  font-family: var(--font-fa);
  font-size: clamp(54px, 6.4vw, 86px);
  font-weight: 900;
  line-height: 1.05;
  color: #f3ebdd;
}

.cases-archive-count {
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: #77736a;
}

.cases-archive-intro {
  max-width: 600px;
  margin: 38px 0 0;
  font-family: var(--font-fa);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: #77736a;
  text-align: justify;
  text-align-last: right;
}

.cases-featured {
  display: grid;
  grid-template-columns: 430px minmax(0, 560px);
  justify-content: space-between;
  align-items: start;
  gap: 80px;
  padding: 0 0 110px;
}

.cases-featured-poster {
  display: block;
  width: 430px;
  aspect-ratio: 430 / 614;
  overflow: hidden;
  background: #0b0b0b;
}

.cases-featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cases-featured-info {
  padding-top: 92px;
  text-align: right;
}

.cases-featured-label {
  margin-bottom: 22px;
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: #77736a;
}

.cases-featured-title {
  margin: 0 0 24px;
  font-family: var(--font-fa);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  color: #f3ebdd;
}

.cases-featured-title a,
.cases-featured-meta a {
  color: inherit;
}

.cases-featured-subtitle {
  margin: 0 0 22px;
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #77736a;
}

.cases-featured-desc {
  max-width: 535px;
  margin: 0 0 46px;
  font-family: var(--font-fa);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: #77736a;
  text-align: justify;
  text-align-last: right;
}

.cases-featured-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  font-family: var(--font-fa);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #77736a;
}

.cases-featured-meta a {
  color: #f3ebdd;
}

.cases-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 37px;
  font-family: var(--font-fa);
  font-size: 19px;
  font-weight: 500;
  line-height: 24px;
  color: #77736a;
}

.cases-list-head a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 285px);
  gap: 72px 8px;
  padding: 0 0 126px;
}

.cases-card {
  width: 285px;
}

.cases-card-link {
  display: block;
}

.cases-card-poster {
  width: 285px;
  height: 403px;
  overflow: hidden;
  background: #0b0b0b;
}

.cases-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 380ms ease, opacity 380ms ease;
}

.cases-card:hover .cases-card-poster img {
  transform: scale(1.025);
  opacity: 0.86;
}

.cases-card-info {
  padding: 24px 0 0;
  text-align: center;
}

.cases-card-title {
  max-width: 250px;
  margin: 0 auto 7px;
  font-family: var(--font-fa);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  color: #f3ebdd;
}

.cases-card-subtitle {
  max-width: 250px;
  margin: 0 auto 7px;
  font-family: var(--font-fa);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: #77736a;
}

.cases-card-count,
.cases-empty {
  font-family: var(--font-fa);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #77736a;
}

.cases-empty {
  padding: 90px 0 140px;
  text-align: center;
}

@media (max-width: 1179px) {
  .cases-archive {
    width: min(100% - 48px, 1164px);
    padding-top: 64px;
  }

  .cases-featured {
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 48px;
  }

  .cases-featured-poster {
    width: 100%;
  }

  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 16px;
  }

  .cases-card-poster {
    height: auto;
    aspect-ratio: 285 / 403;
  }
}

@media (max-width: 768px) {
  .cases-archive {
    width: calc(100% - 36px);
    padding-top: 44px;
  }

  .cases-archive-head {
    min-height: 0;
    padding-bottom: 48px;
  }

  .cases-archive-count {
    position: static;
    margin-top: 18px;
  }

  .cases-featured {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 68px;
  }

  .cases-featured-poster {
    max-width: 420px;
    margin: 0 auto;
  }

  .cases-featured-info {
    padding-top: 0;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 14px;
    padding-bottom: 84px;
  }

  .cases-list-head {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .cases-card-poster {
    max-width: 340px;
    margin: 0 auto;
  }
}

.cases-archive {
  position: relative;
  width: min(1160px, calc(100% - 72px));
  padding-top: 78px;
}

.cases-archive-head {
  min-height: 0;
  padding: 0;
}

.cases-archive-kicker,
.cases-archive-count,
.cases-archive-intro,
.cases-featured-label,
.cases-list-head,
.cases-card-subtitle {
  display: none;
}

.cases-archive-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cases-breadcrumbs {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 2;
  margin: 0;
  font-family: var(--font-fa);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #77736a;
}

.cases-featured {
  display: grid;
  grid-template-columns: 426px 610px;
  justify-content: space-between;
  align-items: start;
  gap: 0;
  direction: ltr;
  padding: 0 0 85px;
}

.cases-featured-poster {
  width: 426px;
  height: 604px;
  aspect-ratio: auto;
}

.cases-featured-info {
  width: 610px;
  padding-top: 42px;
  direction: rtl;
  text-align: right;
}

.cases-featured-title {
  margin: 0 0 26px;
  font-family: var(--font-fa);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.28;
  color: #f3ebdd;
}

.cases-featured-subtitle {
  margin: 0 0 26px;
  font-family: var(--font-fa);
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #77736a;
}

.cases-featured-desc {
  max-width: 610px;
  margin: 0 0 78px;
  font-family: var(--font-fa);
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #77736a;
  text-align: justify;
  text-align-last: right;
}

.cases-featured-meta {
  display: block;
  width: 100%;
  font-family: var(--font-fa);
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #77736a;
  text-align: left;
}

.cases-featured-meta span {
  display: none;
}

.cases-featured-meta a {
  display: inline-block;
  color: #77736a;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 284px);
  column-gap: 9px;
  row-gap: 30px;
  direction: rtl;
  padding: 0 0 420px;
}

.cases-card {
  width: 284px;
}

.cases-card-poster {
  width: 284px;
  height: 400px;
  aspect-ratio: auto;
}

.cases-card-info {
  padding-top: 24px;
  text-align: center;
}

.cases-card-title {
  max-width: 284px;
  margin: 0 auto 5px;
  font-family: var(--font-fa);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  color: #f3ebdd;
}

.cases-card-count {
  font-family: var(--font-fa);
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #77736a;
  text-align: center;
}

@media (max-width: 1179px) {
  .cases-archive {
    width: min(100% - 48px, 940px);
    padding-top: 58px;
  }

  .cases-breadcrumbs {
    position: static;
    margin: 0 0 28px;
  }

  .cases-featured {
    grid-template-columns: minmax(260px, 426px) minmax(0, 1fr);
    gap: 44px;
    direction: ltr;
    padding: 0 0 70px;
  }

  .cases-featured-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 426 / 604;
  }

  .cases-featured-info {
    width: auto;
    padding-top: 24px;
  }

  .cases-featured-title {
    font-size: 35px;
  }

  .cases-featured-desc {
    font-size: 16px;
    line-height: 1.75;
  }

  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px 16px;
    padding-bottom: 160px;
  }

  .cases-card,
  .cases-card-poster {
    width: 100%;
  }

  .cases-card-poster {
    height: auto;
    aspect-ratio: 284 / 400;
  }

  .cases-card-title {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .cases-archive {
    width: calc(100% - 36px);
    padding-top: 42px;
  }

  .cases-featured {
    grid-template-columns: 1fr;
    direction: rtl;
    gap: 28px;
    padding-bottom: 58px;
  }

  .cases-featured-poster {
    max-width: 426px;
    margin: 0 auto;
  }

  .cases-featured-title {
    font-size: clamp(28px, 8vw, 35px);
  }

  .cases-featured-subtitle,
  .cases-featured-desc,
  .cases-featured-meta {
    font-size: 15px;
    line-height: 1.8;
  }

  .cases-featured-desc {
    margin-bottom: 34px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 14px;
    padding-bottom: 100px;
  }

  .cases-card-title {
    font-size: 14px;
  }

  .cases-card-count {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}
