/* ===== Article layout: main + sticky sidebar ===== */
.article-shell {
  padding-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-side {
  min-width: 0;
}

.article-side__sticky {
  position: sticky;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.article-kicker__brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red);
  border: 1px solid var(--color-red);
  padding: 3px 9px;
  background: #fff;
}

.article-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.article-page__breadcrumb a:hover {
  color: var(--color-red);
}

.article-page__badge {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-page__title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.38;
  color: var(--color-black);
  margin-bottom: 14px;
}

.article-page__dek {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.article-tags {
  margin-bottom: 16px;
}

.article-page__meta strong {
  color: var(--color-black);
  font-weight: 700;
}

.article-page__source {
  margin: -10px 0 18px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.article-not-found {
  max-width: 680px;
  margin: 36px auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-block-start: 4px solid var(--color-red);
  background: #fff;
  text-align: center;
}

.article-not-found__eyebrow {
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 13px;
  font-weight: 700;
}

.article-not-found h1 {
  margin-bottom: 12px;
  color: var(--color-black);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
}

.article-not-found > p:not(.article-not-found__eyebrow) {
  color: var(--color-muted);
  line-height: 1.8;
}

.article-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.article-not-found__actions a {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  font-size: 14px;
  font-weight: 700;
}

.article-not-found__actions a:first-child,
.article-not-found__actions a:hover {
  background: var(--color-red);
  color: #fff;
}

.article-not-found__actions a:first-child:hover {
  background: var(--color-red-dark);
}

.article-page__hero {
  position: relative;
  margin-bottom: 8px;
  background: #111;
  overflow: hidden;
}

.article-page__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-page__hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, transparent 35%, rgba(0,0,0,0.35) 100%);
}

.article-page__hero-brand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-inline-start: 3px solid var(--color-red);
}

.article-page__hero .view-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.article-page__caption {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 18px;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--color-border);
}

.article-page__body {
  font-size: 17.5px;
  font-weight: 400;
  line-height: 2;
  color: #1f1f1f;
}

.article-page__body p {
  margin-bottom: 1.15em;
}

.article-page__loading {
  color: var(--color-muted);
  font-size: 14px;
  padding: 20px 0;
}

/* Key points */
.key-points {
  margin: 20px 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-inline-start: 0;
}

.key-points__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-points__title::before {
  content: "";
  width: 5px;
  height: 20px;
  background: var(--color-red);
}

.key-points ol,
.key-points ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  counter-reset: kp;
}

.key-points li {
  position: relative;
  padding-inline-start: 0;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  color: #222;
  counter-increment: kp;
}

.key-points li::before {
  content: counter(kp) "- ";
  color: var(--color-red);
  font-weight: 700;
  background: none;
  width: auto;
  height: auto;
  position: static;
}

/* Social follow sidebar */
.follow-card {
  border: 1px solid var(--color-border);
  background: #fff;
  overflow: hidden;
}

.follow-card__head {
  background: var(--color-black);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
}

.follow-card__list {
  display: flex;
  flex-direction: column;
}

.follow-card__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 700;
  min-height: 48px;
}

.follow-card__list a:last-child {
  border-bottom: 0;
}

.follow-card__list a:hover {
  background: var(--color-red-soft);
  color: var(--color-red);
}

.follow-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

.side-latest {
  border: 1px solid var(--color-border);
}

.side-latest__head {
  background: var(--color-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
}

.side-latest__list a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}

.side-latest__list a:last-child {
  border-bottom: 0;
}

.side-latest__list a:hover {
  color: var(--color-red);
  background: #fff8f9;
}

.side-latest__meta {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-muted);
}

/* Share */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.share-bar__label {
  font-size: 13px;
  font-weight: 700;
  margin-inline-end: 4px;
}

.share-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
}

.share-bar__btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.share-bar__btn--x {
  background: #111;
  color: #fff;
  border-color: #111;
}

.share-bar__btn--fb {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.share-bar__btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* Comments */
.comments {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid var(--color-red);
}

.comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.comments__head h2 {
  font-size: 18px;
  font-weight: 700;
}

.comments__count {
  font-size: 12.5px;
  color: var(--color-muted);
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  resize: vertical;
}

.comment-form button {
  justify-self: start;
  border: 0;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  cursor: pointer;
  min-height: 40px;
}

.comment-form button:hover {
  background: var(--color-red-dark);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment {
  display: flex;
  gap: 12px;
}

.comment__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
  font-size: 13px;
}

.comment__head span {
  color: var(--color-muted);
}

.comment__body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Related strip — like يوليو */
.related-strip {
  margin-top: 36px;
  padding-top: 8px;
}

.related-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-red);
}

.related-strip__head h2 {
  font-size: 20px;
  font-weight: 700;
}

.related-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.related-card__media {
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card:hover .related-card__media img {
  transform: scale(1.05);
}

.related-card__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-black);
  margin-bottom: 6px;
}

.related-card:hover .related-card__title {
  color: var(--color-red);
}

.related-card__meta {
  font-size: 11.5px;
  color: var(--color-muted);
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side__sticky {
    position: static;
  }

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

@media (max-width: 768px) {
  .article-page__body {
    font-size: 16px;
  }

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