/* =========================================================
   HERO HIGHLIGHT CARD
   LEFT = WRITER PROFILE
   RIGHT = BLOG INFORMATION + FEATURED IMAGE
   ========================================================= */


/* =========================================================
   MAIN CARD
   ========================================================= */

.an-highlight-card {

    display: grid;

    grid-template-columns: 105px 1fr;

    min-height: 250px;

    overflow: hidden;

    border: 1px solid #e5e5e5;

    border-radius: 14px;

    background: #fff;

    position: relative;

}


/* =========================================================
   LEFT WRITER PROFILE
   ========================================================= */

.an-highlight-profile {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f7f9f8;

    position: relative;

    z-index: 5;

}


/* =========================================================
   WRITER PROFILE LINK
   ========================================================= */

.an-highlight-profile-link {

    width: 72px;

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    overflow: hidden;

    background: #fff;

    border: 4px solid #fff;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.15);

}


/* =========================================================
   WRITER IMAGE
   ========================================================= */

.an-highlight-profile-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================================
   DEFAULT WRITER AVATAR
   ========================================================= */

.an-highlight-default-avatar {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e9eeee;

    color: #697575;

    font-size: 27px;
}


/* =========================================================
   RIGHT CONTENT AREA
   FEATURED IMAGE BACKGROUND
   ========================================================= */

.an-highlight-content {

    position: relative;

    min-width: 0;

    min-height: 250px;

    display: flex;

    align-items: flex-end;

    padding: 22px;

    background-color: #263238;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    overflow: hidden;
}


/* =========================================================
   IMAGE DARK OVERLAY
   ========================================================= */

.an-highlight-content-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.72)
        );

}


/* =========================================================
   CONTENT INNER
   ========================================================= */

.an-highlight-content-inner {

    position: relative;

    z-index: 3;

    width: 100%;

    color: #fff;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.an-highlight-category {

    display: inline-block;

    padding: 5px 10px;

    margin-bottom: 9px;

    border-radius: 5px;

    background: rgba(230, 36, 86, 0.95);

    color: #fff;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.2;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   TITLE
   ========================================================= */

.an-highlight-title {

    margin: 0;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.35;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;
}


.an-highlight-title a {

    color: #fff;

    text-decoration: none;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65);

}


/* =========================================================
   WRITER
   ========================================================= */

.an-highlight-writer {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 9px;

    color: #fff;

    font-size: 12px;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.7);
}


/* =========================================================
   DATE
   ========================================================= */

.an-highlight-date {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 11px;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.7);
}


/* =========================================================
   HOVER IMAGE EFFECT
   ========================================================= */

.an-highlight-content {

    transition:
        background-size 0.5s ease;
}


.an-highlight-card:hover
.an-highlight-content-overlay {

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.14),
            rgba(0, 0, 0, 0.78)
        );

}


/* =========================================================
   PROFILE HOVER
   ========================================================= */

.an-highlight-profile-link {

    transition:
        transform 0.25s ease;
}


.an-highlight-profile-link:hover {

    transform: scale(1.05);

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .an-highlight-card {

        grid-template-columns: 90px 1fr;

        min-height: 235px;

    }


    .an-highlight-content {

        min-height: 235px;

        padding: 18px;

    }


    .an-highlight-profile-link {

        width: 64px;

        height: 64px;

    }


    .an-highlight-title {

        font-size: 18px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .an-highlight-card {

        grid-template-columns: 78px 1fr;

        min-height: 220px;

        border-radius: 12px;

    }


    .an-highlight-profile-link {

        width: 56px;

        height: 56px;

        border-width: 3px;

    }


    .an-highlight-content {

        min-height: 220px;

        padding: 15px;

    }


    .an-highlight-category {

        padding: 4px 8px;

        margin-bottom: 7px;

        font-size: 10px;

    }


    .an-highlight-title {

        font-size: 16px;

        line-height: 1.4;

        -webkit-line-clamp: 2;

    }


    .an-highlight-writer {

        margin-top: 7px;

        font-size: 11px;

    }


    .an-highlight-date {

        margin-top: 4px;

        font-size: 10px;

    }

}