.news-page {
  background: #ffffff;
  min-height: 100vh;
  font-family: "ExpoArabic", "Cairo", sans-serif;
}

.news-logo-img {
  height: 50px;
}

.news-nav-collapse {
  margin-inline-start: 60px;
}

.news-nav-list {
  gap: 15px;
}

.news-shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.news-main {
  padding: 60px 0 56px;
}

.news-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111111;
}

.news-page-subtitle {
  margin: 6px 0  50px 0;
  color: #6A6F78;
  font-size: 16px;
  font-weight: 600;
}

.news-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  justify-items: center;
}

.news-card {
  display: block;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  width: 401px;
  max-width: 100%;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  animation: cardReveal 0.65s ease forwards;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.news-card::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;
  height: 10px;
  background: #bcbcbc;
  border-radius: 0 0 14px 14px;
  z-index: 0;
}

.news-card-media {
  width: 401px;
  max-width: 100%;
  height: 497px;
  overflow: hidden;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  visibility: visible;
  transform: rotate(0deg);
  opacity: 1;
  transition: transform 0.55s ease;
}

.news-card-body {
  background: #fff;
  border-radius: 20px;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 10px 12px 9px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card-title {
  margin: 0;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  min-height: 40px;
}

.news-card-date {
  margin-top: 6px;
  color: #d4a157;
  font-size: 11px;
  font-weight: 700;
}

.news-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 20px 28px rgba(17, 24, 39, 0.22));
}

.news-card:hover .news-card-media img {
  transform: scale(1.08) rotate(1.1deg);
}

.news-card:hover .news-card-body {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.news-link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 178px;
  margin-top: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #d49a2f 0%, #f0b04c 100%);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}

.news-link-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 154, 47, 0.35);
}

.news-link-more:disabled {
  opacity: 0.82;
  cursor: wait;
}

.news-more-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.news-more-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinMore 0.85s linear infinite;
}

.news-link-more.is-loading .news-more-spinner {
  display: inline-block;
}

.news-card.is-new {
  animation: cardReveal 0.65s ease forwards;
}

.news-grid .news-card:nth-child(1) { animation-delay: 0.05s; }
.news-grid .news-card:nth-child(2) { animation-delay: 0.1s; }
.news-grid .news-card:nth-child(3) { animation-delay: 0.15s; }
.news-grid .news-card:nth-child(4) { animation-delay: 0.2s; }
.news-grid .news-card:nth-child(5) { animation-delay: 0.25s; }
.news-grid .news-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardReveal {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spinMore {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card.is-new,
  .news-card-media img,
  .news-card-body,
  .news-link-more,
  .news-more-spinner {
    animation: none !important;
    transition: none !important;
  }
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  transition: color 0.3s ease;
}
.news-detail-back:hover {
  color: #d4a157;
}

.news-detail-header {
  margin-bottom: 0;
}

.news-detail-image {
  width: 1245px;
  max-width: 100%;
  height: 508px;
  object-fit: cover;
  border-radius: 24px;
  opacity: 1;
  display: block;
  margin-inline: auto;
  margin-top: 10px;
}

.news-detail-title {
  margin: 32px 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 700 !important;
  line-height: 1.4;
  text-align: center;
}

.news-detail-date {
  margin: 8px 0 0;
  color: #d49a2f;
  font-size: 15px;
  font-weight: 500;
}

.news-article {
  margin-top: 24px;
  color: #4a5568;
  font-size: 15px;
  line-height: 2.2;
  font-weight: 400;
  text-align: center;
}

.news-article p {
  margin-bottom: 16px;
}

.news-article h3 {
  margin: 32px 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.news-related {
  margin-top: 60px;
}

.news-related-title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 991.98px) {
  .news-nav-collapse {
    margin-inline-start: 0;
  }

  .news-nav-list {
    gap: 8px;
  }

  .news-shell {
    width: min(1180px, calc(100% - 24px));
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 401 / 497;
  }

  .news-card-body {
    left: 12px;
    right: 12px;
    bottom: 10px;
    padding: 10px 12px 9px;
  }

  .news-card-title {
    font-size: 13px;
    min-height: 40px;
  }

  .news-card-date {
    font-size: 11px;
  }

  .news-detail-title,
  .news-related-title,
  .news-page-title {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 401 / 497;
  }

  .news-card-body {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 20px;
    padding: 10px 12px;
  }

  .news-card-title {
    font-size: 16px;
    min-height: 52px;
  }

  .news-card-date {
    font-size: 13px;
  }

  .news-detail-title,
  .news-related-title,
  .news-page-title {
    font-size: 22px;
  }

  .news-article {
    font-size: 15px;
    line-height: 1.9;
  }
}
