/* AOC Home News — v1.1.0 */
.aoc-home-news {
    width: 100%;
}

.aoc-home-news *,
.aoc-home-news *::before,
.aoc-home-news *::after {
    box-sizing: border-box;
}

.aoc-home-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.aoc-home-news__card {
    margin: 0;
    background: #fff;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.aoc-home-news__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0,0,0,.10);
    border-color: rgba(165,28,48,.14);
}

.aoc-home-news__card--featured {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
}

.aoc-home-news__card--secondary {
    display: grid;
    grid-template-columns: 42% minmax(0, 58%);
    min-height: 215px;
}

.aoc-home-news__media-link {
    display: block;
    min-width: 0;
    text-decoration: none !important;
}

.aoc-home-news__image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f1efea, #e8e4de);
}

.aoc-home-news__card--featured .aoc-home-news__media-link {
    height: 320px;
}

.aoc-home-news__card--secondary .aoc-home-news__media-link {
    min-height: 215px;
}

.aoc-home-news__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .35s ease;
}

.aoc-home-news__card:hover .aoc-home-news__image img {
    transform: scale(1.03);
}

.aoc-home-news__image--placeholder {
    background:
        linear-gradient(135deg, rgba(165,28,48,.08), rgba(0,0,0,.04)),
        #efede8;
}

.aoc-home-news__body {
    min-width: 0;
}

.aoc-home-news__card--featured .aoc-home-news__body {
    position: relative;
    padding: 28px 30px 32px;
}

.aoc-home-news__card--featured .aoc-home-news__body::before {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #a51c30;
    opacity: .85;
}

.aoc-home-news__card--secondary .aoc-home-news__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aoc-home-news__card--secondary .aoc-home-news__body::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(165,28,48,.55);
}

.aoc-home-news__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 11px;
    font-size: 12px;
    line-height: 1.3;
    color: #777;
}

.aoc-home-news__category {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a51c30;
}

.aoc-home-news__title {
    margin: 0 !important;
    text-transform: none !important;
    color: #181818 !important;
    word-break: break-word;
}

.aoc-home-news__card--featured .aoc-home-news__title {
    font-size: 29px !important;
    line-height: 1.18 !important;
    letter-spacing: -.5px;
}

.aoc-home-news__card--secondary .aoc-home-news__title {
    font-size: 20px !important;
    line-height: 1.28 !important;
    letter-spacing: -.2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.aoc-home-news__title a {
    color: #181818 !important;
    text-decoration: none !important;
}

.aoc-home-news__title a:hover {
    color: #a51c30 !important;
}

.aoc-home-news__excerpt {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: #666;
}

.aoc-home-news__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 20px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(165,28,48,.35);
    font-size: 13px;
    font-weight: 700;
    color: #a51c30 !important;
    text-decoration: none !important;
}

.aoc-home-news__read span {
    transition: transform .2s ease;
}

.aoc-home-news__read:hover span {
    transform: translateX(3px);
}

.aoc-home-news__card--secondary .aoc-home-news__read {
    margin-top: 14px;
}

@media (max-width: 1000px) {
    .aoc-home-news__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .aoc-home-news__card--featured {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .aoc-home-news__card--featured .aoc-home-news__media-link {
        height: 340px;
    }

    .aoc-home-news__card--secondary {
        display: block;
        min-height: 0;
    }

    .aoc-home-news__card--secondary .aoc-home-news__media-link {
        height: 220px;
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .aoc-home-news__grid {
        display: block;
    }

    .aoc-home-news__card {
        margin-bottom: 22px;
        border-radius: 16px;
    }

    .aoc-home-news__card--featured .aoc-home-news__media-link,
    .aoc-home-news__card--secondary .aoc-home-news__media-link {
        height: 240px;
        min-height: 0;
    }

    .aoc-home-news__card--featured .aoc-home-news__body,
    .aoc-home-news__card--secondary .aoc-home-news__body {
        padding: 24px;
    }

    .aoc-home-news__card--featured .aoc-home-news__title {
        font-size: 25px !important;
    }

    .aoc-home-news__card--secondary .aoc-home-news__title {
        font-size: 20px !important;
    }
}

.aoc-home-news__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, .95fr);
}

.aoc-home-news__card--secondary .aoc-home-news__image img {
    object-position: center center;
}
