:root {
    --card-home-sec-bg: #ffffff;
    --muted: #6b7280;
    --accent: #fc1aac;
    /* orange for author */
    --link: #04caed;
    /* blue read more */
    --radius: 12px;
    --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
    --max-width: 360px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

/* body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #f3f4f6;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh
} */

.card-home-sec {
    background: var(--card-home-sec-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    margin: auto;
    max-width: var(--max-width);
}
.card-home-sec:hover{
    box-shadow: 0px 0px 10px rgba(78, 78, 78, 0.24);
}

.card-home-sec .media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block
}
.card-home-sec .content {
    padding: 18px 16px
}

.card-home-sec .content .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px
}

.card-home-sec .content .meta .author {
    color: var(--accent);
    font-weight: 600;
    width: 67%;
    font-size: 13px
}

.card-home-sec .content .meta .date {
    color: var(--muted);
    font-size: 12px
}

.card-home-sec .content .title {
    font-size: 18px;
    line-height: 1.18;
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #0f172a
}

/* clamp the title to 2 lines */
.card-home-sec .content .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-home-sec .content .excerpt {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px 0;
    height: 42px;
    overflow: hidden
}

.card-home-sec .content .read {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px
}

.card-home-sec .content .read svg {
    width: 14px;
    height: 14px;
    transform: translateX(0);
    transition: transform .18s ease
}

.card-home-sec .content .read:hover svg {
    transform: translateX(4px)
}

/* small responsive adjustments */
@media (min-width:480px) {
    .card-home-sec .media {
        height: 220px
    }
    :root {
        --max-width: 420px
    }
}