/*
 * News spotlight section (novinky / šperkovnica).
 * Full-width background image with text content.
 */

.news-spotlight {
  width: 100%;
  margin-block: 20px;
  background-image: var(--news-spotlight-bg-desktop, none);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 7;
  display: flex;
}

.news-spotlight .news-spotlight__container {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--egne-page-edge, 2.5vw);
  padding-right: var(--egne-page-edge, 2.5vw);
}

/* Default variant: content anchored to the bottom. */
.news-spotlight--default .news-spotlight__container {
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 45px;
}

/* Center variant: vertically centered, horizontally aligned left. */
.news-spotlight--center .news-spotlight__container {
  align-items: center;
  justify-content: flex-start;
}

.news-spotlight__content {
  padding: 32px 0;
  max-width: min(32rem, 100%);
  color: #000;
}

.news-spotlight__title {
  font-family: 'ivyora-display', sans-serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 120%;
  text-transform: uppercase;
  margin: 0 0 32px 0;
}

.news-spotlight__text {
  font-family: 'neue-haas-unica', sans-serif;
  font-weight: 350;
  font-size: 16px;
  line-height: 150%;
  margin: 0 0 40px 0;
}

@media (max-width: 991.98px) {
  .news-spotlight__content {
    max-width: min(32rem, 50%);
  }
}


/* =========================================================
   ŠPERKOVNICA – desktop/tablet split layout
   Text vľavo, obraz iba na pravej strane
========================================================= */

@media (min-width: 768px) {
  #sperkovnica.news-spotlight {
    background-image: none;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
  }

  #sperkovnica.news-spotlight::after {
    content: "";
    position: absolute;

    top: clamp(2rem, 4vw, 4.5rem);
    right: 0;
    bottom: clamp(2rem, 4vw, 4.5rem);

    width: 50%;

    background-image: var(--news-spotlight-bg-desktop, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
  }

  #sperkovnica .news-spotlight__container {
    position: relative;
    z-index: 1;
  }

  #sperkovnica .news-spotlight__content {
    width: 50%;
    max-width: min(34rem, 50%);
    margin-left: 0;
    margin-right: auto;
  }
}


/* =========================================================
   Mobile layout
   Obrázok hore / text dole
========================================================= */

@media (max-width: 767.98px) {
  .news-spotlight {
    display: grid;
    grid-template-rows: auto auto;

    height: auto;
    min-height: 0;

    padding: 0;
    margin: 0;

    background: none;
    background-image: none;

    overflow: hidden;
    position: relative;
    aspect-ratio: auto;
  }

  .news-spotlight::before {
    content: "";
    grid-row: 1;
    grid-column: 1;

    display: block;
    width: 100%;
    height: clamp(260px, 72vw, 340px);

    background-image: var(--news-spotlight-bg-mobile, var(--news-spotlight-bg-desktop, none));
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
  }

  .news-spotlight .news-spotlight__container {
    grid-row: 2;
    grid-column: 1;

    width: 100%;
    height: auto;
    min-height: 0;

    margin: 0;

    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 0;

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

    box-sizing: border-box;
  }

  .news-spotlight--default .news-spotlight__container,
  .news-spotlight--center .news-spotlight__container {
    align-items: flex-start;
    padding-bottom: 0;
  }

  .news-spotlight__content {
    position: static;

    width: 100%;
    max-width: none;
    min-width: 0;

    margin: 0;

    padding-top: 18px;
    padding-bottom: clamp(32px, 8vw, 48px);
    padding-left: 0;
    padding-right: 0;

    box-sizing: border-box;
    background-color: #fff;
  }

  .news-spotlight__title {
    margin-bottom: 28px;
  }

  .news-spotlight__text {
    max-width: 100%;
    margin-bottom: 36px;
  }

  .news-spotlight__content .btn {
    max-width: max-content;
  }

  #sperkovnica.news-spotlight::after {
    display: none;
  }

  #sperkovnica.news-spotlight::before {
    height: clamp(250px, 68vw, 330px);
    background-position: center;
    background-size: cover;
    margin: 45px 0 25px 0;
  }
}