/* ================================================
   DCoHT New Theme - Red Bold
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

/* :root variables được inject từ themes/dcoht_new/_partial/meta.php
   Các biến màu được quản lý qua Admin → Cài đặt → Giao diện → Tùy chỉnh màu sắc */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lexend', sans-serif;
  color: var(--dark);
  background: var(--white);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { padding: 0 20px; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--sec-topbar-bg); linear-gradient(90deg, #1a0508 0%, #2d0a12 100%);
  color: rgba(255,255,255,0.75);
  font-size: 12px; padding: 8px 0;
  border-bottom: 2px solid var(--primary);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left a, .topbar-left span {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.72); font-size: 12px;
  transition: color 0.15s; white-space: nowrap;
}
.topbar-left a:hover { color: var(--accent); }
.topbar-left i { color: var(--accent); font-size: 11px; flex-shrink: 0; }
.topbar-right { display: flex; gap: 4px; align-items: center; }
.topbar-right a {
  color: rgba(255,255,255,0.72);
  font-size: 12px; transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 4px;
}
.topbar-right a:hover { color: white; background: rgba(255,255,255,0.08); }
.topbar-right .divider { color: rgba(255,255,255,0.15); padding: 0 2px; }
.btn-topbar {
  background: var(--primary) !important;
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-topbar:hover { background: var(--primary-light) !important; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 999;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 14px; }
.logo-badge {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Merriweather', serif;
  color: white; font-size: 20px; font-weight: 900;
  box-shadow: 0 4px 15px rgba(192,21,42,0.35);
  flex-shrink: 0;
}
.logo-info .name {
  font-size: 15.5px; font-weight: 800;
  color: var(--dark); line-height: 1.25;
  letter-spacing: -0.3px;
}
.logo-info .sub {
  font-size: 11px; color: var(--gray-light);
  margin-top: 2px; font-weight: 300;
}
.logo-info .tag {
  display: inline-block; margin-top: 3px;
  background: #FEF3C7; color: #92400E;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Header Search */
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-form {
  display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: 8px;
  overflow: hidden; transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
  border: none; outline: none; padding: 9px 14px;
  font-family: 'Lexend', sans-serif; font-size: 13.5px;
  width: 220px; background: transparent;
}
.search-form button {
  background: var(--primary); border: none;
  padding: 9px 15px; cursor: pointer; color: white;
  font-size: 14px; transition: background 0.2s;
}
.search-form button:hover { background: var(--primary-dark); }
.btn-tuyen-sinh {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 13px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(192,21,42,0.3);
  transition: all 0.2s;
}
.btn-tuyen-sinh:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(192,21,42,0.4);
}

/* ===== NAVBAR ===== */
.site-nav { background: var(--sec-nav-bg); position: relative; }
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.88);
  padding: 13px 17px;
  font-size: 13px; font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-item.active .nav-link {
  background: rgba(0,0,0,0.18);
  color: var(--accent-light);
}
.nav-link i { font-size: 9px; opacity: 0.65; }
.nav-home .nav-link { padding: 13px 16px; }

/* Dropdown cấp 2 */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 1000; overflow: visible;
}
.nav-item:hover > .dropdown { display: block; animation: dropIn 0.18s ease; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Link cấp 2 thường (không có con) */
.dropdown > a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px; font-size: 13px; color: var(--dark);
  border-bottom: 1px solid var(--border); transition: all 0.15s;
}
.dropdown > a::before {
  content: '›'; color: var(--primary); font-size: 18px;
  line-height: 1; font-weight: 700; flex-shrink: 0;
}
.dropdown > a:hover { background: #FFF5F5; color: var(--primary); padding-left: 22px; }

/* Cấp 2 có con — dùng div.has-sub */
.dropdown .has-sub {
  position: relative;
  border-bottom: 1px solid var(--border);
}
.dropdown .has-sub:last-child { border-bottom: none; }
.dropdown .has-sub > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; font-size: 13px; color: var(--dark);
  transition: all 0.15s; border-bottom: none;
}
.dropdown .has-sub > a::before {
  content: '›'; color: var(--primary); font-size: 18px;
  line-height: 1; font-weight: 700; flex-shrink: 0;
}
.dropdown .has-sub > a::after {
  content: '›'; color: var(--gray-light); font-size: 14px;
  margin-left: auto;
}
.dropdown .has-sub:hover > a { background: #FFF5F5; color: var(--primary); }

/* Submenu cấp 3 — mặc định ẩn */
.dropdown .submenu {
  display: none;
  position: absolute; left: 100%; top: -3px;
  background: white; min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  z-index: 1001;
}
/* Chỉ hiện khi hover vào has-sub */
.dropdown .has-sub:hover > .submenu { display: block; animation: dropIn 0.18s ease; }
.dropdown .submenu > a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 12.5px; color: var(--gray);
  border-bottom: 1px solid var(--border); transition: all 0.15s;
}
.dropdown .submenu > a:last-child { border-bottom: none; }
.dropdown .submenu > a::before {
  content: '›'; color: var(--primary); font-size: 16px; flex-shrink: 0;
}
.dropdown .submenu > a:hover { background: #FFF5F5; color: var(--primary); padding-left: 20px; }

/* ===== TICKER ===== */
.ticker-bar {
  background: #FFF8EC; border-bottom: 1px solid #FDDFA0;
  padding: 8px 0; overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; gap: 0; overflow: hidden; }
.ticker-label {
  background: var(--accent); color: var(--dark);
  font-size: 10.5px; font-weight: 800; padding: 3px 12px;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0;
  margin-right: 18px; text-transform: uppercase; letter-spacing: 1px;
}
.ticker-scroll { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; gap: 50px; white-space: nowrap;
  animation: scrollTicker 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.ticker-item::before { content: '•'; color: var(--primary); font-size: 16px; }
@keyframes scrollTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== HERO SLIDER ===== */
.hero-section { position: relative; overflow: hidden; height: 500px; }
.hero-slide {
  width: 100%;
  height: 500px;          /* khớp đúng với hero-section */
  position: relative;
  display: flex; align-items: stretch;
  background: var(--primary-dark);
  overflow: hidden;
  flex-shrink: 0;
}
.hero-bg { display: none; }
.hero-pattern { display: none; }

/* Gradient đỏ xuyên suốt từ trái sang phải trên toàn slide */
.hero-slide::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #8B0F1E     0%,
    #8B0F1E     35%,
    rgba(139,15,30,0.75) 50%,
    rgba(139,15,30,0.15) 65%,
    transparent 75%
  );
}

/* Nửa trái — vùng text */
.hero-content-wrap {
  position: relative; z-index: 2;
  width: 50%; flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 40px;
  background: transparent;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent-light); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero-eyebrow i { color: var(--accent); }
.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 42px; color: white; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.hero-title em { color: var(--accent-light); font-style: normal; }
.hero-desc {
  color: rgba(255,255,255,0.72); font-size: 15px;
  line-height: 1.75; margin-bottom: 30px; font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--accent); color: var(--dark);
  padding: 13px 28px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}
.btn-hero-outline {
  background: transparent; color: white;
  padding: 13px 28px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* Nửa phải — vùng ảnh, xếp cạnh text */
.hero-visual {
  flex: 1;
  height: 100%;           /* lấp đầy slide */
  position: relative;
  overflow: hidden; z-index: 0;
  background: var(--primary-dark);
}
.hero-visual-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-img {
  width: 100%;
  height: 100%;           /* lấp đầy hero-visual */
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-visual-icon { font-size: 180px; color: rgba(255,255,255,0.06); }
.hero-no-img-deco {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 40px;
  width: 100%; height: 100%;
}
.hero-no-img-deco i {
  font-size: 120px;
  color: rgba(255,255,255,0.08);
}
.hero-no-img-deco span {
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.12);
  text-align: center; max-width: 280px;
  line-height: 1.5;
}

/* Slider dots + nav */
.slider-nav {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 3;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.25s; border: none;
}
.slider-dot.active { background: var(--accent); width: 26px; border-radius: 4px; }

/* ===== STATS BAR ===== */
.stats-section { background: var(--sec-stats-bg); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-box {
  padding: 24px 16px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.stat-box:hover { background: rgba(255,255,255,0.03); }
.stat-box:last-child { border-right: none; }
.stat-number {
  font-size: 32px; font-weight: 800;
  color: var(--accent); line-height: 1;
  font-family: 'Merriweather', serif;
}
.stat-label {
  font-size: 11.5px; color: rgba(255,255,255,0.45);
  margin-top: 5px; text-transform: uppercase; letter-spacing: 1px;
}


/* ===== STATS ICON SECTION ===== */
.stats-icon-section { background: white; padding: 56px 0; }
.stats-icon-header { text-align: center; margin-bottom: 40px; }
.stats-icon-header h2 {
  font-size: 28px; font-weight: 800; color: var(--dark);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.stats-icon-header p { font-size: 14px; color: var(--gray); }
.stats-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 24px;
}
.stat-icon-box {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 12px;
}
.stat-icon-circle {
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; flex-shrink: 0;
  transition: transform 0.3s;
}
.stat-icon-box:hover .stat-icon-circle { transform: scale(1.07); }
a.stat-icon-box:hover .stat-icon-num { text-decoration: underline; }
a.stat-icon-box:hover .stat-icon-label { color: var(--primary); }
.stat-icon-num {
  font-size: 40px; font-weight: 800; line-height: 1;
  font-family: 'Merriweather', serif;
}
.stat-icon-label {
  font-size: 12px; font-weight: 700; color: var(--dark);
  text-transform: uppercase; letter-spacing: 1px; line-height: 1.4;
}

/* ===== SECTION COMMON ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--sec-training-bg); }
.section-header { margin-bottom: 38px; }
.section-header.center { text-align: center; }
.section-kicker {
  display: inline-block; color: var(--primary);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Merriweather', serif;
  font-size: 27px; color: var(--dark);
  letter-spacing: -0.5px; line-height: 1.3;
}
.section-title span { color: var(--primary); }
.section-bar {
  width: 48px; height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px; margin-top: 12px;
}
.section-header.center .section-bar { margin: 12px auto 0; }
.section-desc {
  color: var(--gray); font-size: 14px; margin-top: 10px;
  max-width: 560px; line-height: 1.7;
}
.section-header.center .section-desc { margin: 10px auto 0; }

.btn-viewall {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 13.5px;
  border: 1.5px solid var(--primary);
  padding: 8px 18px; border-radius: 7px;
  transition: all 0.2s; text-decoration: none; flex-shrink: 0;
}
.btn-viewall:hover { background: var(--primary); color: white; }
/* Layout flex: tiêu đề trái — nút phải */
.sec-head-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 34px;
}

/* ===== NEWS SECTION ===== */
.news-layout {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
/* Featured card */
.news-card-featured {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden; background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
  color: inherit; height: 100%;
}
.news-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.news-card-img {
  height: 300px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: transform 0.4s;
  image-rendering: -webkit-optimize-contrast;
}
.news-card-featured:hover .news-card-img img { transform: scale(1.04); }
.news-card-img-placeholder i { font-size: 64px; color: rgba(255,255,255,0.15); }
.news-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: white;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.5px;
}
.news-badge.hot { background: var(--accent); color: var(--dark); }
.news-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-body h3 {
  font-size: 16.5px; font-weight: 700; line-height: 1.5;
  color: var(--dark); margin-bottom: 9px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-body h3:hover { color: var(--primary); }
.news-card-body p {
  font-size: 13.5px; color: var(--gray); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-meta {
  display: flex; gap: 16px; margin-top: auto; padding-top: 14px;
  font-size: 12px; color: var(--gray-light);
}
.news-meta span { display: flex; align-items: center; gap: 5px; }
.news-meta i { color: var(--primary); }

/* News list */
.news-list-wrap {
  display: flex; flex-direction: column;
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.news-list-header {
  background: var(--primary); padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.news-list-header h3 { color: white; font-size: 14px; font-weight: 700; }
.news-list-header a { color: var(--accent-light); font-size: 12.5px; }
.news-list-item {
  display: flex; gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; color: inherit;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: #FFF5F5; }
.news-thumb {
  width: 80px; height: 64px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}
.news-thumb i { color: var(--gray-light); font-size: 20px; }
.news-info { flex: 1; }
.news-cat { font-size: 10.5px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.news-title {
  font-size: 13px; font-weight: 600; line-height: 1.5;
  margin: 3px 0 5px; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.news-list-item:hover .news-title { color: var(--primary); }
.news-date { font-size: 11.5px; color: var(--gray-light); display: flex; align-items: center; gap: 4px; }

/* ===== PROGRAMS SECTION ===== */
.programs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program-card {
  background: white; border-radius: var(--radius-lg);
  padding: 26px 22px;
  border: 1.5px solid var(--border);
  transition: all 0.25s; color: inherit;
  display: block;
}
.program-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(192,21,42,0.1);
  transform: translateY(-3px);
}
.prog-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: #FFF1F2;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--primary);
  margin-bottom: 16px; transition: all 0.25s;
}
.program-card:hover .prog-icon { background: var(--primary); color: white; }
.program-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.program-card p { font-size: 13px; color: var(--gray); line-height: 1.65; }
.prog-meta {
  margin-top: 14px; font-size: 12px;
  color: var(--primary); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  padding-top: 12px; border-top: 1px dashed var(--border);
}

/* ===== PROGRAMS FEATURED CARDS ===== */
.programs-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.prog-feat-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: white; border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: inherit; text-decoration: none;
  transition: all 0.3s;
}
.prog-feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(192,21,42,0.14);
}
.prog-feat-img {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  flex-shrink: 0;
}
.prog-feat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.prog-feat-card:hover .prog-feat-img img { transform: scale(1.06); }
.prog-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 14px;
}
.prog-feat-badge {
  font-size: 11px; font-weight: 600; color: white;
  background: rgba(192,21,42,0.85);
  padding: 3px 10px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
}
.prog-feat-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: rgba(255,255,255,0.18);
}
.prog-feat-body {
  padding: 22px 20px; display: flex;
  flex-direction: column; flex: 1; gap: 10px;
}
.prog-feat-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: #FFF1F2; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: all 0.25s; flex-shrink: 0;
}
.prog-feat-card:hover .prog-feat-icon { background: var(--primary); color: white; }
.prog-feat-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--dark); line-height: 1.4; margin: 0;
}
.prog-feat-body p {
  font-size: 13px; color: var(--gray);
  line-height: 1.7; flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.prog-feat-meta {
  display: flex; justify-content: flex-end;
  align-items: center; padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: auto;
}
.prog-feat-cta {
  color: var(--primary); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.prog-feat-card:hover .prog-feat-cta { gap: 10px; }

/* ===== ANNOUNCEMENTS ===== */
.announce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.announce-panel {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.announce-head {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.announce-head h3 {
  color: white; font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.announce-head h3 i { color: var(--accent-light); }
.announce-head a { color: var(--accent-light); font-size: 12px; }
.announce-body { padding: 4px 0; }
.announce-row {
  display: flex; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s; color: inherit;
  align-items: flex-start;
}
.announce-row:last-child { border-bottom: none; }
.announce-row:hover { background: #FFF5F5; }
.announce-date-box {
  min-width: 44px; text-align: center;
  background: var(--light); border-radius: 8px;
  padding: 5px 6px; flex-shrink: 0;
  border-top: 3px solid var(--primary);
}
.ann-day { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }
.ann-month { font-size: 10px; color: var(--gray); font-weight: 500; }
.announce-content { flex: 1; }
.ann-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 3px; margin-bottom: 3px;
}
.tag-hot { background: #FEE2E2; color: #B91C1C; }
.tag-new { background: #FEF3C7; color: #92400E; }
.ann-text {
  font-size: 13px; line-height: 1.55; color: var(--dark); font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== GALLERY ===== */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 175px 175px;
  gap: 10px;
}
.gallery-cell {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-cell:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-fill {
  width: 100%; height: 100%;
  transition: transform 0.35s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-cell:hover .gallery-fill { transform: scale(1.06); }
.g1 { background: linear-gradient(135deg, #7A0E1C, #C0152A); }
.g2 { background: linear-gradient(135deg, #134E7A, #1A7ABF); }
.g3 { background: linear-gradient(135deg, #1A5C35, #2D9E5F); }
.g4 { background: linear-gradient(135deg, #5B4A8A, #8B6AAF); }
.g5 { background: linear-gradient(135deg, #7A4A0E, #C07A1A); }
.gallery-fill i { font-size: 44px; color: rgba(255,255,255,0.15); }
.gallery-cell { cursor: pointer; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-cell:hover .gallery-overlay { opacity: 1; }
.gallery-zoom-icon {
  font-size: 28px; color: white;
  background: rgba(192,21,42,0.85);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  transform: scale(0.8); transition: transform 0.25s;
}
.gallery-cell:hover .gallery-zoom-icon { transform: scale(1); }
.gallery-caption {
  color: white; font-size: 13px; font-weight: 600;
  text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  position: absolute; bottom: 12px; left: 10px; right: 10px;
}
.gallery-hidden { display: none; }
.gallery-count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.45); color: white;
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  display: none;
}
.gallery-cell:first-child .gallery-count { display: block; }

/* ===== PARTNERS ===== */
/* ===== PARTNER SLIDER ===== */
.partner-section { overflow: hidden; }
.partner-track-wrap {
  width: 100%; overflow: hidden;
  /* fade trái phải */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partner-track {
  display: flex; align-items: center; gap: 20px;
  width: max-content;
  animation: partner-scroll 30s linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
@keyframes partner-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partner-card {
  flex-shrink: 0;
  width: 150px; height: 70px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 14px; text-decoration: none;
  transition: all 0.25s;
}
.partner-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(192,21,42,0.12);
  transform: translateY(-3px);
}
.partner-card img {
  max-width: 100%; max-height: 44px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s;
}
.partner-card:hover img { filter: none; }
.partner-card span {
  font-size: 12px; font-weight: 700;
  color: var(--gray); text-align: center;
  transition: color 0.2s;
}
.partner-card:hover span { color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer { background: var(--sec-footer-bg); color: rgba(255,255,255,0.6); padding: 56px 0 0; }
.footer-col-brand { grid-column: span 1; }
.footer-logo-wrap {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-bottom: 16px;
}
.footer-empty-hint {
  font-size: 11px; color: rgba(255,255,255,0.25);
  font-style: italic;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 44px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-badge { width: 50px; height: 50px; font-size: 17px; }
.footer-logo .name { color: white; font-size: 15px; font-weight: 700; }
.footer-logo .sub { font-size: 11px; color: rgba(255,255,255,0.4); }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.social-row { display: flex; gap: 8px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 14px;
  transition: all 0.2s;
}
.soc-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-col h4 {
  font-size: 12px; font-weight: 800; color: white;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.55);
  display: flex; align-items: flex-start; gap: 8px;
  transition: color 0.2s;
}
.footer-links a::before { content: '›'; color: var(--accent); font-size: 16px; line-height: 1.3; flex-shrink: 0; }
.footer-links a:hover { color: var(--accent-light); }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; }
.contact-list i { color: var(--accent); margin-top: 1px; flex-shrink: 0; width: 14px; }
.footer-bottom {
  padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--accent); }

/* ===== CONTENT PAGES (Articles, etc.) ===== */
.page-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 28px; padding: 36px 0;
}
.page-layout.full { grid-template-columns: 1fr; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Breadcrumb */
ul#breadcrumb {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap; margin-bottom: 22px;
  font-size: 12.5px;
}
ul#breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--gray); }
ul#breadcrumb li::after { content: '/'; margin-left: 6px; color: var(--border); }
ul#breadcrumb li:last-child::after { display: none; }
ul#breadcrumb li:last-child { color: var(--dark); font-weight: 500; }
ul#breadcrumb a { color: var(--primary); }
ul#breadcrumb a:hover { text-decoration: underline; }

/* Article list */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
  display: flex; gap: 18px; background: white;
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
  color: inherit;
}
.article-item:hover { box-shadow: var(--shadow-md); }
.article-thumb {
  width: 130px; height: 95px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: var(--light);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
.article-info h3 a { color: var(--dark); transition: color 0.15s; }
.article-info h3 a:hover { color: var(--primary); }
.article-info p { font-size: 13px; color: var(--gray); line-height: 1.65; }
.article-date { font-size: 12px; color: var(--gray-light); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.article-date i { color: var(--primary); }

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 6px;
  margin-top: 28px; justify-content: center;
}
.pagination a, .pagination .current, .pagination .dots {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; transition: all 0.2s;
}
.pagination a { background: white; color: var(--dark); border: 1.5px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: white; border: 1.5px solid var(--primary); }
.pagination .dots { color: var(--gray); border: none; background: none; }
.pagination .prev, .pagination .next { font-size: 16px; }

/* Sidebar blocks */
.sidebar-block {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.sidebar-block-head {
  background: var(--primary); padding: 12px 16px;
  font-size: 13px; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-block-head i { color: var(--accent-light); }
.sidebar-block-body { padding: 6px 0; }
.sidebar-link {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--dark); transition: all 0.15s;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { background: #FFF5F5; color: var(--primary); padding-left: 20px; }
.sidebar-link::before { content: '›'; color: var(--primary); font-size: 16px; line-height: 1.4; flex-shrink: 0; }

/* Detail page */
.detail-header { margin-bottom: 22px; }
.detail-title { font-family: 'Merriweather', serif; font-size: 24px; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--gray); flex-wrap: wrap; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-meta i { color: var(--primary); }
.detail-body { font-size: 15px; line-height: 1.85; color: #374151; }
.detail-body p { margin-bottom: 16px; }
.detail-body h2 { font-size: 19px; font-weight: 700; margin: 24px 0 12px; color: var(--dark); }
.detail-body h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.detail-body img { border-radius: 8px; margin: 16px 0; max-width: 100%; }
.detail-body ul, .detail-body ol { padding-left: 20px; margin-bottom: 16px; }
.detail-body li { margin-bottom: 6px; }
.detail-body a { color: var(--primary); text-decoration: underline; }
.detail-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 18px; margin: 18px 0;
  background: #FFF5F5; border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--gray);
}

/* ===== STATISTICS WIDGET ===== */
.stats-widget .sidebar-block-body { padding: 12px 16px; }
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--gray); display: flex; align-items: center; gap: 7px; }
.stat-row-label i { color: var(--primary); width: 14px; }
.stat-row-value { font-weight: 700; color: var(--dark); }
.stat-row-value.online { color: var(--primary); }


/* ============================================================
   MEGA MENU DESKTOP
   ============================================================ */
.nav-item-mega { position: static !important; }

.mega-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  border-top: 3px solid var(--accent);
  z-index: 2000;
  max-height: 75vh; overflow-y: auto;
}
.mega-menu.open { display: block; animation: dropIn .2s ease; }

.mega-menu-inner {
  display: flex; flex-wrap: wrap; gap: 0;
  padding: 20px 0;
}
.mega-col {
  flex: 0 0 220px; min-width: 0;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }
.mega-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}
.mega-link-l1 {
  display: block; padding: 5px 0;
  font-size: 13px; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mega-link-l1:hover { color: var(--primary); }
.mega-link-l2 {
  display: block; padding: 4px 0 4px 10px;
  font-size: 12.5px; color: var(--gray);
  transition: color .15s;
}
.mega-link-l2:hover { color: var(--primary); }
.mega-link-l3 {
  display: block; padding: 3px 0 3px 20px;
  font-size: 12px; color: var(--gray-light);
  transition: color .15s;
}
.mega-link-l3:hover { color: var(--primary); }

/* ============================================================
   FAB BUTTON MOBILE
   ============================================================ */
.fab-cat-btn {
  display: none; /* Ẩn trên desktop */
  position: fixed; right: 16px; bottom: 72px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer; z-index: 1200;
  box-shadow: 0 4px 16px rgba(192,0,0,0.4);
  font-size: 18px;
  align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.fab-cat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(192,0,0,0.5); }
.fab-cat-btn:active { transform: scale(0.95); }

/* Drawer overlay */
.cat-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 1299;
}
.cat-drawer-overlay.open { display: block; }

/* Drawer panel */
.cat-drawer {
  position: fixed; top: 0; right: -320px; bottom: 0;
  width: 300px; background: white; z-index: 1300;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cat-drawer.open { right: 0; }

.cat-drawer-head {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--primary); color: white;
  padding: 14px 16px; font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.cat-drawer-close {
  background: none; border: none; color: white;
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 0 2px;
}
.cat-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}

/* Group label */
.cat-drawer-group {
  font-size: 10.5px; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.cat-drawer-group:first-child { border-top: none; margin-top: 0; }

/* Cấp 1 */
.cat-drawer-link-l1,
.cat-drawer-toggle {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.cat-drawer-link-l1:hover,
.cat-drawer-toggle:hover { background: #FFF5F5; color: var(--primary); }
.cat-drawer-chev {
  font-size: 10px; color: var(--gray-light);
  transition: transform .22s ease; flex-shrink: 0;
}
.cat-drawer-toggle.open .cat-drawer-chev { transform: rotate(90deg); }

/* Submenu cấp 2 */
.cat-drawer-sub {
  display: none; background: var(--light);
}
.cat-drawer-sub.open { display: block; }

.cat-drawer-link-l2,
.cat-drawer-toggle-l2 {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 28px;
  font-size: 13px; font-weight: 500; color: var(--gray);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.cat-drawer-link-l2:hover,
.cat-drawer-toggle-l2:hover { background: #FFF5F5; color: var(--primary); }

/* Submenu cấp 3 */
.cat-drawer-sub-l3 { background: #f0f0f0; }
.cat-drawer-link-l3 {
  display: block;
  padding: 7px 16px 7px 44px;
  font-size: 12.5px; color: var(--gray-light);
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none; transition: color .15s;
}
.cat-drawer-link-l3:hover { color: var(--primary); }

/* Hiện FAB chỉ trên mobile */
@media (max-width: 768px) {
  .fab-cat-btn { display: flex; }
  .mega-menu, .nav-item-mega { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .topbar-left { display: none; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-form input { width: 160px; }
  .nav-list { flex-wrap: wrap; }
  .hero-title { font-size: 28px; }
  .hero-section { padding: 0; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .programs-featured-grid { grid-template-columns: 1fr; }
  .announce-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-cell:first-child { grid-column: span 2; }
  .page-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn-tuyen-sinh { display: none; }
}

/* ===== CONTENT HEADER ===== */
.content-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.section-kicker i { margin-right: 5px; }
.cat-desc { color: var(--gray); font-size: 14px; margin-top: 10px; line-height: 1.7; }
.total-badge {
  background: var(--light); border: 1.5px solid var(--border);
  color: var(--gray); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.total-badge i { color: var(--primary); }

/* ===== ARTICLE LIST ===== */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-item {
  display: flex; gap: 16px; background: white;
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all 0.2s; color: inherit; align-items: flex-start;
}
.article-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(192,21,42,0.08);
  transform: translateX(3px);
}
.article-thumb {
  width: 120px; height: 88px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; background: var(--light);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-item:hover .article-thumb img { transform: scale(1.05); }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFF1F2, #FFE4E6);
}
.thumb-placeholder i { color: var(--primary); opacity: 0.3; font-size: 28px; }
.article-info { flex: 1; min-width: 0; }
.art-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.art-badge.hot { background: #FEE2E2; color: #B91C1C; }
.art-badge.new { background: #FEF3C7; color: #92400E; }
.article-info h3 {
  font-size: 15px; font-weight: 700; line-height: 1.5;
  color: var(--dark); margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.article-item:hover .article-info h3 { color: var(--primary); }
.article-info p {
  font-size: 13px; color: var(--gray); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;
}
.article-date { display: flex; gap: 14px; font-size: 12px; color: var(--gray-light); }
.article-date span { display: flex; align-items: center; gap: 4px; }
.article-date i { color: var(--primary); }
.article-arrow {
  color: var(--border); font-size: 13px; flex-shrink: 0;
  align-self: center; transition: all 0.2s;
}
.article-item:hover .article-arrow { color: var(--primary); transform: translateX(3px); }

/* ===== PAGINATION ===== */
.pagination-wrap {
  margin-top: 28px; display: flex;
  align-items: center; justify-content: center; gap: 6px;
}
.pagination-wrap a, .pagination-wrap .current,
.pagination-wrap .prev, .pagination-wrap .next {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; padding: 0 10px;
  transition: all 0.2s;
}
.pagination-wrap a {
  background: white; color: var(--dark);
  border: 1.5px solid var(--border);
}
.pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap .current {
  background: var(--primary); color: white;
  border: 1.5px solid var(--primary);
}
.pagination-wrap .prev, .pagination-wrap .next { font-size: 16px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 70px 20px; color: var(--gray);
}
.empty-state i { font-size: 52px; opacity: 0.2; display: block; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* ===== DETAIL PAGE ===== */
.detail-wrap { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.detail-cat-tag {
  display: inline-block; background: #FFF1F2;
  color: var(--primary); font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.detail-title {
  font-family: 'Merriweather', serif;
  font-size: 26px; line-height: 1.4; color: var(--dark);
  margin-bottom: 14px; letter-spacing: -0.3px;
}
.detail-meta { display: flex; gap: 18px; font-size: 13px; color: var(--gray-light); flex-wrap: wrap; margin-bottom: 20px; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-meta i { color: var(--primary); }
.detail-featured-img {
  margin-bottom: 24px; border-radius: var(--radius);
  overflow: hidden; max-height: 420px;
}
.detail-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary {
  background: var(--light); border-left: 4px solid var(--primary);
  padding: 14px 18px; border-radius: 0 8px 8px 0;
  font-size: 14.5px; color: var(--gray); line-height: 1.8;
  margin-bottom: 24px; font-style: italic;
}
.detail-body {
  font-size: 15.5px; line-height: 1.9; color: #374151;
}
.detail-body p { margin-bottom: 16px; }
.detail-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--dark); border-left: 3px solid var(--primary); padding-left: 12px; }
.detail-body h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--dark); }
.detail-body img { border-radius: 8px; margin: 16px auto; max-width: 100%; display: block; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin-bottom: 16px; }
.detail-body li { margin-bottom: 7px; }
.detail-body a { color: var(--primary); text-decoration: underline; }
.detail-body blockquote {
  border-left: 4px solid var(--primary); padding: 14px 20px;
  margin: 20px 0; background: #FFF5F5;
  border-radius: 0 8px 8px 0; font-style: italic; color: var(--gray);
}
.detail-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.detail-body table th, .detail-body table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; }
.detail-body table th { background: var(--primary); color: white; font-weight: 600; }
.detail-body table tr:nth-child(even) { background: var(--light); }

/* File đính kèm */
.detail-files { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-files h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.detail-files ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.detail-files a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 13.5px;
  background: #FFF1F2; padding: 8px 14px; border-radius: 6px;
  transition: background 0.2s;
}
.detail-files a:hover { background: #FFE4E6; }

/* Share */
.detail-share {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.detail-share span { font-size: 13.5px; font-weight: 600; color: var(--gray); }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 7px;
  font-size: 13px; font-weight: 600; transition: all 0.2s;
}
.share-btn.fb { background: #1877F2; color: white; }
.share-btn.fb:hover { background: #1565C0; }
.share-btn.zalo { background: #0068FF; color: white; }
.share-btn.zalo:hover { background: #0052CC; }

/* Related */
.related-section { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.related-title {
  font-size: 16px; font-weight: 700; margin-bottom: 18px;
  color: var(--dark); border-left: 3px solid var(--primary); padding-left: 12px;
  display: flex; align-items: center; gap: 8px;
}
.related-title i { color: var(--primary); }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related-card {
  display: flex; gap: 12px; color: inherit;
  transition: all 0.15s; border-radius: 8px; padding: 8px;
  border: 1.5px solid transparent;
}
.related-card:hover { border-color: var(--primary); background: #FFF5F5; }
.related-thumb {
  width: 80px; height: 62px; border-radius: 7px;
  overflow: hidden; flex-shrink: 0; background: var(--light);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; }
.related-name {
  font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.related-card:hover .related-name { color: var(--primary); }
.related-date { font-size: 11.5px; color: var(--gray-light); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--dark); font-size: 22px; cursor: pointer; padding: 4px;
}
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1100;
}
.mobile-overlay.open { display: block; }
.mobile-nav {
  position: fixed; top: 0; left: -300px;
  width: 285px; height: 100vh; overflow-y: auto;
  background: white; z-index: 1200;
  transition: left 0.3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.mobile-nav.open { left: 0; }
.mobile-toplinks {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.mobile-toplinks a {
  flex: 1; min-width: 50%; padding: 10px 14px;
  font-size: 12.5px; color: #555; text-decoration: none;
  border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 6px;
}
.mobile-toplinks a:hover { color: var(--primary); background: #fff5f5; }
.mobile-toplinks a i { font-size: 12px; color: var(--primary); }

.mobile-nav-head {
  background: var(--primary); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav-head .logo-text .name { color: white; font-size: 14px; }
.mobile-nav-head .logo-text .sub { color: rgba(255,255,255,0.6); font-size: 11px; }
.mobile-close {
  background: none; border: none; color: white;
  font-size: 20px; cursor: pointer; padding: 4px;
}
.mobile-menu-list { padding: 8px 0; }
.mobile-menu-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; font-size: 14px; font-weight: 500; color: var(--dark);
  border-bottom: 1px solid var(--border); transition: all 0.15s;
}
.mobile-menu-list a:hover { background: #FFF5F5; color: var(--primary); }
.mobile-menu-list .sub-toggle {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu-list .sub-toggle i.fa-chevron-right {
  font-size: 11px; color: var(--gray-light);
  transition: transform 0.25s ease;
  margin-left: auto;
}
.mobile-menu-list .sub-toggle.open i.fa-chevron-right { transform: rotate(90deg); }
.mobile-submenu {
  display: none;
  background: var(--light);
  border-left: 3px solid var(--primary);
  margin-left: 16px;
}
.mobile-submenu.open { display: block; animation: slideDown .2s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Cấp 2 */
.mobile-sub-l1 { margin-left: 0; border-left: 3px solid var(--primary); }
.mobile-sub-l1 > a { padding-left: 28px; font-size: 13.5px; }
/* Cấp 3 — thụt vào thêm, màu nhạt hơn */
.mobile-sub-l2 {
  margin-left: 12px;
  border-left: 2px solid rgba(192,0,0,0.3);
  background: rgba(0,0,0,0.03);
}
.mobile-sub-l2 > a {
  padding-left: 36px !important;
  font-size: 13px !important;
  color: var(--gray) !important;
}
.mobile-sub-l2 > a::before { content: '–'; margin-right: 6px; color: var(--primary); }
/* Sub-toggle cấp 2 */
.sub-toggle-l2 {
  padding-left: 28px;
  font-size: 13.5px;
  background: rgba(0,0,0,0.02);
}
.mobile-submenu a {
  padding: 11px 20px 11px 36px;
  font-size: 13px; font-weight: 400; color: var(--gray);
}
.mobile-submenu a::before { content: '›'; margin-right: 6px; color: var(--primary); }


/* ============================================================
   MEGA MENU DESKTOP
   ============================================================ */
.nav-item-mega { position: static !important; }

.mega-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  border-top: 3px solid var(--accent);
  z-index: 2000;
  max-height: 75vh; overflow-y: auto;
}
.mega-menu.open { display: block; animation: dropIn .2s ease; }

.mega-menu-inner {
  display: flex; flex-wrap: wrap; gap: 0;
  padding: 20px 0;
}
.mega-col {
  flex: 0 0 220px; min-width: 0;
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: none; }
.mega-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}
.mega-link-l1 {
  display: block; padding: 5px 0;
  font-size: 13px; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mega-link-l1:hover { color: var(--primary); }
.mega-link-l2 {
  display: block; padding: 4px 0 4px 10px;
  font-size: 12.5px; color: var(--gray);
  transition: color .15s;
}
.mega-link-l2:hover { color: var(--primary); }
.mega-link-l3 {
  display: block; padding: 3px 0 3px 20px;
  font-size: 12px; color: var(--gray-light);
  transition: color .15s;
}
.mega-link-l3:hover { color: var(--primary); }

/* ============================================================
   FAB BUTTON MOBILE
   ============================================================ */
.fab-cat-btn {
  display: none; /* Ẩn trên desktop */
  position: fixed; right: 16px; bottom: 72px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; cursor: pointer; z-index: 1200;
  box-shadow: 0 4px 16px rgba(192,0,0,0.4);
  font-size: 18px;
  align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.fab-cat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(192,0,0,0.5); }
.fab-cat-btn:active { transform: scale(0.95); }

/* Drawer overlay */
.cat-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 1299;
}
.cat-drawer-overlay.open { display: block; }

/* Drawer panel */
.cat-drawer {
  position: fixed; top: 0; right: -320px; bottom: 0;
  width: 300px; background: white; z-index: 1300;
  box-shadow: -4px 0 24px rgba(0,0,0,0.18);
  transition: right .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cat-drawer.open { right: 0; }

.cat-drawer-head {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--primary); color: white;
  padding: 14px 16px; font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.cat-drawer-close {
  background: none; border: none; color: white;
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 0 2px;
}
.cat-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0;
}

/* Group label */
.cat-drawer-group {
  font-size: 10.5px; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.cat-drawer-group:first-child { border-top: none; margin-top: 0; }

/* Cấp 1 */
.cat-drawer-link-l1,
.cat-drawer-toggle {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--dark);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.cat-drawer-link-l1:hover,
.cat-drawer-toggle:hover { background: #FFF5F5; color: var(--primary); }
.cat-drawer-chev {
  font-size: 10px; color: var(--gray-light);
  transition: transform .22s ease; flex-shrink: 0;
}
.cat-drawer-toggle.open .cat-drawer-chev { transform: rotate(90deg); }

/* Submenu cấp 2 */
.cat-drawer-sub {
  display: none; background: var(--light);
}
.cat-drawer-sub.open { display: block; }

.cat-drawer-link-l2,
.cat-drawer-toggle-l2 {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 28px;
  font-size: 13px; font-weight: 500; color: var(--gray);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.cat-drawer-link-l2:hover,
.cat-drawer-toggle-l2:hover { background: #FFF5F5; color: var(--primary); }

/* Submenu cấp 3 */
.cat-drawer-sub-l3 { background: #f0f0f0; }
.cat-drawer-link-l3 {
  display: block;
  padding: 7px 16px 7px 44px;
  font-size: 12.5px; color: var(--gray-light);
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none; transition: color .15s;
}
.cat-drawer-link-l3:hover { color: var(--primary); }

/* Hiện FAB chỉ trên mobile */
@media (max-width: 768px) {
  .fab-cat-btn { display: flex; }
  .mega-menu, .nav-item-mega { display: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Topbar: ẩn trên mobile - hiện trong mobile nav */
  .topbar { display: none; }
  /* Header */
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-form { display: none; }
  .btn-tuyen-sinh { display: none; }
  .mobile-menu-btn { display: block; }
  .site-nav { display: none; }
  .ticker-bar { display: none; }
  /* Banner mobile: hiện hình full width thay vì 2 cột */
  .hero-section { height: auto; }
  .hero-slide {
    flex-direction: column;
    height: auto;
  }
  /* Mobile: ẩn gradient overlay — chỉ hiện ảnh full */
  .hero-slide::before { display: none; }
  .hero-content-wrap {
    width: 100%; padding: 20px 16px 24px;
    order: 2;
    background: var(--primary-dark);   /* nền đỏ tối thay cho gradient */
  }
  .hero-visual {
    display: block !important;
    width: 100%;
    height: auto;                       /* chiều cao tự nhiên theo ảnh */
    order: 1; flex-shrink: 0;
  }
  .hero-img {
    width: 100%; height: auto;
    max-height: 260px; object-fit: cover;
    object-position: center top;
  }
  .hero-visual-inner { height: 200px; display: flex; align-items: center; justify-content: center; }
  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 13px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; justify-content: center; }
  /* Layout */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .programs-featured-grid { grid-template-columns: 1fr; }
  .announce-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-cell:first-child { grid-column: span 2; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-thumb { width: 90px; height: 70px; }
  .detail-wrap { padding: 20px 16px; }
  .detail-title { font-size: 21px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 24px; }
  .section-title { font-size: 22px; }
  .article-item { flex-direction: column; }
  .article-thumb { width: 100%; height: 160px; }
  .gallery-mosaic { grid-template-columns: 1fr; }
  .gallery-cell:first-child { grid-column: span 1; }
}


/* ============================================================
   TRAINING LIST  (tl-*)
   ============================================================ */
.tl-wrap { background: #f4f6f9; padding-bottom: 50px; }

.tl-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 28px 0 26px;
  margin-bottom: 36px;
}
.tl-hero ul#breadcrumb li { color: rgba(255,255,255,.72); }
.tl-hero ul#breadcrumb li:last-child { color: #fff; font-weight: 600; }
.tl-hero ul#breadcrumb a { color: rgba(255,255,255,.8); }
.tl-hero ul#breadcrumb li::after { color: rgba(255,255,255,.35); }
.tl-hero-title {
  font-size: 28px; font-weight: 900; color: #fff;
  margin: 10px 0 8px; line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.tl-hero-desc { font-size: 14.5px; color: rgba(255,255,255,.88); max-width: 600px; line-height: 1.6; }

.tl-container { padding-top: 8px; }

/* Nhóm ngành */
.tl-group { margin-bottom: 44px; }
.tl-group-header { margin-bottom: 18px; }
.tl-group-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 7px; }
.tl-group-bar { width: 42px; height: 3px; background: var(--primary); border-radius: 2px; }

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.tl-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  text-decoration: none; color: inherit;
  border: 2px solid transparent;
}
.tl-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #FECACA; transform: translateY(-3px);
}
.tl-card-thumb {
  position: relative; width: 100%; padding-bottom: 66%;
  overflow: hidden; background: #f0f4f8;
}
.tl-card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tl-card:hover .tl-card-thumb img { transform: scale(1.07); }
.tl-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #CBD5E1; }
.tl-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(192,21,42,.7) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 12px;
  opacity: 0; transition: opacity .25s;
}
.tl-card:hover .tl-card-overlay { opacity: 1; }
.tl-card-cta { color: #fff; font-size: 12px; font-weight: 700; }
.tl-card-cta i { margin-left: 4px; }
.tl-card-body { padding: 14px 14px 16px; }
.tl-card-name { font-size: 13.5px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 5px; }
.tl-card:hover .tl-card-name { color: var(--primary); }
.tl-card-desc { font-size: 12px; color: var(--gray); line-height: 1.55; }

/* Flat grid (ảnh to, label overlay — giống FPT) */
.tl-flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 8px 0 40px;
}
.tl-flat-card {
  display: block; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
  border: 2px solid transparent;
}
.tl-flat-card:hover { box-shadow: var(--shadow-md); border-color: #FECACA; transform: translateY(-4px); }
.tl-flat-thumb {
  position: relative; padding-bottom: 72%;
  background: var(--dark); overflow: hidden;
}
.tl-flat-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .82; transition: transform .4s, opacity .3s;
}
.tl-flat-card:hover .tl-flat-thumb img { transform: scale(1.06); opacity: .68; }
.tl-flat-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 50px; color: rgba(255,255,255,.2); }
.tl-flat-label {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.88) 0%, rgba(26,26,46,.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px;
}
.tl-flat-label h3 {
  font-size: 15px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .06em;
  line-height: 1.3; text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.tl-empty { text-align: center; padding: 80px 20px; color: #CBD5E1; }
.tl-empty i { font-size: 52px; display: block; margin-bottom: 14px; }


/* ============================================================
   TRAINING DETAIL  (td-*)
   ============================================================ */
.td-wrap { background: #f4f6f9; }

/* Hero */
.td-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-size: cover; background-position: center top;
  min-height: 320px;
  display: flex; align-items: flex-end;
}
.td-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,26,46,.92) 0%, rgba(26,26,46,.6) 55%, rgba(26,26,46,.35) 100%);
}
.td-hero-inner { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 36px; }
.td-hero ul#breadcrumb li { color: rgba(255,255,255,.68); }
.td-hero ul#breadcrumb li:last-child { color: #fff; }
.td-hero ul#breadcrumb a { color: rgba(255,255,255,.78); }
.td-hero ul#breadcrumb li::after { color: rgba(255,255,255,.3); }
.td-hero-content { max-width: 660px; margin-top: 10px; }
.td-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #FCD34D; margin-bottom: 11px;
}
.td-hero-title {
  font-size: 32px; font-weight: 900; color: #fff;
  line-height: 1.22; margin-bottom: 11px;
  text-shadow: 0 3px 12px rgba(0,0,0,.3);
}
.td-hero-sub { font-size: 14.5px; color: rgba(255,255,255,.84); line-height: 1.65; margin-bottom: 22px; max-width: 540px; }
.td-hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }

/* Buttons */
.td-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all .18s;
}
.td-btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.td-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.td-btn--outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.td-btn--outline:hover { background: rgba(255,255,255,.22); }
.td-btn--full { width: 100%; justify-content: center; }

/* Layout */
.td-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; padding: 28px 0 50px; align-items: start; }
.td-main,.td-sidebar { min-width: 0; }

/* Tabs */
.td-tabs {
  display: flex; gap: 4px;
  background: #fff; border-radius: var(--radius);
  padding: 5px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.td-tab {
  flex: 1; padding: 9px 12px; border: none;
  background: transparent; border-radius: 7px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--gray); transition: all .18s; white-space: nowrap;
}
.td-tab:hover { background: #FFF5F5; color: var(--primary); }
.td-tab.active { background: var(--primary); color: #fff; }
.td-tab-content { display: none; }
.td-tab-content.active { display: block; }

.td-content-body {
  background: #fff; border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  font-size: 14.5px; line-height: 1.8; color: #374151;
}
.td-content-body h2,.td-content-body h3 { color: var(--dark); margin: 18px 0 10px; }
.td-content-body ul { padding-left: 20px; margin: 10px 0; }
.td-content-body li { margin-bottom: 6px; }
.td-content-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.td-empty-tab { background: #fff; border-radius: var(--radius); padding: 50px 20px; text-align: center; color: var(--gray-light); font-size: 14px; }

/* Career list */
.td-career-body { }
.td-career-list { list-style: none; margin: 0; padding: 0; }
.td-career-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #F3F4F6;
  font-size: 14px; color: #374151; line-height: 1.5;
}
.td-career-list li:last-child { border-bottom: none; }
.td-career-list li i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* Gallery */
.td-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px; background: #fff; border-radius: var(--radius); padding: 14px;
}
.td-gallery-item { border-radius: 7px; overflow: hidden; display: block; }
.td-gallery-item img { width: 100%; height: 110px; object-fit: cover; display: block; transition: transform .3s; }
.td-gallery-item:hover img { transform: scale(1.07); }

/* Register form */
.td-register {
  background: #fff; border-radius: var(--radius);
  padding: 28px 26px; margin-top: 18px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.td-register-icon { font-size: 34px; color: var(--primary); margin-bottom: 8px; }
.td-register-title { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.td-register-sub { font-size: 13px; color: var(--gray); margin-bottom: 22px; }
.td-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; text-align: left; }
.td-form-group label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.req { color: var(--primary); }
.td-form-group input {
  width: 100%; padding: 9px 12px; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 13.5px; color: var(--dark); transition: border-color .18s;
}
.td-form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(192,21,42,.08); }
.td-form-group input[readonly] { background: #f8f9fa; color: var(--gray); }
.td-form-note { font-size: 12px; color: var(--gray-light); margin-top: 12px; }
.td-form-note i { margin-right: 4px; }

/* Sidebar cards */
.td-info-card,.td-related-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.td-card-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 12px 16px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.td-info-list { padding: 6px 0; margin: 0; list-style: none; }
.td-info-list li {
  padding: 9px 16px; font-size: 13px; color: #374151;
  display: flex; align-items: flex-start; gap: 10px;
  border-bottom: 1px solid #F3F4F6;
}
.td-info-list li:last-child { border-bottom: none; }
.td-info-list li > i { color: var(--primary); width: 14px; flex-shrink: 0; margin-top: 2px; }
.td-info-list li span { font-weight: 600; color: #6B7280; margin-right: 3px; }

.td-related-list { padding: 6px 0; }
.td-related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; text-decoration: none;
  color: var(--dark); font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.td-related-item:hover { background: #FFF5F5; color: var(--primary); }
.td-related-thumb { width: 50px; height: 38px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f4f8; }
.td-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.td-related-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #CBD5E1; }

/* Responsive */
@media (max-width: 900px) {
  .td-layout { grid-template-columns: 1fr; }
  .td-hero-title { font-size: 26px; }
}
@media (max-width: 640px) {
  .td-form-row { grid-template-columns: 1fr; }
  .td-hero-title { font-size: 22px; }
  .td-hero { min-height: 250px; }
  .tl-flat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .td-tabs { flex-wrap: wrap; }
  .td-tab { flex: none; }
}


/* ============================================================
   CAREER SECTION — slider ngành nghề (trang chủ)
   ============================================================ */
.career-section { padding: 60px 0 0; background: var(--sec-career-bg); }

.career-header { text-align: center; margin-bottom: 40px; }
.career-main-title {
  font-size: 38px; font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15; margin-bottom: 12px;
  /* Gradient chữ cam-xanh như FPT */
  background: linear-gradient(90deg, var(--primary) 0%, #E05C00 50%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.career-main-desc { font-size: 15px; color: var(--gray); }

/* Slider wrapper */
.career-slider-wrap {
  position: relative;
  display: flex; align-items: stretch;
  overflow: hidden;
}
.career-slider-viewport {
  overflow: hidden; flex: 1;
}
.career-slider-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  align-items: stretch;
}

/* Card ngành */
.career-card {
  flex: 0 0 calc(100% / 3);
  min-width: calc(100% / 3);
  display: flex; flex-direction: column;
  border-right: 1px solid #f0f0f0;
}
.career-card:last-child { border-right: none; }
.career-card-img {
  width: 100%; height: 260px;
  overflow: hidden; background: #e8e8e8;
  flex-shrink: 0;
}
.career-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .4s;
}
.career-card:hover .career-card-img img { transform: scale(1.04); }
.career-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: #ccc;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.career-card-body {
  padding: 24px 28px 28px;
  flex: 1; display: flex; flex-direction: column;
  background: #fff;
  border-bottom: 3px solid transparent;
  transition: border-color .2s;
}
.career-card:hover .career-card-body { border-color: var(--primary); }

.career-card-title {
  font-size: 17px; font-weight: 900;
  color: var(--primary);
  letter-spacing: .04em;
  line-height: 1.3; margin-bottom: 16px;
  text-align: center;
}

.career-card-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1;
}
.career-card-list li {
  font-size: 13.5px; color: #374151;
  line-height: 1.55; padding: 5px 0;
  display: flex; align-items: flex-start; gap: 8px;
  border-bottom: 1px dotted #e5e7eb;
}
.career-card-list li:last-child { border-bottom: none; }
.career-card-list li i {
  color: var(--primary); font-size: 11px;
  flex-shrink: 0; margin-top: 4px;
}
.career-more-jobs {
  font-size: 12.5px !important;
  color: var(--gray) !important; font-style: italic;
}

.career-card-link {
  display: inline-block; margin-top: 18px;
  font-size: 13.5px; font-weight: 700;
  color: var(--primary); text-decoration: none;
  text-align: center;
  transition: color .18s;
}
.career-card-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Nav buttons */
.career-nav {
  position: absolute; top: 130px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  cursor: pointer; font-size: 16px; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.career-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.career-prev { left: 12px; }
.career-next { right: 12px; }

@media (max-width: 900px) {
  .career-card { flex: 0 0 50%; min-width: 50%; }
  .career-main-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .career-card { flex: 0 0 100%; min-width: 100%; }
  .career-card-img { height: 200px; }
  .career-main-title { font-size: 22px; }
}


/* ============================================================
   TRAINING DETAIL v2 — giống FPT (td2-*)
   ============================================================ */

/* Override toàn bộ td-hero cũ để làm hero kiểu FPT */
.td-hero-v2 {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #1A1A2E;
}
.td-hero-v2 .td-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: .55;
}
.td-hero-v2 .td-hero-bg-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
/* Label tên ngành kiểu FPT — hình chữ nhật màu cam có mũi tên */
.td-hero-v2 .td-nganh-label {
  position: absolute;
  bottom: 60px; left: 0;
  background: var(--primary);
  color: #fff;
  padding: 18px 40px 18px 32px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
  max-width: 520px;
}
.td-hero-v2 .td-nganh-label h1 {
  font-size: 28px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em; line-height: 1.25;
  color: #fff; margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
/* Breadcrumb trên hero */
.td-hero-v2 .td-hero-breadcrumb {
  position: absolute; top: 18px; left: 0; right: 0;
  z-index: 2;
}
.td-hero-v2 .td-hero-breadcrumb ul#breadcrumb li { color: rgba(255,255,255,.7); }
.td-hero-v2 .td-hero-breadcrumb ul#breadcrumb li:last-child { color: #fff; }
.td-hero-v2 .td-hero-breadcrumb ul#breadcrumb a { color: rgba(255,255,255,.8); }
.td-hero-v2 .td-hero-breadcrumb ul#breadcrumb li::after { color: rgba(255,255,255,.3); }

/* Tabs dưới hero — dạng ngang sát hero */
.td-tabs-v2 {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  display: flex; gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.td-tabs-v2::-webkit-scrollbar { display: none; }
.td-tab-v2 {
  padding: 14px 22px;
  font-size: 14px; font-weight: 600;
  color: var(--gray); white-space: nowrap;
  border: none; background: transparent;
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
}
.td-tab-v2:hover { color: var(--primary); background: #FFF5F5; }
.td-tab-v2.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }

@media (max-width: 700px) {
  .td-hero-v2 { height: 300px; }
  .td-hero-v2 .td-nganh-label h1 { font-size: 20px; }
  .td-hero-v2 .td-nganh-label { padding: 14px 30px 14px 20px; bottom: 30px; }
  .td-tab-v2 { padding: 12px 14px; font-size: 13px; }
}


/* ============================================================
   TRAINING DETAIL v2  (tdv2-*)  — kiểu FPT Polytechnic
   ============================================================ */
.td-wrap { background: #f4f6f9; }

/* Hero */
.tdv2-hero {
  position: relative;
  width: 100%; height: 420px;
  overflow: hidden;
  background: #1a1a2e;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tdv2-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: .55;
}
.tdv2-hero-bg-ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: .75;
}
.tdv2-bc-wrap {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 100%; z-index: 2;
}
.tdv2-bc-wrap ul#breadcrumb li { color: rgba(255,255,255,.7); }
.tdv2-bc-wrap ul#breadcrumb li:last-child { color: #fff; }
.tdv2-bc-wrap ul#breadcrumb a { color: rgba(255,255,255,.8); }
.tdv2-bc-wrap ul#breadcrumb li::after { color: rgba(255,255,255,.3); }

/* Label tên ngành — hình chữ nhật mũi tên màu đỏ */
.tdv2-label-wrap {
  position: absolute; bottom: 52px; left: 0; z-index: 2;
  max-width: 60%;
}
.tdv2-label {
  background: var(--primary);
  padding: 16px 50px 16px 40px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
  display: inline-block;
}
.tdv2-label h1 {
  font-size: 26px; font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em; line-height: 1.3;
  color: #fff; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Tabs bar */
.tdv2-tabs-bar {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 50;
}
.tdv2-tabs {
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.tdv2-tabs::-webkit-scrollbar { display: none; }
.tdv2-tab {
  padding: 15px 22px;
  font-size: 14px; font-weight: 600;
  color: #374151; white-space: nowrap;
  border: none; background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
}
.tdv2-tab:hover { color: var(--primary); background: #fff9f9; }
.tdv2-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
}

/* Layout */
.tdv2-body { padding: 28px 0 50px; }
.tdv2-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px; align-items: start;
}

/* Panels */
.tdv2-panel { display: none; }
.tdv2-panel.active { display: block; }

.tdv2-content {
  background: #fff; border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  font-size: 14.5px; line-height: 1.8; color: #374151;
}
.tdv2-content h2,.tdv2-content h3 { color: var(--dark); margin: 18px 0 10px; }
.tdv2-content ul { padding-left: 22px; margin: 10px 0; }
.tdv2-content li { margin-bottom: 7px; }
.tdv2-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.tdv2-content p { margin-bottom: 12px; }
.tdv2-empty {
  background: #fff; border-radius: var(--radius); padding: 50px;
  text-align: center; color: #94A3B8; font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* Table tiến độ */
.tdv2-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tdv2-table th {
  background: var(--primary); color: #fff;
  padding: 10px 14px; text-align: left; font-weight: 700;
}
.tdv2-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.tdv2-table tr:hover td { background: #FFF5F5; }

/* Info grid (thời gian) */
.tdv2-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 8px;
}
.tdv2-info-item {
  display: flex; align-items: center; gap: 14px;
  background: #f8f9fa; border-radius: 10px;
  padding: 16px 18px; border-left: 4px solid var(--primary);
}
.tdv2-info-item > i { font-size: 20px; color: var(--primary); flex-shrink: 0; }
.tdv2-info-item div { display: flex; flex-direction: column; }
.tdv2-info-item span { font-size: 12px; color: var(--gray); margin-bottom: 3px; }
.tdv2-info-item strong { font-size: 14px; color: var(--dark); font-weight: 700; }

/* Contact box */
.tdv2-contact-box {
  display: flex; align-items: center; gap: 14px;
  background: #FFF5F5; border: 1.5px solid #FECACA;
  border-radius: 10px; padding: 18px 22px; margin-top: 16px;
}
.tdv2-contact-box > i { font-size: 22px; color: var(--primary); }
.tdv2-contact-box div { display: flex; flex-direction: column; }
.tdv2-contact-box strong { font-size: 13px; color: var(--gray); }
.tdv2-contact-box a { font-size: 20px; font-weight: 900; color: var(--primary); text-decoration: none; }

/* Gallery */
.tdv2-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px; background: #fff; border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.tdv2-gallery-item { border-radius: 7px; overflow: hidden; display: block; }
.tdv2-gallery-item img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform .3s; }
.tdv2-gallery-item:hover img { transform: scale(1.06); }

/* Form đăng ký */
.tdv2-register {
  background: #fff; border-radius: var(--radius);
  padding: 24px 28px; margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.tdv2-register-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}
.tdv2-register-head > i { font-size: 28px; color: var(--primary); }
.tdv2-register-head h3 { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 3px; }
.tdv2-register-head p { font-size: 13px; color: var(--gray); }
.tdv2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tdv2-form-group label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.req { color: var(--primary); }
.tdv2-form-group input {
  width: 100%; padding: 9px 12px; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: 13.5px; color: var(--dark); transition: border-color .18s;
}
.tdv2-form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(192,21,42,.08); }
.tdv2-form-group input[readonly] { background: #f8f9fa; color: var(--gray); }
.tdv2-btn-submit {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s;
}
.tdv2-btn-submit:hover { background: var(--primary-dark); }

/* Sidebar */
.tdv2-sidebar { display: flex; flex-direction: column; gap: 16px; }
.tdv2-sidebar-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.tdv2-sidebar-head {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 12px 16px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
}
.tdv2-related {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; text-decoration: none;
  color: var(--dark); font-size: 13px; font-weight: 600;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.tdv2-related:last-child { border-bottom: none; }
.tdv2-related:hover { background: #FFF5F5; color: var(--primary); }
.tdv2-related-thumb { width: 52px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #f0f4f8; }
.tdv2-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tdv2-related-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #CBD5E1; }

/* Responsive */
@media (max-width: 900px) {
  .tdv2-layout { grid-template-columns: 1fr; }
  .tdv2-hero { height: 300px; }
  .tdv2-label h1 { font-size: 20px; }
  .tdv2-label-wrap { max-width: 80%; }
  .tdv2-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tdv2-hero { height: 240px; }
  .tdv2-label h1 { font-size: 16px; }
  .tdv2-label { padding: 12px 36px 12px 20px; }
  .tdv2-form-row { grid-template-columns: 1fr; }
  .tdv2-label-wrap { max-width: 90%; bottom: 28px; }
}


/* ============================================================
   CAREER LANDING PAGE  (cl-*)
   ============================================================ */
.cl-wrap { background: #f4f6f9; min-height: 60vh; }

/* Hero */
.cl-hero {
  position: relative;
  background: var(--dark);
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center;
}
.cl-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(192,21,42,.92) 0%, rgba(26,26,46,.96) 60%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.015) 40px, rgba(255,255,255,.015) 80px);
}
.cl-hero-inner {
  position: relative; z-index: 1;
  padding-top: 28px; padding-bottom: 36px;
}
.cl-hero-inner ul#breadcrumb li { color: rgba(255,255,255,.6); }
.cl-hero-inner ul#breadcrumb li:last-child { color: #fff; }
.cl-hero-inner ul#breadcrumb a { color: rgba(255,255,255,.75); }
.cl-hero-inner ul#breadcrumb li::after { color: rgba(255,255,255,.3); }
.cl-hero-title {
  font-size: 34px; font-weight: 900;
  color: #fff; margin: 12px 0 10px;
  line-height: 1.2;
  text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.cl-hero-desc {
  font-size: 15px; color: rgba(255,255,255,.82);
  line-height: 1.65; max-width: 580px; margin-bottom: 26px;
}
.cl-hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 28px;
  display: inline-flex;
}
.cl-hero-stat { text-align: center; padding: 0 24px; }
.cl-hero-stat strong {
  display: block; font-size: 26px; font-weight: 900;
  color: #FCD34D; line-height: 1;
}
.cl-hero-stat span { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; display: block; }
.cl-hero-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* Body */
.cl-body { padding: 36px 0 56px; }

/* Tabs */
.cl-tabs-wrap {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px; overflow: hidden;
}
.cl-tabs {
  display: flex; overflow-x: auto;
  scrollbar-width: none; border-bottom: 2px solid #f0f0f0;
}
.cl-tabs::-webkit-scrollbar { display: none; }
.cl-tab {
  padding: 14px 24px; white-space: nowrap;
  font-size: 14px; font-weight: 600;
  color: var(--gray); border: none; background: transparent;
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .18s;
}
.cl-tab:hover { color: var(--primary); background: #FFF5F5; }
.cl-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }

/* Panel */
.cl-panel { display: none; }
.cl-panel.active { display: block; }

/* Grid ngành */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.cl-grid-flat {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Card ngành */
.cl-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all .22s; display: block;
}
.cl-card:hover {
  border-color: #FECACA;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cl-card-img {
  position: relative; width: 100%; padding-bottom: 62%;
  overflow: hidden; background: #f0f4f8;
}
.cl-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.cl-card:hover .cl-card-img img { transform: scale(1.07); }
.cl-card-img-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #CBD5E1;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.cl-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(192,21,42,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 14px 16px;
  opacity: 0; transition: opacity .25s;
}
.cl-card:hover .cl-card-overlay { opacity: 1; }
.cl-card-overlay span {
  color: #fff; font-size: 13px; font-weight: 700;
}
.cl-card-overlay i { margin-left: 5px; }

.cl-card-body { padding: 16px 18px 18px; }
.cl-card-name {
  font-size: 14.5px; font-weight: 800;
  color: var(--dark); line-height: 1.35;
  margin-bottom: 10px; text-transform: uppercase;
  letter-spacing: .03em;
}
.cl-card:hover .cl-card-name { color: var(--primary); }
.cl-card-jobs {
  list-style: none; margin: 0; padding: 0;
}
.cl-card-jobs li {
  font-size: 12.5px; color: #4B5563;
  padding: 4px 0; display: flex; gap: 7px; align-items: flex-start;
  border-bottom: 1px dotted #E5E7EB; line-height: 1.45;
}
.cl-card-jobs li:last-child { border-bottom: none; }
.cl-card-jobs li i { color: var(--primary); font-size: 10px; flex-shrink: 0; margin-top: 4px; }

.cl-empty { text-align: center; padding: 80px 20px; color: #CBD5E1; }
.cl-empty i { font-size: 52px; display: block; margin-bottom: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .cl-hero-title { font-size: 24px; }
  .cl-hero-stats { padding: 12px 16px; }
  .cl-hero-stat { padding: 0 14px; }
  .cl-hero-stat strong { font-size: 20px; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .cl-grid { grid-template-columns: 1fr; }
  .cl-hero-title { font-size: 20px; }
}

/* === CAREER LANDING - bổ sung === */
.cl-group { margin-bottom: 48px; }
.cl-group-header { margin-bottom: 20px; }

/* Tin bài dưới grid */
.cl-arts-list { margin-top: 4px; margin-bottom: 12px; }
.cl-arts-title {
  font-size: 15px; font-weight: 700;
  color: var(--dark); margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.cl-arts-title i { color: var(--primary); margin-right: 8px; }
.cl-arts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cl-art-card {
  display: flex; gap: 14px;
  background: #fff; border-radius: var(--radius);
  padding: 14px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f0f0f0;
  transition: all .2s;
}
.cl-art-card:hover {
  border-color: #FECACA;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cl-art-img {
  width: 80px; height: 70px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
}
.cl-art-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-art-body { flex: 1; min-width: 0; }
.cl-art-date { font-size: 11px; color: #9CA3AF; display: block; margin-bottom: 4px; }
.cl-art-name {
  font-size: 13.5px; font-weight: 700;
  color: var(--dark); line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cl-art-card:hover .cl-art-name { color: var(--primary); }
.cl-art-short {
  font-size: 12px; color: #6B7280; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) {
  .cl-arts-grid { grid-template-columns: 1fr; }
}

/* Career leaf - grid tin bài rộng hơn */
.cl-arts-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* ===== CAREER TABS ===== */
.ctabs-wrap { margin:32px 0; }
.ctabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #c00;
}
.ctabs-btn {
  padding: 10px 22px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: background .2s, color .2s;
  margin-right: 4px;
  margin-bottom: -2px;
}
.ctabs-btn:hover { background: #ffe5e5; color: #c00; }
.ctabs-btn.active {
  background: #c00;
  color: #fff;
  border-color: #c00;
  position: relative;
  z-index: 1;
}
.ctabs-panels { border: 1px solid #ddd; border-top: none; border-radius: 0 0 6px 6px; }
.ctabs-panel { display: none; }
.ctabs-panel.active { display: block; }
.ctabs-content {
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.ctabs-content ul { padding-left: 20px; margin: 8px 0; }
.ctabs-content li { margin-bottom: 6px; }
.ctabs-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.ctabs-content table td,
.ctabs-content table th { border: 1px solid #ddd; padding: 8px 12px; }
.ctabs-content table th { background: #f5f5f5; font-weight: 600; }
@media (max-width: 600px) {
  .ctabs-btn { padding: 8px 14px; font-size: 13px; }
  .ctabs-content { padding: 16px; }
}

/* ===== FULL WIDTH PAGE LAYOUT ===== */
.page-layout-full { display: block; }
.main-content-full { width: 100%; max-width: 100%; }

/* ===== PAGE LOGIN GATE ===== */
.page-login-gate {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 36px 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  text-align: center;
}
.plg-icon { font-size: 42px; color: var(--primary, #c00); margin-bottom: 12px; }
.plg-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #222; }
.plg-desc  { font-size: 14px; color: #888; margin: 0 0 24px; }
.plg-form  { text-align: left; }
.plg-field { margin-bottom: 14px; }
.plg-field label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.plg-field input {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd;
  border-radius: 5px; font-size: 14px; box-sizing: border-box;
  transition: border .2s;
}
.plg-field input:focus { border-color: var(--primary, #c00); outline: none; }
.plg-actions { margin-top: 18px; }
.plg-btn {
  width: 100%; padding: 10px; background: var(--primary, #c00);
  color: #fff; border: none; border-radius: 5px; font-size: 15px;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
.plg-btn:hover { background: #a00; }
.plg-btn:disabled { opacity: .7; cursor: not-allowed; }
.plg-msg {
  margin-top: 14px; padding: 9px 12px; border-radius: 5px;
  font-size: 13px; text-align: center;
}
.plg-msg-ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.plg-msg-err { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }


/* ===== TOPBAR DROPDOWN (Liên kết Web) ===== */
.topbar-dropdown { position: relative; display: inline-flex; align-items: center; }
.topbar-drop-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 4px; border-radius: 3px;
  transition: color .2s;
  font-family: inherit;
}
.topbar-drop-btn:hover { color: white; }
.topbar-drop-icon {
  font-size: 9px;
  transition: transform .2s ease;
}
.topbar-dropdown.open .topbar-drop-icon { transform: rotate(180deg); }
.topbar-drop-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  min-width: 200px; z-index: 9999;
  border: 1px solid #eee;
  overflow: hidden;
}
.topbar-drop-menu.open { display: block; animation: dropFadeIn .18s ease; }
@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.topbar-drop-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; font-size: 13px;
  color: #333; text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.topbar-drop-menu a:last-child { border-bottom: none; }
.topbar-drop-menu a:hover { background: #fff5f5; color: var(--primary, #c00); }
.topbar-drop-menu a i { font-size: 11px; color: var(--primary, #c00); width: 14px; }
/* Mũi tên nhỏ trỏ lên */
.topbar-drop-menu::before {
  content: '';
  position: absolute; top: -6px; right: 18px;
  width: 10px; height: 10px;
  background: white; border-left: 1px solid #eee; border-top: 1px solid #eee;
  transform: rotate(45deg);
}

/* Topbar user logged in */
.btn-topbar-user { background: rgba(255,255,255,0.15); border-radius: 3px; padding: 2px 8px; }
.btn-topbar-user:hover { background: rgba(255,255,255,0.25); }
.btn-topbar-logout { opacity: .8; }
.btn-topbar-logout:hover { opacity: 1; background: rgba(255,80,80,0.25) !important; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sr-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sr-hidden.sr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   COUNT-UP — stat-number dạng lớn
   ============================================================ */
.stat-number {
  transition: none;
}

/* ============================================================
   CARD HOVER LIFT — thêm transition cho các card
   ============================================================ */
.prog-feat-card,
.program-card,
.news-card-featured,
.career-card,
.announce-panel {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}
.prog-feat-card:hover,
.program-card:hover,
.news-card-featured:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.13) !important;
  border-color: var(--primary-light, #e87a7a) !important;
}
.career-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.12) !important;
}

/* ============================================================
   SECTION HEADER — kicker fade-in khi vào viewport
   ============================================================ */
.section-kicker {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-bar {
  transition: width 0.6s ease 0.2s;
}

/* ============================================================
   STATS ICON ITEM — stagger delay
   ============================================================ */
.stats-icon-item.sr-hidden { transform: translateY(18px) scale(0.96); }
.stats-icon-item.sr-visible { transform: translateY(0) scale(1); }

/* ============================================================
   PARTNER ITEM
   ============================================================ */
.partner-item {
  transition: transform 0.25s ease, opacity 0.25s ease !important;
}
.partner-item:hover { transform: scale(1.06) !important; }

/* ============================================================
   GALLERY CELL
   ============================================================ */
.gallery-cell {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.gallery-cell:hover {
  transform: scale(1.025) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18) !important;
  z-index: 2;
}

/* ============================================================
   NEWS LIST ITEM — subtle left border highlight on hover
   ============================================================ */
.news-list-item {
  transition: background 0.2s ease, border-left-color 0.2s ease !important;
  border-left: 3px solid transparent;
}
.news-list-item:hover {
  background: var(--light, #fef9f9) !important;
  border-left-color: var(--primary, #c00) !important;
  padding-left: 14px !important;
}

/* ============================================================
   ANNOUNCE PANEL hover
   ============================================================ */
.announce-panel:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
  transform: translateY(-4px) !important;
}

/* ============================================================
   SECTION — kicker animation
   ============================================================ */
@keyframes kicker-in {
  from { opacity:0; transform: translateX(-12px); }
  to   { opacity:1; transform: translateX(0); }
}
.section-kicker { animation: kicker-in 0.5s ease both; }

/* ============================================================
   CTABS — style đẹp hơn (timeline + tab system)
   ============================================================ */
.ctabs-wrap { margin-top: 32px; }
.ctabs-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 2px solid var(--border, #eee);
  margin-bottom: 0; padding-bottom: 0;
}
.ctabs-btn {
  padding: 10px 22px;
  border: none; border-bottom: 2px solid transparent;
  background: none; cursor: pointer;
  font-size: 14px; font-weight: 500;
  color: var(--gray, #777);
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: color .2s, border-color .2s, background .2s;
}
.ctabs-btn:hover { color: var(--primary, #c00); background: var(--light, #fef9f9); }
.ctabs-btn.active {
  color: var(--primary, #c00);
  border-bottom-color: var(--primary, #c00);
  background: white;
}
.ctabs-panels { background: #fff; border: 1px solid var(--border, #eee); border-top: none; border-radius: 0 0 8px 8px; }
.ctabs-panel { display: none; padding: 24px 28px; animation: fadeTabIn .3s ease; }
.ctabs-panel.active { display: block; }
.ctabs-content { font-size: 15px; line-height: 1.8; color: var(--text, #333); }
@keyframes fadeTabIn {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ============================================================
   TIMELINE — dùng trong trang tĩnh Giới thiệu / Lịch sử
   ============================================================ */
.tl-wrap { position: relative; padding-left: 32px; margin: 24px 0; }
.tl-wrap::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--primary,#c00) 0%, #eee 100%);
  border-radius: 2px;
}
.tl-item {
  position: relative; margin-bottom: 28px;
  opacity: 0; transform: translateX(-16px);
  transition: opacity .45s ease, transform .45s ease;
}
.tl-item.tl-visible { opacity: 1; transform: translateX(0); }
.tl-dot {
  position: absolute; left: -28px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; border: 3px solid var(--primary, #c00);
  box-shadow: 0 0 0 3px rgba(192,0,0,0.1);
  transition: transform .3s ease;
}
.tl-item.tl-visible .tl-dot { transform: scale(1.2); }
.tl-item.tl-visible .tl-dot { transform: scale(1); transition-delay: .1s; }
.tl-year {
  font-size: 12px; font-weight: 700; color: var(--primary, #c00);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.tl-title { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 4px; }
.tl-desc  { font-size: 13.5px; color: var(--gray, #666); line-height: 1.65; }

/* ============================================================
   TESTIMONIAL SECTION — Slider ngang
   ============================================================ */
.tm-section {
  background: var(--sec-testimonial-bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.tm-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(192,0,0,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 50%, rgba(26,115,232,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.tm-section .container { position: relative; }
.tm-section .section-kicker { color: rgba(255,255,255,0.55); }
.tm-section .section-title  { color: #fff; }
.tm-section .section-bar    { background: var(--primary,#c00); }
.tm-subtitle { color: rgba(255,255,255,0.45); font-size: 15px; margin-top: 6px; margin-bottom: 40px; }

/* Filter tabs */
.tm-filter-wrap {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.tm-filter {
  padding: 9px 24px; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  font-size: 13.5px; cursor: pointer; font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all .22s ease;
  display: inline-flex; align-items: center; gap: 7px;
  backdrop-filter: blur(4px);
}
.tm-filter:hover {
  border-color: rgba(255,255,255,0.45);
  color: #fff; background: rgba(255,255,255,0.15);
}
.tm-filter.active {
  background: var(--primary,#c00); color: white;
  border-color: var(--primary,#c00);
  box-shadow: 0 4px 18px rgba(192,0,0,0.35);
}

/* Slider layout */
.tm-slider-outer { position: relative; display: flex; align-items: center; }
.tm-slider-viewport { flex: 1; overflow: hidden; }
.tm-track {
  display: flex; gap: 20px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform; align-items: stretch;
}

/* Arrow */
.tm-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  font-size: 15px; cursor: pointer; color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .2s ease;
  backdrop-filter: blur(4px); z-index: 2;
}
.tm-arrow:hover {
  background: var(--primary,#c00);
  color: white; border-color: var(--primary,#c00);
  box-shadow: 0 4px 16px rgba(192,0,0,0.4);
}
.tm-prev { margin-right: 16px; }
.tm-next { margin-left: 16px; }

/* Slide */
.tm-slide { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; }

/* Card */
.tm-card-inner {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: visible;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.tm-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.22);
}

/* Ảnh tròn nổi lên trên card */
.tm-card-img-wrap {
  display: flex; justify-content: center;
  margin-top: -60px; margin-bottom: 14px;
  position: relative; z-index: 2;
}
.tm-card-avatar-img {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  display: block;
  background: #333;
}
.tm-card-avatar-ph {
  width: 108px; height: 108px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700;
}
.tm-expert  .tm-card-avatar-ph { background: rgba(192,0,0,0.35);   color: #ffaaaa; }
.tm-biz     .tm-card-avatar-ph { background: rgba(26,115,232,0.35); color: #aaccff; }
.tm-student .tm-card-avatar-ph { background: rgba(13,158,110,0.35); color: #aaeedd; }

/* Dải màu trên đầu card (thay vì ảnh tràn) */
.tm-card-stripe {
  height: 60px; border-radius: 20px 20px 0 0;
  flex-shrink: 0;
  position: relative;
}
.tm-slide[data-type="chuyengia"]   .tm-card-stripe { background: linear-gradient(135deg,#8b0f1e,#c00,#e85555); }
.tm-slide[data-type="doanhnghiep"] .tm-card-stripe { background: linear-gradient(135deg,#0c3875,#1a73e8,#34a8fc); }
.tm-slide[data-type="hocvien"]     .tm-card-stripe { background: linear-gradient(135deg,#065535,#0d9e6e,#2ed18a); }

/* Body card */
.tm-card-body {
  padding: 0 20px 20px;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1;
  text-align: center;
}

/* Quote icon */
.tm-quote-mark {
  font-size: 24px; line-height: 1;
  margin-bottom: 6px;
  opacity: 0.25; color: #fff;
}

/* Nội dung chữ nghiêng */
.tm-content {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 12px; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Stars */
.tm-stars {
  color: #f5a623; font-size: 12px;
  letter-spacing: 2px; margin-bottom: 10px;
  text-align: left;
}

/* Author row */
.tm-author {
  display: flex; align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.tm-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.tm-expert  { background: rgba(192,0,0,0.3);   color: #ff8a8a; border-color: rgba(192,0,0,0.4); }
.tm-biz     { background: rgba(26,115,232,0.3); color: #82b4ff; border-color: rgba(26,115,232,0.4); }
.tm-student { background: rgba(13,158,110,0.3); color: #7de8c0; border-color: rgba(13,158,110,0.4); }

.tm-info { flex: 1; min-width: 0; }
.tm-name { font-size: 13px; font-weight: 700; color: #fff;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-role { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.tm-org  { font-size: 10.5px; color: rgba(255,255,255,0.35);
  white-space: normal; word-break: break-word; line-height: 1.4; }
.tm-org i { font-size: 9px; margin-right: 3px; }

.tm-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.tm-badge.tm-expert  { background: rgba(192,0,0,0.3);   color: #ff9090; border: 1px solid rgba(192,0,0,0.4); }
.tm-badge.tm-biz     { background: rgba(26,115,232,0.3); color: #90baff; border: 1px solid rgba(26,115,232,0.4); }
.tm-badge.tm-student { background: rgba(13,158,110,0.3); color: #7de8c0; border: 1px solid rgba(13,158,110,0.4); }

/* Dots */
.tm-dots-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.tm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.2);
  cursor: pointer; padding: 0;
  transition: background .2s, width .25s;
}
.tm-dot.active { background: var(--primary,#c00); width: 24px; border-radius: 4px; }

@media (max-width: 900px) { .tm-slide { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
  .tm-slide { flex: 0 0 100%; }
  .tm-arrow { width: 38px; height: 38px; font-size: 12px; }
  .tm-prev { margin-right: 8px; } .tm-next { margin-left: 8px; }
}


/* ============================================================
   TOP BANNER SECTION (Tuyển sinh - full width, auto slide)
   ============================================================ */
.topbanner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  line-height: 0;
}
.topbanner-track-wrap { width: 100%; overflow: hidden; }
.topbanner-track {
  display: flex;
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.topbanner-slide {
  flex: 0 0 100%;
  display: block;
  line-height: 0;
}
.topbanner-slide img {
  width: 100%;
  height: auto;        /* hiện full chiều cao tự nhiên của ảnh */
  display: block;
}

/* Mũi tên */
.topbanner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.35); border: none;
  color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 3;
}
.topbanner-arrow:hover { background: rgba(0,0,0,0.6); }
.topbanner-prev { left: 16px; }
.topbanner-next { right: 16px; }

/* Dots */
.topbanner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.topbanner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none;
  cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.topbanner-dot.active {
  background: #fff;
  width: 22px; border-radius: 4px;
}

@media (max-width: 768px) {
  .topbanner-arrow { width: 32px; height: 32px; font-size: 12px; }
}

/* ============================================================
   DETAIL GALLERY SLIDER (ảnh phụ bài viết)
   ============================================================ */
.detail-gallery {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.dg-track-wrap {
  position: relative;
  background: #111;
  line-height: 0;
}
.dg-track { position: relative; }
.dg-slide {
  display: none;
  width: 100%;
}
.dg-slide.active { display: block; }
.dg-slide img {
  width: 100%; height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #111;
}
/* Nút prev/next */
.dg-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: none;
  color: white; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 3;
}
.dg-btn:hover { background: rgba(0,0,0,0.75); }
.dg-prev { left: 12px; }
.dg-next { right: 12px; }
/* Dots */
.dg-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.dg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none;
  cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.dg-dot.active { background: #fff; width: 20px; border-radius: 4px; }
/* Thumbnail strip */
.dg-thumbs {
  display: flex; gap: 6px; padding: 8px;
  background: #f5f5f5; overflow-x: auto;
  border-top: 1px solid var(--border);
}
.dg-thumb {
  flex-shrink: 0; width: 72px; height: 54px;
  border-radius: 4px; overflow: hidden;
  cursor: pointer; opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.dg-thumb.active { opacity: 1; border-color: var(--primary); }
.dg-thumb:hover  { opacity: 0.85; }
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   SINH VIÊN THÀNH ĐẠT (SVTT)
   ============================================================ */

/* Tìm kiếm */
.svtt-search-form { margin-bottom: 20px; }
.svtt-search-wrap {
  display: flex; max-width: 500px;
  border: 1.5px solid var(--border); border-radius: 8px;
  overflow: hidden; transition: border-color .2s;
}
.svtt-search-wrap:focus-within { border-color: var(--primary); }
.svtt-search-input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 14px; background: white;
}
.svtt-search-btn {
  padding: 10px 16px; background: var(--primary); border: none;
  color: white; cursor: pointer; font-size: 14px;
  transition: background .2s;
}
.svtt-search-btn:hover { background: var(--primary-dark); }

/* Filter khoa */
.svtt-filter-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.svtt-filter-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
  border: 1.5px solid var(--border); color: var(--gray);
  background: white; transition: all .2s; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.svtt-filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.svtt-filter-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(192,0,0,0.25);
}

/* Grid danh sách */
.svtt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 36px;
}
.svtt-card {
  background: white; border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.svtt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  border-color: rgba(192,0,0,0.2);
}
.svtt-card-img {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--light);
}
.svtt-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .3s ease;
}
.svtt-card:hover .svtt-card-img img { transform: scale(1.05); }
.svtt-avatar-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.8);
}
.svtt-card-body { padding: 14px 14px 16px; flex: 1; }
.svtt-card-name {
  font-size: 13.5px; font-weight: 700; color: var(--dark);
  margin-bottom: 4px; line-height: 1.3;
}
.svtt-card-khoa {
  font-size: 11.5px; color: var(--primary); font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svtt-card-pos, .svtt-card-org {
  font-size: 12px; color: var(--gray);
  display: flex; align-items: flex-start; gap: 5px;
  margin-bottom: 3px; line-height: 1.4;
}
.svtt-card-pos i, .svtt-card-org i {
  font-size: 11px; color: var(--primary); margin-top: 2px; flex-shrink: 0;
}

/* Phân trang */
.svtt-pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 32px;
}
.svtt-page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--gray);
  text-decoration: none; background: white; transition: all .2s;
}
.svtt-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.svtt-page-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
}

/* ---- TRANG CHI TIẾT ---- */
.svtt-detail-wrap { padding: 8px 0 40px; }
.svtt-profile-card {
  display: flex; gap: 36px;
  background: white; border-radius: 16px;
  border: 1px solid var(--border);
  padding: 32px; margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.svtt-profile-img-wrap { flex-shrink: 0; }
.svtt-profile-img {
  width: 220px; height: 220px; border-radius: 12px;
  object-fit: cover; object-position: top center;
  border: 3px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.svtt-profile-ph {
  width: 220px; height: 220px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: rgba(255,255,255,0.85);
}
.svtt-profile-name {
  font-size: 26px; font-weight: 700;
  color: var(--dark); margin-bottom: 6px; line-height: 1.25;
}
.svtt-profile-pos {
  font-size: 16px; color: var(--primary); font-weight: 600;
  margin-bottom: 20px;
}
.svtt-profile-meta { display: flex; flex-direction: column; gap: 10px; }
.svtt-meta-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--dark);
}
.svtt-meta-row i {
  font-size: 14px; color: var(--primary);
  width: 18px; flex-shrink: 0; margin-top: 1px;
}
.svtt-meta-row a { color: var(--primary); }
.svtt-story {
  background: white; border-radius: 12px;
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.svtt-story h3 {
  font-size: 16px; font-weight: 700; color: var(--dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.svtt-story h3 i { color: var(--primary); }
.svtt-story-body { font-size: 14.5px; line-height: 1.85; color: var(--dark); }

/* Responsive */
@media (max-width: 900px) {
  .svtt-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .svtt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svtt-profile-card { flex-direction: column; align-items: center; text-align: center; }
  .svtt-profile-img, .svtt-profile-ph { width: 160px; height: 160px; }
  .svtt-meta-row { justify-content: center; }
}
