/* CITARES – Tài liệu sinh viên (plugin). Designed for the CITARES Profile theme (home.css);
   the :where() rules below only apply when the active theme does not define them (zero specificity). */
:where(:root){--blue:#0B4DB5;--blue-dark:#062E7A;--navy:#061A40;--sky:#1EA7E8;--ink:#0F1B2D;--muted:#5A6B82;--line:#E3E9F2;--soft:#F3F7FC;--orange:#F07A22;--green:#1DB45A;--red:#E8333A;--wrap:1200px}
:where(.ctl-page){font-family:"Be Vietnam Pro",system-ui,sans-serif;color:var(--ink);line-height:1.6}
:where(.ctl-page) :where(*){box-sizing:border-box}
:where(.ctl-page) :where(.wrap){max-width:var(--wrap);margin:0 auto;padding:0 24px}
:where(.ctl-page) :where(.btn){display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:700;font-size:15px;border:2px solid transparent;cursor:pointer;text-decoration:none}
:where(.ctl-page) :where(.btn-primary){background:var(--blue);color:#fff}
:where(.ctl-page) :where(.btn-white){background:#fff;color:var(--blue)}
:where(.ctl-page) :where(.eyebrow){display:inline-block;font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}

/* ---- hero, breadcrumb, Fanpage band (from the theme news.css) ---- */
/* ===== Tin tức – news listing + article (loaded after home.css) ===== */
.news-hero{position:relative;color:#fff;background:var(--navy);overflow:hidden;padding:72px 0 64px}
.news-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 18%,rgba(92,200,255,.26),transparent 46%),linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px) 0 0/44px 44px,linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px) 0 0/44px 44px,linear-gradient(110deg,var(--navy) 0%,var(--blue-dark) 58%,var(--blue) 100%)}
.news-hero .wrap{position:relative}
.news-hero .eyebrow{color:#7FD3FF}
.news-hero h1{font-size:clamp(34px,5vw,60px);font-weight:800;text-transform:uppercase;margin:14px 0}
.news-hero .lead{color:#D6E4FA}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:#9FB6DA;margin-bottom:22px}
.crumbs a:hover{color:#fff}
.crumbs .sep{opacity:.55}
.crumbs .here{color:#D6E4FA;max-width:52ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.news-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:13.5px;font-weight:600;color:var(--muted)}
.news-meta .cat{background:#E8F0FC;color:var(--blue);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.news-meta .dot{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.5}
.news-list{padding:64px 0 88px;background:var(--soft)}
.news-feature{display:grid;grid-template-columns:1.25fr 1fr;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 40px rgba(6,26,64,.08)}
.news-feature .nf-media{display:block;background:var(--line)}
.news-feature .nf-media img{width:100%;height:100%;min-height:320px;object-fit:cover}
.news-feature .nf-body{padding:40px 44px;display:flex;flex-direction:column;justify-content:center;gap:16px}
.news-feature h2{font-size:clamp(24px,2.6vw,34px);margin:0}
.news-feature p{color:#33445C;font-size:16.5px}
.news-feature h2 a:hover,.news-card h3 a:hover{color:var(--blue)}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:28px}
.news-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.news-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(6,26,64,.10)}
.news-card .nc-media{display:block;background:var(--line)}
.news-card .nc-media img{width:100%;aspect-ratio:16/10;object-fit:cover}
.news-card .nc-body{padding:20px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1}
.news-card h3{font-size:19px;line-height:1.3}
.news-card p{font-size:15px;color:var(--muted)}
.news-card .link-arrow{margin-top:auto;font-size:14.5px}
.news-empty{background:#fff;border:1px dashed #C9D6EA;border-radius:16px;padding:56px 24px;text-align:center;color:var(--muted)}
.news-empty b{display:block;color:var(--ink);font-size:18px;margin-bottom:6px}
.news-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:40px}
.news-pager .page-numbers{min-width:42px;height:42px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:700;color:var(--ink)}
.news-pager a.page-numbers:hover{border-color:var(--blue);color:var(--blue)}
.news-pager .current{background:var(--blue);border-color:var(--blue);color:#fff}
.follow-band{padding:64px 0;color:#fff;background:linear-gradient(110deg,var(--blue-dark),var(--blue) 60%,var(--sky))}
.follow-band .wrap{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.follow-band .eyebrow{color:#CDEBFF}
.follow-band h2{color:#fff;font-size:clamp(24px,3vw,34px);margin:8px 0}
.follow-band p{color:#DCEBFF;max-width:620px}
.btn-fb svg{width:18px;height:18px;flex:none}
/* article */
.post-hero{padding:60px 0 56px}
.post-hero h1{text-transform:none;font-size:clamp(30px,4.4vw,52px);max-width:22ch;margin:16px 0 0;line-height:1.15}
.post-hero .news-meta{color:#C7D7F2}
.post-hero .news-meta .cat{background:rgba(255,255,255,.14);color:#fff}
.post-body{padding:56px 0 72px;background:#fff}
.post-cover{max-width:960px;margin:0 auto 44px}
.post-cover img{width:100%;height:auto;border-radius:18px;box-shadow:0 18px 40px rgba(6,26,64,.12)}
.post-content{max-width:780px;margin:0 auto;font-size:18px;line-height:1.8;color:#22324A}
.post-content > * + *{margin-top:1.15em}
.post-content > p:first-child,.post-content .post-lead{font-size:21px;line-height:1.65;color:var(--ink);font-weight:500}
.post-content h2{font-size:clamp(24px,2.6vw,30px);line-height:1.3;margin:1.8em 0 0;padding-left:16px;border-left:4px solid var(--blue)}
.post-content h3{font-size:22px;margin-top:1.5em}
.post-content a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.post-content a:hover{color:var(--blue-dark)}
.post-content ul,.post-content ol{padding-left:1.4em}
.post-content figure{margin:2.2em 0}
.post-content figure img{width:100%;height:auto;border-radius:16px;box-shadow:0 18px 40px rgba(6,26,64,.12)}
.post-content figcaption{margin-top:12px;font-size:14.5px;line-height:1.5;color:var(--muted);text-align:center}
.post-content blockquote{border-left:4px solid var(--sky);padding:4px 0 4px 18px;color:var(--ink);font-style:italic}
@media (min-width:1100px){.post-content figure.wp-block-image,.post-content figure.post-fig{margin-left:-90px;margin-right:-90px}}
.post-foot{max-width:780px;margin:52px auto 0;padding-top:26px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.share{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;color:var(--muted)}
.share a,.share button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--blue);display:inline-grid;place-items:center;cursor:pointer;transition:.2s}
.share a:hover,.share button:hover,.share button.done{background:var(--blue);border-color:var(--blue);color:#fff}
.share svg{width:18px;height:18px}
.post-related{padding:64px 0 80px;background:var(--soft)}
.post-related h2{margin-top:6px}
@media (max-width:900px){.news-feature{grid-template-columns:1fr}.news-feature .nf-media img{min-height:0;aspect-ratio:16/10}.news-feature .nf-body{padding:26px 24px 30px}.news-grid{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.news-grid{grid-template-columns:1fr}.news-hero{padding:52px 0 44px}.post-content{font-size:17px}.post-content > p:first-child,.post-content .post-lead{font-size:19px}.crumbs .here{max-width:24ch}}

/* ---- page ---- */
/* ===== Tài liệu sinh viên – gated download page (loaded after home.css + news.css) ===== */
.docs-hero{padding:68px 0 60px}
.docs-hero .lead{max-width:660px}
.docs-hero .btn{margin-top:26px}
.docs-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:44px;max-width:980px}
.docs-steps li{display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:18px 20px}
.docs-steps i{flex:none;width:34px;height:34px;border-radius:50%;background:var(--sky);color:#fff;font-style:normal;font-weight:800;font-size:14px;display:grid;place-items:center}
.docs-steps b{display:block;color:#fff;font-size:16px;line-height:1.35}
.docs-steps span{display:block;color:#B9CCEA;font-size:14px;line-height:1.5;margin-top:3px}
.docs-main{padding:64px 0 88px;background:var(--soft)}
.docs-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,470px);gap:40px;align-items:start}
.docs-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap;margin-bottom:20px}
.docs-head h2{font-size:clamp(24px,2.6vw,32px);margin-top:8px}
.docs-head .count{font-size:14px;font-weight:600;color:var(--muted)}
.doc-list{display:grid;gap:14px}
.doc-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:18px 20px;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.doc-card:hover{border-color:#B9CCEA}
.doc-card.on{border-color:var(--blue);box-shadow:0 10px 26px rgba(11,77,181,.10)}
.doc-ico{position:relative;width:50px;height:60px;border-radius:8px;background:linear-gradient(160deg,#E8F0FC,#D2E2F8);color:var(--blue);display:flex;align-items:flex-end;justify-content:center;padding-bottom:9px;font-size:11px;font-weight:800;letter-spacing:.06em}
.doc-ico::before{content:"";position:absolute;top:0;right:0;width:15px;height:15px;border-radius:0 8px 0 4px;background:linear-gradient(225deg,var(--soft) 50%,rgba(11,77,181,.22) 50%)}
.doc-ico.pdf{background:linear-gradient(160deg,#FDEDEE,#F8D6D8);color:#C42A31}
.doc-ico.pdf::before{background:linear-gradient(225deg,var(--soft) 50%,rgba(196,42,49,.22) 50%)}
.doc-ico.xls{background:linear-gradient(160deg,#E7F6EE,#CDEBDB);color:#18804A}
.doc-cover{display:block;width:66px;flex:none}
.doc-cover img{display:block;width:66px;height:94px;object-fit:cover;object-position:top;border-radius:6px;border:1px solid var(--line);box-shadow:0 8px 18px rgba(6,26,64,.16)}
.doc-txt{display:block;min-width:0}
.doc-title{display:block;font-size:17px;font-weight:700;line-height:1.35;color:var(--ink)}
.doc-desc{display:block;font-size:14.5px;line-height:1.55;color:var(--muted);margin-top:4px}
.doc-txt small{display:block;margin-top:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7C8CA3}
.doc-pick{position:relative;width:26px;height:26px;flex:none}
.doc-pick input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.doc-pick span{position:absolute;inset:0;border:2px solid #B9C7DB;border-radius:8px;background:#fff;transition:.15s;pointer-events:none}
.doc-pick input:checked + span{background:var(--blue);border-color:var(--blue)}
.doc-pick input:checked + span::after{content:"";position:absolute;left:7px;top:2px;width:7px;height:13px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.doc-pick input:focus-visible + span{outline:3px solid rgba(30,167,232,.45);outline-offset:2px}
.docs-empty{background:#fff;border:1.5px dashed #C9D6EA;border-radius:16px;padding:40px 28px;text-align:center}
.docs-empty svg{width:56px;height:56px;color:var(--blue);margin:0 auto 14px;display:block}
.docs-empty b{display:block;font-size:18px;color:var(--ink)}
.docs-empty p{max-width:460px;margin:8px auto 0;font-size:15px;color:var(--muted)}
.docs-empty .admin-hint{margin-top:14px;font-size:13.5px}
.docs-empty .admin-hint a{color:var(--blue);font-weight:700;text-decoration:underline}
.docs-notes{margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px}
.docs-notes h3{font-size:16px}
.docs-notes ul{list-style:none;margin-top:12px;display:grid;gap:10px}
.docs-notes li{position:relative;padding-left:22px;font-size:14.5px;line-height:1.6;color:#33445C}
.docs-notes li::before{content:"";position:absolute;left:3px;top:8px;width:8px;height:8px;border-radius:2px;background:var(--blue);transform:rotate(45deg)}
.docs-notes a{color:var(--blue);font-weight:600}
.docs-form{position:sticky;top:104px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 40px rgba(6,26,64,.08);padding:30px 30px 28px;scroll-margin-top:100px}
.docs-form h2{font-size:clamp(22px,2.2vw,26px)}
.docs-form .sub{font-size:14px;color:var(--muted);margin-top:6px}
.docs-form em{color:var(--red);font-style:normal}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.fld{display:block;margin-top:16px;border:0;padding:0;min-width:0}
.fld > span,.fld > legend{display:block;font-size:13.5px;font-weight:700;color:var(--ink);margin-bottom:7px;padding:0}
.fld > legend small{font-weight:500;color:var(--muted)}
.fld input,.fld select{display:block;width:100%;height:48px;border:1.5px solid #D5DFEC;border-radius:12px;padding:0 14px;font:inherit;font-size:15.5px;color:var(--ink);background:#fff;transition:border-color .15s,box-shadow .15s}
.fld select{appearance:none;-webkit-appearance:none;padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A6B82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center}
.fld select:invalid{color:#8696AC}
.fld input::placeholder{color:#97A5B9}
.fld input:focus,.fld select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(11,77,181,.12)}
.fld .msg{display:none;font-size:13px;line-height:1.45;color:var(--red);margin-top:6px}
.fld.err input,.fld.err select{border-color:var(--red)}
.fld.err .msg{display:block}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;display:inline-flex}
.chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chip span{display:inline-block;padding:8px 14px;border:1.5px solid #D5DFEC;border-radius:999px;background:#fff;font-size:13.5px;font-weight:600;line-height:1.35;color:#2A3A52;transition:.15s;pointer-events:none}
.chip:hover span{border-color:#9FB4D3}
.chip input:checked + span{background:#E8F0FC;border-color:var(--blue);color:var(--blue)}
.chip input:focus-visible + span{outline:3px solid rgba(30,167,232,.45);outline-offset:2px}
.fld.err .chip span{border-color:#F2A9AC}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.55;color:#33445C;cursor:pointer;margin-top:18px}
.consent input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--blue)}
.fld.err .consent{color:var(--red)}
.docs-form .btn-primary{width:100%;justify-content:center;margin-top:22px;padding:15px 24px;font-size:16px}
.docs-form .btn[disabled]{opacity:.7;cursor:wait}
.form-alert{margin-top:16px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.5;background:#FDECEC;color:#A3222A;border:1px solid #F6C9CB}
.form-alert.warn{margin:0 0 18px;background:#FFF5E9;color:#8A4B0F;border-color:#F8D8B4}
.form-alert[hidden]{display:none}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.docs-done{text-align:center;padding:14px 4px 6px}
.docs-done[hidden]{display:none}
.docs-done:focus{outline:none}
.docs-done .tick{width:68px;height:68px;border-radius:50%;background:#E6F7EE;color:var(--green);display:grid;place-items:center;margin:0 auto 18px}
.docs-done .tick svg{width:34px;height:34px}
.docs-done.fail .tick{background:#FFF5E9;color:var(--orange)}
.docs-done h2{font-size:24px}
.docs-done p{margin-top:10px;font-size:15.5px;color:#33445C}
.docs-done p b{color:var(--ink);word-break:break-all}
.docs-done .note{font-size:14px;color:var(--muted)}
.done-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:22px}
.done-actions .btn{min-width:230px;justify-content:center}
.done-actions .btn-outline{background:#fff;color:var(--blue);border-color:var(--blue)}
.done-actions .btn-outline:hover{background:#E8F0FC}
.done-actions .btn[disabled]{opacity:.55;cursor:default;background:#fff}
.done-actions .again{background:none;border:0;font:inherit;font-size:14.5px;font-weight:700;color:var(--blue);cursor:pointer;padding:4px}
.done-actions .again:hover{text-decoration:underline}
.done-actions [hidden]{display:none}
@media (max-width:980px){.docs-grid{grid-template-columns:1fr}.docs-form{position:static}.docs-steps{grid-template-columns:1fr;max-width:560px}}
@media (max-width:600px){.docs-hero{padding:52px 0 44px}.docs-main{padding:44px 0 64px}.f-row{grid-template-columns:1fr}.docs-form{padding:24px 18px 22px;border-radius:18px}.doc-card{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:16px}.doc-pick{grid-column:2;justify-self:start;margin-top:-4px}.docs-steps li{padding:14px 16px}}
