/* Updates & news */

.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0 30px;
    align-items: start;
}

.update {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 26px 28px 30px;
    overflow: hidden;
    border: 1px solid #284657;
    border-radius: 6px;
    background: linear-gradient(135deg, #102531 0%, #0b1a24 100%);
    box-shadow: 0 8px 24px #0002;
}

.update::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 2px;
    background: #58c7f7;
}

.update .eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 8px;
    border: 1px solid #31576c;
    border-radius: 3px;
    background: #102b39;
    color: #74c9ee;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.update h2 {
    margin: 0 0 18px;
    color: #f0f6fa;
    font-size: 22px;
    line-height: 1.3;
}

.update-text {
    color: #aec1ce;
    font-size: 13px;
    line-height: 1.75;
}

.update-text p {
    margin: 0 0 16px;
}

.update-text p:last-child {
    margin-bottom: 0;
}

.update-text strong {
    color: #f1d27f;
    font-weight: 700;
}

.update-text em {
    color: #9ed7ef;
}

.update-text ul,
.update-text ol {
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.update-text li {
    position: relative;
    margin: 8px 0;
    padding-left: 20px;
    color: #c0d0db;
}

.update-text ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #57c4f0;
}

.update-text ol {
    counter-reset: update-counter;
}

.update-text ol li {
    counter-increment: update-counter;
    padding-left: 28px;
}

.update-text ol li::before {
    content: counter(update-counter) '.';
    position: absolute;
    left: 0;
    color: #67c8f2;
    font-weight: 700;
}

.update-text a {
    color: #67c8f2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.update-text a:hover {
    color: #a6e2fb;
    border-bottom-color: #a6e2fb;
}

.update-text blockquote {
    margin: 20px 0;
    padding: 12px 16px;
    border-left: 3px solid #c9a64e;
    background: #151d20;
    color: #d9cda9;
    font-size: 13px;
    font-style: italic;
    text-align: left;
}

.update-text code {
    padding: 2px 5px;
    border: 1px solid #263f4c;
    border-radius: 3px;
    background: #07151d;
    color: #8dd9fa;
    font-family: Consolas, monospace;
    font-size: 12px;
}

.update-text pre {
    margin: 16px 0;
    padding: 14px 16px;
    overflow-x: auto;
    border: 1px solid #263f4c;
    border-radius: 4px;
    background: #07151d;
    color: #b9d5e4;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.update-text hr {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid #29414e;
}

.update-text h3 {
    margin: 22px 0 10px;
    color: #dcebf4;
    font-size: 16px;
}

.update-text h4 {
    margin: 18px 0 8px;
    color: #bcd2df;
    font-size: 14px;
}

.update-single {
    max-width: 1000px;
    margin: 24px auto 40px;
}

.update-single h1 {
    margin: 0 0 22px;
    color: #f0f6fa;
    font-size: 30px;
    line-height: 1.25;
}

/* ===== UPDATES HERO ===== */

.updates-hero {
    position: relative;
    overflow: hidden;

    min-height: 220px;
    margin: 0 0 26px;
    padding: 30px 36px;

    display: flex;
    align-items: center;

    border: 1px solid #29485d;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #06111cf8 0%,
            #071522e8 36%,
            #0818278a 60%,
            #0818273d 100%
        ),
        url('updates-hero.png') center center / cover no-repeat;

    box-shadow:
        inset 0 1px 0 #78b4ff0a,
        0 18px 42px #00000024;
}

.updates-hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg, #5ab4ff08 0%, transparent 58%),
        linear-gradient(90deg, transparent 58%, #82cdff0b 100%);

    pointer-events: none;
}

.updates-hero__content {
    position: relative;
    z-index: 1;

    max-width: 560px;
}

.updates-hero .eyebrow {
    margin: 0 0 10px;

    color: #87d1ff;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.updates-hero h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(27px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.15;

    text-shadow: 0 2px 10px #0008;
}

.updates-hero__text {
    max-width: 520px;
    margin: 0;

    color: #b7cee6;

    font-size: 13px;
    line-height: 1.6;
}


@media (max-width: 900px) {
    .updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .updates-grid {
        gap: 14px;
        margin-top: 18px;
    }

    .update {
        padding: 21px 19px 24px;
    }

    .update h2 {
        font-size: 19px;
    }

    .update-text {
        font-size: 12px;
    }
}

/* ===== UPDATES HERO - RESPONSIVE ===== */

@media (max-width: 900px) {
    .updates-hero {
        min-height: 185px;
        padding: 25px 24px;

        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;

        background-position: 61% center;
    }

    .updates-hero h1 {
        font-size: 31px;
    }
}

@media (max-width: 600px) {
    .updates-hero {
        min-height: 155px;
        margin-bottom: 18px;
        padding: 20px 18px;

        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;

        background:
            linear-gradient(
                90deg,
                #06111cf8 0%,
                #071421ec 52%,
                #08182788 100%
            ),
            url('updates-hero.png') 68% center / cover no-repeat;
    }

    .updates-hero__content {
        max-width: 82%;
    }

    .updates-hero .eyebrow {
        margin-bottom: 8px;

        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .updates-hero h1 {
        margin-bottom: 8px;
        font-size: 28px;
    }

    .updates-hero__text {
        font-size: 12px;
        line-height: 1.45;
    }
}

