@import "../_variables.css";

.single-featured-post {
    padding: 48px 0;
    background: #F9FAFB;
}

.single-featured-post .wrap-latest-new-1st {
    position: relative;
    width: 100%;
    aspect-ratio: 1180 / 541;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.single-featured-post .wrap-news-content {
    position: absolute;
    top: 28px;
    right: 28px;
    bottom: 28px;
    width: calc(50% - 28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 16px;
    border: 4px solid transparent;
    background: linear-gradient(#250d46, #22084529) padding-box, linear-gradient(119deg, #250d46f2 4.09%, rgb(255 255 255 / 0%) 109.19%) border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(40px);
}

.single-featured-post .content-top {
    display:flex;
    flex-direction:column;
}

.single-featured-post .content-bottom {
    margin-top:auto;
}

.single-featured-post .latest-new-1st-category {
    margin-bottom: 9px;
}

.single-featured-post .latest-new-1st-category span {
    padding: 4px 8px;
    border-radius: 6px;
    background: #FFFFFF1A;
    border: 1px solid #FFFFFF66;

    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    color: white;
}

.single-featured-post .latest-news-1st-title {
    position: relative;
    margin: 15px 0;

    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0;
    color: white;
}

.single-featured-post .latest-news-1st-title a {
    color: inherit;
    text-decoration: none;
}

.single-featured-post .latest-news-1st-title a:hover {
    color: inherit;
}

.single-featured-post .latest-news-1st-title > div {
    width: 100%;
}

.single-featured-post .latest-news-1st-title img {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

.single-featured-post .latest-news-1st-description {
    margin-bottom: 0;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 2rem;
    letter-spacing: 0;
    color: #FFFFFFB2;
}

.single-featured-post .latest-news-1st-description > p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-featured-post .latest-news-1st-information {
    width: 100%;
}

.single-featured-post .latest-news-1st-information .container {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: sans-serif;
}

.single-featured-post .latest-news-1st-information .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.single-featured-post .latest-news-1st-information .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

.single-featured-post .latest-news-1st-information .name {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: white;
}

.single-featured-post .latest-news-1st-information .date {
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: #FFFFFFB2;
    margin-top: 2px;
}

.single-featured-post .read-more-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #F3F4F6;
    border-radius: 999px;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #1F2937;
    width: fit-content;
}

.single-featured-post .read-more-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #250D46;
    color: white;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .single-featured-post .wrap-latest-new-1st {
        aspect-ratio: 16 / 9;
    }

    .single-featured-post .wrap-news-content {
        top: 20px;
        right: 20px;
        bottom: 20px;
        width: calc(55% - 20px);
        padding: 24px;
    }

    .single-featured-post .latest-news-1st-title {
        font-size: 1.75rem;
        line-height: 2.2rem;
    }

    .single-featured-post .latest-news-1st-description {
        font-size: 1rem;
        line-height: 1.6rem;
    }
}

@media (max-width: 768px) {
    .single-featured-post .wrap-latest-new-1st {
        aspect-ratio: 4 / 3;
    }

    .single-featured-post .wrap-news-content {
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 20px;
    }

    .single-featured-post .latest-news-1st-title {
        font-size: 1.375rem;
        line-height: 1.8rem;
    }

    .single-featured-post .latest-news-1st-description {
        font-size: 0.95rem;
        line-height: 1.45rem;
    }

    .single-featured-post .latest-news-1st-description > p {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .single-featured-post {
        padding: 28px 0 6px;
    }

    .single-featured-post .wrap-news-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
        border-width: 2px;
    }

    .single-featured-post .latest-new-1st-category span {
        font-size: 0.75rem;
        line-height: 1rem;
        padding: 3px 6px;
    }

    .single-featured-post .latest-news-1st-title {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }

    .single-featured-post .latest-news-1st-description {
        display: none;
    }

    .single-featured-post .latest-news-1st-information .container {
        gap: 10px;
    }

    .single-featured-post .latest-news-1st-information .avatar {
        width: 34px;
        height: 34px;
    }

    .single-featured-post .latest-news-1st-information .name,
    .single-featured-post .latest-news-1st-information .date,
    .single-featured-post .latest-news-1st-information .last-view-at,
    .single-featured-post .latest-news-1st-information .views {
        font-size: 0.875rem;
        line-height: 1.2rem;
    }
}