/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --sz-font-body: "Inter", sans-serif;
    --sz-font-heading: "Manrope", sans-serif;
}

/* Fluid Typography: 16px → 20px */
html {
    font-size: clamp(16px, calc(14.86px + 0.357vw), 20px);
}

/* Bootstrap Overrides */
body {
    --bs-body-font-family: var(--sz-font-body);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.55;
    --bs-body-color: #24272b;
}

.bbblog {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .h1,
    .h2,
    .h3,
    .h4,
    .h5,
    .h6,
    .display-1,
    .display-2,
    .display-3,
    .display-4,
    .display-5,
    .display-6 {
        font-family: var(--sz-font-heading);
    }
}

/* Overview grid */
.szBlogOverviewGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: clamp(13rem, 18vw, 15rem);
    }

    @media (min-width: 1400px) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.szBlogTeaserItem,
.szBlogTeaserContent {
    min-width: 0;
}

.szBlogTeaserItem {
    @media (max-width: 767.98px) {
        &:not(.szBlogTeaserFeatured) {
            .szTeaser {
                height: 13rem !important;
            }

            .szBlogTeaserImage {
                flex: 0 0 42%;
            }

            .szBlogTeaserIntro {
                -webkit-line-clamp: 5;
            }
        }
    }

    @media (min-width: 768px) {
        &:not(.szBlogTeaserFeatured) {
            .szBlogTeaserContent {
                flex: 0 0 7rem;
                overflow: hidden;
            }
        }
    }
}

.szBlogTeaserFeatured {
    @media (max-width: 767.98px) {
        .szBlogTeaserImage {
            flex: none;
            aspect-ratio: 16 / 9;
        }
    }

    @media (min-width: 768px) {
        grid-row: span 2;
    }

    @media (min-width: 1400px) {
        grid-column: span 2;
    }
}

.szBlogTeaserImage {
    position: relative;
    min-width: 0;
    min-height: 0;

    img {
        position: absolute;
        inset: 0;
    }

    @media (min-width: 768px) {
        flex: 1 1 auto;
    }
}

.szBlogTeaserTitle,
.szBlogTeaserIntro {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.szBlogTeaserTitle {
    -webkit-line-clamp: 2;
}

.szBlogTeaserIntro {
    -webkit-line-clamp: 3;
}

.szContentBlog {
    .szTeaser {
        transition: transform 180ms ease;

        &:hover,
        &:focus-visible {
            transform: translateY(-0.2rem);
        }

        img {
            transition: transform 300ms ease;
        }

        &:hover img {
            transform: scale(1.025);
        }
    }
}

/* Article */
.szBlogHeader {
    height: 20rem;
    max-width: 1100px;
    background-position: 62% 38%;
    background-repeat: no-repeat;
    background-size: cover;
}

.szBlogDetail {
    padding-block: 3rem 5rem;

    @media (min-width: 768px) {
        position: relative;
        z-index: 1;
        margin-top: -3rem;
        padding-top: 0;
    }
}

.szBlogArticle {
    max-width: 36rem;

    @media (min-width: 768px) {
        max-width: 40rem;
        padding: 2rem;
    }

    p,
    ul,
    ol {
        margin-bottom: 1.5rem;
    }

    img {
        max-width: 100%;
        height: auto !important;
        padding-block: 1rem;
    }
}

/* Article typography */
.szBlogContent {
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin-block: 2rem 0.75rem;
    }
}

