/* ========== News: listing + article ========== */

/* Page hero (shorter version of the home hero, same media layers) */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  padding: 8.5rem 0 3.5rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.page-hero .top-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(4, 18, 36, 0.55) 0%,
    rgba(4, 18, 36, 0.25) 45%,
    rgba(4, 18, 36, 0.85) 100%
  );
}

.page-hero-body {
  position: relative;
  z-index: 5;
  width: 100%;
}

.page-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
  --bs-breadcrumb-item-active-color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.page-breadcrumb a:hover {
  color: var(--adnoc-yellow);
}

.page-breadcrumb .breadcrumb-item.active {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.page-hero-sub {
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  opacity: 0.92;
  margin: 0;
}

/* Shared meta: category pill + date */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.news-meta time,
.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #e6f0f8;
  color: var(--adnoc-blue);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Listing */
.news-section {
  background: var(--page-bg);
  padding: 4rem 0 5rem;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 25, 45, 0.08);
  margin-bottom: 3rem;
}

.news-featured-media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.news-featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-featured:hover .news-featured-media img {
  transform: scale(1.04);
}

.news-featured-label {
  position: absolute;
  top: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--adnoc-yellow);
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.news-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem;
}

.news-featured-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--adnoc-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.news-featured-body h2 a {
  color: inherit;
}

.news-featured-body p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.news-featured-body .btn-cyan {
  align-self: flex-start;
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.news-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--adnoc-navy);
  margin: 0;
}

.news-viewall {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--adnoc-blue);
}

.news-viewall:hover {
  color: var(--adnoc-blue-dark);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-filter {
  border: 1px solid #d5dde6;
  background: #fff;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-filter:hover {
  border-color: var(--adnoc-blue);
  color: var(--adnoc-blue);
}

.news-filter[aria-pressed="true"] {
  background: var(--adnoc-blue);
  border-color: var(--adnoc-blue);
  color: #fff;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 25, 45, 0.06);
  transition: box-shadow 0.3s ease;
}

.news-card:hover,
.news-card:focus-within {
  box-shadow: 0 16px 36px rgba(10, 25, 45, 0.14);
}

.news-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--adnoc-navy);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-card-media img {
  transform: scale(1.06);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.5rem;
}

.news-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--adnoc-navy);
  margin-bottom: 0.6rem;
}

.news-card h3 a {
  color: inherit;
}

.news-card h3 a:focus-visible {
  outline: none;
}

.news-card:has(a:focus-visible) {
  outline: 2px solid var(--adnoc-blue);
  outline-offset: 2px;
}

.news-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.news-more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--adnoc-blue);
}

.news-card:hover .news-more {
  color: var(--adnoc-blue-dark);
}

.news-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.news-pagination {
  --bs-pagination-color: var(--adnoc-navy);
  --bs-pagination-bg: #fff;
  --bs-pagination-border-color: transparent;
  --bs-pagination-hover-color: var(--adnoc-blue);
  --bs-pagination-hover-bg: #e6f0f8;
  --bs-pagination-hover-border-color: transparent;
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(0, 87, 160, 0.2);
  --bs-pagination-active-bg: var(--adnoc-blue);
  --bs-pagination-active-border-color: var(--adnoc-blue);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-border-color: transparent;
  gap: 0.4rem;
  margin: 3rem 0 0;
  justify-content: center;
}

.news-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 50% !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10, 25, 45, 0.06);
}

.news-pagination .disabled .page-link {
  box-shadow: none;
}

/* Newsletter band */
.news-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: 4rem;
  padding: 2.5rem 3rem;
  border-radius: 1.5rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 18, 36, 0.95) 0%, rgba(0, 61, 115, 0.85) 100%),
    url("../media/hero-pipes.jpg") center / cover no-repeat;
  box-shadow: 0 14px 34px rgba(4, 18, 36, 0.18);
}

.news-subscribe h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.news-subscribe p {
  margin: 0;
  opacity: 0.88;
}

.subscribe-form {
  flex: 1 1 360px;
  max-width: 480px;
}

.subscribe-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.subscribe-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 0 1rem;
  font-size: 0.95rem;
}

.subscribe-row input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe-row:focus-within {
  border-color: var(--adnoc-yellow);
}

.subscribe-row .btn-yellow {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
}

.subscribe-msg {
  min-height: 1.4rem;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  padding-inline-start: 1rem;
}

.subscribe-msg.is-error {
  color: #ffb4b4;
}

.subscribe-msg.is-success {
  color: var(--adnoc-yellow);
}

/* ---------- Article ---------- */
.article-hero {
  padding-bottom: 9rem;
  min-height: 520px;
}

.article-hero .page-hero-title {
  max-width: 54rem;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.2;
}

.article-hero .news-meta {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.article-hero .news-cat {
  background: var(--adnoc-yellow);
  color: #111;
}

.article-cover {
  position: relative;
  z-index: 6;
  margin: -6.5rem 0 0;
}

.article-cover img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 20px 44px rgba(4, 18, 36, 0.22);
}

.article-section {
  padding: 3.5rem 0 4.5rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--adnoc-blue);
  margin-bottom: 1.75rem;
}

.article-back:hover {
  color: var(--adnoc-blue-dark);
}

[dir="rtl"] .article-back .bi-arrow-left {
  transform: scaleX(-1);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.article-body .article-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--adnoc-navy);
  margin-bottom: 1.75rem;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--adnoc-navy);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 110px;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body p > a {
  color: var(--adnoc-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul {
  padding-inline-start: 1.25rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body li::marker {
  color: var(--adnoc-cyan);
}

.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 1.25rem;
}

.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.55;
}

.article-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  border-inline-start: 4px solid var(--adnoc-yellow);
  border-radius: 0 1rem 1rem 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(10, 25, 45, 0.06);
}

[dir="rtl"] .article-quote {
  border-radius: 1rem 0 0 1rem;
}

.article-quote p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--adnoc-navy);
  margin-bottom: 0.75rem;
}

.article-quote footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-facts {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: #e6f0f8;
}

.article-facts h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adnoc-navy);
  margin-bottom: 1rem;
}

.article-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
}

.article-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.article-facts li .bi {
  color: var(--adnoc-blue);
  margin-top: 0.15rem;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(11, 44, 77, 0.1);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-tags a {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5dde6;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

.article-tags a:hover {
  border-color: var(--adnoc-blue);
  color: var(--adnoc-blue);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d5dde6;
  background: #fff;
  color: var(--adnoc-navy);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  background: var(--adnoc-blue);
  border-color: var(--adnoc-blue);
  color: #fff;
}

.share-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--status-good, #1e8e4e);
  min-width: 1px;
}

/* Sidebar */
.article-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1.25rem;
}

.aside-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(10, 25, 45, 0.06);
}

.aside-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--adnoc-navy);
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.toc-list a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-inline-start: 2px solid #d5dde6;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover,
.toc-list a.is-active {
  background: #eef4f9;
  border-color: var(--adnoc-blue);
  color: var(--adnoc-blue);
}

.latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.latest-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-dark);
}

.latest-list img {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.latest-list strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.latest-list a:hover strong {
  color: var(--adnoc-blue);
}

.latest-list time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.aside-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--adnoc-blue-dark) 0%, var(--adnoc-blue) 100%);
}

.aside-cta h2 {
  color: #fff;
}

.aside-cta p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.related-section {
  background: #fff;
  padding: 4rem 0 5rem;
}

.related-section .news-card {
  background: var(--page-bg);
  box-shadow: none;
}

.related-section .news-card:hover {
  box-shadow: 0 16px 36px rgba(10, 25, 45, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .news-featured-body {
    padding: 2rem;
  }
}

@media (max-width: 991.98px) {
  .page-hero {
    min-height: 360px;
    padding: 7.5rem 0 2.75rem;
  }

  .article-hero {
    min-height: 0;
    padding-bottom: 7rem;
  }

  .article-cover {
    margin-top: -5rem;
  }

  .news-featured {
    grid-template-columns: 1fr;
  }

  .news-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .article-aside {
    position: static;
    margin-top: 1rem;
  }

  .news-subscribe {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .page-hero {
    min-height: 320px;
    padding: 7rem 0 2.25rem;
  }

  .article-hero {
    padding-bottom: 5.5rem;
  }

  .article-cover {
    margin-top: -3.5rem;
  }

  .article-cover img {
    border-radius: 1rem;
  }

  .news-section,
  .article-section {
    padding: 2.5rem 0 3.5rem;
  }

  .news-featured-body {
    padding: 1.5rem;
  }

  .news-featured-body .btn-cyan {
    align-self: stretch;
    justify-content: center;
  }

  .news-subscribe {
    padding: 1.75rem 1.25rem;
  }

  .subscribe-row {
    flex-direction: column;
    border-radius: 1.25rem;
    padding: 0.5rem;
  }

  .subscribe-row input {
    min-height: 44px;
  }

  .article-facts ul {
    grid-template-columns: 1fr;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body .article-lead {
    font-size: 1.12rem;
  }
}
