/* Lavet i samarbejde med AI (Copilot)*/

/* ===== HERO ===== */
.hero-behandling {
    display: flex;
    flex-direction: column;
    background-color: #EDF3F7;
    gap: var(--space-l);
}

.hero-image-behandling {
    width: 100%;
    height: 200px;
    border-radius: 9px;
   background: url("../img/krop.png") center / contain no-repeat;
}

.hero-text-behandling {
    position: relative;
    z-index: 2;
    color: #1E3856;
}

.hero-behandling p {
    margin-top: var(--space-xs);
}

.hero-behandling h2 {
    font-size: 24px;
    font-weight: 400;

}

/* ===== TREATMENT OVERVIEW ===== */

.treatment-overview {
  padding:0;
}

.treatment-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* LEFT MENU */
.treatment-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.treatment-menu li {
  padding: 10px 0;
  cursor: pointer;
  border-left: 3px solid transparent;
  color: #4a4a4a;
  transition: 0.2s ease;
}

.treatment-menu li:hover {
  color: #1E3856;
}

.treatment-menu li.active {
  font-weight: 600;
  color: #1E3856;
  border-left-color: var(--accent);
}

/* RIGHT CONTENT */
.treatment-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.treatment-image {
  width: 100%;
  border-radius: 9px;
  object-fit: cover;
  height: 400px;
}

.treatment-text h2 {
  margin-bottom: var(--space-s);
  color: #1E3856;
}

.treatment-text p {
  margin-bottom: var(--space-m);
  line-height: 1.6;
}

.primary-btn {
  display: flex;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
}

.treatment-menu {
  max-height: 400px; 
  overflow-y: auto;
  padding-right: 8px;
}

/* Pænere scrollbar (Webkit) */
.treatment-menu::-webkit-scrollbar {
  width: 8px;
}

.treatment-menu::-webkit-scrollbar-thumb {
  background: #c5d3e3;
  border-radius: 9px;
}

.treatment-menu::-webkit-scrollbar-thumb:hover {
  background: #9fb3c9;
}

/* ==========================================================================
   TIMELINE – FIXET VERSION
   ========================================================================== */

.timeline-section {
  background: #EDF3F7;
}

.timeline-title {
  margin-bottom: var(--space-2xl);
}

/* Wrapper */
.timeline {
  position: relative;
 
}

/* Lodret linje (Mobil) */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px; /* Halvdelen af cirklens bredde (40px) */
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #cfe0f7, #4c7bd9);
  z-index: 1;
}

/* Item - Bruger flex til at centrere tallet lodret ud for kortet */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center; /* Dette centrerer nummeret perfekt lodret i forhold til kortet */
  margin-bottom: var(--space-m);
}

/* Nummer cirkel (Mobil) */
.timeline-number {
  position: absolute;
  left: 0;
  
  width: 40px;
  height: 40px;

  background: #1E3856;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  color: #ffffff;
  z-index: 2; 
}

/* Card */
.timeline-card {
  flex: 1;
  margin-left: var(--space-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-m);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ===== DESKTOP RESPONSIVENESS ===== */
@media (min-width: 1024px) {

  .hero-behandling .container {
      display: flex;
      align-items: stretch;
      gap: var(--space-2xl);
      width: 100%;
  }
  
  .hero-text-behandling {
      flex: 1.2;
  }

  .hero-image-behandling {
      flex: 0.8;
      height: auto; /* overskriver 200px fra mobil */
  }

  .hero-behandling p {
      margin-top: var(--space-m);
  }

  /* Timeline Desktop Justeringer */
  .timeline::before {
    left: 25px;
  }

  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .timeline-card {
    margin-left: 85px;
    padding: 30px var(--space-xl);
  }
}

/* ===== TABLET / MOBIL ===== */
@media (max-width: 1024px) {
  .treatment-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .treatment-content {
    grid-template-columns: 1fr;
  }

  .treatment-menu ul {
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-m);
    padding-bottom: var(--space-s);
  }

  .treatment-menu li {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .treatment-menu li.active {
    border-bottom-color: var(--accent);
  }
}
