/* =========================
   HERO (News Stories)
   ========================= */

.page-news-operation .operation-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background: var(--hero-bg) center/cover no-repeat #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin-bottom: 0;
  color: #fff;
  overflow: hidden;
}

.page-news-operation .operation-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

.page-news-operation .operation-hero .general-hero-inner {
  position: relative;
  max-width: var(--content-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.page-news-operation .operation-hero .general-hero-title {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  margin: 0 0 0.75rem;
  font-weight: 700;
  width: 60%;
}

.page-news-operation .operation-hero .general-hero-lead {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* =========================
     FEATURED INTRO BLOCK
     ========================= */

.page-news-operation .news-featured-intro {
  padding: 40px 0 32px;
  border-bottom: 1px solid #e5e7eb;
}

.page-news-operation .news-featured-intro .container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.page-news-operation .news-featured-title {
  font-size: 3.5rem;
  margin: 0 0 0.75rem;
  color: var(--global-color-blue);
  font-weight: 700;
}

.page-news-operation .news-featured-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.page-news-operation .news-featured-figure {
  margin: 0 0 1.5rem;
}

.page-news-operation .news-featured-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.page-news-operation .news-featured-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #000;
}

.page-news-operation .news-featured-readmore {
  margin-top: 1rem;
}

/* Section title above each news-updates block (taxonomy name) */
.page-news-operation .news-type-section {
  border-bottom: 1px solid #e5e7eb;
}

.page-news-operation .news-type-section:last-of-type {
  border-bottom: none;
}

.page-news-operation .news-type-section .news-type-title {
  font-size: 3.5rem;
  font-weight: 500;
  margin: 0 0 16px;
  color: #000;
}

/* =========================
     News & Updates (2-col)
     from front page – scoped
     ========================= */

:root {
  --gap: clamp(16px, 2.2vw, 28px);
  --line: rgba(72, 117, 255, 0.25);
  --ink: #0b1222;
  --muted: #6b7b94;
  --brand: #2a4bff; /* IAI blue */
  --brand-2: #1e3df5;
  --paper: #ffffff;
}

.page-news-operation .news-updates {
  padding: clamp(20px, 3vw, 40px) 0;
  color: var(--ink);
}

.page-news-operation .news-updates .container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 16px;
}

.page-news-operation .news-updates .news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* featured | list */
  gap: var(--gap);
  align-items: start;
}

/* ========== Featured ========== */
.page-news-operation .news-updates .featured-news {
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-news-operation .news-updates .featured-news:hover {
  /* add hover if you want */
}

.page-news-operation .news-updates .featured-news a {
  display: flex;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
}

.page-news-operation .news-updates .featured-news .news-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.page-news-operation .news-updates .featured-news .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news-operation .news-updates .featured-news h3 {
  font-size: clamp(20px, 1.5vw + 0.6rem, 28px);
  line-height: 1.15;
  margin: 18px 18px 20px 0px;
  letter-spacing: 0;
  font-weight: 800;
  padding-right: 30%;
}

.page-news-operation .news-updates .featured-news p {
  margin: 0 18px 18px;
  color: var(--content-text);
  font-size: clamp(20px, 0.55vw + 0.65rem, 20px);
  line-height: 1.5;
  margin-left: 0px;
  padding-right: 30%;
}

/* ========== Latest list (right column) – unified ========== */

.page-news-operation .news-updates .latest-news {
  display: grid;
  gap: var(--gap);
}

/* Each small card is a row: IMAGE LEFT, TEXT RIGHT */
.page-news-operation .news-updates .latest-news .news-item {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  overflow: hidden;
}

/* Left side: thumbnail link */
.page-news-operation .news-updates .latest-news .news-item > a {
  flex: 0 0 53%;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.page-news-operation .news-updates .latest-news .news-item .news-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-news-operation .news-updates .latest-news .news-item .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right side: text column */
.page-news-operation .news-updates .latest-news .news-item .news-item-content {
  flex: 1 1 47%;
  background: #fff;
  padding: 0 18px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Category + title + text keep your existing styles */
.page-news-operation .news-item .news-item-content .news-category,
.page-news-operation .featured-news .news-category {
  color: var(--global-color-blue);
  font-weight: 600;
}

.page-news-operation .news-item .news-item-content h4 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1vw + 0.5rem, 20px);
  line-height: 1.25;
  font-weight: 800;
}

.page-news-operation .news-item .news-item-content p {
  margin: 0;
  font-size: clamp(16px, 0.55vw + 0.65rem, 16px);
  color: #000;
  line-height: 1.25;
}

/* Optional: “divider” style for 2nd item */
.page-news-operation .news-updates .latest-news .news-item:nth-child(2) {
  padding: 28px 18px 28px 0px;
  border-top: 1px solid #e7e2e2;
  border-bottom: 1px solid #e7e2e2;
}

/* Date badge */
.page-news-operation .news-item .news-date-badge,
.page-news-operation .featured-news .news-date-badge {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  width: 48px;
  height: 48px;
  background: var(--global-color-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* keep the stack centered */
  align-items: center;
  font-weight: 600;
}

.page-news-operation .news-item .news-date-badge .day,
.page-news-operation .featured-news .news-date-badge .day {
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(4px); /* move number a bit lower */
}

.page-news-operation .news-item .news-date-badge .month,
.page-news-operation .featured-news .news-date-badge .month {
  font-size: 0.8rem;
  font-weight: 400;
}

/* Right side: text */
.page-news-operation .news-item .news-item-content {
  flex: 1 1 50%;
  background: #fff;
  padding: 0px 18px 16px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-news-operation .news-item .news-item-content .news-category,
.page-news-operation .featured-news .news-category {
  color: var(--global-color-blue);
  font-weight: 600;
}

.page-news-operation .featured-news .news-category {
  padding-top: 18px;
}

.page-news-operation .news-item .news-item-content h4 {
  margin: 0 0 8px;
  font-size: clamp(16px, 1vw + 0.5rem, 20px);
  line-height: 1.25;
  font-weight: 800;
}

.page-news-operation .news-item .news-item-content p {
  margin: 0;
  font-size: clamp(16px, 0.55vw + 0.65rem, 16px);
  color: #000;
  line-height: 1.25;
}

.news-type-footer {
  text-align: center;
  margin: 4rem 0 2rem 0px;
}

.news-type-load-more {
  position: relative; /* needed for absolute icon */
  margin-left: auto;
  height: 40px;
  padding: 0 42px 0 18px; /* extra right padding for the icon */
  background: var(--global-color-blue);
  color: #fff;
  border-radius: 0;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Keep hover/focus styling the same */
.news-type-load-more:hover,
.news-type-load-more:focus {
  background: var(--global-color-blue);
  color: #fff;
}

.news-type-load-more::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-image: url("../images/icon_plus.svg");
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .page-news-operation .news-updates .news-grid {
    grid-template-columns: 1fr;
  }

  .page-news-operation .news-updates .latest-news .news-item {
    flex-direction: column;
  }

  .page-news-operation .news-updates .latest-news .news-item > a,
  .page-news-operation
    .news-updates
    .latest-news
    .news-item
    .news-item-content {
    flex: 1 1 100%;
  }

  .page-news-operation .news-updates .latest-news .news-item:nth-child(2) {
    padding: 0;
    border-top: none;
    border-bottom: 1px solid #e7e2e2;
  }
}

/* =========================
     Term page: 3-column grid
     ========================= */

.tax-type .news-breadcrumbs {
  margin: 0.5rem 0;
}

.tax-type .page-news-operation .news-type-section {
  border-bottom: none;
}

.tax-type .page-news-operation .news-updates {
  padding: clamp(10px, 1vw, 10px) 0;
}

.taxonomy-type-page .news-type-more {
  padding: 32px 0 48px;
}

.taxonomy-type-page .news-type-more .container {
  max-width: var(--content-width, 1200px);
  margin-inline: auto;
  padding-inline: 16px;
}

.taxonomy-type-page .news-type-more-title {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--global-color-blue);
}

/* GRID: cells stretch to equal height */
.taxonomy-type-page .news-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch; /* key for equal height */
}

/* Article wrapper just fills the grid cell */
.taxonomy-type-page .news-more-item {
  /* height: 100%; */
  margin-bottom: 60px;
}

/* Anchor is the full-height flex card */
.taxonomy-type-page .news-more-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 0 none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.taxonomy-type-page .news-more-item a:hover {
}

/* Thumbnail at top, natural height (or fix height if you want tighter rows) */
.taxonomy-type-page .news-more-item .news-thumbnail {
  height: 370px; /* adjust as needed (220–280px works well) */
  overflow: hidden;
}

.taxonomy-type-page .news-more-item .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content stretches, Explore button sticks to bottom */
.taxonomy-type-page .news-more-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 0 0;
}

.taxonomy-type-page .news-more-content h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.taxonomy-type-page .news-more-content p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.taxonomy-type-page .news-more-date {
  font-size: 16px;
  margin-bottom: 20px;
}

.taxonomy-type-page .news-more-content .news-more-link {
  margin-top: auto; /* pushes button to bottom of card */
  display: inline-block;
}

.taxonomy-type-page .news-more-link {
  position: relative;
  margin-right: auto;
  padding: 0 42px 0 18px;
  background: var(--global-color-blue);
  color: #fff;
  border-radius: 0;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.taxonomy-type-page .news-more-link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-image: url(../images/icon_plus.svg);
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

/* =========================
     SINGLE NEWS – HEADER BAR
     ========================= */

.single-news-page .container {
  max-width: var(--content-width, 1200px);
  margin-inline: auto;
  padding-inline: 16px;
}

.single-news-page .single-news-header {
  padding-top: 32px;
  padding-bottom: 10px;
}

/* Top row: breadcrumbs left, date + read time right */
.single-news-page .single-news-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.single-news-page .single-news-breadcrumbs #breadcrumbs {
  font-size: 0.8rem;
  color: #6b7280;
}

.single-news-page .single-news-breadcrumbs #breadcrumbs a {
  color: var(--global-color-blue);
  text-decoration: none;
}

.single-news-page .single-news-breadcrumbs #breadcrumbs a:hover {
  text-decoration: underline;
}

.single-news-page .single-news-meta-top {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-news-page .single-news-reading-time {
  position: relative;
  padding-left: 22px; /* space for the icon */
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--global-color-blue);
}

/* Insert clock icon */
.single-news-page .single-news-reading-time::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("../images/clock.svg");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  opacity: 0.9;
}

/* Type label above title */
.single-news-page .single-news-type-label {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.single-news-page .single-news-type-label a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--global-color-blue);
  text-decoration: none;
}

.single-news-page .single-news-type-label a:hover {
  text-decoration: underline;
}
.single-news-share {
  border: 1px solid;
  padding: 5px 15px;
  font-weight: 500;
  line-height: 1;
  position: relative;
}
.single-news-share img {
  position: relative;
  max-width: 15px;
  top: 1px;
}
.share-popup {
  position: absolute;
  z-index: 9;
  width: calc(100% + 2px);
  left: -1px;
  background-color: #fff;
  text-align: center;
  top: -1px;
  display: none;
}

.share-popup a img {
  width: 30px;
  max-width: none;
}
.share-popup a:hover {
  transform: scale(1.15);
}
.share-popup a {
  display: inline-block;
}
/* Main title + deck */
.single-news-page .single-news-title {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 3.7vw, 3.8rem);
  line-height: 1.15;
  color: var(--global-color-blue);
  font-weight: 700;
}

.single-news-page .single-news-deck {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
}

/* =========================
     SINGLE NEWS – BODY
     ========================= */

.single-news .single-news-page .container {
  margin-top: 3rem;
}

.single-news-page .single-news-header {
  padding-top: 8rem;
  padding-bottom: 10px;
}

.single-news-page .single-news-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.single-news-page .single-news-breadcrumbs #breadcrumbs {
  font-size: 1.4rem;
  color: #6b7280;
}

.single-news-page .single-news-meta-top {
  font-size: 1.4rem;
  color: var(--global-color-blue);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-news-page .single-news-dot {
  opacity: 0.7;
}

.single-news-page .single-news-main {
  padding-bottom: 48px;
}

.single-news-page .single-news-main .container {
  padding-bottom: 18px;
}

.single-news-page .single-news-featured-image {
  margin: 18px 0 22px;
}

.single-news-page .single-news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-news-page .single-news-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #0b1222;
}

.single-news-page .single-news-content p {
  margin-bottom: 1.1em;
  font-size: 1.2rem;
}

.single-news-page .single-news-content p img.size-full {
  width: 100%;
}
.single-news-page .single-news-content h2,
.single-news-page .single-news-content h3,
.single-news-page .single-news-content h4 {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 2.8rem;
}

/* =========================
     RELATED GRID (bottom)
     Reuse taxonomy-type 3-col styles
     ========================= */

.single-news-page .single-news-related {
  padding: 0;
  background: transparent;
}

.single-news-page .single-news-related .container {
  max-width: var(--content-width, 1200px);
  margin-inline: auto;
  padding-inline: 16px;
}

.single-news-page .single-news-related-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--global-color-dark);
}

/* use your existing taxonomy grid styles: */
.single-news-page .news-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.single-news-page .news-more-item {
  height: 100%;
}

.single-news-page .news-more-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 0 none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.single-news-page .news-more-item a:hover {
  /* 
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    */
  transform: translateY(-2px);
  opacity: 0.9;
}

.single-news-page .news-more-item .news-thumbnail {
  height: 220px;
  overflow: hidden;
}

.single-news-page .news-more-item .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-news-page .news-more-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 0 0;
}

.single-news-page .news-more-content h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 500;
}

.single-news-page .news-more-date {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: none;
}

.single-news-page .news-more-content p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  display: none;
}

.single-news-page .news-more-content .news-more-link {
  margin-top: auto;
  position: relative;
  margin-right: auto;
  padding: 0 42px 0 18px;
  background: var(--global-color-blue);
  color: #fff;
  border-radius: 0;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.single-news-page .news-more-content .news-more-link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-image: url(../images/icon_plus.svg);
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .single-news-page .news-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taxonomy-type-page .news-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taxonomy-type-page .news-more-item .news-thumbnail {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .site-content .container-narrow {
    padding-top: 5rem;
  }

  .page-news-operation .news-featured-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .page-news-operation .news-featured-content {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .page-news-operation .news-type-section .news-type-title {
    font-size: 2.5rem;
  }

  .page-news-operation
    .news-updates
    .latest-news
    .news-item
    .news-item-content {
    padding: 10px 18px 16px 0px;
  }

  .page-news-operation .news-item .news-item-content h4 {
    font-size: clamp(24px, 1vw + 0.5rem, 20px);
  }

  .news-type-footer {
    text-align: center;
    margin: 2rem 0 2rem 0px;
    width: 54%;
  }

  .page-news-operation .news-updates .featured-news h3 {
    padding-right: 0%;
  }

  .single-news-page .single-news-content p {
    margin-bottom: 1.1em;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .single-news .single-news-page .container,
  .single-press .single-press-page .container {
    padding-top: 5px;
  }

  .single-news-page .single-news-breadcrumbs #breadcrumbs {
    font-size: 1rem;
    color: #6b7280;
  }

  .single-news-page .single-news-header {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .single-news-page .single-news-header-top {
    gap: 0px;
  }

  .single-news-page .single-news-breadcrumbs #breadcrumbs {
    line-height: 1.4;
  }

  .single-news-page .single-news-meta-top {
    font-size: 1rem;
  }

  .page-news-operation .operation-hero .general-hero-title {
    font-size: clamp(3.5rem, 5vw, 5rem);
    line-height: 1;
    margin: 0 0 0.75rem;
    font-weight: 700;
    width: 100%;
  }

  .page-news-operation .news-updates .featured-news p {
    margin: 0 10px 18px;
    font-size: clamp(16px, 0.55vw + 0.65rem, 20px);
    line-height: 1.5;
    margin-left: 0px;
    padding-right: 0%;
    color: #000;
  }

  .page-news-operation .news-updates .featured-news h3 {
    font-size: clamp(24px, 1.5vw + 0.6rem, 28px);
    line-height: 1.2;
    margin: 18px 0px 20px 0px;
    padding-right: 0%;
  }

  .page-news-operation .news-item .news-item-content p {
    line-height: 1.4;
  }

  .taxonomy-type-page .news-type-more-title {
    line-height: 1.1;
  }

  .single-news-page .single-news-content h2,
  .single-news-page .single-news-content h3,
  .single-news-page .single-news-content h4 {
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

@media (max-width: 640px) {
  .single-news-page .single-news-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-news-page .news-more-grid {
    grid-template-columns: 1fr;
  }

  .single-news-page .single-news-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .taxonomy-type-page .news-more-grid {
    grid-template-columns: 1fr;
  }
  .taxonomy-type-page .news-more-item .news-thumbnail {
    height: 180px;
  }
}

@media (min-width: 1280px) and (max-width: 1600px) and (min-resolution: 140dpi) and (min-aspect-ratio: 16/10) {
  /* widescreen laptop screens */
  .single-news-page .single-news-header {
    padding-top: 4rem;
    padding-bottom: 10px;
  }
}
