:root {
  --color-bg: #f1f1f1;
  --color-text: #111111;
  --color-muted: #555555;
  --color-red: #e00000;
  --color-red-dark: #b80000;
  --color-white: #ffffff;
  --color-border: #dddddd;
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.14);
  --shadow-strong: 0 16px 36px rgba(0, 0, 0, 0.22);
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background: var(--color-white);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

section,
footer {
  scroll-margin-top: var(--header-height);
}

/* =========================
   Header / navigation
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 12px clamp(16px, 4vw, 32px);
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: block;
  width: clamp(135px, 10vw, 180px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;

  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;

  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  background: var(--color-red);
  color: var(--color-white);
  outline: none;
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #222;
  border-radius: 999px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.language-switcher a {
  min-height: auto;
  width: auto;
  padding: 4px;
  background: transparent;
  line-height: 1;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  background: transparent;
  opacity: 0.75;
}

.language-switcher .fi {
  display: block;
  font-size: 24px;
  border-radius: 2px;
}

/* =========================
   Shared layout
========================= */

.full-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.section {
  padding: 0 24px;
}

.section-inner,
.hero-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 24px;
}

.compact-inner {
  padding-top: clamp(34px, 4vw, 52px);
  padding-bottom: clamp(34px, 4vw, 52px);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e00000;
}

.about-copy p {
  color: #e00000;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 640px;
}

.split-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 24px;
}

/* =========================
   Hero
========================= */

.hero {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.86)),
    url("SLIKE/Background.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content {
  padding-top: clamp(42px, 7vw, 80px);
  padding-bottom: clamp(42px, 7vw, 80px);
}

.big-header {
  max-width: 1050px;
  margin: 0 0 24px;
  font-size: clamp(3rem, 6.2vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.footer-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  cursor: pointer;
  padding: 14px 24px;

  color: var(--color-text);
  background-color: var(--color-bg);

  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.footer-email:hover,
.footer-email:focus-visible {
  background-color: var(--color-red);
  color: var(--color-white);
  outline: none;
}

/* =========================
   Services
========================= */

.services-section {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    url("SLIKE/Background.png");
  background-position: center;
  background-size: cover;
}

.service-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-tile {
  position: relative;

  min-height: 245px;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 22px;
  align-items: start;

  padding: 24px;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-tile.featured-tile {
  border-color: var(--color-red);
  box-shadow: 0 6px 18px rgba(224, 0, 0, 0.14);
}

.featured-badge {
  position: absolute;
  top: -25px;
  right: 28px;

  padding: 9px 18px;
  border-radius: 6px;

  background: var(--color-red);
  color: var(--color-white);

  font-weight: 770;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-soft);
}

.tile-icon {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;

  border-radius: var(--radius);
  background: var(--color-white);
}

.tile-icon svg {
  width: 92px;
  height: 92px;
  fill: none;
  stroke: #111;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-icon svg path:nth-child(n+2),
.tile-icon svg rect:nth-child(n+2) {
  stroke: var(--color-red);
}

.tile-content h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.08;
}

.tile-content p {
  margin: 0 0 14px;
  color: var(--color-text);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tags span {
  display: inline-flex;
  padding: 5px 8px;

  border: 1px solid #ececec;
  border-radius: 999px;

  color: var(--color-muted);
  background: #fafafa;
  font-size: 0.82rem;
}

details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  color: var(--color-red);
  font-weight: 700;
}

details ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* =========================
   About / timeline
========================= */

.about-section {
  background: var(--color-white);
}

.about-layout {
  display: block;
}

.about-top,
.timeline-headline {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
}

.about-top {
  align-items: start;
  margin-bottom: 18px;
}

.about-copy h2 {
  margin-bottom: 16px;
}

.about-copy p {
  margin: 0 0 12px;
  font-size: 1rem;
  max-width: 620px;
  color: #e00000;
}

.vision-lead {
  color: var(--color-text) !important;
  font-size: clamp(1.1rem, 1.25vw, 2rem) !important;
  line-height: 1.16 !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 560px !important;
  text-align: justify;
}

.vision-text {
  padding: 18px 22px;
  border-left: 4px solid var(--color-red);
  background: var(--color-bg);
  border-radius: var(--radius);
  text-align: justify;

}

.vision-text p {
  margin: 0 0 9px;
  color: var(--color-text);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.42;
}

.vision-text p:last-child {
  margin-bottom: 0;
}

.timeline-headline {
  align-items: end;
  margin-bottom: 14px;
}

.timeline-headline p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.42;
}

.timeline-title {
  margin: 0;
  font-size: clamp(1.55rem, 1.8vw, 2.25rem);
  line-height: 1.05;
  color: #e00000;
}

.timeline-story {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 8px 0 18px;
}

.timeline-story::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 335px;
  z-index: 0;
  height: 3px;
  background: var(--color-red);
  opacity: 0.85;

}

.timeline-card {
  position: relative;
  z-index: 1;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-height: 330px;

  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);

  transform: translateZ(0);
  transform-origin: center;
  will-change: transform;

  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.timeline-card::after {
  content: "";
  position: absolute;
  top: 107px;
  left: 50%;
  width: 16px;
  height: 16px;

  transform: translateX(-50%);
  border-radius: 50%;


}

.timeline-photo {
  position: relative;
  height: 128px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #d8d8d8, #f6f6f6);
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-photo.grayscale img {
  filter: grayscale(1);
}

.timeline-photo.missing::before {
  content: "Fotografija v pripravi";
  z-index: 2;
  display: inline-flex;

  padding: 7px 10px;
  border-radius: 4px;

  background: rgba(0, 0, 0, 0.72);
  color: var(--color-white);
  font-size: 0.78rem;
}

.timeline-photo.missing::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

.timeline-content {
  min-height: 202px;
  display: flex;
  flex-direction: column;

  padding: 24px 15px 15px;
  text-align: center;
}

.timeline-years {
  display: block;
  margin-bottom: 6px;

  color: var(--color-red);
  font-weight: 800;
  font-size: 0.86rem;
}

.timeline-content h3 {
  margin: 0 0 7px;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.08;
}

.timeline-content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.36;
}

.timeline-extra {
  min-height: 72px;
  margin-top: 12px;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity 0.22s ease, transform 0.22s ease;
}

.timeline-card:hover .timeline-extra,
.timeline-card:focus-within .timeline-extra {
  opacity: 1;
  transform: translateY(0);
}

.timeline-extra p {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.timeline-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;

  margin-top: auto;
  padding-top: 16px;
}

.timeline-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--color-bg);
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.timeline-social a:hover,
.timeline-social a:focus-visible {
  background: var(--color-red);
  transform: translateY(-2px);
  outline: none;
}

.timeline-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Smooth hover: no layout changes, only transform.
   This is less glitchy than changing grid-template-columns on hover. */
@media (hover: hover) and (pointer: fine) and (min-width: 1051px) {
  .timeline-story:hover .timeline-card {
    opacity: 0.76;
    transform: scale(0.985);
  }

  .timeline-story:hover .timeline-card:hover,
  .timeline-story:hover .timeline-card:focus-within {
    z-index: 5;
    opacity: 1;
    transform: translateY(-8px) scale(1.035);
    border-color: var(--color-red);
    box-shadow: var(--shadow-strong);
  }

  @supports selector(.timeline-story:has(.timeline-card:hover)) {
    .timeline-story:has(.timeline-card:nth-child(1):hover) .timeline-card:not(:nth-child(1)) {
      transform: translateX(10px) scale(0.985);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(1) {
      transform: translateX(-10px) scale(0.985);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(n+3) {
      transform: translateX(10px) scale(0.985);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(-n+2) {
      transform: translateX(-10px) scale(0.985);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(4) {
      transform: translateX(10px) scale(0.985);
    }

    .timeline-story:has(.timeline-card:nth-child(4):hover) .timeline-card:not(:nth-child(4)) {
      transform: translateX(-10px) scale(0.985);
    }

    .timeline-story:hover .timeline-card:hover,
    .timeline-story:hover .timeline-card:focus-within {
      transform: translateY(-8px) scale(1.035);
    }
  }
}


/* =========================
   NOVIČKE
========================= */


.news-section {
  background: var(--color-white);
}

.news-marquee {
  width: 100%;
  max-width: var(--max-width);
  overflow: hidden;
  position: relative;
}

.news-track {
  display: flex; 
  gap: 25px;
  width: max-content;
  animation: newsScroll 28s linear infinite;
}

.news-marquee:hover .news-track {
  animation-play-state: paused;
}

.news-card {
  flex: 0 0 calc((var(--max-width) - 250px) / 2);
  max-width: calc((var(--max-width) - 250px) / 2);
  min-height: 250px;

  padding: 28px 24px;

  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.news-date {
  margin: 0 0 12px;
  color: var(--color-red);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.1;
}

.news-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
  line-height: 1.5;
}

.news-link {
  display: inline-flex;
  color: var(--color-red);
  font-weight: 800;
  text-decoration: none;
}

.news-link:hover {
  color: #000;
}

@keyframes newsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 12.5px));
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  padding: 50px 24px 24px;
  background-color: var(--color-bg);
  color: var(--color-muted);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  width: min(250px, 100%);
  display: block;
  margin-bottom: 16px;
}

.footer-column h3 {
  margin: 0 0 20px;
  color: var(--color-red);
  font-size: 20px;
}

.footer-column p {
  margin: 0;
  line-height: 1.6;
}

.footer-column address {
  display: block;
  margin-bottom: 22px;
  font-style: normal;
}

.footer-column address strong,
.footer-column address span {
  display: block;
}

.footer-column address strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.footer-email {
  margin-top: 18px;
  color: var(--color-white);
  background-color: var(--color-red);
  border-radius: 4px;
}

.footer-email:hover,
.footer-email:focus-visible {
  background: #000;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid #cfcfcf;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #777;
  font-size: 14px;
}

/* =========================
   Responsive
========================= */

@media (min-width: 1051px) and (max-height: 820px) {
  .about-section .compact-inner {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .vision-text {
    padding: 15px 18px;
  }

  .vision-text p {
    font-size: 0.9rem;
    line-height: 1.34;
    margin-bottom: 7px;
  }

  .timeline-photo {
    height: 110px;
  }

  .timeline-card::after {
    top: 89px;
  }

  .timeline-card {
    min-height: 310px;
  }

  .timeline-content {
    min-height: 196px;
    padding: 21px 14px 13px;
  }

  .timeline-content p {
    font-size: 0.82rem;
  }
}

@media (max-width: 1050px) {
  .full-section {
    min-height: auto;
  }

  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;

    min-width: 190px;
    display: none;
    flex-direction: column;
    align-items: flex-start;

    padding: 16px;

    background: var(--color-white);
    border: 1px solid #eeeeee;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .split-head,
  .service-grid-compact,
  .about-top,
  .timeline-headline {
    grid-template-columns: 1fr;
  }

  .vision-top {
    gap: 18px;
  }

  .timeline-headline {
    gap: 10px;
  }

  .timeline-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .timeline-extra {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .hero {
    background-attachment: scroll;
  }
  
  .news-card {
  flex-basis: 85vw;
  max-width: 85vw;
  }

  .news-track {
    animation-duration: 48s;
  }
  
  .language-switcher {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    margin-top: 8px;
  }

  .main-nav .language-switcher a {
    width: auto;
    min-height: auto;
    padding: 4px;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 0 16px;
  }

  .service-tile {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tile-icon {
    width: 86px;
    height: 86px;
  }

  .tile-icon svg {
    width: 66px;
    height: 66px;
  }

  .featured-badge {
    position: static;
    width: max-content;
    margin: 0 0 8px;
  }

  .timeline-story,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    min-height: auto;
  }

  .timeline-content {
    min-height: auto;
  }

  .timeline-extra {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   FINAL TIMELINE OVERRIDE
   Paste this at the VERY BOTTOM of styles3-final.css.
   It makes the About timeline cards bigger and smoother.
========================================================= */

/* Bigger timeline layout */
.timeline-story {
  gap: 24px;
  padding: 22px 0 42px;
  overflow: visible;
}

/* Remove the old timeline line/dot look */

.timeline-card::after {
  display: none;
}

/* Bigger cards */
.timeline-card {
  min-height: 445px;
  overflow: hidden;
  transform-origin: center;
  will-change: transform;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

/* More photo visible by default */
.timeline-photo {
  height: 210px;
  transition:
    height 0.28s ease,
    opacity 0.28s ease,
    filter 0.28s ease;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* More content space */
.timeline-content {
  min-height: 235px;
  padding: 24px 18px 18px;
}

/* Hidden text area exists but is invisible, so hover does not jump */
.timeline-extra {
  min-height: 118px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.timeline-card:hover .timeline-extra,
.timeline-card:focus-within .timeline-extra {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timeline-extra p {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* On hover, photo becomes shorter/dimmer so hidden text and social links have room */
.timeline-card:hover .timeline-photo,
.timeline-card:focus-within .timeline-photo {
  height: 150px;
  opacity: 0.78;
  filter: brightness(0.92);
}

/* Social links work whether they are inside .timeline-extra or directly in .timeline-content */
.timeline-extra .timeline-social,
.timeline-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 0;
}

.timeline-extra .timeline-social a,
.timeline-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.timeline-extra .timeline-social a:hover,
.timeline-social a:hover,
.timeline-extra .timeline-social a:focus-visible,
.timeline-social a:focus-visible {
  background: var(--color-red);
  transform: translateY(-2px);
  outline: none;
}

.timeline-extra .timeline-social img,
.timeline-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Desktop hover behavior: smoother, bigger card, other cards move away more */
@media (hover: hover) and (pointer: fine) and (min-width: 1051px) {
  .timeline-story:hover .timeline-card {
    opacity: 0.68;
    transform: scale(0.94);
  }

  .timeline-story:hover .timeline-card:hover,
  .timeline-story:hover .timeline-card:focus-within {
    z-index: 10;
    opacity: 1;
    transform: translateY(-14px) scale(1.08);
    border-color: var(--color-red);
    box-shadow: var(--shadow-strong);
  }

  @supports selector(.timeline-story:has(.timeline-card:hover)) {
    .timeline-story:has(.timeline-card:nth-child(1):hover) .timeline-card:not(:nth-child(1)) {
      transform: translateX(32px) scale(0.94);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(1) {
      transform: translateX(-32px) scale(0.94);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(n+3) {
      transform: translateX(32px) scale(0.94);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(-n+2) {
      transform: translateX(-32px) scale(0.94);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(4) {
      transform: translateX(32px) scale(0.94);
    }

    .timeline-story:has(.timeline-card:nth-child(4):hover) .timeline-card:not(:nth-child(4)) {
      transform: translateX(-32px) scale(0.94);
    }

    .timeline-story:hover .timeline-card:hover,
    .timeline-story:hover .timeline-card:focus-within {
      transform: translateY(-14px) scale(1.08);
    }
  }
}

/* Tablets/phones: no hover shrinking, show hidden text normally */
@media (max-width: 1050px) {
  .timeline-card {
    min-height: auto;
  }

  .timeline-photo {
    height: 210px;
  }

  .timeline-card:hover .timeline-photo,
  .timeline-card:focus-within .timeline-photo {
    height: 210px;
    opacity: 1;
    filter: none;
  }

  .timeline-extra {
    min-height: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Keep reduced-motion users safe even though this override is at the bottom */
@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-photo,
  .timeline-extra,
  .timeline-social a {
    transition: none !important;
  }

  .timeline-story:hover .timeline-card,
  .timeline-story:hover .timeline-card:hover,
  .timeline-story:hover .timeline-card:focus-within {
    transform: none !important;
  }
}

/* =========================================================
   FINAL TIMELINE FIX
   Taller cards, larger photos, no jumpy hover layout changes.
   Hover only uses opacity/transform, not height changes.
========================================================= */

.timeline-story {
  gap: 24px;
  padding: 20px 0 44px;
  overflow: visible;
}

.timeline-card::after {
  display: none !important;
}

.timeline-card {
  min-height: 545px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.timeline-photo {
  height: 285px;
  flex: 0 0 285px;
  transition:
    opacity 0.28s ease,
    filter 0.28s ease;
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.timeline-content {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  text-align: center;
}

.timeline-years {
  margin-bottom: 5px;
}

.timeline-content h3 {
  margin-bottom: 7px;
}

.timeline-content p {
  font-size: 0.86rem;
  line-height: 1.36;
}

/* Reserve hidden space so the card does not jump when text/icons appear */
.timeline-extra {
  min-height: 88px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.timeline-card:hover .timeline-extra,
.timeline-card:focus-within .timeline-extra {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timeline-extra p {
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Keep photo size stable on hover; only dim slightly */
.timeline-card:hover .timeline-photo,
.timeline-card:focus-within .timeline-photo {
  height: 285px;
  flex-basis: 285px;
  opacity: 0.92;
  filter: brightness(0.96);
}

.timeline-extra .timeline-social,
.timeline-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 0;
}

.timeline-extra .timeline-social a,
.timeline-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.timeline-extra .timeline-social a:hover,
.timeline-social a:hover,
.timeline-extra .timeline-social a:focus-visible,
.timeline-social a:focus-visible {
  background: var(--color-red);
  transform: translateY(-2px);
  outline: none;
}

.timeline-extra .timeline-social img,
.timeline-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Desktop hover: grow hovered card; push other cards away using transform only */
@media (hover: hover) and (pointer: fine) and (min-width: 1051px) {
  .timeline-story:hover .timeline-card {
    opacity: 0.7;
    transform: scale(0.93);
  }

  .timeline-story:hover .timeline-card:hover,
  .timeline-story:hover .timeline-card:focus-within {
    z-index: 10;
    opacity: 1;
    transform: translateY(-16px) scale(1.085);
    border-color: var(--color-red);
    box-shadow: var(--shadow-strong);
  }

  @supports selector(.timeline-story:has(.timeline-card:hover)) {
    .timeline-story:has(.timeline-card:nth-child(1):hover) .timeline-card:not(:nth-child(1)) {
      transform: translateX(36px) scale(0.93);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(1) {
      transform: translateX(-36px) scale(0.93);
    }

    .timeline-story:has(.timeline-card:nth-child(2):hover) .timeline-card:nth-child(n+3) {
      transform: translateX(36px) scale(0.93);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(-n+2) {
      transform: translateX(-36px) scale(0.93);
    }

    .timeline-story:has(.timeline-card:nth-child(3):hover) .timeline-card:nth-child(4) {
      transform: translateX(36px) scale(0.93);
    }

    .timeline-story:has(.timeline-card:nth-child(4):hover) .timeline-card:not(:nth-child(4)) {
      transform: translateX(-36px) scale(0.93);
    }

    .timeline-story:hover .timeline-card:hover,
    .timeline-story:hover .timeline-card:focus-within {
      transform: translateY(-16px) scale(1.085);
    }
  }
}

/* Tablet/phone: no hover effects, text/icons visible, stable cards */
@media (max-width: 1050px) {
  .timeline-card {
    min-height: auto;
  }

  .timeline-photo {
    height: 285px;
    flex-basis: 285px;
  }

  .timeline-card:hover .timeline-photo,
  .timeline-card:focus-within .timeline-photo {
    height: 285px;
    flex-basis: 285px;
    opacity: 1;
    filter: none;
  }

  .timeline-content {
    min-height: auto;
  }

  .timeline-extra {
    min-height: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 700px) {
  .timeline-photo {
    height: 300px;
    flex-basis: 300px;
  }

  .timeline-card:hover .timeline-photo,
  .timeline-card:focus-within .timeline-photo {
    height: 300px;
    flex-basis: 300px;
  }
  .timeline-story::before,
  .timeline-story::after {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-photo,
  .timeline-extra,
  .timeline-social a {
    transition: none !important;
  }

  .timeline-story:hover .timeline-card,
  .timeline-story:hover .timeline-card:hover,
  .timeline-story:hover .timeline-card:focus-within {
    transform: none !important;
  }
}

/* =========================
   Privacy Policy Page
========================= */

.privacy-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.96)),
    url("SLIKE/Background.png");
  background-position: center;
  background-size: cover;
  padding: 0 24px 70px;
}

.privacy-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 90px) 24px clamp(28px, 4vw, 48px);
}

.privacy-hero h1 {
  max-width: 950px;
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--color-text);
}

.privacy-hero p:not(.section-label) {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
}

.privacy-grid {
  max-width: var(--max-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.privacy-column {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: justify;
  padding: 28px 24px;
}

.privacy-column h1 {
  margin: 0 0 20px;
  color: var(--color-red);
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.privacy-column h2 {
  margin: 26px 0 10px;
  color: var(--color-text);
  font-size: 1.08rem;
  line-height: 1.2;
}

.privacy-column p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.privacy-column a {
  color: var(--color-red);
  font-weight: 700;
  text-decoration: none;
}

.privacy-column a:hover,
.privacy-column a:focus-visible {
  color: #000;
  outline: none;
}

.privacy-column ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--color-muted);
}

.privacy-column li {
  margin-bottom: 8px;
  line-height: 1.45;
}

/* Tablet */
@media (max-width: 1050px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .privacy-column {
    padding: 24px 20px;
  }
}

/* Phone */
@media (max-width: 700px) {
  .privacy-page {
    padding: 0 16px 48px;
  }

  .privacy-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .privacy-grid {
    gap: 18px;
  }

  .privacy-column {
    padding: 22px 18px;
  }
}
/* One red dot on the timeline */
.timeline-story::after {
  content: "";
  display: block;

  position: absolute;
  left: -5%;
  top: 327px;

  width: 18px;
  height: 18px;

  transform: translateX(-50%);
  border-radius: 50%;

  background: var(--color-red);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 1px rgba(224, 0, 0, 0.25);

  z-index: 2;
}
/* Timeline arrowhead at end of line */
.timeline-arrow {
  position: absolute;
  right: -6%;
  top: 324px;

  width: 0;
  height: 0;

  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 22px solid var(--color-red);

  z-index: 2;
  pointer-events: none;
}
.privacy-column h1{
  font-size:xx-large;
  text-align: left;
}

/* =========================
   News archive as simple links
========================= */

.news-archive-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.archive-link {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 20px;

  padding: 18px 22px;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);

  color: var(--color-text);
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.archive-link:hover,
.archive-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-strong);
  background: var(--color-white);
  outline: none;
}

.archive-date {
  color: var(--color-red);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.archive-title-text {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.archive-arrow {
  color: var(--color-red);
  font-weight: 800;
  white-space: nowrap;
}

/* Phone */
@media (max-width: 700px) {
  .archive-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }

  .archive-arrow {
    margin-top: 4px;
  }
}
/* Hide full About timeline decoration on tablet/phone */
@media (max-width: 1050px) {
  .timeline-story::before,
  .timeline-story::after,
  .timeline-arrow {
    display: none !important;
  }
}