/* ========================================================= */
/* LOKALNI TEST – PLAVAJOČI OBLAČEK Z NOVICAMI               */
/* ========================================================= */
.news-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9992;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px 8px 9px;
  border: 1px solid rgba(255, 23, 79, 0.72);
  border-radius: 999px;
  background: rgba(9, 9, 14, 0.94);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.46), 0 0 24px rgba(255, 23, 79, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, bottom 0.25s ease;
}

/* ========================================================= */
/* POSAMEZNA NOVICA                                           */
/* ========================================================= */
.news-detail-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 23, 79, 0.1), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(0, 240, 255, 0.07), transparent 28rem),
    #07070b;
  color: #f5f5f7;
  font-family: 'Montserrat', sans-serif;
}

.news-detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 10, 0.91);
  backdrop-filter: blur(16px);
}

.news-detail-brand {
  color: #ff174f;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
}

.news-detail-back {
  color: #d8d8de;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-decoration: none;
}

.news-detail-back:hover,
.news-detail-back:focus-visible {
  color: #00e7f4;
}

.news-detail-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 84px;
}

.news-detail-kicker {
  margin: 0 0 15px;
  color: #ff174f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.news-detail-shell h1 {
  max-width: 980px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.news-detail-lead {
  max-width: 790px;
  margin: 0 0 34px;
  color: #a9a9b4;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.news-detail-hero {
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  margin-bottom: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #101016;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.news-detail-hero img,
.news-detail-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: start;
}

.news-detail-copy p {
  margin: 0 0 22px;
  color: #c1c1ca;
  font-size: 0.98rem;
  line-height: 1.85;
}

.news-detail-quote {
  margin: 34px 0;
  padding: 25px 28px;
  border-left: 3px solid #ff174f;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
}

.news-detail-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 15px;
  background: rgba(15, 15, 22, 0.86);
}

.news-detail-aside span {
  display: block;
  margin-bottom: 7px;
  color: #7b7b89;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.news-detail-aside strong {
  display: block;
  margin-bottom: 19px;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.news-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #00dbe8;
  border-radius: 7px;
  background: rgba(0, 219, 232, 0.05);
  color: #00ecfa;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.news-detail-cta:hover,
.news-detail-cta:focus-visible {
  background: #00dbe8;
  color: #050509;
  transform: translateY(-2px);
}

.news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.news-detail-gallery figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: #101016;
}

.news-detail-source {
  margin: 26px 0 0;
  color: #6f6f7c;
  font-size: 0.68rem;
  line-height: 1.6;
}

.news-detail-source a {
  color: #9a9aa7;
}

@media (max-width: 820px) {
  .news-detail-shell {
    padding-top: 42px;
  }

  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-detail-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .news-detail-header {
    min-height: 60px;
    padding: 0 18px;
  }

  .news-detail-brand {
    font-size: 0.72rem;
  }

  .news-detail-back {
    font-size: 0.61rem;
  }

  .news-detail-shell {
    width: min(100% - 28px, 1120px);
    padding-bottom: 56px;
  }

  .news-detail-hero {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .news-detail-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 38px;
  }
}

.news-launcher::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border-right: 1px solid rgba(0, 240, 255, 0.62);
  pointer-events: none;
}

.news-launcher:hover,
.news-launcher:focus-visible,
.news-launcher[aria-expanded="true"] {
  transform: translateY(-3px);
  border-color: #ff174f;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.54), 0 0 28px rgba(255, 23, 79, 0.2);
}

.news-launcher-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff174f, #a90029);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.news-launcher-icon svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.news-launcher-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.35px;
}

.news-launcher-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  font-size: 0.66rem;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
}

.news-launcher.news-attention {
  border-color: #ff174f;
  animation: newsAttentionBounce 1.65s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.news-launcher.news-attention::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(255, 23, 79, 0.72);
  border-radius: inherit;
  pointer-events: none;
  animation: newsAttentionRing 1.65s ease-out;
}

.news-launcher.news-attention .news-launcher-icon {
  animation: newsIconRing 1.65s ease-in-out;
}

.news-launcher.news-attention .news-launcher-label {
  animation: newsLabelFlash 1.65s ease-in-out;
}

.news-launcher.news-attention .news-launcher-count {
  animation: newsBadgeHeartbeat 1.65s ease-in-out;
}

@keyframes newsAttentionBounce {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.46), 0 0 24px rgba(255, 23, 79, 0.12);
  }
  16% {
    transform: translateY(-9px) scale(1.09) rotate(-1.2deg);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58), 0 0 34px rgba(255, 23, 79, 0.58);
  }
  30% { transform: translateY(-3px) scale(1.035) rotate(1deg); }
  43% {
    transform: translateY(-8px) scale(1.075) rotate(-0.7deg);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55), 0 0 32px rgba(0, 240, 255, 0.42);
  }
  61% { transform: translateY(0) scale(1) rotate(0); }
  76% { transform: translateY(-4px) scale(1.035); }
}

@keyframes newsAttentionRing {
  0% { opacity: 0; transform: scale(0.94); }
  16% { opacity: 1; transform: scale(1); border-color: rgba(255, 23, 79, 0.82); }
  52% { opacity: 0.72; border-color: rgba(0, 240, 255, 0.7); }
  100% { opacity: 0; transform: scale(1.28); }
}

@keyframes newsIconRing {
  0%, 100% { transform: rotate(0) scale(1); }
  16% { transform: rotate(-12deg) scale(1.08); }
  27% { transform: rotate(12deg) scale(1.08); }
  38% { transform: rotate(-8deg) scale(1.05); }
  50% { transform: rotate(8deg) scale(1.05); }
  66% { transform: rotate(0) scale(1); }
}

@keyframes newsLabelFlash {
  0%, 100% { color: #fff; text-shadow: none; }
  18%, 46% { color: #fff; text-shadow: 0 0 12px rgba(255, 23, 79, 0.9); }
  32%, 60% { color: #dffcff; text-shadow: 0 0 12px rgba(0, 240, 255, 0.85); }
}

@keyframes newsBadgeHeartbeat {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
  18% { box-shadow: 0 0 0 10px rgba(255, 23, 79, 0.2); background: rgba(255, 23, 79, 0.16); color: #fff; }
  32% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
  50% { box-shadow: 0 0 0 9px rgba(0, 240, 255, 0.18); background: rgba(0, 240, 255, 0.16); color: #fff; }
  68% { box-shadow: 0 0 0 0 rgba(255, 23, 79, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .news-launcher.news-attention,
  .news-launcher.news-attention::after,
  .news-launcher.news-attention .news-launcher-icon,
  .news-launcher.news-attention .news-launcher-label,
  .news-launcher.news-attention .news-launcher-count {
    animation: none;
  }
}

.news-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  border: 0;
  background: rgba(0, 0, 4, 0.48);
  opacity: 0;
  cursor: default;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.25s ease;
}

.news-backdrop.is-open {
  opacity: 1;
}

.news-panel {
  position: fixed;
  left: 22px;
  bottom: 84px;
  z-index: 10020;
  width: min(430px, calc(100vw - 44px));
  max-height: min(690px, calc(100svh - 120px));
  overflow: auto;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 23, 79, 0.12), transparent 34%),
    linear-gradient(150deg, rgba(16, 16, 23, 0.99), rgba(7, 7, 11, 0.99));
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 38px rgba(0, 240, 255, 0.06);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transform-origin: bottom left;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 14, 0.93);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.news-panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: #ff174f;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.news-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.news-panel-close {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #292936;
  border-radius: 50%;
  background: #0d0d13;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-panel-close:hover,
.news-panel-close:focus-visible {
  color: #00f0ff;
  border-color: #00f0ff;
  transform: rotate(4deg);
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.news-item-image {
  height: 112px;
  overflow: hidden;
  border: 1px solid #23232d;
  border-radius: 9px;
  background: #111117;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-item:hover .news-item-image img {
  transform: scale(1.045);
}

.news-item-content {
  min-width: 0;
}

.news-item-type {
  display: block;
  margin-bottom: 5px;
  color: #ff174f;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.news-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.3;
}

.news-item p {
  margin: 0 0 8px;
  color: #9292a0;
  font-size: 0.71rem;
  line-height: 1.48;
}

.news-item-link {
  color: #00e7f4;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.75px;
  text-decoration: none;
}

.news-item-link:hover,
.news-item-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.news-panel-open {
  overflow: hidden;
}

@media (max-width: 650px) {
  .news-launcher {
    left: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 7px 9px 7px 7px;
  }

  .news-launcher-icon {
    width: 30px;
    height: 30px;
  }

  body:has(.floating-bar[style*="display: flex"]) .news-launcher {
    bottom: 78px;
  }

  .news-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 82svh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(28px);
    transform-origin: bottom center;
  }

  .news-panel.is-open {
    transform: translateY(0);
  }

  .news-panel-head {
    padding: 19px 18px 15px;
  }

  .news-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 16px;
  }

  .news-item-image {
    height: 96px;
  }

  .news-item h3 {
    font-size: 0.82rem;
  }

  .news-item p {
    font-size: 0.66rem;
  }
}

@media (max-width: 390px) {
  .news-launcher-label {
    display: none;
  }

  .news-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .news-item-image {
    height: 90px;
  }
}

/* Povečan prikaz posamezne novice v pojavnem oknu. */
.news-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  border: 0;
  background: rgba(0, 0, 4, 0.8);
  opacity: 0;
  cursor: default;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease;
}

.news-detail-backdrop[hidden],
.news-detail-modal[hidden] {
  display: none;
}

.news-detail-backdrop.is-open {
  opacity: 1;
}

.news-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10110;
  width: min(1080px, calc(100vw - 52px));
  max-height: min(880px, calc(100svh - 52px));
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 19px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 23, 79, 0.13), transparent 34rem),
    linear-gradient(145deg, #101017, #07070b 72%);
  color: #fff;
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.86), 0 0 45px rgba(0, 240, 255, 0.07);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 22px)) scale(0.975);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.news-detail-modal.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.news-detail-modal-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 13px 18px 13px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 13, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.news-detail-modal-head span,
.news-detail-modal-head strong {
  display: block;
}

.news-detail-modal-head span {
  margin-bottom: 3px;
  color: #ff174f;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.news-detail-modal-head strong {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
}

.news-detail-modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #30303b;
  border-radius: 50%;
  background: #0d0d13;
  color: #fff;
  font: 400 1.55rem/1 'Montserrat', sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-detail-modal-close:hover,
.news-detail-modal-close:focus-visible {
  color: #00e7f4;
  border-color: #00e7f4;
  transform: rotate(5deg);
}

.news-detail-modal-scroll {
  max-height: min(880px, calc(100svh - 52px));
  overflow-y: auto;
  padding: 112px 44px 42px;
  scrollbar-color: #31313b #0b0b10;
}

.news-detail-modal-intro {
  max-width: 880px;
}

.news-detail-modal-kicker {
  margin: 0 0 12px;
  color: #ff174f;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.news-detail-modal-intro h2 {
  margin: 0 0 17px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.news-detail-modal-intro > p:last-child {
  max-width: 790px;
  margin: 0 0 30px;
  color: #a7a7b2;
  font-size: 1rem;
  line-height: 1.68;
}

.news-detail-modal-hero {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  margin: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #101016;
}

.news-detail-modal-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-detail-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 44px;
  align-items: start;
}

.news-detail-modal-copy p {
  margin: 0 0 19px;
  color: #c1c1ca;
  font-size: 0.9rem;
  line-height: 1.8;
}

.news-detail-modal-aside {
  padding: 21px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.news-detail-modal-aside span,
.news-detail-modal-aside strong {
  display: block;
}

.news-detail-modal-aside span {
  margin-bottom: 6px;
  color: #767684;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.news-detail-modal-aside strong {
  margin-bottom: 17px;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
}

.news-detail-modal-cta {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00dbe8;
  border-radius: 7px;
  color: #00ecfa;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-align: center;
  text-decoration: none;
}

.news-detail-modal-cta:hover,
.news-detail-modal-cta:focus-visible {
  background: #00dbe8;
  color: #050509;
}

.news-detail-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.news-detail-modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: #101016;
}

.news-detail-modal-source {
  margin: 21px 0 0;
  color: #666674;
  font-size: 0.62rem;
}

body.news-detail-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .news-detail-modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 92svh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(35px);
  }

  .news-detail-modal.is-open {
    transform: translateY(0);
  }

  .news-detail-modal-scroll {
    max-height: 92svh;
    padding: 96px 18px 30px;
  }

  .news-detail-modal-head {
    min-height: 64px;
    padding: 11px 14px 11px 18px;
  }

  .news-detail-modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-detail-modal-hero {
    aspect-ratio: 4 / 3;
    margin-bottom: 28px;
  }

  .news-detail-modal-gallery {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 30px;
  }
}

/* ========================================================= */
/* NOVICA V ENEM KADRU – RAZPRTJE IZ MALEGA OKNA + CAROUSEL  */
/* ========================================================= */
.news-detail-modal {
  --news-origin-x: 0px;
  --news-origin-y: 0px;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(1160px, calc(100vw - 44px));
  height: min(720px, calc(100svh - 40px));
  max-height: none;
  overflow: hidden;
  border-radius: 20px;
  transform:
    translate(calc(-50% + var(--news-origin-x)), calc(-50% + var(--news-origin-y)))
    scale(0.22);
  transform-origin: center;
  transition:
    opacity 0.32s ease,
    transform 0.48s cubic-bezier(0.2, 0.88, 0.24, 1),
    border-radius 0.48s ease;
}

.news-detail-modal.is-open {
  border-radius: 20px;
  transform: translate(-50%, -50%) scale(1);
}

.news-detail-modal-head {
  min-height: 64px;
  height: 64px;
  padding: 10px 16px 10px 22px;
}

.news-detail-stage {
  height: calc(100% - 64px);
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  margin-top: 64px;
  overflow: hidden;
}

.news-detail-carousel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #050509;
}

.news-detail-slides,
.news-detail-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-detail-slide {
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.72s ease, transform 4.2s ease;
}

.news-detail-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.news-detail-carousel-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 2, 5, 0.04) 42%, rgba(2, 2, 5, 0.82) 100%),
    linear-gradient(90deg, transparent 68%, rgba(4, 4, 8, 0.15));
}

.news-detail-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(5, 5, 9, 0.65);
  color: #fff;
  font: 400 1.8rem/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.news-detail-carousel-arrow:hover,
.news-detail-carousel-arrow:focus-visible {
  border-color: #00e7f4;
  background: rgba(5, 5, 9, 0.9);
  color: #00e7f4;
}

.news-detail-carousel-arrow.is-prev { left: 16px; }
.news-detail-carousel-arrow.is-next { right: 16px; }

.news-detail-carousel-dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.news-detail-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.news-detail-carousel-dots button.is-active {
  width: 24px;
  background: #00e7f4;
  box-shadow: 0 0 12px rgba(0, 231, 244, 0.55);
}

.news-detail-carousel-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 3;
}

.news-detail-carousel-caption span,
.news-detail-carousel-caption strong {
  display: block;
}

.news-detail-carousel-caption span {
  margin-bottom: 5px;
  color: #ff174f;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1.45px;
}

.news-detail-carousel-caption strong {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
}

.news-detail-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(27px, 3vw, 43px) clamp(28px, 3.3vw, 48px) 28px;
  overflow: hidden;
}

.news-detail-modal-kicker {
  margin: 0 0 10px;
  color: #ff174f;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.news-detail-content h2 {
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(1.85rem, 3.1vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.news-detail-modal-lead {
  margin: 0 0 18px;
  color: #a9a9b4;
  font-size: 0.88rem;
  line-height: 1.58;
}

.news-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 19px;
}

.news-detail-facts span {
  padding: 6px 9px;
  border: 1px solid rgba(0, 231, 244, 0.22);
  border-radius: 999px;
  background: rgba(0, 231, 244, 0.04);
  color: #00dfe9;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.65px;
}

.news-detail-text {
  min-height: 0;
}

.news-detail-text p {
  margin: 0 0 12px;
  color: #c2c2cb;
  font-size: 0.79rem;
  line-height: 1.62;
}

.news-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news-detail-footer p {
  margin: 0;
  color: #656572;
  font-size: 0.57rem;
  line-height: 1.4;
}

.news-detail-modal-cta {
  width: auto;
  min-width: 194px;
  min-height: 43px;
  padding: 0 17px;
  flex: 0 0 auto;
}

@media (max-height: 760px) and (min-width: 761px) {
  .news-detail-modal {
    height: calc(100svh - 24px);
  }

  .news-detail-content {
    padding-top: 23px;
    padding-bottom: 20px;
  }

  .news-detail-content h2 {
    font-size: clamp(1.65rem, 2.7vw, 2.55rem);
    margin-bottom: 9px;
  }

  .news-detail-modal-lead {
    margin-bottom: 11px;
    font-size: 0.78rem;
  }

  .news-detail-facts {
    margin-bottom: 11px;
  }

  .news-detail-text p {
    margin-bottom: 8px;
    font-size: 0.72rem;
    line-height: 1.48;
  }
}

@media (max-width: 760px) {
  .news-detail-modal {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 14px);
    height: calc(100svh - 14px);
    max-height: none;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 15px;
    transform:
      translate(calc(-50% + var(--news-origin-x)), calc(-50% + var(--news-origin-y)))
      scale(0.2);
  }

  .news-detail-modal.is-open {
    border-radius: 15px;
    transform: translate(-50%, -50%) scale(1);
  }

  .news-detail-modal-head {
    height: 58px;
    min-height: 58px;
  }

  .news-detail-stage {
    height: calc(100% - 58px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 36%) minmax(0, 64%);
    margin-top: 58px;
  }

  .news-detail-carousel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .news-detail-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .news-detail-carousel-arrow.is-prev { left: 10px; }
  .news-detail-carousel-arrow.is-next { right: 10px; }

  .news-detail-carousel-caption {
    left: 15px;
    bottom: 13px;
  }

  .news-detail-carousel-dots {
    right: 15px;
    bottom: 15px;
  }

  .news-detail-content {
    padding: 17px 18px 14px;
  }

  .news-detail-modal-kicker {
    margin-bottom: 6px;
    font-size: 0.54rem;
  }

  .news-detail-content h2 {
    margin-bottom: 8px;
    font-size: clamp(1.34rem, 6.7vw, 1.78rem);
  }

  .news-detail-modal-lead {
    margin-bottom: 9px;
    font-size: 0.69rem;
    line-height: 1.43;
  }

  .news-detail-facts {
    gap: 5px;
    margin-bottom: 9px;
  }

  .news-detail-facts span {
    padding: 4px 7px;
    font-size: 0.44rem;
  }

  .news-detail-text p {
    margin-bottom: 7px;
    font-size: 0.65rem;
    line-height: 1.42;
  }

  .news-detail-text p:first-child {
    display: none;
  }

  .news-detail-footer {
    gap: 9px;
    padding-top: 8px;
  }

  .news-detail-footer p {
    display: none;
  }

  .news-detail-modal-cta {
    width: 100%;
    min-width: 0;
    min-height: 39px;
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .news-detail-stage {
    grid-template-rows: 31% 69%;
  }

  .news-detail-modal-lead,
  .news-detail-text p:last-child {
    display: none;
  }
}

