:root {
  --news-navy: #152238;
  --news-blue: #315f9f;
  --news-orange: #df762e;
  --news-ink: #29384f;
  --news-muted: #627084;
  --news-line: #e2e7ef;
  --news-warm: #faf8f5;
}

.news-page {
  color: var(--news-navy);
  background: #f6f7fa;
}

.news-shell {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}

/* ==================================================
   1. HERO SECTION (Proportional, Elegant, Balanced)
   ================================================== */
.news-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 80% 25%, rgba(229, 132, 65, 0.16), transparent 32%),
              linear-gradient(120deg, #101d33 0%, #172d4c 55%, #244165 100%);
}

.news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 30%, transparent 80%);
}

.news-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -240px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255, 255, 255, 0.03), 0 0 0 100px rgba(255, 255, 255, 0.015);
}

.news-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  height: 120px;
  min-height: 120px;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding-block: 0;
}

.news-hero__copy {
  max-width: 700px;
  transform: translateY(-8px);
}

.news-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3a670;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-hero__eyebrow i {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.news-hero h1 {
  max-width: 680px;
  margin: 5px 0 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.news-hero p {
  max-width: 600px;
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.42;
}

/* AF / JOURNAL signature card */
.news-hero__signature {
  position: relative;
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 4px 18px 4px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 40px rgba(4, 11, 23, 0.22);
  backdrop-filter: blur(12px);
  transform: translateY(-8px);
}

.news-hero__signature::before {
  content: 'ADDON';
  position: absolute;
  top: 12px;
  left: 17px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.news-hero__signal {
  position: absolute;
  top: 12px;
  right: 17px;
  display: flex;
  gap: 3.5px;
  align-items: flex-end;
  height: 20px;
}

.news-hero__signal span {
  display: block;
  width: 3.5px;
  border-radius: 4px;
  background: var(--news-orange);
}

.news-hero__signal span:nth-child(1) { height: 7px; opacity: 0.45; }
.news-hero__signal span:nth-child(2) { height: 13px; opacity: 0.72; }
.news-hero__signal span:nth-child(3) { height: 20px; }

.news-hero__signature strong {
  margin-top: 17px;
  color: #ffffff;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.news-hero__signature strong span {
  padding: 0 4px;
  color: #f3a670;
  font-weight: 400;
}

.news-hero__signature footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-hero__signature small {
  display: block;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==================================================
   2. TOOLBAR & ANCHOR AREA (Smooth, Natural Spacing)
   ================================================== */
.news-content {
  padding: 0 0 84px;
  background: linear-gradient(180deg, #f4f5f8, #ffffff 42%);
}

.news-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
  padding: 18px 24px 20px;
  border: 1px solid rgba(20, 33, 58, 0.08);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(20, 33, 58, 0.06);
}

.news-types {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e7ecf2;
}

.news-types a {
  position: relative;
  padding: 0 4px 11px;
  color: #69778c;
  font-size: 0.9375rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-types a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--news-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.news-types a:hover,
.news-types a.is-active {
  color: var(--news-navy);
}

.news-types a.is-active::after {
  transform: scaleX(1);
}

.news-toolbar__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.news-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid #e3e7ed;
  border-radius: 99px;
  color: #526075;
  background: #fafbfc;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  transition: 0.2s ease;
}

.news-filters a:hover {
  color: var(--news-navy);
  background: #ffffff;
  border-color: #cbd3de;
  transform: translateY(-1px);
}

.news-filters a.is-active {
  border-color: var(--news-navy);
  color: #ffffff;
  background: var(--news-navy);
  box-shadow: 0 4px 14px rgba(21, 34, 56, 0.14);
}

.news-search {
  display: flex;
  width: min(310px, 100%);
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #d4dbe4;
  border-radius: 9px;
  background: #ffffff;
  padding-left: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-search:focus-within {
  border-color: rgba(49, 95, 159, 0.6);
  box-shadow: 0 0 0 3px rgba(49, 95, 159, 0.1);
}

.news-search > i {
  color: #7b889b;
  font-size: 0.95rem;
  margin-right: 2px;
}

.news-search input {
  min-width: 0;
  flex: 1;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--news-navy);
  font-size: 0.875rem;
}

.news-search input::placeholder {
  color: #8b97a8;
  font-size: 0.875rem;
}

.news-search button {
  align-self: stretch;
  height: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #ffffff;
  background: #1c3050;
  font-size: 0.8125rem;
  font-weight: 750;
  transition: background 0.2s ease;
  cursor: pointer;
}

.news-search button:hover {
  background: var(--news-orange);
}

.news-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-section-heading > span {
  display: inline-flex;
  align-items: center;
  color: var(--news-navy);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-section-heading > span::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  margin: 0 8px 1px 0;
  background: var(--news-orange);
}

.news-section-heading small {
  color: #8c97a8;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==================================================
   3. EDITORIAL CARDS GRID & TYPOGRAPHY
   ================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-tile {
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--news-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 34, 56, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.news-tile:hover {
  border-color: rgba(223, 118, 46, 0.35);
  box-shadow: 0 18px 44px rgba(21, 34, 56, 0.09);
  transform: translateY(-4px);
}

.news-tile__image {
  position: relative;
  display: block;
  height: 205px;
  overflow: hidden;
  background: #edf1f5;
}

.news-tile__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 22, 39, 0.26));
  opacity: 0.65;
  transition: 0.3s ease;
}

.news-tile__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-tile:hover img {
  transform: scale(1.045);
}

.news-tile__image > span {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--news-navy);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: 0.25s ease;
}

.news-tile:hover .news-tile__image > span {
  color: #ffffff;
  background: var(--news-orange);
  transform: rotate(5deg);
}

.news-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #788599;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-meta b,
.news-type-badge {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
}

.news-meta b {
  color: #556275;
  background: #f0f3f7;
}

.news-type-badge--news {
  color: #c86520;
  background: #fff1e7;
}

.news-type-badge--article {
  color: #2b5795;
  background: #edf3fb;
}

.news-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: #788599;
  white-space: nowrap;
}

.news-views i {
  color: var(--news-orange);
  font-size: 0.875rem;
}

.news-tile h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--news-navy);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.38;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-tile h2 a {
  color: inherit;
  text-decoration: none;
}

.news-tile p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--news-muted);
  font-size: 0.9375rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--news-blue);
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
}

.news-read i {
  color: var(--news-orange);
  transition: transform 0.2s ease;
}

.news-read:hover i {
  transform: translateX(4px);
}

/* Featured First Story Card */
.news-tile:first-child {
  grid-column: span 2;
  display: grid;
  min-height: 410px;
  grid-template-columns: 1.25fr 0.75fr;
  border: 0;
  background: #14213a;
}

.news-tile:first-child .news-tile__image {
  height: 100%;
  min-height: 410px;
}

.news-tile:first-child .news-tile__body {
  padding: 30px;
  justify-content: center;
}

.news-tile:first-child .news-meta {
  color: rgba(255, 255, 255, 0.6);
}

.news-tile:first-child .news-meta b {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

.news-tile:first-child h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.3;
}

.news-tile:first-child p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  -webkit-line-clamp: 4;
}

.news-tile:first-child .news-read {
  color: #ffffff;
  margin-top: 20px;
}

.news-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px solid var(--news-line);
  border-radius: 16px;
  background: #ffffff;
}

.news-empty > i {
  font-size: 42px;
  color: var(--news-orange);
}

.news-empty a {
  color: var(--news-orange);
  font-weight: 750;
}

.pagination {
  justify-content: center;
  margin-top: 48px;
}

.page-link {
  color: var(--news-navy);
}

.active > .page-link {
  border-color: var(--news-orange);
  background: var(--news-orange);
}

/* ==================================================
   4. LOGO IMAGE SPECIFIC CONTAINMENT (Never Cut Off)
   ================================================== */
.news-tile__image.is-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-bottom: 1px solid #edf0f5 !important;
  padding: 12px !important;
}

.news-tile__image.is-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.article-image.is-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 16px !important;
}

.article-image.is-logo img {
  width: 100% !important;
  max-height: 480px !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* ==================================================
   5. RESPONSIVE AUDIT (Desktop, Tablet, Mobile)
   ================================================== */
@media (max-width: 991.98px) {
  .news-hero__layout {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr 0.65fr;
    gap: 28px;
    padding-block: 38px 32px;
  }

  .news-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-tile:first-child {
    grid-column: 1 / -1;
  }

  .news-toolbar__secondary {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .news-search {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .news-shell {
    width: min(100% - 32px, 1280px);
  }

  .news-hero__layout {
    display: block;
    min-height: auto;
    padding-block: 32px 26px;
  }

  .news-hero__copy {
    transform: none;
  }

  .news-hero__signature {
    display: none;
  }

  .news-hero::before {
    display: none;
  }

  .news-hero h1 {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .news-hero p {
    font-size: 0.9375rem;
    margin-top: 10px;
  }

  .news-toolbar {
    margin-inline: -4px;
    padding: 16px;
    border-radius: 0 0 14px 14px;
    margin-bottom: 26px;
  }

  .news-types {
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-tile:first-child {
    display: flex;
    grid-column: auto;
  }

  .news-tile:first-child .news-tile__image {
    height: 220px;
    min-height: 0;
  }

  .news-tile:first-child .news-tile__body {
    padding: 20px;
  }

  .news-tile:first-child h2 {
    font-size: 1.2rem;
  }

  .news-tile:first-child p {
    font-size: 0.875rem;
  }

  .news-tile:first-child .news-read {
    margin-top: auto;
  }
}

@media (max-width: 575.98px) {
  .news-shell {
    width: min(100% - 24px, 1280px);
  }

  .news-hero__layout {
    padding-block: 26px 20px;
  }

  .news-hero h1 {
    font-size: 1.6rem;
  }

  .news-hero p {
    font-size: 0.875rem;
    margin-top: 8px;
  }

  .news-content {
    padding-bottom: 60px;
  }

  .news-toolbar {
    margin-bottom: 24px;
    padding: 14px 12px;
    border-radius: 0 0 14px 14px;
  }

  .news-filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .news-filters::-webkit-scrollbar {
    display: none;
  }

  .news-filters a {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    padding: 6px 12px;
    min-height: 34px;
  }

  .news-section-heading small {
    display: none;
  }

  .news-tile,
  .news-tile:first-child {
    min-height: 380px;
  }

  .news-tile__image,
  .news-tile:first-child .news-tile__image {
    height: 200px;
  }

  .news-tile__body,
  .news-tile:first-child .news-tile__body {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-tile,
  .news-tile img,
  .news-tile__image > span,
  .news-read i {
    transition: none;
  }

  .news-tile:hover {
    transform: none;
  }
}
