/* =========================================================
   SMARTER.YACHTS – HOMEPAGE NEWS
   ========================================================= */

.sy-home-news {
    position: relative;
    overflow: hidden;
}

.sy-home-news .container {
    position: relative;
}

.sy-home-news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.sy-home-news__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--color-brand-light, #83aef0);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sy-home-news__header h2 {
    max-width: 850px;
    margin: 0;
}

.sy-home-news__all {
    flex: 0 0 auto;
    padding-bottom: 7px;
    color: var(--color-brand-primary, #1e5aa8);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, color .18s ease;
}

.sy-home-news__all:hover {
    color: var(--color-brand-hover, #174b8f);
    transform: translateX(3px);
}

.sy-home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sy-home-news__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 310px;
    padding: 28px;
    border: 1px solid var(--card-border, #d3e0e5);
    border-radius: 24px;
    background: var(--color-surface-white, #fff);
    box-shadow: 0 12px 34px rgba(19, 50, 66, .07);
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.sy-home-news__card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 90, 168, .28);
    box-shadow: 0 18px 42px rgba(19, 50, 66, .11);
}

.sy-home-news__date {
    margin-bottom: 20px;
    color: var(--color-brand-light, #83aef0);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.sy-home-news__title {
    margin: 0 0 16px;
    color: var(--color-text-on-light, #17304f);
    font-size: clamp(21px, 1.65vw, 28px);
    line-height: 1.18;
}

.sy-home-news__excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-text-on-light-soft, #74889d);
    font-size: 15px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.sy-home-news__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 26px;
    color: var(--color-brand-primary, #1e5aa8);
    font-size: 13px;
    font-weight: 700;
}

.sy-home-news__card:hover .sy-home-news__link {
    color: var(--color-brand-hover, #174b8f);
}

.sy-home-news__status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-text-on-light-soft, #74889d);
}

.sy-home-news__status--error {
    color: var(--color-error-text, #8c2424);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .sy-home-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sy-home-news__card:last-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sy-home-news__header {
        display: block;
        margin-bottom: 26px;
    }

    .sy-home-news__all {
        display: inline-block;
        margin-top: 18px;
        padding-bottom: 0;
    }

    .sy-home-news__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sy-home-news__card,
    .sy-home-news__card:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 22px;
        border-radius: 19px;
    }

    .sy-home-news__date {
        margin-bottom: 14px;
    }

    .sy-home-news__title {
        margin-bottom: 12px;
    }

    .sy-home-news__link {
        padding-top: 20px;
    }
}
