/* =========================
   DET SKER
   ========================= */;
/* Dansk gudstjeneste */
.social-danish {
  display: flex;
  justify-content: center;   /* centrerer hele blokken */
  gap: 15px;                 /* afstand mellem byerne */
  margin-top: 5px;           /* matcher spacing på engelsk */
}

.city-block {
  display: flex;
  flex-direction: column;    /* bynavn over ikoner */
  align-items: center;
  gap: 4px;                  /* afstand mellem bynavn og ikoner */
  padding: 0;                /* fjernet baggrund/padding for ensartet look */
  border-radius: 0;          /* ingen afrunding */
  background: none;          /* ingen farve */
}

.city-block span {
  font-weight: 500;          /* lidt mindre end tidligere, matcher engelske kort */
  font-size: 14px;
  opacity: 0.9;
}

.city-icons {
  display: flex;
  gap: 8px;
}

/* Separator */
.city-divider {
  width: 30px;
  height: 35px;
  background: rgba(255,255,255,0.3);
}

/* Andre kort */
.events {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.events h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #222;
    font-weight: bold;
}


/* =========================
   Mobilview
   ========================= */

@media (max-width: 768px) {
  .social-danish {
    flex-direction: column;
    gap: 20px;
  }
}

  /* Mobil: vandret separator */
@media (max-width: 768px) {
  .social-danish {
    flex-direction: column;
  }

  .city-divider {
    width: 40px;
    height: 1px;
    margin: 5px 0;
  }
}

/* =========================
   ChurchCenter / QR
   ========================= */

.churchcenter-section {
  max-width: 500px;
  margin: 40px auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

/* Venstre side */
.churchcenter-text {
  flex: 1;
  text-align: left;
}

.churchcenter-text p {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
}

.churchcenter-arrow {
  margin-left: 80px;
  margin-top: 10px;
  overflow: visible;
  width: 160px;
  height: auto;
}

.churchcenter-arrow svg {
  width: 160px;
  height: auto;
}

/* Højre side */
.churchcenter-link {
  flex: 1;
  text-align: center;
}

.churchcenter-link img {
  width: 180px;
  max-width: 100%;
  margin-bottom: 15px;
}

.calendar-subscribe {
  text-align: center;   /* centrerer indholdet */
  margin-top: 40px;     /* luft over */
  margin-bottom: 40px;
}


/* Mobil */
@media (max-width: 700px) {
  .churchcenter-section {
    flex-direction: column;
    text-align: center;
  }

  .churchcenter-text {
    text-align: center;
    margin-top: 20px; /* lidt mere afstand fra ovenstående sektion */
    margin-bottom: -50px; /* træk teksten tættere på QR */
  }

  .churchcenter-text p {
    margin-bottom: 0; /* ingen afstand til QR */
    line-height: 1.2; /* mindre linjehøjde for tættere tekst */
  }

  .churchcenter-link {
    text-align: center;
  }

  .churchcenter-link img {
    margin: 0 auto;
    display: block;
  }

  .churchcenter-button {
    margin: 0 auto;
    display: block;
  }

  .churchcenter-arrow {
    display: none; /* pilen giver mindre mening på mobil */
  }
}


.event-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centrer alle rækker */
    gap: 20px; /* afstand mellem kortene */
    margin-top: 40px;
}

.event-card {
    flex: 1 1 calc(33.33% - 20px); /* 3 per række på desktop */
    min-width: 250px; /* minimum bredde */
}

/* Desktop: 3, 3, 4 layout */
/* Desktop: 3, 4, 4 layout */
@media (min-width: 900px) {
  /* Første 3 kort */
  .event-card:nth-child(-n+3) {
    flex: 1 1 calc(33.33% - 20px);
  }

  /* Næste 4 kort (kort 4-7) */
  .event-card:nth-child(n+4):nth-child(-n+7) {
    flex: 1 1 calc(25% - 20px);
  }

  /* Sidste 4 kort (kort 8-11) */
  .event-card:nth-child(n+8):nth-child(-n+11) {
    flex: 1 1 calc(25% - 20px);
  }
}

/* Tablet: 2 per række */
@media (min-width: 600px) and (max-width: 899px) {
    .event-card {
        flex: 1 1 calc(50% - 10px);
    }
}

/* Kort indhold */
.event-card {
    display: flex;
    flex-direction: column;  /* sørg for at alt er stablet lodret */
    justify-content: space-between; /* skubber social-links ned til bunden */
    flex: 1 1 calc(33.33% - 20px);
    min-width: 250px;
    background: #f7f7f7; /* valgfrit, så kortet fremstår tydeligt */
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
    height: 100%; /* gør alle kort lige høje i flex-container */
}

.event-card > img {
    width: 100%;
    height: 200px;      /* sæt samme højde på alle billeder */
    object-fit: cover;  /* beskær hvis billedet ikke passer */
    object-position: top center; /* fokus på toppen af billedet */
    border-radius: 8px;
    margin-bottom: 15px;
}

.event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    flex-shrink: 0; /* forhindrer at teksten skubber link ned */
}

/* Sociale links */
.event-card .social-links {
    margin-top: auto; /* skubber altid til bunden af kortet */
    display: flex;
    justify-content: center; /* centrer links horisontalt */
    gap: 5px;
}

.event-card .social-links a {
    margin: 0 5px;
    display: inline-block;
}

.event-card .social-links img {
    width: 20px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-card .social-links img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsivt: mindre skærme */
@media (max-width: 900px) {
    .event-card {
        flex: 1 1 45%; /* 2 på en række */
    }
}

@media (max-width: 600px) {
    .event-card {
        flex: 1 1 100%; /* 1 på en række */
    }
}