/* ===========================
   News Card Component
   =========================== */

/* Shared category tag styles */
.news-category {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 12px;
}

.news-category__tag {
    display: inline-block;
    border-radius: 100px;
    background: #15BDAC;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    font-family: "Roboto", sans-serif;
    padding: 5px 18px;
}

/* News Card - Base Mobile Styles */
.news-card {
    position: relative;
    display: block;
    font-weight: normal;
    color: #6D6E76;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #FFF;
    box-shadow: 0 3.196px 6.392px 0 rgba(0, 0, 0, 0.08);
}

.news-card__image {
    width: 100%;
    height: 133px;
}

.news-card__info {
    padding: 18px 15px 20px;
    display: flex;
    flex-direction: column;
}

.news-card__info .news-category {
    order: 1;
}

.news-card__meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 0;
    order: 1;
}

.news-card__category {
    color: #0A7D73;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.04em;
}

.news-card__separator {
    color: #6D6E76;
    font-size: 16px;
    font-weight: 400;
}

.news-card__meta .news-card__date {
    color: #0A7D73;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.04em;
}

.news-card__info h4 {
    margin: 0 0 13px 0;
    padding: 0;
    color: #232536;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.04em;
    order: 2;
}

.news-card__author-info {
    margin-top: 12px;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 22px;
    order: 3;
}

.news-card__author,
.news-card__reading-time {
    margin: 0;
    padding: 0;
    color: #0A7D73;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.04em;
    position: relative;
}

.news-card__author-info .news-card__date {
    margin: 0;
    padding: 0;
    color: #0A7D73;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.04em;
    position: relative;
}

.news-card__author + .news-card__date::before,
.news-card__author + .news-card__reading-time::before,
.news-card__date + .news-card__reading-time::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 2px;
    width: 1px;
    height: 13px;
    background: #0A7D73;
}

/* ===========================
   Tablet Styles (768px+)
   =========================== */
@media (min-width: 768px) {
    .news-card {
        border-radius: 24px;
        display: flex;
        flex-wrap: wrap;
        min-height: 122px;
        box-shadow: 0 9.678px 19.356px rgba(0, 0, 0, 0.08);
    }

    .news-card__image {
        width: 255px;
        height: auto;
        position: relative;
    }

    .news-card__image img {
        position: absolute;
    }

    .news-card__info {
        padding: 20px 24px 24px 40px;
        width: calc(100% - 255px);
        display: block;
    }

    .news-card__info .news-category {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
    }

    .news-card__info .news-category__tag {
        display: inline;
        margin-bottom: 0;
        border-radius: 0;
        background: transparent;
        color: #0A7D73;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.04em;
        font-family: inherit;
        padding: 0;
    }

    .news-card__meta {
        margin-bottom: 0;
        display: inline-block;
    }

    .news-card__category {
        color: #0A7D73;
        font-size: 17px;
    }

    .news-card__separator {
        color: #6D6E76;
        font-size: 17px;
    }

    .news-card__meta .news-card__date {
        color: #0A7D73;
        font-size: 17px;
    }

    .news-card__info h4 {
        margin: 10px 0 0 0;
        font-size: 20px;
        line-height: 1.3em;
        display: block;
        clear: both;
    }

    .news-card__author-info {
        margin: 0;
        display: inline-block;
        position: relative;
    }

    .news-card__author {
        display: none;
    }

    .news-card__author-info .news-card__date,
    .news-card__reading-time {
        font-size: 17px;
        display: inline;
    }

    .news-card__author + .news-card__date::before,
    .news-card__author + .news-card__reading-time::before {
        display: none;
    }

    .news-card__date + .news-card__reading-time::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: 13px;
        background: #0A7D73;
        margin: 0 10px;
        vertical-align: middle;
    }

    .news-card__info .news-category + .news-card__author-info::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: 13px;
        background: #0A7D73;
        margin: 0 10px;
        vertical-align: middle;
    }
}

/* ===========================
   Desktop Styles (1200px+)
   =========================== */
@media (min-width: 1200px) {
    .news-card {
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        width: 100%;
    }

    .news-card__image {
        width: 100%;
        height: 125px;
        flex-shrink: 0;
    }

    .news-card__image img {
        position: relative;
    }

    .news-card__info {
        padding: 20px 23px;
        width: 100%;
        flex-grow: 1;
        display: block;
    }

    .news-card__info .news-category {
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
    }

    .news-card__info .news-category__tag {
        display: inline;
        margin-bottom: 0;
        border-radius: 0;
        background: transparent;
        color: #0A7D73;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.04em;
        font-family: inherit;
        padding: 0;
    }

    .news-card__meta {
        margin-bottom: 0;
        display: inline-block;
    }

    .news-card__category {
        color: #0A7D73;
        font-size: 16px;
    }

    .news-card__separator {
        color: #6D6E76;
        font-size: 16px;
    }

    .news-card__meta .news-card__date {
        color: #0A7D73;
        font-size: 16px;
    }

    .news-card__info h4 {
        font-size: 20px;
        line-height: 1em;
        margin: 12px 0 0 0;
        display: block;
        clear: both;
    }

    .news-card__author-info {
        margin: 0;
        display: inline-block;
        position: relative;
    }

    .news-card__author {
        display: none;
    }

    .news-card__author-info .news-card__date,
    .news-card__reading-time {
        font-size: 16px;
        display: inline;
    }

    .news-card__author + .news-card__date::before,
    .news-card__author + .news-card__reading-time::before {
        display: none;
    }

    .news-card__date + .news-card__reading-time::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: 11px;
        background: #0A7D73;
        margin: 0 10px;
        vertical-align: middle;
    }

    .news-card__info .news-category + .news-card__author-info::before {
        content: "";
        display: inline-block;
        width: 1px;
        height: 11px;
        background: #0A7D73;
        margin: 0 10px;
        vertical-align: middle;
    }

    .news-card:hover {
        box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.15);
        color: #6D6E76;
    }
}

