/* ==========================================================================
   LangGo Careers — Khối bài viết "Nổi bật tuần này" + "Tất cả bản tin"
   Tách khỏi homepage.css vì trang chi tiết tin tuyển dụng dùng lại nguyên khối.
   Dùng lại biến :root và thang chữ (--fs-*) khai trong shell.css.
   ========================================================================== */

/* Hai section dùng chung class .home-section của trang chủ; khai lại ở đây để
   trang chi tiết tin tuyển dụng không phải nạp cả homepage.css. */
.home-section {
    font-family: var(--font-shell);
    color: rgba(0, 0, 0, 1);
}

/* --------------------------------------------------------------------------
   POSTS — "Nổi bật tuần này" + "Tất cả bản tin"
   Port từ các khối cnnn-* của trang cẩm nang nghề nghiệp (careers.langmaster),
   bỏ hàng pill lọc danh mục.
   -------------------------------------------------------------------------- */
.cnnn-inner {
    width: 100%;
    max-width: 1293px;
    margin-inline: auto;
    padding-inline: 20px;
}

/* Thẻ tiêu đề section — tab bo góc dưới, treo dưới kẻ ngang */
.cnnn-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 215px;
    height: 40px;
    border-radius: 0 0 18px 18px;
    font-family: var(--font-shell);
    font-weight: 700;
    font-size: 19px;
    line-height: 105%;
    letter-spacing: .2px;
}

.cnnn-tag--red {
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
}

.cnnn-tag--gold {
    background: linear-gradient(180deg, #FDDA35 36.06%, #FE9C2B 100%);
    color: rgba(8, 8, 8, 1);
}

.cnl-tag__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.cnnn-feat-head {
    border-top: 1px solid rgba(203, 203, 203, 1);
}

/* ---------- Nổi bật tuần này ---------- */
.cnnn-featured { padding: 40px 0 8px; }

.cnnn-featured__grid {
    display: grid;
    grid-template-columns: minmax(0, 694fr) minmax(0, 524fr);
    gap: 30px;
    margin-top: 26px;
    align-items: start;
}

.cnnn-feat-big {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 3px 4px 30px 0 rgba(58, 22, 22, .1);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.cnnn-feat-big:hover { transform: translateY(-2px); }

.cnnn-feat-big__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

.cnnn-feat-big__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cnnn-feat-big__media .cnnn-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
}

.cnnn-feat-big__body { display: block; padding: 15px 22px 24px; }

.cnnn-feat-big__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: rgba(0, 0, 0, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnnn-feat-big__desc {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
    text-align: justify;
    color: rgba(80, 80, 80, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnnn-feat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cnnn-feat-sm {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 3px 4px 30px 0 rgba(58, 22, 22, .1);
    text-decoration: none;
    color: inherit;
    transition: transform .2s var(--ease);
}

.cnnn-feat-sm:hover { transform: translateY(-2px); }

.cnnn-feat-sm__media {
    flex-shrink: 0;
    width: 122px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.cnnn-feat-sm__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cnnn-feat-sm__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.cnnn-feat-sm__title {
    margin: 7px 0 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: rgba(0, 0, 0, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnnn-feat-sm__desc {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: rgba(80, 80, 80, 1);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge danh mục — nền gradient đỏ, viền gradient vàng */
.cnnn-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 11px;
    border-radius: 54px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%) padding-box,
        linear-gradient(180deg, #FDDA35 36.06%, #FE9C2B 100%) border-box;
    color: rgba(255, 255, 255, 1);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}

/* ---------- Tất cả bản tin ---------- */
.cnnn-all { padding: 36px 0 72px; }

.cnnn-all__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    border-top: 1px solid rgba(203, 203, 203, 1);
}

.cnnn-all__head .cnnn-sort { align-self: center; }

.cnnn-sort {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 38px 9px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    font-family: var(--font-shell);
    font-size: 14px;
    color: rgba(0, 0, 0, 1);
    cursor: pointer;
}

.cnnn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.cnnn-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.cnnn-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.cnnn-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.cnnn-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cnnn-card__media .cnnn-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.cnnn-card__body { padding: 16px 18px 20px; }

.cnnn-card__title {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: rgba(0, 0, 0, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnnn-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #8a8a8a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cnnn-empty {
    padding: 40px 0;
    text-align: center;
    color: #888;
}

.cnnn-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cnnn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 290px;
    height: 56px;
    border: none;
    border-radius: 28px;
    background: linear-gradient(180deg, #DB1F1F 0%, #9D0B0F 100%);
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-shell);
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 4px 24px 0 rgba(58, 22, 22, .1);
    transition: filter .2s var(--ease);
}

.cnnn-more:hover { color: rgba(255, 255, 255, 1); filter: brightness(1.08); }

@media (max-width: 991px) {
    .cnnn-featured__grid { grid-template-columns: 1fr; }
    .cnnn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cnnn-feat-big__title { font-size: 19px; }
    .cnnn-feat-big__desc { font-size: 14px; }
    .cnnn-tag { width: auto; padding-inline: 16px; font-size: 17px; }
}

@media (max-width: 600px) {
    .cnnn-grid { grid-template-columns: 1fr; }
    .cnnn-feat-sm__media { width: 110px; }
    .cnnn-more { width: 100%; max-width: 290px; height: 50px; font-size: 16px; }
}
