/* =========================================================
   NEWS.CSS — AINULT UUDISTE LEHT
   Laadida uudised.html lehel pärast /style.css faili.
   ========================================================= */

body.news-page {
  --news-bg: #edf5d8;
  --news-bg-light: #f9fff2;
  --news-dark: #0e3b03;
  --news-green: #254b10;
  --news-accent: #5ce413;
  --news-lime-soft: #c8f69e;
  --news-white: #ffffff;
  --news-text: #14360b;
  --news-text-soft: rgba(20, 54, 11, 0.7);
  --news-border: rgba(14, 59, 3, 0.14);
  --news-shadow: 0 24px 70px rgba(14, 59, 3, 0.12);
  --news-shadow-dark: 0 35px 95px rgba(5, 28, 2, 0.38);

  margin: 0;
  overflow-x: hidden;
  background: var(--news-bg);
  color: var(--news-text);
}

body.news-page .news-main {
  overflow: clip;
}

body.news-page .news-container {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

body.news-page .header {
  background: rgba(255, 255, 255, 0.91);
  border-bottom-color: rgba(14, 59, 3, 0.1);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}

body.news-page .nav a {
  position: relative;
}

body.news-page .nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--news-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

body.news-page .nav a:hover::after,
body.news-page .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

body.news-page .news-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15000;
  width: var(--news-progress, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--news-accent), #c8f69e, var(--news-green));
  box-shadow: 0 0 18px rgba(92, 228, 19, 0.55);
}

/* HERO */

body.news-page .news-hero {
  --news-pointer-x: 50%;
  --news-pointer-y: 45%;

  position: relative;
  isolation: isolate;

  min-height: 460px;
  padding: 65px 0 75px;

  display: grid;
  align-items: center;
  overflow: hidden;

  background:
    radial-gradient(
      circle at var(--news-pointer-x) var(--news-pointer-y),
      rgba(92, 228, 19, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 9% 16%,
      rgba(200, 246, 158, 0.16),
      transparent 29%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(92, 228, 19, 0.13),
      transparent 29%
    ),
    linear-gradient(
      138deg,
      #071f02 0%,
      #0e3b03 48%,
      #254b10 100%
    );

  color: var(--news-white);
}

body.news-page .news-hero::after {
  content: var(--i18n-news-hero-label, "UUDISED");
  position: absolute;
  right: -20px;
  bottom: -12px;
  z-index: -3;

  color: rgba(255, 255, 255, 0.035);
  font-family: "Arial Black", Inter, Arial, sans-serif;
  font-size: clamp(80px, 13vw, 190px);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.07em;

  pointer-events: none;
  animation: newsGhostText 11s ease-in-out infinite alternate;
}

body.news-page .news-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  animation: newsGridMove 18s linear infinite;
}

body.news-page .news-hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

body.news-page .news-hero-glow-one {
  top: 8%;
  left: -70px;
  width: 270px;
  height: 270px;
  background: rgba(92, 228, 19, 0.14);
  animation: newsGlowOne 8s ease-in-out infinite;
}

body.news-page .news-hero-glow-two {
  right: -90px;
  bottom: 7%;
  width: 350px;
  height: 350px;
  background: rgba(200, 246, 158, 0.11);
  animation: newsGlowTwo 9.5s ease-in-out infinite;
}

body.news-page .news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: 80px;
  align-items: center;
}

body.news-page .news-hero-copy {
  position: relative;
  z-index: 3;
}

body.news-page .news-eyebrow {
  display: inline-flex;
  margin-bottom: 27px;
  padding: 10px 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(200, 246, 158, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--news-lime-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  box-shadow: 0 12px 30px rgba(3, 19, 1, 0.2);
  backdrop-filter: blur(10px);
}

body.news-page .news-eyebrow::before {
  content: "✦";
  color: var(--news-accent);
  animation: newsSparkle 4s linear infinite;
}

body.news-page .news-hero h1 {
  max-width: 820px;
  margin: 0 0 25px;
  color: var(--news-white);
  font-size: clamp(52px, 6.7vw, 92px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

body.news-page .news-hero h1 span {
  color: var(--news-accent);
}

body.news-page .news-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  line-height: 1.75;
}

body.news-page .news-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

body.news-page .news-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 56px;
  padding: 15px 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

body.news-page .news-button::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -40%;
  width: 32%;
  height: 350%;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(24deg);
  transition: left 0.55s ease;
}

body.news-page .news-button:hover::before {
  left: 115%;
}

body.news-page .news-button:hover {
  transform: translateY(-4px);
}

body.news-page .news-button-primary {
  background: var(--news-accent);
  color: var(--news-dark);
  box-shadow: 0 17px 38px rgba(92, 228, 19, 0.25);
}

body.news-page .news-button-primary:hover {
  color: var(--news-dark);
  box-shadow: 0 23px 48px rgba(92, 228, 19, 0.34);
}

body.news-page .news-button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.055);
  color: var(--news-white);
  backdrop-filter: blur(11px);
}

body.news-page .news-button-secondary:hover {
  border-color: rgba(200, 246, 158, 0.55);
  background: rgba(200, 246, 158, 0.1);
  color: var(--news-lime-soft);
}

/* Hero visual */

body.news-page .news-hero-visual {
  --news-rotate-x: 0deg;
  --news-rotate-y: 0deg;
  --news-shine-x: 50%;
  --news-shine-y: 50%;

  position: relative;
  min-height: 360px;
  transform: perspective(1100px) rotateX(var(--news-rotate-x)) rotateY(var(--news-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

body.news-page .news-radar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

body.news-page .news-radar::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 46px;
  background:
    radial-gradient(circle at var(--news-shine-x) var(--news-shine-y), rgba(255, 255, 255, 0.12), transparent 26%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--news-shadow-dark);
  backdrop-filter: blur(14px);
}

body.news-page .news-radar-ring {
  position: absolute;
  border: 1px dashed rgba(200, 246, 158, 0.24);
  border-radius: 50%;
}

body.news-page .news-radar-ring-one {
  width: 330px;
  height: 330px;
  animation: newsRotate 22s linear infinite;
}

body.news-page .news-radar-ring-two {
  width: 245px;
  height: 245px;
  animation: newsRotateReverse 17s linear infinite;
}

body.news-page .news-radar-ring-three {
  width: 165px;
  height: 165px;
  border-style: solid;
  border-color: rgba(92, 228, 19, 0.3);
  animation: newsRadarPulse 3.5s ease-in-out infinite;
}

body.news-page .news-radar-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--news-accent);
  box-shadow: 0 0 0 8px rgba(92, 228, 19, 0.12), 0 0 25px rgba(92, 228, 19, 0.5);
}

body.news-page .news-radar-dot-one {
  top: 15%;
  left: 25%;
  animation: newsDotFloat 5.2s ease-in-out infinite;
}

body.news-page .news-radar-dot-two {
  top: 42%;
  right: 12%;
  animation: newsDotFloat 6s 0.7s ease-in-out infinite reverse;
}

body.news-page .news-radar-dot-three {
  bottom: 13%;
  left: 30%;
  animation: newsDotFloat 5.7s 1.1s ease-in-out infinite;
}

body.news-page .news-hero-dashboard {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  width: 250px;
  min-height: 270px;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 246, 158, 0.27);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(92, 228, 19, 0.2), transparent 34%),
    rgba(7, 31, 2, 0.76);
  color: var(--news-white);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%) translateZ(42px);
  backdrop-filter: blur(18px);
  animation: newsDashboardFloat 5.5s ease-in-out infinite;
}

body.news-page .news-hero-dashboard > span {
  color: var(--news-lime-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

body.news-page .news-hero-dashboard > strong {
  margin: 13px 0 2px;
  color: var(--news-accent);
  font-size: 68px;
  font-weight: 900;
  line-height: 0.9;
}

body.news-page .news-hero-dashboard > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

body.news-page .news-hero-categories {
  display: flex;
  gap: 7px;
  margin-top: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

body.news-page .news-hero-categories i {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

/* CONTENT */

body.news-page .news-content-section {
  position: relative;
  padding: 112px 0 120px;
  background:
    radial-gradient(circle at 7% 10%, rgba(92, 228, 19, 0.12), transparent 26%),
    radial-gradient(circle at 93% 90%, rgba(37, 75, 16, 0.09), transparent 28%),
    linear-gradient(180deg, #f9fff2 0%, var(--news-bg) 100%);
}

body.news-page .news-content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(14, 59, 3, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 3, 0.06) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

body.news-page .news-content-section .news-container {
  position: relative;
  z-index: 2;
}

body.news-page .news-content-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 34px;
}

body.news-page .news-content-heading > div > span,
body.news-page .news-related-heading > span {
  display: inline-flex;
  margin-bottom: 15px;
  align-items: center;
  gap: 10px;
  color: var(--news-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

body.news-page .news-content-heading > div > span::before,
body.news-page .news-related-heading > span::before {
  content: "";
  width: 35px;
  height: 2px;
  background: var(--news-accent);
}

body.news-page .news-content-heading h2,
body.news-page .news-related-heading h2 {
  margin: 0;
  color: var(--news-dark);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.048em;
}

body.news-page .news-search {
  position: relative;
  display: block;
}

body.news-page .news-search input {
  width: 100%;
  min-height: 58px;
  padding: 15px 52px 15px 19px;
  border: 1px solid rgba(14, 59, 3, 0.16);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  color: var(--news-dark);
  box-shadow: 0 14px 34px rgba(14, 59, 3, 0.07);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.news-page .news-search input:focus {
  border-color: var(--news-accent);
  background: var(--news-white);
  box-shadow: 0 0 0 4px rgba(92, 228, 19, 0.15), 0 18px 40px rgba(14, 59, 3, 0.1);
}

body.news-page .news-search i {
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--news-dark);
  color: var(--news-white);
  font-style: normal;
  transform: translateY(-50%);
}

body.news-page .news-toolbar {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

body.news-page .news-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.news-page .news-filters button {
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid rgba(14, 59, 3, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--news-green);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.news-page .news-filters button:hover,
body.news-page .news-filters button.is-active {
  background: var(--news-dark);
  color: var(--news-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 27px rgba(14, 59, 3, 0.15);
}

body.news-page .news-toolbar > p {
  margin: 0;
  color: var(--news-text-soft);
  font-size: 13px;
  font-weight: 800;
}

/* Featured card */

body.news-page .news-featured-card,
body.news-page .news-card {
  --news-rotate-x: 0deg;
  --news-rotate-y: 0deg;
  --news-shine-x: 50%;
  --news-shine-y: 50%;
  --news-lift: 0px;

  position: relative;
  overflow: hidden;
  border: 1px solid var(--news-border);
  color: inherit;
  text-decoration: none;
  transform:
    perspective(1050px)
    rotateX(var(--news-rotate-x))
    rotateY(var(--news-rotate-y))
    translateY(var(--news-lift));
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.news-page .news-featured-card::before,
body.news-page .news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at var(--news-shine-x) var(--news-shine-y), rgba(255, 255, 255, 0.16), transparent 28%);
}

body.news-page .news-featured-card:hover,
body.news-page .news-card:hover {
  --news-lift: -8px;
  border-color: rgba(92, 228, 19, 0.48);
}

body.news-page .news-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 0;
  margin-bottom: 24px;
  border-radius: 32px;
  background: var(--news-dark);
  box-shadow: var(--news-shadow);
}

body.news-page .news-featured-card:hover {
  box-shadow: 0 34px 82px rgba(14, 59, 3, 0.2), 0 0 32px rgba(92, 228, 19, 0.09);
}

body.news-page .news-featured-media,
body.news-page .news-card-media,
body.news-page .news-article-image {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(92, 228, 19, 0.34), transparent 28%),
    linear-gradient(145deg, #315e19, #0e3b03);
}

body.news-page .news-featured-media::before,
body.news-page .news-card-media::before,
body.news-page .news-article-image::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 25px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

body.news-page .news-featured-media img,
body.news-page .news-card-media img,
body.news-page .news-article-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

body.news-page .news-featured-media .news-image-primary,
body.news-page .news-card-media .news-image-primary,
body.news-page .news-article-image .news-image-primary {
  z-index: 1;
  object-fit: cover;
  object-position: var(--news-image-position, center center);
  transition: transform 0.55s cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.news-page .news-featured-card:hover .news-image-primary,
body.news-page .news-card:hover .news-image-primary {
  transform: scale(1.025);
}

body.news-page .news-featured-content {
  position: relative;
  z-index: 3;
  display: flex;
  padding: 34px;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 228, 19, 0.18), transparent 32%),
    linear-gradient(145deg, var(--news-dark), #19490e);
  color: var(--news-white);
  transform: translateZ(28px);
}

body.news-page .news-card-meta {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

body.news-page .news-card-meta span {
  display: inline-flex;
  min-height: 31px;
  padding: 7px 12px;
  align-items: center;
  border: 1px solid rgba(92, 228, 19, 0.34);
  border-radius: 999px;
  background: rgba(92, 228, 19, 0.13);
  color: var(--news-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.news-page .news-card-meta time {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

body.news-page .news-featured-content h2 {
  margin: 0 0 17px;
  color: var(--news-white);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.news-page .news-featured-content > p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.news-page .news-featured-action,
body.news-page .news-card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.news-page .news-author,
body.news-page .news-featured-author,
body.news-page .news-article-author {
  display: block;
  margin-top: 10px;
  color: var(--news-text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.news-page .news-featured-author {
  color: rgba(255, 255, 255, 0.72);
}

body.news-page .news-article-author {
  margin-top: 14px;
  font-size: 13px;
}

body.news-page .news-featured-action strong,
body.news-page .news-card-footer strong {
  font-size: 13px;
  font-weight: 900;
}

body.news-page .news-featured-action i,
body.news-page .news-card-footer i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--news-accent);
  color: var(--news-dark);
  font-style: normal;
  font-size: 19px;
  transition: transform 0.3s ease;
}

body.news-page .news-featured-card:hover i,
body.news-page .news-card:hover i {
  transform: rotate(45deg);
}

/* Grid cards */

body.news-page .news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

body.news-page .news-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 19px 52px rgba(14, 59, 3, 0.09);
  backdrop-filter: blur(11px);
}

body.news-page .news-card:hover {
  box-shadow: 0 31px 74px rgba(14, 59, 3, 0.16), 0 0 30px rgba(92, 228, 19, 0.08);
}

body.news-page .news-card-media {
  min-height: 0;
}

body.news-page .news-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  padding: 28px;
  flex-direction: column;
  transform: translateZ(22px);
}

body.news-page .news-card .news-card-meta span {
  border-color: rgba(37, 75, 16, 0.18);
  background: rgba(92, 228, 19, 0.12);
  color: var(--news-green);
}

body.news-page .news-card .news-card-meta time {
  color: rgba(14, 59, 3, 0.48);
}

body.news-page .news-card h3 {
  margin: 0 0 12px;
  color: var(--news-dark);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

body.news-page .news-card p {
  margin: 0;
  color: var(--news-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

body.news-page .news-card-footer {
  color: var(--news-green);
}

/* Empty */

body.news-page .news-empty-state {
  display: grid;
  min-height: 300px;
  padding: 45px;
  place-items: center;
  border: 1px dashed rgba(14, 59, 3, 0.2);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

body.news-page .news-empty-state span {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border-radius: 20px;
  background: var(--news-accent);
  color: var(--news-dark);
  font-size: 30px;
}

body.news-page .news-empty-state h2 {
  margin: 18px 0 8px;
  color: var(--news-dark);
}

body.news-page .news-empty-state p {
  margin: 0;
  color: var(--news-text-soft);
}

/* Article detail */

body.news-page .news-article-view[hidden] {
  display: none;
}

body.news-page .news-article-back {
  display: inline-flex;
  margin-bottom: 38px;
  align-items: center;
  gap: 11px;
  color: var(--news-green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body.news-page .news-article-back span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--news-dark);
  color: var(--news-white);
  transition: transform 0.25s ease;
}

body.news-page .news-article-back:hover span {
  transform: translateX(-4px);
}

body.news-page .news-article-heading {
  max-width: 980px;
  margin-bottom: 42px;
}

body.news-page .news-article-heading .news-card-meta span {
  color: var(--news-green);
}

body.news-page .news-article-heading .news-card-meta time {
  color: rgba(14, 59, 3, 0.5);
}

body.news-page .news-article-heading h1 {
  margin: 0 0 22px;
  color: var(--news-dark);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  hyphens: none;
  word-spacing: 0.12em;
}

body.news-page .news-article-heading > p {
  max-width: 850px;
  margin: 0;
  color: var(--news-text-soft);
  font-size: 20px;
  line-height: 1.72;
}

body.news-page .news-article-hero {
  margin-bottom: 42px;
  padding: 12px;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--news-shadow);
}

body.news-page .news-article-image {
  min-height: 0;
  border-radius: 24px;
}

body.news-page .news-article-original {
  display: flex;
  width: 100%;
  margin: 38px 0 0;
  justify-content: center;
}

body.news-page .news-article-original img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 920px;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(14, 59, 3, 0.12);
}

body.news-page .news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: start;
}

body.news-page .news-article-text {
  padding: 44px;
  border: 1px solid rgba(14, 59, 3, 0.13);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 21px 58px rgba(14, 59, 3, 0.08);
}

body.news-page .news-article-text > p {
  margin: 0;
  color: var(--news-text-soft);
  font-size: 18px;
  line-height: 1.84;
}

body.news-page .news-article-text > p + p {
  margin-top: 23px;
}

body.news-page .news-article-placeholder-note {
  margin-top: 30px;
  padding: 22px;
  border: 1px dashed rgba(14, 59, 3, 0.22);
  border-radius: 18px;
  background: rgba(92, 228, 19, 0.08);
}

body.news-page .news-article-placeholder-note strong {
  color: var(--news-dark);
}

body.news-page .news-article-placeholder-note p {
  margin: 8px 0 0;
  color: var(--news-text-soft);
  line-height: 1.6;
}

body.news-page .news-article-placeholder-note code {
  color: var(--news-dark);
  font-weight: 900;
}

body.news-page .news-article-aside {
  position: sticky;
  top: 105px;
  padding: 34px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 228, 19, 0.2), transparent 32%),
    linear-gradient(145deg, var(--news-dark), var(--news-green));
  color: var(--news-white);
  box-shadow: var(--news-shadow-dark);
}

body.news-page .news-article-aside::after {
  content: "↗";
  position: absolute;
  right: 15px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 130px;
  font-weight: 900;
}

body.news-page .news-article-aside > span {
  color: var(--news-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

body.news-page .news-article-aside h2 {
  margin: 14px 0 14px;
  color: var(--news-white);
  font-size: 30px;
  line-height: 1.08;
}

body.news-page .news-article-aside p {
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

body.news-page .news-article-aside a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 13px;
  background: var(--news-accent);
  color: var(--news-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body.news-page .news-related {
  margin-top: 100px;
}

body.news-page .news-related-heading {
  max-width: 800px;
  margin-bottom: 38px;
}

/* CTA */

body.news-page .news-story-cta {
  padding: 0 0 105px;
  background: var(--news-bg);
}

body.news-page .news-story-cta-card {
  position: relative;
  isolation: isolate;
  display: flex;
  padding: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 228, 19, 0.18), transparent 30%),
    linear-gradient(145deg, #071f02, var(--news-green));
  color: var(--news-white);
  box-shadow: var(--news-shadow-dark);
}

body.news-page .news-story-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background: repeating-linear-gradient(-35deg, transparent 0 22px, rgba(255, 255, 255, 0.13) 22px 23px);
  animation: newsStripeMove 15s linear infinite;
}

body.news-page .news-story-cta-card > div > span {
  color: var(--news-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

body.news-page .news-story-cta-card h2 {
  max-width: 760px;
  margin: 13px 0 13px;
  color: var(--news-white);
  font-size: clamp(37px, 4.7vw, 59px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.news-page .news-story-cta-card p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.72;
}

body.news-page .news-story-cta-card > a {
  flex-shrink: 0;
  display: inline-flex;
  min-height: 56px;
  padding: 15px 22px;
  align-items: center;
  gap: 13px;
  border-radius: 16px;
  background: var(--news-accent);
  color: var(--news-dark);
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.news-page .news-story-cta-card > a:hover {
  color: var(--news-dark);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92, 228, 19, 0.24);
}

body.news-page .news-story-cta-card > a i {
  font-style: normal;
  font-size: 20px;
}

/* Newsletter/footer page tuning */

body.news-page .newsletter-section {
  position: relative;
  overflow: hidden;
}

body.news-page .newsletter-content {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.news-page .newsletter-content:hover {
  transform: translateY(-7px);
  box-shadow: 0 35px 85px rgba(14, 59, 3, 0.25);
}

body.news-page .site-footer {
  background:
    radial-gradient(circle at 90% 8%, rgba(92, 228, 19, 0.12), transparent 27%),
    linear-gradient(145deg, #071f02, #19490e);
}

/* Reveal */

body.news-page [data-news-reveal] {
  opacity: 0;
  transform: translateY(42px) scale(0.988);
  transition:
    opacity 0.75s ease var(--news-delay, 0ms),
    transform 0.75s cubic-bezier(0.18, 0.8, 0.24, 1) var(--news-delay, 0ms);
}

body.news-page [data-news-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Animations */

@keyframes newsGridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

@keyframes newsGhostText {
  from { transform: translateX(-24px) rotate(-3deg); }
  to { transform: translateX(26px) rotate(-1deg); }
}

@keyframes newsGlowOne {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 27px) scale(1.14); }
}

@keyframes newsGlowTwo {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-31px, -23px) scale(1.12); }
}

@keyframes newsSparkle {
  to { transform: rotate(360deg); }
}

@keyframes newsRotate {
  to { transform: rotate(360deg); }
}

@keyframes newsRotateReverse {
  to { transform: rotate(-360deg); }
}

@keyframes newsRadarPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes newsDotFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -12px); }
}

@keyframes newsDashboardFloat {
  0%, 100% { transform: translate(-50%, -50%) translateZ(42px) translateY(0); }
  50% { transform: translate(-50%, -50%) translateZ(42px) translateY(-10px); }
}

@keyframes newsStripeMove {
  from { background-position: 0 0; }
  to { background-position: 180px 0; }
}

/* Responsive */

@media (max-width: 1050px) {
body.news-page .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.news-page .nav {
  border-color: rgba(14, 59, 3, 0.15);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 59, 3, 0.16);
}

body.news-page .nav a {
  color: var(--news-dark);
}

body.news-page .nav a:hover {
  background: rgba(14, 59, 3, 0.07);
  color: var(--news-green);
}

body.news-page .nav a::after {
  display: none;
}

  body.news-page .news-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
    gap: 48px;
  }

  body.news-page .news-content-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  body.news-page .news-search {
    max-width: 600px;
  }

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

  body.news-page .news-featured-media {
    min-height: 0;
  }

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

  body.news-page .news-article-layout {
    grid-template-columns: 1fr;
  }

  body.news-page .news-article-aside {
    position: relative;
    top: auto;
  }

  body.news-page .news-story-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  body.news-page .news-container {
    width: min(100% - 32px, 1220px);
  }

  body.news-page .news-hero {
    min-height: auto;
    padding: 76px 0 105px;
  }

  body.news-page .news-hero-layout {
    grid-template-columns: 1fr;
  }

  body.news-page .news-hero-copy > p {
    font-size: 17px;
  }

  body.news-page .news-hero-actions {
    flex-direction: column;
  }

  body.news-page .news-button {
    width: 100%;
  }

  body.news-page .news-hero-visual {
    min-height: 450px;
  }

  body.news-page .news-radar-ring-one {
    width: 360px;
    height: 360px;
  }

  body.news-page .news-radar-ring-two {
    width: 280px;
    height: 280px;
  }

  body.news-page .news-content-section {
    padding: 80px 0 90px;
  }

  body.news-page .news-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  body.news-page .news-featured-content,
  body.news-page .news-card-body,
  body.news-page .news-article-text,
  body.news-page .news-article-aside,
  body.news-page .news-story-cta-card {
    padding: 29px;
  }

  body.news-page .news-story-cta {
    padding-bottom: 80px;
  }
}

@media (max-width: 470px) {
  body.news-page .news-hero h1 {
    font-size: 43px;
  }

  body.news-page .news-content-heading h2,
  body.news-page .news-related-heading h2 {
    font-size: 37px;
  }

  body.news-page .news-hero-visual {
    min-height: 400px;
  }

  body.news-page .news-radar-ring-one {
    width: 310px;
    height: 310px;
  }

  body.news-page .news-radar-ring-two {
    width: 230px;
    height: 230px;
  }

  body.news-page .news-radar-ring-three {
    width: 160px;
    height: 160px;
  }

  body.news-page .news-hero-dashboard {
    width: 215px;
    min-height: 235px;
    padding: 25px;
  }

  body.news-page .news-hero-dashboard > strong {
    font-size: 68px;
  }

  body.news-page .news-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.news-page .news-filters button {
    width: 100%;
  }

  body.news-page .news-featured-media {
    min-height: 0;
  }

  body.news-page .news-featured-content h2 {
    font-size: 32px;
  }

  body.news-page .news-card-media {
    min-height: 0;
  }

  body.news-page .news-card h3 {
    font-size: 24px;
  }

  body.news-page .news-article-heading h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  body.news-page .news-article-heading > p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.news-page *,
  body.news-page *::before,
  body.news-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.news-page [data-news-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* HERO sisu peab olema nähtav ka siis,
   kui JavaScripti reveal-animatsioon ei käivitu */

body.news-page .news-hero [data-news-reveal] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* =========================================================
   MOBILE — исправление слишком длинных новостных карточек
   ========================================================= */

@media (max-width: 700px) {

  /* Главная большая новость на странице uudised.html */

  body.news-page .news-featured-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.news-page .news-featured-media {
    height: auto;
    min-height: 0;
  }

  body.news-page .news-featured-content {
    padding: 25px;
    justify-content: flex-start;
  }

  body.news-page .news-featured-content h2 {
    font-size: 30px;
  }

  body.news-page .news-featured-content > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.news-page .news-featured-action {
    padding-top: 20px;
  }


  /* Фотография после открытия отдельной новости */

  body.news-page .news-article-hero {
    padding: 8px;
    border-radius: 24px;
  }

  body.news-page .news-article-image {
    height: auto;
    min-height: 0;
    border-radius: 18px;
  }

  body.news-page .news-article-image .news-image-primary {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media (max-width: 470px) {

  body.news-page .news-featured-media {
    height: auto;
    min-height: 0;
  }

  body.news-page .news-featured-content {
    padding: 22px;
  }

  body.news-page .news-featured-content h2 {
    font-size: 27px;
  }

  body.news-page .news-featured-content > p {
    -webkit-line-clamp: 2;
  }

  body.news-page .news-article-image {
    height: auto;
    min-height: 0;
  }

  body.news-page .news-article-original img {
    max-height: 78vh;
    border-radius: 16px;
  }
}

/* =========================================================
   NEWS PHOTO LIGHTBOX
   Fotode mõõte, proportsioone ja uudiste paigutust ei muudeta.
   ========================================================= */

body.news-page.news-photo-lightbox-open {
  overflow: hidden;
}

/* Klikitavad uudisefotod */

body.news-page .news-photo-openable {
  position: relative;
  cursor: zoom-in;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.news-page .news-photo-openable::after {
  content: "+";

  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 7;

  display: grid;
  width: 38px;
  height: 38px;

  place-items: center;

  border: 1px solid rgba(200, 246, 158, 0.72);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(7, 31, 2, 0.95),
      rgba(37, 75, 16, 0.93)
    );

  color: var(--news-accent);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(92, 228, 19, 0.08);

  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;

  opacity: 0;
  pointer-events: none;

  transform:
    scale(0.62)
    rotate(-30deg);

  transition:
    opacity 0.25s ease,
    transform 0.38s
      cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.news-page .news-photo-openable:hover::after,
body.news-page .news-photo-openable:focus-visible::after {
  opacity: 1;

  transform:
    scale(1)
    rotate(0deg);
}

body.news-page .news-photo-openable:focus-visible {
  outline: 4px solid rgba(92, 228, 19, 0.5);
  outline-offset: -4px;
}

/* Taust */

body.news-page .news-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30000;

  display: grid;
  padding: 28px;

  place-items: center;
  overflow-y: auto;

  background:
    radial-gradient(
      circle at 14% 14%,
      rgba(92, 228, 19, 0.18),
      transparent 31%
    ),
    radial-gradient(
      circle at 86% 84%,
      rgba(200, 246, 158, 0.11),
      transparent 29%
    ),
    rgba(3, 20, 1, 0.92);

  opacity: 0;
  visibility: hidden;

  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

body.news-page .news-photo-lightbox[hidden] {
  display: none;
}

body.news-page .news-photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.news-page .news-photo-lightbox::before {
  content: "";

  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -1;

  width: min(850px, 84vw);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    conic-gradient(
      from 0deg,
      rgba(92, 228, 19, 0.15),
      rgba(200, 246, 158, 0.025),
      rgba(37, 75, 16, 0.2),
      rgba(92, 228, 19, 0.15)
    );

  filter: blur(54px);

  transform: translate(-50%, -50%);

  animation:
    newsPhotoLightboxGlow 13s linear infinite;
}

/* Suur kaart */

body.news-page .news-photo-lightbox-card {
  position: relative;
  isolation: isolate;

  width: min(1120px, 94vw);
  max-height: calc(100vh - 56px);
  padding: 28px;

  overflow-y: auto;

  border: 1px solid rgba(200, 246, 158, 0.28);
  border-radius: 38px;

  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(92, 228, 19, 0.17),
      transparent 31%
    ),
    linear-gradient(
      145deg,
      rgba(7, 31, 2, 0.985),
      rgba(37, 75, 16, 0.985)
    );

  box-shadow:
    0 48px 145px rgba(0, 0, 0, 0.62),
    0 0 0 12px rgba(92, 228, 19, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);

  opacity: 0;

  transform:
    translateY(32px)
    scale(0.88)
    rotateX(7deg);

  transform-origin: center;

  transition:
    opacity 0.36s ease,
    transform 0.58s
      cubic-bezier(0.18, 0.8, 0.2, 1);
}

body.news-page
.news-photo-lightbox.is-open
.news-photo-lightbox-card {
  opacity: 1;

  transform:
    translateY(0)
    scale(1)
    rotateX(0deg);
}

body.news-page .news-photo-lightbox-card::before {
  content: "";

  position: absolute;
  inset: 14px;
  z-index: -1;

  border: 1px dashed rgba(200, 246, 158, 0.18);
  border-radius: 29px;

  pointer-events: none;

  animation:
    newsPhotoLightboxBorder 3.6s ease-in-out infinite;
}

/* Foto */

body.news-page .news-photo-lightbox-visual {
  position: relative;

  display: grid;
  min-height: min(68vh, 690px);
  padding: 48px 30px 28px;

  place-items: center;
  overflow: hidden;

  border: 1px solid rgba(200, 246, 158, 0.17);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 84% 12%,
      rgba(92, 228, 19, 0.13),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #102f08,
      #041701
    );

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -35px 90px rgba(0, 0, 0, 0.24),
    0 26px 72px rgba(0, 0, 0, 0.3);
}

body.news-page .news-photo-lightbox-visual::before,
body.news-page .news-photo-lightbox-visual::after {
  content: "";

  position: absolute;

  border-radius: 50%;
  pointer-events: none;
}

body.news-page .news-photo-lightbox-visual::before {
  top: -120px;
  right: -105px;

  width: 310px;
  height: 310px;

  border: 50px solid rgba(92, 228, 19, 0.08);

  animation:
    newsPhotoLightboxRing 14s linear infinite;
}

body.news-page .news-photo-lightbox-visual::after {
  bottom: -125px;
  left: -95px;

  width: 285px;
  height: 285px;

  border: 42px solid rgba(200, 246, 158, 0.055);

  animation:
    newsPhotoLightboxRing 18s linear infinite reverse;
}

body.news-page .news-photo-lightbox-kicker {
  position: absolute;
  top: 18px;
  left: 21px;
  z-index: 3;

  padding: 8px 12px;

  border: 1px solid rgba(200, 246, 158, 0.24);
  border-radius: 999px;

  background: rgba(7, 31, 2, 0.7);
  color: var(--news-lime-soft);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;

  backdrop-filter: blur(11px);
}

body.news-page .news-photo-lightbox-image {
  position: relative;
  z-index: 2;

  display: block;

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(61vh, 620px);

  object-fit: contain;
  border-radius: 22px;

  opacity: 0;

  filter:
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.32));

  transform:
    scale(0.84)
    translateY(18px)
    rotate(-2deg);

  transition:
    opacity 0.36s ease 0.07s,
    transform 0.62s
      cubic-bezier(0.18, 0.8, 0.2, 1)
      0.03s;
}

body.news-page
.news-photo-lightbox.is-open
.news-photo-lightbox-image {
  opacity: 1;

  transform:
    scale(1)
    translateY(0)
    rotate(0deg);
}

/* Allkiri */

body.news-page .news-photo-lightbox-caption {
  display: flex;
  padding: 25px 14px 4px;

  flex-direction: column;
  align-items: center;

  color: var(--news-white);
  text-align: center;
}

body.news-page .news-photo-lightbox-meta {
  margin: 0 0 8px;

  color: var(--news-accent);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

body.news-page .news-photo-lightbox-caption h2 {
  max-width: 880px;
  margin: 0;

  color: var(--news-white);

  font-size: clamp(25px, 4.2vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

body.news-page .news-photo-lightbox-hint {
  margin-top: 13px;

  color: rgba(255, 255, 255, 0.42);

  font-size: 10px;
  line-height: 1.45;
}

/* Sulgemisnupp */

body.news-page .news-photo-lightbox-close {
  position: fixed;
  top: 23px;
  right: 25px;
  z-index: 5;

  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;

  place-items: center;

  border: 1px solid rgba(200, 246, 158, 0.34);
  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.13),
      rgba(92, 228, 19, 0.09)
    );

  color: var(--news-white);

  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35);

  font-family: inherit;
  font-size: 39px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

body.news-page .news-photo-lightbox-close span {
  display: block;
  transform: translateY(-2px);
}

body.news-page .news-photo-lightbox-close:hover,
body.news-page .news-photo-lightbox-close:focus-visible {
  border-color: var(--news-accent);

  background: var(--news-accent);
  color: var(--news-dark);

  outline: none;

  transform:
    rotate(90deg)
    scale(1.06);
}

@keyframes newsPhotoLightboxGlow {
  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg);
  }
}

@keyframes newsPhotoLightboxBorder {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes newsPhotoLightboxRing {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  body.news-page .news-photo-lightbox {
    padding: 15px;
  }

  body.news-page .news-photo-lightbox-card {
    width: min(100%, 620px);
    max-height: calc(100vh - 30px);
    padding: 16px;
    border-radius: 27px;
  }

  body.news-page .news-photo-lightbox-card::before {
    inset: 8px;
    border-radius: 21px;
  }

  body.news-page .news-photo-lightbox-visual {
    min-height: min(54vh, 460px);
    padding: 48px 16px 20px;
    border-radius: 20px;
  }

  body.news-page .news-photo-lightbox-image {
    max-height: 46vh;
    border-radius: 16px;
  }

  body.news-page .news-photo-lightbox-caption {
    padding: 21px 7px 3px;
  }

  body.news-page .news-photo-lightbox-caption h2 {
    font-size: clamp(23px, 7vw, 34px);
  }

  body.news-page .news-photo-lightbox-close {
    top: 11px;
    right: 11px;

    width: 50px;
    height: 50px;

    font-size: 34px;
  }

  body.news-page .news-photo-openable::after {
    top: 11px;
    right: 11px;

    width: 34px;
    height: 34px;

    font-size: 21px;

    opacity: 1;

    transform:
      scale(0.9)
      rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.news-page .news-photo-lightbox::before,
  body.news-page .news-photo-lightbox-card::before,
  body.news-page .news-photo-lightbox-visual::before,
  body.news-page .news-photo-lightbox-visual::after {
    animation: none !important;
  }

  body.news-page .news-photo-openable::after,
  body.news-page .news-photo-lightbox,
  body.news-page .news-photo-lightbox-card,
  body.news-page .news-photo-lightbox-image,
  body.news-page .news-photo-lightbox-close {
    transition: none !important;
  }
}

/* Более тёмный и читаемый текст открытой новости */

body.news-page .news-article-text > p {
  color: rgba(14, 59, 3, 0.9);
}


/* Подзаголовки внутри новости:
   Ürituse info:, Registreerimislink: и другие */

body.news-page .news-article-subheading {
  margin: 36px 0 8px;
  color: var(--news-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.news-page .news-article-subheading:first-child {
  margin-top: 0;
}


/* Автоматическая кнопка для ссылок */

body.news-page .news-article-link {
  display: inline-flex;
  margin-top: 14px;
  padding: 14px 20px;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--news-accent);
  color: var(--news-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(14, 59, 3, 0.14);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.news-page .news-article-link:hover {
  background: var(--news-dark);
  color: var(--news-white);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(14, 59, 3, 0.22);
}

body.news-page .news-article-link span {
  font-size: 18px;
  transition: transform 0.25s ease;
}

body.news-page .news-article-link:hover span {
  transform: translate(2px, -2px);
}

/* =========================================================
   COMPACT NEWS ENDING
   Убирает ощущение большого пустого прямоугольника после карточек.
   CTA остаётся полезным, но становится компактнее и всегда видимым.
   ========================================================= */

body.news-page .news-content-section {
  padding-bottom: 78px;
}

body.news-page .news-story-cta {
  padding: 0 0 72px;
}

body.news-page .news-story-cta-card {
  padding: 38px 44px;
}

/* CTA не должен исчезать, даже если reveal-анимация не запустилась */
body.news-page .news-story-cta [data-news-reveal] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 760px) {
  body.news-page .news-content-section {
    padding-bottom: 58px;
  }

  body.news-page .news-story-cta {
    padding-bottom: 58px;
  }

  body.news-page .news-story-cta-card {
    padding: 28px;
  }
}
