/* History timeline page (Template: Tidslinje) */

.rodne-tl {
  --rt-dark: #202931;
  --rt-darker: #161c22;
  --rt-blue: #4D84BC;
  --rt-blue-light: #7BA3CE;
  --rt-red: #D6304A;
  --rt-red-light: #EE647C;
  --rt-gray: #63696F;
  --rt-gray-light: #8A9096;
  --rt-foam: #F5F1EA;
  --rt-mist: #D9E0E6;

  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rt-foam);
  background: var(--rt-darker);
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.rodne-tl * { box-sizing: border-box; }


.rodne-tl .rt-hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(214, 48, 74, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(77, 132, 188, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #161c22 0%, #202931 60%, #2a3540 100%);
  overflow: hidden;
}

.rodne-tl .rt-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 40vh;
  opacity: 0.55;
  pointer-events: none;
}

/* Optional background photo replacing the mountain illustration */
.rodne-tl .rt-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rodne-tl .rt-hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 28, 34, 0.55) 0%, rgba(22, 28, 34, 0.7) 60%, #202931 100%);
  pointer-events: none;
}

.rodne-tl .rt-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.rodne-tl .rt-eyebrow {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--rt-red-light);
  margin-bottom: 2rem;
}

.rodne-tl .rt-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 2rem 0;
  color: var(--rt-foam);
}

.rodne-tl .rt-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rt-red);
}

.rodne-tl .rt-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--rt-mist);
}

.rodne-tl .rt-intro {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #2a3540 0%, #202931 100%);
  text-align: center;
}

.rodne-tl .rt-intro p {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  color: var(--rt-mist);
}

.rodne-tl .rt-intro p::before {
  content: '—';
  display: block;
  color: var(--rt-red);
  margin-bottom: 2rem;
  font-style: normal;
}

.rodne-tl .rt-timeline-section {
  padding: 5rem 2rem 8rem;
  background: var(--rt-darker);
}

.rodne-tl .rt-tl-header {
  text-align: center;
  margin-bottom: 6rem;
}

.rodne-tl .rt-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rt-red);
  margin-bottom: 1rem;
}

.rodne-tl .rt-tl-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--rt-foam);
}

.rodne-tl .rt-timeline {
  max-width: 1150px;
  margin: 0 auto;
  position: relative;
}

.rodne-tl .rt-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--rt-red) 3%, var(--rt-blue) 50%, var(--rt-red) 97%, transparent 100%);
  transform: translateX(-0.5px);
}

.rodne-tl .rt-event {
  position: relative;
  width: 50%;
  padding: 2.2rem 3rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.rodne-tl .rt-event.rt-visible {
  opacity: 1;
  transform: translateY(0);
}

.rodne-tl .rt-event:nth-child(odd) {
  margin-left: 0;
  text-align: right;
}

.rodne-tl .rt-event:nth-child(even) {
  margin-left: 50%;
  text-align: left;
}

.rodne-tl .rt-event::before {
  content: '';
  position: absolute;
  top: 3rem;
  width: 14px;
  height: 14px;
  background: var(--rt-darker);
  border: 2px solid var(--rt-red);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.4s ease;
}

.rodne-tl .rt-event:nth-child(odd)::before { right: -7px; }
.rodne-tl .rt-event:nth-child(even)::before { left: -7px; }

.rodne-tl .rt-event:hover::before {
  background: var(--rt-red);
  box-shadow: 0 0 0 8px rgba(214, 48, 74, 0.2);
}

/* Mindre events uten bilde - for mellommilepæler */
.rodne-tl .rt-event.rt-mini {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.rodne-tl .rt-event.rt-mini::before {
  background: var(--rt-blue);
  border-color: var(--rt-blue);
  width: 10px;
  height: 10px;
  top: 2.5rem;
}
.rodne-tl .rt-event.rt-mini:nth-child(odd)::before { right: -5px; }
.rodne-tl .rt-event.rt-mini:nth-child(even)::before { left: -5px; }

.rodne-tl .rt-year {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--rt-red);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  display: inline-block;
}

.rodne-tl .rt-mini .rt-year {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--rt-blue-light);
}

.rodne-tl .rt-image {
  width: 100%;
  height: 230px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--rt-dark);
}

.rodne-tl .rt-image svg,
.rodne-tl .rt-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rodne-tl .rt-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(22, 28, 34, 0.5));
  pointer-events: none;
}

.rodne-tl .rt-event h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
  color: var(--rt-foam);
}

.rodne-tl .rt-mini h3 {
  font-size: 1.2rem;
  font-weight: 400;
}

.rodne-tl .rt-event h3 em {
  font-style: italic;
  color: var(--rt-blue-light);
}

.rodne-tl .rt-event p {
  color: var(--rt-mist);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.rodne-tl .rt-mini p {
  font-size: 0.92rem;
  color: var(--rt-gray-light);
}

.rodne-tl .rt-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rt-gray-light);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(138, 144, 150, 0.25);
}

.rodne-tl .rt-outro {
  padding: 7rem 2rem;
  background: linear-gradient(180deg, var(--rt-darker) 0%, var(--rt-blue) 150%);
  text-align: center;
}

.rodne-tl .rt-outro .rt-label {
  color: var(--rt-red-light);
}

.rodne-tl .rt-outro h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto 2rem;
  max-width: 800px;
  color: var(--rt-foam);
}

.rodne-tl .rt-outro h2 em {
  font-style: italic;
  color: var(--rt-red);
}

.rodne-tl .rt-outro p {
  color: var(--rt-mist);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 3rem;
}

.rodne-tl .rt-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.rodne-tl .rt-stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  color: var(--rt-red);
  line-height: 1;
  display: block;
}

.rodne-tl .rt-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rt-gray-light);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .rodne-tl .rt-timeline::before { left: 20px; }
  .rodne-tl .rt-event {
    width: 100%;
    padding: 1.8rem 1rem 1.8rem 3rem;
    text-align: left !important;
    margin-left: 0 !important;
  }
  .rodne-tl .rt-event::before {
    left: 13px !important;
    right: auto !important;
    top: 2.2rem;
  }
  .rodne-tl .rt-mini::before {
    left: 15px !important;
  }
  .rodne-tl .rt-image { height: 200px; }
  .rodne-tl .rt-event h3 { font-size: 1.25rem; }
  .rodne-tl .rt-mini h3 { font-size: 1.1rem; }
  .rodne-tl .rt-stats { gap: 2rem; }
}
