/* XT - TTCNTT v3.8.6 — widget "XT · Tin động" + "XT · Thẻ liên kết" (mặc định = mẫu khoadaotaotructuyen.ftu.edu.vn) */
.xtf{--xtf-accent:#ab0000;--xtf-ink:#22345c;--xtf-card:#fff;--xtf-feat:#faf7f0;font-family:Roboto,Arial,sans-serif}
.xtf a{text-decoration:none}

/* ---- Ticker ---- */
.xtf-ticker{--xtf-tk-h:48px;display:flex;align-items:center;height:var(--xtf-tk-h);overflow:hidden;color:var(--xtf-ink);font-weight:600}
.xtf-tk-label{flex:0 0 auto;background:#ab0000;color:#fff;font-weight:700;font-size:14px;line-height:21px;letter-spacing:.5px;padding:10px 22px 10px 13px;white-space:nowrap}
.xtf-tk-view{flex:1;min-width:0;position:relative;height:var(--xtf-tk-h);overflow:hidden}
.xtf-tk-track{position:absolute;top:0;left:0;white-space:nowrap;line-height:var(--xtf-tk-h);animation:xtfTicker 60s linear infinite;will-change:transform}
.xtf-tk-set{display:inline-block}
.xtf-tk-track a{font-size:14px;font-weight:600;margin-right:50px;color:var(--xtf-ink)}
.xtf-tk-track a::before{content:"• ";color:#ab0000;font-weight:700}
.xtf-tk-track a:hover{text-decoration:underline;color:#ab0000 !important}
@keyframes xtfTicker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.xtf-tk-track{animation-duration:240s}}

/* ---- Thẻ tin nổi bật ---- */
.xtf-spot{background:#fff;border-radius:8px;padding:16px 20px;box-shadow:0 10px 30px rgba(0,0,0,.18),0 4px 8px rgba(0,0,0,.12);transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s;line-height:21px}
.xtf-spot.xtf-float{animation:xtfFloat 3.5s ease-in-out infinite}
.xtf-spot:hover{transform:translateY(-6px) scale(1.02) !important;box-shadow:0 18px 40px rgba(0,0,0,.22),0 8px 16px rgba(0,0,0,.14)}
.xtf-sp-kicker{color:#c9922a;font-weight:700;font-size:12px;letter-spacing:.5px;margin-bottom:6px}
.xtf-sp-title{display:block;color:var(--xtf-ink);font-weight:700;font-size:14px;line-height:1.4}
.xtf-sp-title:hover{text-decoration:underline}
.xtf-sp-meta{color:#999;font-size:12px;margin-top:6px}
.xtf-sp-meta a{color:#ab0000}
@keyframes xtfFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* ---- Tin tức & Thông báo (tab) ---- */
.xtf-tb-head{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px;margin-bottom:30px}
.xtf-tb-title{font-size:34px;line-height:38px;margin:0;font-weight:700;color:var(--xtf-ink);font-family:Roboto,Arial,sans-serif}
.xtf-tb-bar{width:60px;height:4px;background:var(--xtf-accent);border-radius:2px;margin-top:14px}
.xtf-tb-pills{display:flex;gap:10px;flex-wrap:wrap}
.xtf-pill{border:1px solid #ddd;background:#fff;padding:10px 22px;border-radius:30px;cursor:pointer;font-weight:600;font-size:14px;line-height:21px;color:var(--xtf-ink);font-family:inherit;transition:background .2s,color .2s,border-color .2s}
.xtf-pill:hover,.xtf-pill:focus{background:#fff;border-color:var(--xtf-accent);color:var(--xtf-ink);outline:0}
.xtf-pill.is-active,.xtf-pill.is-active:hover{background:var(--xtf-accent);border-color:var(--xtf-accent);color:#fff}
.xtf-tb-panel[hidden]{display:none}
.xtf-tb-body{display:flex;gap:30px;flex-wrap:wrap}
.xtf-tb-feat{flex:1 1 55%;min-width:300px;background:var(--xtf-card);box-shadow:0 6px 18px rgba(171,0,0,.10),0 2px 6px rgba(0,0,0,.06);align-self:flex-start}
.xtf-fc{background:var(--xtf-feat);border-radius:6px;overflow:hidden;position:relative}
.xtf-fc-img{display:block;width:100%;height:auto;max-width:100%}
.xtf-fc-noimg{width:100%;aspect-ratio:4/3;background:#e8e0d0}
.xtf-fc-body{padding:24px}
.xtf-meta{line-height:21px}
.xtf-cat{color:var(--xtf-accent);font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.5px}
.xtf-date{color:#999;font-size:13px;margin-left:10px}
.xtf-fc-title{font-size:26px;line-height:1.3;margin:14px 0;font-weight:400;font-family:Roboto,Arial,sans-serif}
.xtf-fc-title a{color:var(--xtf-ink)}
.xtf-fc-ex{color:#666;font-size:15px;line-height:1.6;margin:0 0 21px}
.xtf-tb-list{flex:1 1 38%;min-width:280px;display:flex;flex-direction:column;gap:22px;justify-content:space-between;align-self:stretch}
.xtf-li{background:var(--xtf-card);padding:16px 20px;box-shadow:0 6px 18px rgba(171,0,0,.10),0 2px 6px rgba(0,0,0,.06);position:relative}
.xtf-li-title{font-weight:700;font-size:15px;margin-top:6px;line-height:1.4}
.xtf-li-title a{color:var(--xtf-ink)}
.xtf-tabs a.xtf-stretch:hover{text-decoration:underline}
.xtf-stretch::after{content:"";position:absolute;inset:0;z-index:2}
.xtf-tb-more{margin-top:25px}
.xtf-tb-more a{display:inline-block;padding:6px 2px;color:#7a1f2b;font-weight:700;font-size:14px;line-height:21px}
.xtf-tb-more a:hover{text-decoration:underline}
.xtf-hover-yes .xtf-tb-feat,.xtf-hover-yes .xtf-li{transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s}
.xtf-hover-yes .xtf-tb-feat:hover,.xtf-hover-yes .xtf-li:hover{transform:perspective(1000px) translateY(-8px) rotateX(3deg) scale(1.02);box-shadow:0 18px 40px rgba(171,0,0,.16),0 8px 18px rgba(0,0,0,.10)}
.xtf-empty{color:#777;margin:0}
@media (max-width:767px){
  .xtf-tb-title{font-size:28px;line-height:34px}
  .xtf-fc-title{font-size:21px}
  .xtf-tb-feat,.xtf-tb-list{min-width:0;flex-basis:100%}
  .xtf-fc-body{padding:18px}
}

/* ---- Thẻ liên kết ---- */
.elementor-widget-xt_link_card{display:flex;flex-direction:column}
.elementor-widget-xt_link_card>.elementor-widget-container{flex:1 1 auto;display:flex;flex-direction:column}
.xtl{flex:1 1 auto;display:flex;align-items:center;gap:15px;box-sizing:border-box;background:#fff;border-radius:14px;padding:22px;text-decoration:none;text-align:left;
  box-shadow:0 6px 18px rgba(171,0,0,.10),0 2px 6px rgba(0,0,0,.06);transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s;font-family:Roboto,Arial,sans-serif}
.xtl.xtl-float{animation:xtlFloat 3.6s ease-in-out infinite}
.xtl:hover{transform:perspective(1000px) translateY(-10px) rotateX(4deg) scale(1.03) !important;box-shadow:0 18px 40px rgba(171,0,0,.16),0 8px 18px rgba(0,0,0,.10)}
@keyframes xtlFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.xtl-icon{flex:0 0 56px;width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:26px;line-height:1;color:#ab0000}
.xtl-text{flex:1;min-width:0}
.xtl-name{display:block;font-weight:700;font-size:17px;color:#22345c;line-height:1.3}
.xtl-desc{display:block;font-size:14px;color:#8a8a8a;margin-top:4px;line-height:21px}
.xtl-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.xtl-tag{display:inline-block;background:#f1e9fb;color:#5b3aa0;font-size:11px;font-weight:600;padding:3px 9px;border-radius:20px;line-height:1.4;white-space:nowrap}
.xtl-arrow{font-size:20px;color:#999;flex:0 0 auto;line-height:21px;transition:transform .25s ease,color .25s ease;display:inline-block}
.xtl:hover .xtl-arrow{color:#22345c;transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){.xtl.xtl-float,.xtf-spot.xtf-float{animation:none}}
