@layer reset, init, typography, hamburger, design, swiper;
@import url(normalize.css) layer(reset);
@import url(typography.css) layer(typography);
@import url(hamburger.css) layer(hamburger);
@import url(swiper.css) layer(swiper);
@layer init {
  :root {
    --color-primary: #ff0000;
    --color-secondary: #ff6600;
    --color-light: #f5f5f5;
    --color-dark: #1c112b;
    --color-gray: #6c6c6c;
  }
}
@layer design {
  html {
    scroll-behavior: smooth;
  }
  body {
    background-color: var(--color-light);
  }

  img{
    color: transparent;
  }
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    gap: 80px;
    max-width: 1400px;
    margin-top: 80px;
  }
  .btn--dark {
    background-color: var(--color-dark);
    padding: 12px 32px;
    color: var(--color-light);
    border: var(--color-dark) 2px solid;
    transition: all 0.3s ease;
  }
  .btn--dark:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
  }
  .btn--light {
    background-color: var(--color-light);
    padding: 20px 28px;
    color: var(--color-dark);
    border: var(--color-dark) 2px solid;
    border-radius: 10px;
    align-self: center;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
  .divider,
  .divider--side {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .divider::before,
  .divider::after,
  .divider--side::before,
  .divider--side::after {
    content: "";
    display: inline-block;
    height: 2px;
    flex: 1;
    background: var(--color-dark);
    margin: 12px 0;
  }
  .divider::before,
  .divider--side::before {
    margin-right: 4px;
  }
  .divider::after,
  .divider--side::after {
    margin-left: 4px;
  }
  .divider--after {
    text-align: left;
    justify-content: left;
  }
  .divider--after::before {
    content: none;
  }

  .image--responsive {
    width: 100%;
    height: auto;
  }


  header {
    position: relative;
  }

  .main-news .article__card img[src$=".png"],
 .main-news .article__card img[src$=".svg"] {
  display: none;
}
  .hero__wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Obrázek na pozadí */
  .hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.75)
    );
    z-index: 2;
  }
  .hero__content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    padding: 0 20px;
  }

  .hero__arrow-down::before {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    border-right: 4px solid var(--color-primary);
    border-bottom: 4px solid var(--color-primary);

    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: 5;

    animation: arrow-down 1.2s ease-in infinite;
  }
  @keyframes arrow-down {
    0% {
      bottom: 12%;
    }
    50% {
      bottom: 10%;
    }
    100% {
      bottom: 12%;
    }
  }

  .hero__text--big {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    color: var(--color-light);
  }

  .hero__text--small {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--color-light);
  }

  .hero__btn {
    display: inline-block;
    padding: 12px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border-radius: 25px;
    background-color: #1c112b77;
    transition: background 0.3s ease;
    border: var(--color-secondary) 2px solid;
  }

  .hero__btn:hover {
    background-color: var(--color-secondary);
  }

  /* Spodní SVG výřez do V */
  .hero__shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px; /* Výška spodního výřezu */
    z-index: 4; /* Musí být úplně nahoře, aby překryl obrázek */
  }

  /* Barva výřezu musí odpovídat barvě následující sekce na webu */
  .hero__shape path {
    fill: #f5f5f5;
  }
}
footer {
  z-index: 0;
  position: relative;
  display: flex;
  padding: 16px;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--dark, #1c112b);
  background: url("/static/images/footer-bg.jpg") lightgray 50% / cover
    no-repeat;
}
.footer__overlay {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 245, 245, 0.75);
}
footer > section {
  z-index: 5;
  width: 100%;
}

.footer__sponsors {
  display: flex;
  gap: 16px;
  flex-direction: column;
  justify-content: center;
  border-bottom: var(--color-dark, #1c112b) 1px solid;
  padding-bottom: 16px;
}
.footer__sponsors-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.sponsors__logo {
  width: 40%;
  height: auto;
}

.footer__socials {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  gap: 16px 40px;
  align-self: stretch;
  flex-wrap: wrap;
}
.social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social svg {
  fill: var(--color-dark, #1c112b);
  stroke: var(--color-dark, #1c112b);
  transition: 0.1s ease-in-out;
}
.social:hover svg {
  fill: var(--color-secondary);
  stroke: var(--color-secondary);
}

.footer__info {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer__info--item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info__position {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: auto;
}
.position__map {
  aspect-ratio: 1/1;
  flex: 2;
  max-width: 160px;
}
.position__info {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 250px;
}

.position__map iframe {
  width: 100%;
  height: 100%;
  border: var(--color-dark, #1c112b) 2px solid;
}

.info__contact svg {
  width: 32px;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
.info__contact,
.info__contact > a {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.info__emails {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__copy {
  display: flex;
  padding: 3px 0;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: var(--color-dark, #1c112b) 1px solid;
}

.about-us {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}
.about-us img {
  float: right;
  width: 50%;
  height: auto;
  margin-left: 8px;
}
.about-us--content {
  padding: 0 12px;
}
.about-us .btn--dark {
  position: absolute;
  bottom: 0;
  left: 0;
}
.about-us__text-box {
  height: auto;

  position: relative;
  gap: 20px;
  padding-bottom: 72px;
}

.main__why-us {
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
}
.why-us h3 {
  font-size: 36px;
  font-weight: 600;
}
.why-us--heading {
  position: relative;
}
.why-us__item {
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.why-us__item p {
  font-size: 20px;
  font-weight: 500;
}
.number-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -8px;
  font-size: 80px;
  font-weight: bold;
  color: var(--color-secondary);
  z-index: -1;
  opacity: 0.4;
}

/* Kontejner */
.why-us__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 1. VÝCHOZÍ STAV */
.why-us__item {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease-out;
  will-change: transform, opacity;
}

.why-us__item:nth-child(2) {
  transform: translateX(-100px);
}

/* 2. CÍLOVÝ STAV  */
.why-us__item.is-visible,
.why-us__item:nth-child(2).is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hlavní kontejner karty */
.groups {
  background-color: #f5f5f5;
  background-image: radial-gradient(#ff7b005a 1px, transparent 1px);
  background-size: 28px 28px;
  border: 2px solid var(--color-secondary, #ff6600);
  border-radius: 30px;
  padding: 32px 24px;
  max-width: 450px;
  margin: 20px auto;
  font-family: sans-serif;
}

.groups h2 {
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 1.8rem;
}

.groups .subtitle {
  text-align: center;
  color: #888;
  margin: 0 0 40px 0;
}

/* Obal časové osy */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px; /* Mezera mezi jednotlivými dny */
}

/* Svislá černá čára procházející středem teček */
.timeline::before {
  content: "";
  position: absolute;
  /* Pozice kalkuluje šířku dne (100px) + polovinu mezery k tečce */
  left: 78px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: #000000;
  z-index: 1;
}

/* Jeden řádek (Den + Tečka + Karta) */
.row {
  display: flex;
  align-items: center;
  position: relative;
}

/* Název dne */
.day {
  width: 100px;
  font-weight: bold;
  color: var(--color-secondary);
  font-size: 1.1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  position: absolute;
  left: 73px;
  z-index: 2;
}
.box {
  flex: 1;
  background-color: var(--color-light);
  border: 1px solid var(--color-secondary);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-info strong {
  font-size: 1.1rem;
  color: #000;
}

.group-info .time {
  color: #666;
  font-size: 0.95rem;
  margin-top: 2px;
}
.main-news,
.upcoming-events,
.events {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}
.news__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.article__card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;

  color: var(--color-light);

  transition: transform 0.5s ease;
}
.article__card:hover .card-read {
  text-decoration: underline;
}
.article__card .card__title {
  transition: color 0.3s ease;
}
.article__card:hover .card__title {
  color: var(--color-secondary);
}
.article__card:hover {
  transform: scale(1.01);
  box-shadow: 1px 1px 2px color-mix(in srgb, var(--color-dark) 60%, transparent);
}

.card--img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 20, 50, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.card__body {
  position: relative;
  z-index: 3;
  height: calc(100% - 50px);
  padding: 25px;

  font-family: sans-serif;

  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-light);
}

.card__title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
  flex-grow: 1;
  color: var(--color-light);
}

.card-read {
  align-self: flex-end;
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.card-read:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.divider--mountain {
  display: none;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "year location"
    "date content";
  padding: 32px 24px 8px 24px;
  border: var(--color-secondary) 2px solid;
  border-radius: 16px;
  grid-gap: 20px 24px;
}
.event-card__year {
  grid-area: year;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.event-card__location {
  grid-area: location;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-card .month {
  font-weight: bold;
  font-size: 1.75rem;
  color: var(--color-secondary);
  padding: 8px;
  border-bottom: var(--color-secondary) 2px solid;
}
.event-card .card-date {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-card .day {
  font-size: 4rem;
  color: var(--color-secondary);
  padding: 8px;
  width: auto;
}

.event-card .card-content {
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 8px;
}
.event-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.offers__container{
  width: 100%;
}
.btn--light:hover {
  background-color: var(--color-dark);
  color: var(--color-light);
}
.news-site {
  padding: 32px;
}
.news-site .article-card {
  max-width: 100vw;
}
.news-site .card__icon path {
  fill: var(--color-gray);
}
.news-site .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.news-site .card-body span {
  display: flex;
  gap: 8px;
  color: var(--color-gray);
}
.news-site .card-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0;
}
.news__text {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* počet řádků */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-site .card__content {
  padding: 4px 8px;
  border-left: var(--color-dark) 1px solid;
}
.card__link {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-gray);
  transition: all ease 0.5s;
}
.card__link svg {
  width: 16px;
  height: 16px;
}
.card__link svg > * {
  stroke: var(--color-gray);
}

.article-card:hover .card__link {
  text-decoration: underline var(--color-primary);
  color: var(--color-primary);
  margin-left: 16px;
}
.article-card:hover .card__link svg > * {
  stroke: var(--color-primary);
}
.article-card:hover {
  box-shadow: 0.5px 0.5px 5px
    color-mix(in srgb, var(--color-dark) 20%, transparent);
}
.card__content {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.news {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.usefull-vids {
  width: 100%;
}
.service-card {
  position: relative;
}
.offered-events {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.offers__content > p {
  font-size: 24px;
  font-weight: 600;
}
.offers__content > h3 {
  font-size: 36px;
  font-weight: 600;
  color: var(--color-secondary);
}
.offers__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.offers__text .before-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 8px;
}
.before-icon--heart::before {
  background-image: url("/static/images/svg/icon--heart.svg");
}
.before-icon--money-bag::before {
  background-image: url("/static/images/svg/icon--money-bag.svg");
}
.offers__text ul {
  padding-left: 48px;
}
.offers__text li {
  list-style: disc;
  margin-bottom: 8px;
}
.offers__text p:last-child {
  padding-left: 48px;
}
.offers__content {
  margin-bottom: 80px;
}

.offers__cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-icon {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  top: 0;
  right: 0;
}
.card-icon--slackline {
  bottom: 0;
  left: 0;
}
.service-card.active .card-icon--slackline{
  bottom: auto;
  top:190px;
}
.hidden {
  display: none;
}

.service-card {
  padding: 32px;
  background-color: var(--color-dark);
}
.service-card button,
.service-card h2,
.service-card p {
  color: var(--color-light);
}
.service-card h2 {
  font-size: 20px;
}
.card-sub {
  font-size: 14px;
}

.info__header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.info__content .info,
.info__content,
.club__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info__content,
.club__info {
  gap: 64px;
}

.club__history {
      width: calc(100vw - 15px);
  background-color: var(--color-dark);
  margin-left: -20px;
  margin-right: -20px;
}

.club__history p,
.club__history h2 {
  color: var(--color-light);
}
.history__container {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history__content header {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 36px;
  font-weight: 300;
  justify-content: center;
}
.history__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section:has(> .swiper) {
  max-width: 100vw;
  overflow-x: hidden;
}

section:has(> .swiper) header {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
}

section:has(> .swiper) h2 {
  font-size: 36px;
}

section:has(> .swiper) header img {
  width: 32px;
  height: 32px;
}

.history__text {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.history__images {
  position: relative;
  aspect-ratio: 4/3;
  width: 70%;
  cursor: pointer;
  margin: 32px 0;
}

.history-card {
  top: 28px;
  left: -32px;
  position: absolute;

  /* Plynulý přechod při změně pozice */
  transition:
    transform 0.5s ease,
    z-index 0.5s ease;
  inset: 0;
  background: white;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.history-card img {
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Obrázek úplně navrchu */
.history-card.active {
  z-index: 3;
  transform: scale(1) translateY(0);
}

.history-card:nth-child(2) {
  z-index: 2;
  transform: translate(10px, 8px) rotate(2deg);
}
.history-card:nth-child(n + 3) {
  z-index: 1;
  transform: translate(20px, 16px) rotate(4deg);
}
.history-card:nth-child(n + 4) {
  z-index: 0;
  transition: non;
}

.upcoming-events header {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  grid-area: header;
}

.upcoming-events:has(> header) {
  display: grid;
  grid-template-areas: "header header" "content1 content2";
  grid-template-columns: 1fr 1fr;
}

.upcoming-events .event-card:first-child {
  grid-area: content1;
}
.upcoming-events .event-card:nth-child(2) {
  grid-area: content2;
}
.upcoming-events header img {
  width: 32px;
  height: 32px;
}

.members {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  position: relative;
  gap: 64px;
  justify-content: center;
}
.member__card {
  width: 298px;
  height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  background-color: grey;
}

.member__card img {
  height: 110%;
  width: 100%;
  object-fit: cover;
}
.role {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 2px solid var(--color-secondary);
  display: block;
  padding: 2px 12px;
  padding-top: 4px;
  color: var(--color-secondary);
  background-color: color-mix(in srgb, var(--color-secondary) 5%, transparent);
  border-radius: 15px;
}
.offers__cards{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-contact {
  display: flex;
  gap: 8px;
  align-items: center;
}
.member-contact img {
  height: 24px;
  width: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;

  flex-direction: column;
  gap: 0.75rem;
  color: #fff;

  background-size: cover;
  background-position: center;

}

/* Tmavý overlay přes background image */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(20, 15, 45, 0.72) 0%,
    rgba(20, 15, 45, 0.55) 100%
  );
  z-index: 1;
}

/* Ikona v pravém horním rohu */
.card-icon {
  position: absolute;
  top: 0;
  right: -8px;
  width: 128px;
  height: 128px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  z-index: 2;
}

.card-icon--slackline {
  width: 80px;
  height: 80px;
  top: auto;
  right: auto;
  bottom: 12px;
  left: 12px;
}

/* Hlavička */
.card-header {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.card-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: #fff;
  line-height: 1.2;
}

.card-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Popis */
.card-desc + p {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.card-desc strong,
.card-desc b {
  color: #fff;
  font-weight: 700;
}

/* Tlačítko "Chci vědět více" */
.btn-more {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: auto;
  padding: 0.55rem 1.4rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-more:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Rozbalený obsah */
.card-details {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.card-details.hidden {
  display: none;
}

.btn-less {
  align-self: flex-end;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.55rem 1.4rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-less:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.detail-item {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.detail-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #fff;
}

.detail-item p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.btn--secondary{
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 16px;
  border-radius: 10px;
  transition: all 0.3s ease;

}
.btn--secondary:hover{
  color: var(--color-light);
  background-color: var(--color-secondary);
}

.offers{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offers .btn{
  margin-top: 32px;
}

.gallery-header{
  display:flex;
  justify-content: space-between;
  align-items: center;
}
.gallery-header h2{
  font-weight: 600;
  font-size: 28px;
    transition: all .3s ease;

}
.gallery-card{
  width: 320px;
  display: flex;
  flex-direction: column;
  gap:16px;
  align-self: start;
}

.gallery-card:hover h2{
  color: var(--color-secondary);
}

.gallery-card hr{
  width: 100%;
}
.gallery-card span{
  font-weight: bold;
  font-size: 2rem;
}
.gallery{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap:64px ;
  justify-content: center;
  align-items: end;

}
.gallery img{
  aspect-ratio: 4/3;
  transition: transform .3s ease;
  object-fit: cover;
  object-position: top;
}
.gallery-card:hover img{
  transform: scale(1.02);
}

.contact-info, .contact-info-part{
display: flex;
flex-direction: column;
 gap:40px;
}
.contact-info{
  padding: 0 64px;
}
.contact-info li a {
  font-weight: 400;
  font-size: 16px;
}

.contact-info__container{
  display: flex;
  flex-direction: column;
  gap:12px;
  border-left: 4px solid var(--color-secondary);
  padding-left: 12px ;
  transition: all .3s ease;
}
.contact-info__container:hover{
  border-left-width: 8px;
}

.contact-info > a{
  align-self: center;
  margin-top: 40px;
}

.contact-socials{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}
.contact-socials__item{
  display: flex;
  align-items: center;
}
.news {
  display: grid;
    grid-template-columns: 1fr; /* Na mobilu jen 1 sloupec */
    padding: 16px; /* Na mobilu menší vnitřní okraj, ať máš víc místa */
 max-width: 100vw;
  }
  /* 1. Donutíme kartu, aby nepustila obsah ven a nepřetékala doprava */
.news-site .article-card {
  width: 100%;
  min-width: 0; /* KRITICKÉ PRO GRID: povolí kartě zmenšit se a nepřetékat */
  overflow: hidden; /* Vše, co by chtělo čouhat ven, se skryje nebo ořízne */
  box-sizing: border-box;
}

/* 2. Zkontrolujeme, že VŠECHNY obrázky uvnitř karty respektují její šířku */
.news-site .article-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Pokud jsou v textu dlouhé odkazy (URL), zalomíme je, ať netlačí kartu doprava */
.news-site .article-card p, 
.news-site .article-card a,
.news-site .card__link {
  word-break: break-word; /* Zalomí extrémně dlouhá slova nebo URL linky */
  overflow-wrap: anywhere;
}
@media screen and (min-width: 600px) {
  .sponsors__logo {
    width: 25%;
  }
  .footer__sponsors-logos {
    gap: 24px;
  }
  .footer__copy {
    justify-content: space-between;
  }
}

@media screen and (min-width: 960px) {
  main {
    padding: 80px;
  }
  .sponsors__logo {
    width: 200px;
  }
  .footer__info {
    gap: 64px;
  }
  .footer__sponsors-logos {
    justify-content: space-between;
    flex: 1;
  }

  .hero__wrapper {
    height: 90vh; /* Na mobilu o něco menší výška */
  }
  .hero__overlay {
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.6)
    );
  }
  .hero__content {
    text-align: start;
    align-items: start;
    margin-top: 15vw;
    margin-left: 64px;
  }
  .hero__wrapper {
    justify-content: start;
    align-items: start;
  }
  .hero__text--big {
    text-transform: none;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  .hero__text--small {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
  }
  .hero__btn {
    justify-self: end;
    align-self: flex-start;
    font-weight: 600;
    letter-spacing: 1px;
  }
  .main__why-us {
    width: 100%;
    display: grid;
    grid-template-areas:
      "heading heading"
      "why-us groups";
    grid-template-columns: 1fr auto;
  }
  .main__why-us h2 {
    grid-area: heading;
  }
  .why-us {
    grid-area: why-us;
  }
  .groups {
    grid-area: groups;
    padding: 40px 60px;
    border-width: 2px;
  }
  .news__cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  .article__card {
    min-width: 300px;
    aspect-ratio: 16/9;
    width: calc(33.333% - 40px);
  }
  .article__card .card__title {
    font-size: 1.5rem;
    font-weight: 600;
  }
  .article__card .card-meta {
    flex-direction: row;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .upcoming-events {
    position: relative;
    padding-top: 80px;
    flex-direction: row;
  }

  .event-card {
    flex: 1;
  }
  .divider--mountain {
    display: block;
    position: absolute;
    left: -80px;
    top: -136.5px;
  }

  .divider--mountain path {
    stroke: var(--color-dark);
    stroke-width: 2.5;
  }
  .divider--mountain + .divider::before {
    margin-left: 238px;
  }
  .divider--mountain + .divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* ::before | text | ::after */
    align-items: center;
    position: absolute;
    left: 0; /* místo left: 50% */
    transform: none; /* transform už nepotřebujeme */
    top: 0;
    width: 100%;
  }

  .why-us__item,
  .why-us__item:nth-child(2) {
    transform: translateX(-200px);
  }
  .divider--side::before {
    flex: 0.05;
  }
  .service-card {
    width: 360px;
  }
  
  .news-site {
    display: flex;
  }

  .article-card {
    width: 40%;
    padding: 16px;
  }
  .news-site .card-img {
    object-fit: cover;
    border-radius: 8px;
  }
  .news {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  }

  .article-card iframe{
    width: 100%;
    aspect-ratio: 16/9;
  }

  .club__info {
    flex-direction: row;
    align-items: center;
  }

  .club__history {


    display: flex;
    justify-content: center;
  }
  .history__container {
    flex-direction: row;
    padding: 40px 96px;
    gap: 28px;
    max-width: 1208px;
    justify-content: center;
  }
  .history__images {
    flex: 3;
  }
  .history__content {
    flex: 4;
  }
  .history__content > header,
  .upcoming-events header {
    justify-content: start;
  }

  .offers__container{
    display: flex;
    flex-direction: row;
    gap: 64px;
  }

    .contact-info{
    align-self: stretch;
    justify-content: space-between;
      flex-direction: row;
  flex-wrap: wrap;
  }
}



.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* HEADER */
.article__header {
  margin-bottom: 2rem;
}

.article__thumbnail {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.article__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article__title {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--color-dark);
  margin: 0;
}

.article__info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  color: var(--color-dark);
  opacity: 0.6;
  font-size: 0.9rem;
}

.article__info::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--color-secondary);
}

.article__author {
  font-weight: 600;
}

.article__date::before {
  content: "·";
  margin-right: 0.25rem;
}

/* BODY */
.article__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-dark);
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-dark);
}

.article__body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.article__body img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}

.article__body ul,
.article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article__body li {
  margin-bottom: 0.4rem;
}

.article__body a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.article__body blockquote {
  border-left: 3px solid var(--color-secondary);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  opacity: 0.75;
  font-style: italic;
}

/* VIDEO */
.article__video {
  margin: 2rem 0;
}

.article__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}

/* LINKS */
.article__links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-dark);
}

.article__links h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.article__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.article__link-item a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  width: auto;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
  border-radius: 6px;
  padding: 0.75rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.article__link-item a:hover {
  background: var(--color-dark);
  color: #fff;
}

.article__link-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.article__link-item span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ================================
   TABLET — 600px+
   ================================ */
@media (min-width: 600px) {
  .article {
    padding: 1.75rem 1.5rem 3.5rem;
  }

  .article__thumbnail {
    max-height: 360px;
  }

  .article__title {
    font-size: 1.75rem;
  }

  .article__info {
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .article__date::before {
    margin-right: 1rem;
  }

  .article__body {
    font-size: 1.05rem;
  }

  .article__body h2 {
    font-size: 1.4rem;
  }

  .article__body h3 {
    font-size: 1.15rem;
  }

  .article__links-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   DESKTOP — 900px+
   ================================ */
@media (min-width: 900px) {
  .article {
    padding: 2rem 1.5rem 4rem;
  }

  .article__thumbnail {
    max-height: 480px;
  }

  .article__title {
    font-size: 2rem;
  }

  .article__links-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.article__link-item {
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.article__link-item a:hover {
  background: var(--color-dark);
  color: #fff;
}

.article__link-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.article__link-item span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ================================
   TABLET — 600px+
   ================================ */
@media (min-width: 600px) {
  .article {
    padding: 1.75rem 1.5rem 3.5rem;
  }

  .article__thumbnail {
    max-height: 360px;
  }

  .article__title {
    font-size: 1.75rem;
  }

  .article__info {
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .article__date::before {
    margin-right: 1rem;
  }

  .article__body {
    font-size: 1.05rem;
  }

  .article__body h2 {
    font-size: 1.4rem;
  }

  .article__body h3 {
    font-size: 1.15rem;
  }

  .article__links-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================
   DESKTOP — 900px+
   ================================ */
@media (min-width: 900px) {
  .article {
    padding: 2rem 1.5rem 4rem;
  }

  .article__thumbnail {
    max-height: 480px;
  }

  .article__title {
    font-size: 2rem;
  }

  .article__links-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
