/* :root {

}

* {
    box-sizing: border-box;
}*/

main {
    /* --bg: #0f1d3a;
    --bg-light: #13224a; */
    --card: #ffffff;
    --text: #0b1020;
    --accent: #2b66ff;
    --shadow: 0 10px 25px rgba(0, 0, 0, .2);
    --radius: 18px;

    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
    min-height: 100vh;
    display: grid;
    place-items: start center;
} 

.heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;

    width: 100%;
    height: 100px;
    background: #edf5ff;
    color: #002466;
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 50px ;
}

@media (max-width: 840px) {
    .grid {
        grid-template-columns: 1fr;
    }
}


/* Card */
.story-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    isolation: isolate;
    /* so the overlay stays inside */
    transition: transform .25s ease, box-shadow .25s ease;
    min-height: 260px;
    display: grid;
    grid-template-rows: 1fr auto;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.media {
    position: relative;
    min-height: 200px;
    background: #f3f6ff;
}

/* Background image that fills the card */
.media>img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* default for photo card */
    filter: saturate(1.02);
}

/* Gradient to improve readability like on your 3rd screenshot */
.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Title pill on top of the image */
.title-pill {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(2px);
    font-weight: 700;
    font-size: clamp(16px, 2.2vw, 22px);
    color: #1a2547;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* Footer */
.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 16px;
    background: #ffffff;
}

.meta .desc {
    color: #444;
    font-size: 14px;
}

.btn {
    --h: 46px;
    height: var(--h);
    display: inline-grid;
    place-items: center;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(43, 102, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(43, 102, 255, .45);
}

/* ——— Special rules for the Wartburg logo card ——— */
.logo-card .media {
    background: #0b2e80;
    min-width: 400px;
}

.logo-card .media>img.bg {
    object-fit: contain;
    /* гарантируем, что логотип полностью виден */
    padding: 34px;
    /* немного воздуха вокруг логотипа */
    background: #0b2e80;
    /* фон из фирменного синего */
}

.logo-card .media::after {
    background: none;
}

/* убираем затемнение для логотипа */

/* Optional small subtitle under the pill */
.subtitle {
    position: absolute;
    left: 18px;
    bottom: 56px;
    z-index: 2;
    color: #eef3ff;
    font-size: 12px;
    opacity: .9;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

a.card-link {
    text-decoration: none;
    color: inherit;
}