/*
 * Jiomig brand readability layer.
 * Keeps foreground copy independent from photographic brightness.
 */
.capability-card {
  isolation: isolate;
  background: #13282b;
}

.capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 24, 27, 0.05) 0%, rgba(9, 24, 27, 0.22) 34%, rgba(9, 24, 27, 0.94) 100%),
    linear-gradient(90deg, rgba(9, 24, 27, 0.24), transparent 70%);
  transition: background 360ms ease;
}

.capability-card:hover::after {
  background:
    linear-gradient(180deg, rgba(9, 24, 27, 0.02) 0%, rgba(9, 24, 27, 0.16) 30%, rgba(9, 24, 27, 0.9) 100%),
    linear-gradient(90deg, rgba(9, 24, 27, 0.18), transparent 72%);
}

.capability-card > img {
  z-index: 0;
  filter: saturate(0.9) contrast(1.03);
}

.capability-card .card-index,
.capability-card .card-content {
  position: relative;
  z-index: 2;
}

.capability-card .card-index {
  color: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  background: rgba(8, 22, 25, 0.16);
  backdrop-filter: blur(8px);
}

.capability-card .card-content,
.capability-card .card-content small,
.capability-card .card-content h3,
.capability-card .card-content p,
.capability-card .card-content > span {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.capability-card .card-content small {
  color: rgba(255, 255, 255, 0.72) !important;
}

.capability-card .card-content p {
  color: rgba(255, 255, 255, 0.83) !important;
}

.capability-card .capability-tags li {
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  background: rgba(6, 18, 20, 0.24);
  text-shadow: none;
  backdrop-filter: blur(8px);
}

.news-hero {
  isolation: isolate;
}

.news-hero .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.news-hero .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 29, 32, 0.88) 0%, rgba(10, 29, 32, 0.67) 38%, rgba(10, 29, 32, 0.16) 72%, rgba(10, 29, 32, 0.24) 100%),
    linear-gradient(180deg, rgba(6, 18, 21, 0.08), rgba(6, 18, 21, 0.28));
}

.news-hero .page-hero-bg img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.82) brightness(0.92);
}

.news-hero > div:not(.page-hero-bg),
.news-hero .page-hero-no {
  position: relative;
  z-index: 2;
}

.news-hero h1,
.news-hero .eyebrow {
  color: #fff !important;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.34);
}

.news-hero > div:not(.page-hero-bg) > p:last-child,
.news-hero .page-hero-no {
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 760px) {
  .capability-card::after {
    background: linear-gradient(180deg, rgba(9, 24, 27, 0.08) 0%, rgba(9, 24, 27, 0.3) 34%, rgba(9, 24, 27, 0.96) 100%);
  }

  .news-hero .page-hero-bg img {
    object-position: 61% center;
  }

  .news-hero .page-hero-bg::after {
    background: linear-gradient(90deg, rgba(10, 29, 32, 0.9), rgba(10, 29, 32, 0.4));
  }
}

/* Keep the newsroom headline aligned to complete semantic phrases. */
.news-hero .semantic-heading {
  font-size: clamp(2.5rem, 5.2vw, 5.3rem);
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.news-hero .semantic-heading > span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .news-hero .semantic-heading {
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.06em;
  }
}

/* Restore the original card composition; only increase copy contrast. */
.capability-card::after {
  content: none !important;
}

.capability-card .card-content {
  position: absolute !important;
  z-index: 2;
  color: #fff !important;
}

.capability-card .card-index {
  position: absolute !important;
  z-index: 3;
  color: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(255, 255, 255, 0.52) !important;
}

.capability-card .card-content small,
.capability-card .card-content h3,
.capability-card .card-content p,
.capability-card .card-content > span {
  color: #fff !important;
}

.capability-card .card-content small,
.capability-card .card-content p {
  color: rgba(255, 255, 255, 0.84) !important;
}

.capability-card .capability-tags li {
  color: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}
