/* ============================================================
   custom.css — styles that were in the Cloudflare-blocked
   basic.css (intro bar + footer) plus a few header helpers.
   Edit freely; the main look lives in style.css.
   ============================================================ */

/* hero video box: keep poster inside the 305x207 frame + play button */
.w1_m_flash { overflow: hidden; }
.w1_m_flash #player { display: block; width: 305px; height: 207px; position: relative; }
.w1_m_flash #player img { width: 305px; height: 207px; object-fit: cover; display: block; }
.w1_m_flash #player span {
    display: block;
    position: absolute;
    left: 50%; top: 50%;
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    background: url("../images/video_btn.png") no-repeat center;
    background-size: contain;
    cursor: pointer;
}

/* logo "Huyền Thoại Nhẫn Giả" — giữ tỉ lệ, canh trong header 80px */
.logo { display: block; }
.logo img { height: 74px; width: auto; display: block; margin-top: 3px; }

/* =========================================================
   NAVBAR ĐƠN GIẢN (kiểu Học Viện Nhẫn Giả) — links phẳng
   ========================================================= */
.header_main { display: flex; align-items: center; }
.logo.fl { float: none; flex: 0 0 auto; }

.nav-simple {
    display: flex;
    align-items: center;
    height: 80px;
    margin-left: 26px;
    flex: 1 1 auto;
}
.nav-simple a {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: color .18s ease;
}
.nav-simple a:hover { color: #ffb968; }
.nav-simple a.active { color: #ff8a3d; }
.nav-simple a.active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 17px;
    height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #f36518, #ffb347);
}
.nav-simple a:focus-visible {
    outline: 2px solid #ffb968;
    outline-offset: -5px;
    border-radius: 6px;
}

/* header right cluster (đăng nhập + tải ngay) */
.header_log {
    float: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 80px;
    margin-left: auto;
}
.login_btn {
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.login_btn:hover { color: #ffd9b0; }
.btn-download {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    color: #3a1600;
    text-decoration: none;
    background: linear-gradient(180deg, #ffc15a, #f36518);
    box-shadow: 0 0 16px rgba(243, 101, 24, .42), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(243, 101, 24, .6);
}

/* hamburger — ẩn ở desktop */
.nav-toggle { display: none; }

@media (max-width: 1040px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px; height: 44px;
        margin-left: auto; margin-right: 10px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 9px;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block; width: 20px; height: 2px; margin: 0 auto;
        background: #fff; border-radius: 2px;
        transition: transform .25s ease, opacity .25s ease;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-simple {
        position: absolute;
        left: 0; right: 0; top: 80px;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        margin: 0;
        background: #0c0e14;
        border-top: 1px solid rgba(255, 255, 255, .08);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .header_main.nav-open .nav-simple { max-height: 80vh; }
    .nav-simple a {
        height: 52px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }
    .nav-simple a.active::after {
        left: 0; right: auto; top: 14px; bottom: 14px;
        width: 3px; height: auto;
    }
    .header_log { margin-left: 0; }
    .btn-download { height: 34px; padding: 0 14px; }
}

/* =========================================================
   FOOTER (kiểu hocviennhangia): logo · giữa · 18+
   ========================================================= */
.site-footer {
    width: 100%;
    min-width: 1000px;
    background: #141414;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 40px 0 44px;
}
.sf-inner {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 20px;
}
/* logo trái */
.sf-logo { flex: 0 0 220px; }
.sf-logo img {
    display: block;
    height: 86px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(255,107,0,.35));
}
/* cột giữa */
.sf-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.sf-social { display: flex; gap: 16px; margin-bottom: 16px; }
.sf-soc {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, #e85a2a 0%, #b91c1c 55%, #7f1d1d 100%);
    box-shadow: 0 0 0 1.5px rgba(251,191,36,.65), 0 4px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
    transition: transform .15s ease, filter .15s ease;
}
.sf-soc:hover { transform: translateY(-2px) scale(1.05); filter: brightness(1.1); }
.sf-soc svg { width: 22px; height: 22px; fill: currentColor; }
.sf-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.sf-nav a { color: #fff; transition: color .15s ease; }
.sf-nav a:hover { color: #ff8a3d; }
.sf-nav span { color: rgba(255,255,255,.35); }
.sf-health {
    margin: 0 0 8px;
    max-width: 560px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.9);
}
.sf-email {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.85);
}
.sf-email a { color: rgba(255,255,255,.85); }
.sf-email a:hover { color: #ff8a3d; }
/* 18+ phải */
.sf-age {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    max-width: 230px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 3px;
    overflow: hidden;
}
.sf-age_num {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    padding: 8px 10px;
    flex: 0 0 auto;
}
.sf-age p {
    margin: 0;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,.9);
    text-align: left;
}

/* =========================================================
   TIN TỨC & SỰ KIỆN (news2) — 1 tin nổi bật + danh sách tin
   ========================================================= */
.wrap3 .wrap_main { overflow: visible; }
.news2 {
    box-sizing: border-box;
    width: 1000px;
    padding: 70px 30px 0;
}
.news2 * { box-sizing: border-box; }

.news2_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
}
.news2_eyebrow {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff9b47;
}
.news2_title {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.news2_title span { color: #ff8a3d; }

.news2_tabs { display: flex; align-items: center; gap: 10px; }
.news2_tabs button {
    border: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .1);
    transition: background .18s ease, color .18s ease;
}
.news2_tabs button:hover:not(.active) { background: rgba(243, 101, 24, .25); color: #ffce8a; }
.news2_tabs button.active {
    color: #3a1600;
    background: linear-gradient(180deg, #ffc15a, #f36518);
    box-shadow: 0 4px 14px rgba(243, 101, 24, .45);
}
.news2_more {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #ffb968;
    text-decoration: none;
}
.news2_more i { font-style: normal; font-size: 18px; line-height: 1; }
.news2_more:hover { color: #fff; }

.news2_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

/* ----- tin nổi bật ----- */
.news2_feat {
    position: relative;
    display: block;
    min-height: 330px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background: #1a0f08;
    box-shadow: 0 12px 30px rgba(42, 19, 9, .25);
}
.news2_feat_img { position: absolute; inset: 0; display: block; }
.news2_feat_img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.news2_feat:hover .news2_feat_img img { transform: scale(1.05); }
.news2_feat::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 5, 3, .94) 6%, rgba(8, 5, 3, .4) 48%, rgba(8, 5, 3, 0) 78%);
}
.news2_feat_body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; display: block; }
.news2_feat_title {
    display: block;
    margin: 10px 0 9px;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}
.news2_feat:hover .news2_feat_title { color: #ffce8a; }
.news2_feat_desc {
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

/* ----- meta + badge ----- */
.news2_meta { display: flex; align-items: center; gap: 10px; }
.news2_meta time { font-size: 12px; color: rgba(255, 255, 255, .6); }
.news2_badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}
.badge-news { background: #f36518; }
.badge-event { background: #a2010c; }

/* ----- danh sách tin ----- */
.news2_list { display: flex; flex-direction: column; gap: 14px; }
.news2_item {
    display: flex;
    gap: 14px;
    padding: 10px;
    border-radius: 13px;
    text-decoration: none;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(42, 19, 9, .08);
    box-shadow: 0 2px 8px rgba(42, 19, 9, .06);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.news2_item:hover {
    background: #fff;
    border-color: rgba(243, 101, 24, .42);
    transform: translateX(3px);
    box-shadow: 0 8px 18px rgba(243, 101, 24, .18);
}
.news2_item_img { flex: 0 0 112px; height: 74px; border-radius: 9px; overflow: hidden; }
.news2_item_img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news2_item:hover .news2_item_img img { transform: scale(1.06); }
.news2_item_body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.news2_item .news2_meta time { color: #8a765e; }
.news2_item_title {
    display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px;
    line-height: 1.32;
    font-weight: 700;
    color: #2a1309;
}
.news2_item:hover .news2_item_title { color: #d2500a; }

/* clearfix safety */
.clearfix:after { content:""; display:block; clear:both; }

/* =========================================================
   REVEAL — hiệu ứng xuất hiện khi cuộn tới (JS gắn .reveal)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s cubic-bezier(.2,.65,.3,1),
                transform .6s cubic-bezier(.2,.65,.3,1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* biến thể trượt ngang cho danh sách tin */
.reveal-right { transform: translateX(26px); }
.reveal-right.is-visible { transform: none; }

/* Ai bật "giảm chuyển động" thì tắt hẳn, hiện ngay */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   INTRO — hiệu ứng khi vừa vào trang (banner đầu + header)
   ========================================================= */
@keyframes introDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes introUp   { from { opacity: 0; transform: translateY(30px);  } to { opacity: 1; transform: none; } }
@keyframes introZoom { from { opacity: 0; transform: scale(.92);        } to { opacity: 1; transform: none; } }

.header_main            { animation: introDown .7s cubic-bezier(.2,.65,.3,1) both; }
.wrap1 .wrap_main > p   { animation: introZoom .9s cubic-bezier(.2,.65,.3,1) .15s both; }
.w1_m_flash             { animation: introUp .8s cubic-bezier(.2,.65,.3,1) .45s both; }
.w1_m_bgn               { animation: introUp .8s cubic-bezier(.2,.65,.3,1) .6s both; }

/* nút tải nhún nhẹ khi hover */
.w1_m_bgn a { transition: transform .2s ease, filter .2s ease; }
.w1_m_bgn a:hover { transform: translateY(-3px); filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
    .header_main, .wrap1 .wrap_main > p, .w1_m_flash, .w1_m_bgn { animation: none !important; }
}

/* =========================================================
   TYPOGRAPHY — Barlow Condensed (tiêu đề/menu/nút)
                + Be Vietnam Pro (chữ thường), đều hỗ trợ tiếng Việt
   ========================================================= */
:root {
    --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Be Vietnam Pro', Arial, sans-serif;
}
body, input, button, select, textarea,
.nav_item_son ul li a, .imglist span, .pagelist, .detail h1 {
    font-family: var(--font-body);
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Nhóm tiêu đề / menu / nút / nhãn */
.nav-simple a, .login_btn, .btn-download,
.news2_eyebrow, .news2_title, .news2_tabs button, .news2_more, .news2_badge,
.news2_feat_title, .news2_item_title,
.sf-nav, .sf-age_num, .w4_head .w4_h_h1, .w4_more,
.feat-hero__title, .feat-tabs a {
    font-family: var(--font-display);
}

/* Font hẹp -> nới cỡ chữ cho cân */
.nav-simple a     { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.login_btn        { font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.btn-download     { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.news2_eyebrow    { font-size: 15px; font-weight: 700; letter-spacing: .3em; }
.news2_title      { font-size: 48px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.news2_tabs button{ font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news2_more       { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news2_badge      { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.news2_feat_title { font-size: 30px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.news2_item_title { font-size: 19px; font-weight: 600; line-height: 1.2; }
.sf-nav           { font-size: 16px; letter-spacing: .14em; }
.sf-age_num       { font-size: 24px; font-weight: 800; }
.news2_feat_desc, .news2_meta, .sf-health, .sf-email { font-family: var(--font-body); }
body .feat-tabs a { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
