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

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

.news-spotlight .news-spotlight__container {
    display: flex;
    width: 100%;
}

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

/* Center variant: content vertically centered. */
.news-spotlight--center .news-spotlight__container {
    align-items: center;
}

.news-spotlight__content {
    padding: 32px 40px;
    max-width: 32%;
    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: 50%;
    }
}

/*
 * Mobile layout mirrors `template-parts/about` (.floating-section): the image
 * fills the section as background, and the text content sits in a white card
 * pinned to the bottom edge with a small inset margin. Both variants render
 * the same on mobile — variant alignment only matters on desktop.
 */
@media (max-width: 767.98px) {
    .news-spotlight {
        background-image: var(--news-spotlight-bg-mobile, var(--news-spotlight-bg-desktop, none));
        aspect-ratio: 3 / 4;
        position: relative;
        display: block;
    }

    .news-spotlight .news-spotlight__container {
        display: block;
        height: 100%;
        padding-bottom: 0;
    }

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

    .news-spotlight__content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        margin: 1rem 1.125rem;
        padding: 32px 40px;
        max-width: none;
        width: auto;
    }
}
