/* =========================================================
   Sheba Aviation — News & Media
   Loaded by news.php, news-article.php and index.html
   (for the homepage "Latest News" strip).
   Depends on the tokens defined in css/style.css.
   ========================================================= */

/* =================== NEWS HERO =================== */
.news-hero {
  position: relative;
  padding: 190px 0 150px;
  background: var(--blue-950);
  overflow: hidden;
  isolation: isolate;
}
.news-hero__bg { position: absolute; inset: 0; z-index: 0; }
.news-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  opacity: .5;
}
.news-hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,24,.86) 0%, rgba(5,13,24,.66) 45%, rgba(5,13,24,.97) 100%),
    radial-gradient(90% 70% at 12% 0%, rgba(36,135,197,.38) 0%, transparent 62%);
}
.news-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
}
.news-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.news-hero .eyebrow { color: var(--brand-light); }
.news-hero h1 {
  font-size: clamp(40px, 6.4vw, 74px);
  color: var(--white);
  line-height: 1;
}
.news-hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-light) 0%, var(--brand) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.news-hero__lead {
  color: rgba(255,255,255,.7);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  max-width: 620px;
  margin-top: 22px;
}

/* =================== BODY SHELL =================== */
.news-body { background: var(--sky-100); padding: 0 0 110px; position: relative; }
.news-body::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36,135,197,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.news-body > .container { position: relative; z-index: 1; }

/* =================== FEATURED POST =================== */
.news-featured {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: -90px;
  border: 1px solid var(--line);
}
.news-featured__media { position: relative; min-height: 400px; overflow: hidden; }
.news-featured__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.news-featured:hover .news-featured__media img { transform: scale(1.05); }
.news-featured__flag {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(5,13,24,.62);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.news-featured__flag i { color: var(--brand-light); font-size: 11px; }
.news-featured__content { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.news-featured__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
  margin-bottom: 18px;
}
.news-featured__content h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--ink);
  line-height: 1.1;
}
.news-featured__content h2 a { transition: color .3s var(--ease); }
.news-featured__content h2 a:hover { color: var(--brand); }
.news-featured__content p {
  color: var(--ink-soft);
  font-size: 16px; line-height: 1.75;
  margin-top: 18px;
}
.news-featured__link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-weight: 700; color: var(--brand); font-size: 15px;
}
.news-featured__link i { transition: transform .35s var(--ease); }
.news-featured__link:hover i { transform: translateX(5px); }

/* =================== TOOLBAR / CATEGORY FILTER =================== */
.news-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin: 72px 0 34px;
}
/* padding, not margin — a top margin here collapses out of .news-body and
   leaves a white gap under the hero. */
.news-toolbar--top { margin-top: 0; padding-top: 44px; }
.news-toolbar h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); }
.news-toolbar__count { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-top: 8px; letter-spacing: 0; }
.news-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.news-filters a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.news-filters a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.news-filters a.is-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue-600) 100%);
  border-color: transparent; color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(36,135,197,.7);
}

/* =================== CARD GRID =================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: transparent; }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-900); }
.news-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.07); }
/* Branded fallback when a post has no cover image */
.news-card__media--empty,
.news-featured__media--empty {
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(36,135,197,.55) 0%, transparent 60%),
    linear-gradient(140deg, var(--blue-900) 0%, var(--blue-700) 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-card__media--empty i,
.news-featured__media--empty i { font-size: 40px; color: rgba(255,255,255,.28); }
.news-card__chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(5,13,24,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}
.news-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.news-card__date {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  margin-bottom: 12px;
}
.news-card__date i { font-size: 11px; }
.news-card__date span { color: var(--ink-soft); font-weight: 500; }
.news-card h3 { font-size: 21px; line-height: 1.24; color: var(--ink); }
.news-card h3 a { transition: color .3s var(--ease); }
.news-card:hover h3 a { color: var(--brand); }
.news-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; margin-top: 12px; }
.news-card__more {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: auto; padding-top: 22px;
  font-size: 14px; font-weight: 700; color: var(--brand);
}
.news-card__more i { font-size: 11px; transition: transform .35s var(--ease); }
.news-card:hover .news-card__more i { transform: translateX(5px); }

/* =================== EMPTY / PAGINATION =================== */
.news-empty {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 80px 30px;
  text-align: center;
  color: var(--ink-soft);
}
.news-empty i { font-size: 34px; color: var(--brand-pale); display: block; margin-bottom: 16px; }
.news-empty strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--ink); margin-bottom: 8px; }

.news-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.news-pagination a, .news-pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.news-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.news-pagination .is-current {
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue-600) 100%);
  border-color: transparent; color: var(--white);
}
.news-pagination .is-disabled { opacity: .4; pointer-events: none; }

/* =================== ARTICLE PAGE =================== */
.article-hero {
  position: relative;
  padding: 200px 0 90px;
  background: var(--blue-950);
  overflow: hidden;
}
.article-hero__bg { position: absolute; inset: 0; z-index: 0; }
/* The cover photo also fills the hero, but heavily blurred so it reads as an
   abstract colour wash behind the headline rather than a duplicate of the
   full-size cover image sitting just below it. */
.article-hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .48;
  transform: scale(1.18);
  filter: blur(26px) saturate(1.25);
}
.article-hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,24,.9) 0%, rgba(5,13,24,.55) 40%, rgba(5,13,24,.96) 100%),
    radial-gradient(80% 60% at 10% 10%, rgba(36,135,197,.32) 0%, transparent 60%);
}
.article-hero__inner { position: relative; z-index: 2; max-width: 860px; }
.article-crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}
.article-crumbs a { color: rgba(255,255,255,.72); transition: color .3s var(--ease); }
.article-crumbs a:hover { color: var(--brand-light); }
.article-crumbs i { font-size: 9px; opacity: .5; }
.article-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(36,135,197,.2);
  border: 1px solid rgba(95,182,234,.45);
  color: var(--brand-light);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.article-hero h1 { font-size: clamp(32px, 4.8vw, 56px); color: var(--white); line-height: 1.06; }
.article-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
  font-size: 14px; font-weight: 600;
}
.article-hero__meta span { display: inline-flex; align-items: center; gap: 9px; }
.article-hero__meta i { color: var(--brand-light); font-size: 13px; }

.article-wrap { background: var(--white); padding: 0 0 100px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 60px;
  align-items: start;
}
.article-cover {
  margin: -70px 0 46px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative; z-index: 3;
  grid-column: 1 / -1;
}
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-cover figcaption { padding: 14px 22px; font-size: 13px; color: var(--ink-soft); background: var(--sky-100); }

.article-body { font-size: 17px; line-height: 1.85; color: #223849; max-width: 760px; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 24px; }
.article-body h2 {
  font-size: clamp(24px, 2.6vw, 31px); color: var(--ink);
  margin: 46px 0 18px; line-height: 1.15;
}
.article-body h3 { font-size: 21px; color: var(--ink); margin: 36px 0 14px; }
.article-body h4 { font-size: 18px; color: var(--ink); margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 4px; }
.article-body ul li, .article-body ol li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.article-body ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(36,135,197,.15);
}
.article-body ol { counter-reset: art; }
.article-body ol li { counter-increment: art; }
.article-body ol li::before {
  content: counter(art); position: absolute; left: 0; top: 2px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--brand);
}
.article-body a { color: var(--brand); font-weight: 600; border-bottom: 1px solid rgba(36,135,197,.35); }
.article-body a:hover { border-bottom-color: var(--brand); }
.article-body img { border-radius: var(--radius-md); margin: 30px 0; box-shadow: var(--shadow-soft); }
.article-body figure { margin: 30px 0; }
.article-body figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }
.article-body blockquote {
  margin: 34px 0; padding: 26px 30px;
  background: var(--sky-100);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-head); font-size: 20px; line-height: 1.45; color: var(--blue-800);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.article-body th, .article-body td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--sky-100); font-weight: 700; color: var(--ink); }
.article-table-scroll { overflow-x: auto; }

/* Sidebar */
.article-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 26px; }
.article-share h4, .article-aside__card h4 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-share__links { display: flex; gap: 10px; flex-wrap: wrap; }
.article-share__links a, .article-share__links button {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sky-100);
  border: 1px solid var(--line);
  color: var(--blue-800);
  font-size: 15px;
  transition: all .3s var(--ease);
}
.article-share__links a:hover, .article-share__links button:hover {
  background: linear-gradient(135deg, var(--brand) 0%, var(--blue-600) 100%);
  color: var(--white); border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -12px rgba(36,135,197,.7);
}
.article-aside__card {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-700) 100%);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  color: rgba(255,255,255,.72);
  position: relative; overflow: hidden;
}
.article-aside__card::after {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,182,234,.35) 0%, transparent 70%);
}
.article-aside__card h4 { color: rgba(255,255,255,.55); }
.article-aside__card strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.article-aside__card p { font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.article-aside__card .btn { position: relative; z-index: 2; }

/* Related */
.article-related { background: var(--sky-100); padding: 90px 0 100px; border-top: 1px solid var(--line); }
.article-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.article-related__head h2 { font-size: clamp(24px, 2.8vw, 34px); color: var(--ink); }

/* =================== HOMEPAGE LATEST NEWS STRIP =================== */
.home-news { background: var(--sky-100); padding: 100px 0 110px; position: relative; }
.home-news::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36,135,197,.09) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.home-news > .container { position: relative; z-index: 1; }
.home-news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }
.home-news__head p.lead { color: var(--ink-soft); font-size: 16px; line-height: 1.75; max-width: 520px; margin-top: 14px; }
.home-news__skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.home-news__skeleton div {
  height: 380px; border-radius: var(--radius-md);
  background: linear-gradient(100deg, #eaf2f9 30%, #f6fafd 50%, #eaf2f9 70%);
  background-size: 220% 100%;
  animation: newsShimmer 1.5s linear infinite;
}
@keyframes newsShimmer { to { background-position: -220% 0; } }

/* =================== RESPONSIVE =================== */
@media (max-width: 1080px) {
  .news-featured { grid-template-columns: 1fr; margin-top: -60px; }
  .news-featured__media { min-height: 280px; aspect-ratio: 16 / 9; }
  .news-grid, .home-news__skeleton { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-share, .article-aside__card { flex: 1 1 260px; }
}

@media (max-width: 720px) {
  .news-hero { padding: 150px 0 120px; }
  .news-body { padding-bottom: 80px; }
  .news-grid, .home-news__skeleton { grid-template-columns: 1fr; }
  .news-toolbar { margin: 54px 0 28px; }
  .news-featured__media { min-height: 220px; }
  .article-hero { padding: 150px 0 70px; }
  .article-cover { margin: -46px 0 34px; border-radius: var(--radius-md); }
  .article-cover img { aspect-ratio: 16 / 10; }
  .article-hero__meta { gap: 14px 20px; }
  .article-body { font-size: 16.5px; }
  .article-related, .home-news { padding: 70px 0 80px; }
  .article-aside { flex-direction: column; }
}
