/* ==========================================================
   Real English 2027 – Tin tức: tìm kiếm, trang danh sách & chi tiết
   ========================================================== */
.re-hd__searchbox { border-top: 1px solid var(--hp-line); background: #fff; padding: .9rem 0; box-shadow: 0 10px 20px rgba(15, 30, 69, .06); }
.re-hd__searchbox form { position: relative; display: flex; gap: .6rem; max-width: 720px; margin: 0 auto; }
.re-hd__searchbox form > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--hp-muted); }
.re-hd__searchbox input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--hp-line); border-radius: 6px; padding: .5rem 1rem .5rem 2.6rem; font-size: .95rem; }
.re-hd__searchbox input:focus { outline: 2px solid rgba(224, 27, 36, .25); border-color: var(--re-red); }

.nw-crumb { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; padding: 0; margin: 0 0 .6rem; font-size: .82rem; color: var(--hp-muted); }
.nw-crumb li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .65rem; margin: 0 .4rem; vertical-align: .05em; }
.nw-crumb a { color: var(--hp-muted); }
.nw-crumb a:hover { color: var(--re-red); }
.nw-crumb--red a { color: var(--re-red); }
.nw-crumb--red li[aria-current] { color: var(--hp-ink); }

.nw-badge { display: inline-block; background: var(--re-red); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; line-height: 1; padding: .32rem .5rem; border-radius: 3px; }
a.nw-badge:hover { background: var(--re-red-dark); color: #fff; }

.nw-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 0; margin: 0; color: var(--hp-muted); font-size: .76rem; }
.nw-meta i { margin-right: .25rem; }
.nw-meta--event { color: var(--hp-ink); font-weight: 600; margin-bottom: .3rem; }
.nw-meta--event i { color: var(--re-red); }
.nw-meta__past { color: var(--hp-muted); font-weight: 500; }

/* Khung thông tin sự kiện trong bài */
.nw-event { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; background: #fdf3f4; border: 1px solid #f6d9dc; border-radius: 6px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.nw-event__info { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 0; margin: 0 auto 0 0; color: var(--hp-ink); font-size: .88rem; font-weight: 600; }
.nw-event__info i { color: var(--re-red); margin-right: .3rem; }
.nw-event__past { color: var(--hp-muted); font-size: .85rem; font-weight: 600; }
.nw-event.is-past .hp-event__date { background: #9aa1b1; }

/* ---------- Hero ---------- */
.nw-hero { position: relative; overflow: hidden; background: #f4f6fa; min-height: 210px; display: flex; align-items: center; padding: 1.6rem 0; }
.nw-hero__img { position: absolute; right: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: center 40%; }
.nw-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 34%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 66%); }
.nw-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 30%; z-index: 1; background: linear-gradient(90deg, rgba(20, 50, 20, 0), rgba(20, 45, 25, .55)); }
.nw-hero .container { position: relative; z-index: 2; }
.nw-hero__title { font-family: var(--hp-serif); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; color: #171c26; margin: 0 0 .5rem; }
.nw-hero__title em { font-style: normal; color: var(--re-red); }
.nw-hero__sub { color: #171c26; font-size: 1rem; margin: 0; max-width: 720px; }
.nw-hero__hand { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%) rotate(-10deg); margin: 0; color: #fff; font-size: clamp(1.5rem, 2.5vw, 2.1rem); text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.nw-hero__hand::after { content: ""; display: block; height: 10px; margin-top: -.2rem; border-bottom: 3px solid var(--re-red); border-radius: 0 0 50% 50% / 0 0 100% 100%; }

/* ---------- 6 danh mục ---------- */
.nw-cats { padding: 1rem 0 .4rem; }
.nw-cats__grid { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; padding: 0; margin: 0; }
.nw-cat { display: flex; flex-direction: column; align-items: center; height: 100%; text-align: center; background: #fff; border: 1px solid var(--hp-line); border-radius: 6px; padding: 1rem .5rem .9rem; color: var(--hp-muted); font-size: .78rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nw-cat i { color: var(--re-red); font-size: 1.9rem; line-height: 1; margin-bottom: .55rem; }
.nw-cat strong { color: #171c26; font-size: .88rem; white-space: nowrap; margin-bottom: .25rem; }
.nw-cat:hover { border-color: var(--re-red); box-shadow: var(--hp-shadow); transform: translateY(-2px); color: var(--hp-muted); }
.nw-cat.is-active { border-color: var(--re-red); background: #fff6f7; }

/* ---------- Bố cục 2 cột ---------- */
.nw-body { padding: 1.2rem 0 2.5rem; }
.nw-layout { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.nw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .9rem; }
.nw-head__title { font-family: var(--hp-serif); font-weight: 800; color: var(--re-red); font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0; }

.nw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; background: var(--hp-soft); border-radius: 6px; padding: .6rem .9rem; font-size: .85rem; margin-bottom: 1rem; }
.nw-filter__clear { margin-left: auto; color: var(--re-red); font-weight: 600; }

.nw-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.1rem; padding: .85rem 0; border-bottom: 1px solid var(--hp-line); }
.nw-item:first-child { padding-top: 0; }
.nw-item__img { position: relative; display: block; aspect-ratio: 2.9 / 1; border-radius: 4px; overflow: hidden; background: var(--hp-soft); align-self: start; }
.nw-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-item:hover .nw-item__img img { transform: scale(1.05); }
.nw-item__body .nw-badge { margin-bottom: .4rem; }
.nw-item__title { font-family: var(--hp-serif); font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin: 0 0 .35rem; }
.nw-item__title a { color: #171c26; }
.nw-item__title a:hover { color: var(--re-red); }
.nw-item__excerpt { color: var(--hp-muted); font-size: .85rem; line-height: 1.45; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nw-more { text-align: center; margin-top: 1.4rem; }
.nw-more__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-width: 270px; min-height: 44px; border: 1.5px solid var(--re-red); border-radius: 4px; color: var(--re-red); font-weight: 600; font-size: .9rem; background: #fff; transition: background .2s, color .2s; }
.nw-more__btn:hover { background: var(--re-red); color: #fff; }
.nw-more__btn.is-loading { opacity: .6; pointer-events: none; }

.nw-empty { text-align: center; padding: 3rem 1rem; background: var(--hp-soft); border-radius: 8px; color: var(--hp-muted); }
.nw-empty i { font-size: 2.4rem; color: var(--re-red); }

/* ---------- Sidebar ---------- */
.nw-side { display: flex; flex-direction: column; gap: 1.4rem; }
.nw-box { border-radius: 6px; padding: 1rem 1rem 1.1rem; background: #f7f8fb; }
.nw-box--pink { background: #fdf3f4; }
.nw-box__title { font-family: var(--hp-serif); font-weight: 800; color: var(--re-red); font-size: 1.2rem; margin: 0 0 .75rem; }
.nw-box__title--dark { color: #171c26; }
.nw-featured { display: block; color: #171c26; }
.nw-featured__img { position: relative; display: block; aspect-ratio: 2.4 / 1; border-radius: 4px; overflow: hidden; margin-bottom: .6rem; }
.nw-featured__img img { width: 100%; height: 100%; object-fit: cover; }
.nw-featured__img .nw-badge { position: absolute; left: 0; bottom: 0; border-radius: 0 3px 0 0; }
.nw-featured strong { display: block; font-family: var(--hp-serif); font-size: 1rem; line-height: 1.35; margin-bottom: .4rem; }
.nw-featured:hover strong { color: var(--re-red); }

.nw-topics ul { list-style: none; padding: 0; margin: 0; }
.nw-topics a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .32rem .2rem; border-bottom: 1px solid var(--hp-line); color: #171c26; font-size: .88rem; }
.nw-topics a:hover, .nw-topics a[aria-current] { color: var(--re-red); }
.nw-topics a i { font-size: .7rem; }
.nw-topics:not(.nw-box) .nw-box__title { margin-left: .2rem; }

.nw-subscribe__head { display: flex; gap: .8rem; margin-bottom: .8rem; }
.nw-subscribe__head > i { color: var(--re-red); font-size: 2rem; line-height: 1; }
.nw-subscribe__head .nw-box__title { font-size: 1.05rem; margin-bottom: .3rem; }
.nw-subscribe__head p { color: var(--hp-muted); font-size: .78rem; margin: 0; }
.nw-subscribe form { display: grid; gap: .6rem; }
.nw-subscribe .form-control { min-height: 44px; font-size: .85rem; border-color: var(--hp-line); }
.nw-subscribe .re-btn { min-height: 44px; }
.nw-subscribe .re-newsletter__msg.is-error { color: var(--re-red); }
.nw-subscribe .re-newsletter__msg.is-success { color: #1f8a4c; }
.nw-subscribe__note { text-align: center; color: var(--hp-muted); font-size: .75rem; margin: 0; }

/* ---------- Bài viết chi tiết ---------- */
.nw-article-wrap { padding: 1.4rem 0 2.5rem; }
.nw-layout--article { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 2.5rem; }
.nw-layout--article .nw-side { border-left: 1px solid var(--hp-line); padding-left: 1.6rem; }
.nw-article__title { font-family: var(--hp-serif); font-weight: 800; color: var(--hp-ink); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; margin: .6rem 0 .7rem; }
.nw-article__lead { color: var(--hp-muted); font-size: 1.08rem; line-height: 1.55; margin-bottom: 1.2rem; }
.nw-article__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.1rem; }
.nw-article__bar .nw-meta { font-size: .8rem; color: #2c3446; }
.nw-share { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #2c3446; }
.nw-share span { margin-right: .4rem; }
.nw-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #eef0f4; color: #4a5266; font-size: 1rem; transition: transform .2s; }
.nw-share__btn:hover { transform: translateY(-2px); color: #4a5266; }
.nw-share__btn--fb, .nw-share__btn--in { background: #1877f2; color: #fff; }
.nw-share__btn--in { background: #0a66c2; }
.nw-share__btn--fb:hover, .nw-share__btn--in:hover { color: #fff; }
.nw-share__btn.is-copied { background: #1f8a4c; color: #fff; }

.nw-article__hero { position: relative; margin: 0 0 1.3rem; }
.nw-article__hero img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; border-radius: 4px; display: block; }
.nw-article__hero figcaption { font-size: .76rem; color: var(--hp-muted); margin-top: .4rem; }
.nw-article__hand { position: absolute; right: 4%; top: 7%; color: var(--hp-ink); font-size: clamp(1.4rem, 2.6vw, 2.1rem); transform: rotate(-10deg); text-shadow: 0 0 12px rgba(255, 255, 255, .7); }
.nw-article__hand::after { content: ""; display: block; height: 10px; margin-top: -.2rem; border-bottom: 3px solid var(--re-red); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.nw-article__video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.nw-article__embed { position: relative; aspect-ratio: 16 / 9; }
.nw-article__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }

.nw-prose { color: #3a4254; font-size: .95rem; line-height: 1.7; }
.nw-prose > *:first-child { margin-top: 0; }
.nw-prose p { margin-bottom: 1rem; }
.nw-prose h2 { font-family: var(--hp-serif); font-weight: 700; color: var(--hp-ink); font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.nw-prose h3 { font-family: var(--hp-serif); font-weight: 700; color: var(--hp-ink); font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.nw-prose a { color: var(--re-red); text-decoration: underline; }
.nw-prose ul { list-style: none; padding-left: 1.4rem; margin-bottom: 1rem; }
.nw-prose ul li { position: relative; margin-bottom: .3rem; }
.nw-prose ul li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--re-red); }
.nw-prose ol { padding-left: 1.4rem; }
.nw-prose ol li::marker { color: var(--re-red); font-weight: 700; }
.nw-prose img { max-width: 100%; height: auto; border-radius: 4px; }
.nw-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; display: block; overflow-x: auto; }
.nw-prose th, .nw-prose td { border: 1px solid var(--hp-line); padding: .5rem .7rem; }
.nw-prose th { background: var(--hp-soft); color: var(--hp-ink); }
.nw-prose blockquote { position: relative; background: #f5f6f9; border-radius: 6px; padding: 1rem 1.2rem 1rem 5rem; margin: 1.4rem 0; color: #2c3446; }
.nw-prose blockquote::before { content: "\201C\201C"; position: absolute; left: 1.1rem; top: .2rem; font-family: var(--hp-serif); font-size: 3.6rem; font-weight: 800; letter-spacing: -.35em; line-height: 1; color: var(--re-red); }
.nw-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 4px; }

.nw-highlights { display: grid; grid-template-columns: repeat(4, 1fr); background: #f4f6fa; border-radius: 6px; margin: .4rem 0 1.4rem; }
.nw-highlight { display: flex; flex-direction: column; padding: 1.1rem 1rem; font-size: .8rem; line-height: 1.45; color: var(--hp-muted); }
.nw-highlight + .nw-highlight { border-left: 1px solid #e2e6ee; }
.nw-highlight i { color: var(--re-red); font-size: 1.7rem; line-height: 1; margin-bottom: .6rem; }
.nw-highlight strong { color: var(--hp-ink); font-size: .84rem; margin-bottom: .4rem; }

.nw-sources { border-top: 1px solid var(--hp-line); margin-top: 1.6rem; padding-top: 1rem; font-size: .85rem; }
.nw-sources h2 { font-size: 1rem; font-weight: 700; color: var(--hp-ink); margin-bottom: .5rem; }
.nw-sources ul { padding-left: 1.1rem; margin: 0; }
.nw-sources a { color: var(--re-red); }
.nw-sources small { color: var(--hp-muted); }
.nw-updated { font-size: .8rem; color: var(--hp-muted); margin: 1rem 0 0; }
.nw-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1.2rem 0 0; }
.nw-tags a { display: inline-block; background: var(--hp-soft); color: var(--hp-ink); border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; }
.nw-tags a:hover { background: var(--re-red); color: #fff; }

.nw-related { list-style: none; padding: 0; margin: 0; }
.nw-related li + li { border-top: 1px solid var(--hp-line); }
.nw-related a { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .9rem; padding: .7rem 0; color: #171c26; }
.nw-related a:hover strong { color: var(--re-red); }
.nw-related__img { display: block; aspect-ratio: 105 / 88; border-radius: 4px; overflow: hidden; background: var(--hp-soft); }
.nw-related__img img { width: 100%; height: 100%; object-fit: cover; }
.nw-related strong { display: block; font-size: .84rem; line-height: 1.4; margin-bottom: .45rem; }
.nw-related time { font-size: .76rem; color: var(--hp-muted); }

.nw-cta { position: relative; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, #f3f5f9, #e9edf4); min-height: 230px; display: flex; align-items: center; }
.nw-cta__img { position: absolute; right: 0; bottom: 0; height: 100%; width: 34%; object-fit: cover; object-position: left bottom; }
.nw-cta__body { position: relative; padding: 1.4rem 36% 1.4rem 1.2rem; }
.nw-cta h2 { font-family: var(--hp-serif); font-weight: 800; color: var(--hp-ink); font-size: 1.3rem; line-height: 1.25; margin-bottom: .6rem; }
.nw-cta p { color: var(--hp-muted); font-size: .78rem; margin-bottom: .9rem; }
.nw-cta .re-btn { font-size: .82rem; }

@media (max-width: 1199.98px) {
    .nw-cats__grid { grid-template-columns: repeat(3, 1fr); }
    .nw-highlights { grid-template-columns: repeat(2, 1fr); }
    .nw-highlight:nth-child(3) { border-left: 0; }
    .nw-highlight:nth-child(n+3) { border-top: 1px solid #e2e6ee; }
}

@media (max-width: 991.98px) {
    .nw-layout, .nw-layout--article { grid-template-columns: 1fr; }
    .nw-layout--article .nw-side { border-left: 0; padding-left: 0; }
    .nw-hero { min-height: 0; padding: 1.4rem 0 9rem; }
    .nw-hero__img { top: auto; bottom: 0; width: 100%; height: 8.5rem; }
    .nw-hero::before { background: linear-gradient(180deg, #fff 0%, #fff 55%, rgba(255, 255, 255, 0) 75%); }
    .nw-hero::after { display: none; }
    .nw-hero__hand { top: auto; bottom: -7.5rem; transform: rotate(-8deg); font-size: 1.4rem; }
}

@media (max-width: 575.98px) {
    .nw-cats__grid { grid-template-columns: repeat(2, 1fr); }
    .nw-cat strong { white-space: normal; }
    .nw-item { grid-template-columns: 1fr; gap: .7rem; }
    .nw-item__img { aspect-ratio: 16 / 8; }
    .nw-more__btn { width: 100%; }
    .nw-highlights { grid-template-columns: 1fr; }
    .nw-highlight + .nw-highlight { border-left: 0; border-top: 1px solid #e2e6ee; }
    .nw-prose blockquote { padding-left: 3.6rem; }
    .nw-prose blockquote::before { font-size: 2.8rem; left: .8rem; }
    .nw-cta__img { width: 30%; opacity: .5; }
    .nw-cta__body { padding-right: 32%; }
}

/* ---------- Tuyển dụng ---------- */
.nw-job { background: #f3f7fd; border: 1px solid #dfe7f5; border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.nw-job__info { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem 1rem; padding: 0; margin: 0 0 1rem; }
.nw-job__info li { display: flex; gap: .6rem; align-items: flex-start; color: var(--hp-ink); font-size: .88rem; font-weight: 600; }
.nw-job__info i { color: var(--re-red); font-size: 1.15rem; }
.nw-job__info small { display: block; color: var(--hp-muted); font-weight: 400; font-size: .74rem; }
.nw-job .re-btn i { transform: none; }
.nw-job.is-closed { background: #f5f5f7; }
.jb-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.jb-filter .form-select { width: auto; min-width: 190px; min-height: 42px; font-size: .86rem; }
.jb-filter__count { margin-left: auto; color: var(--hp-muted); font-size: .86rem; }
.jb-list { display: flex; flex-direction: column; gap: .8rem; }
.jb-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: #fff; border: 1px solid var(--hp-line); border-left: 4px solid var(--re-red); border-radius: 8px; padding: 1.1rem 1.3rem; transition: box-shadow .25s; }
.jb-card:hover { box-shadow: var(--hp-shadow); }
.jb-card__main { flex: 1 1 420px; min-width: 0; }
.jb-card__dept { color: var(--re-red); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: .2rem; }
.jb-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.jb-card h3 a { color: var(--hp-ink); }
.jb-card h3 a:hover { color: var(--re-red); }
.jb-card__text { color: var(--hp-muted); font-size: .86rem; margin-bottom: .5rem; }
.jb-card__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; padding: 0; margin: 0; color: #3a4560; font-size: .82rem; }
.jb-card__meta i { color: var(--re-red); margin-right: .25rem; }
.jb-card__actions { display: flex; gap: .6rem; }
.jb-card__actions .re-btn i { transform: none; }
@media (max-width: 767.98px) {
    .nw-job__info { grid-template-columns: 1fr 1fr; }
    .jb-card__actions { width: 100%; }
    .jb-card__actions .re-btn { flex: 1; }
    .jb-filter .form-select { flex: 1 1 100%; }
    .jb-filter__count { margin-left: 0; }
}
