/* Giao diện 2 — «Bầu trời T2»: sáng, nhiều màu; mỗi khu vực một màu riêng (Ban Cán bộ tím, Tổ 1 xanh dương, Tổ 2 xanh lá,
   Tổ 3 cam, Tra cứu hồng). Biến --accent đổi theo lớp area-* trên <body>. */
.theme-2 {
  --accent: #0e7cc4; --accent-soft: #e4f2fb; --accent-dark: #0a5c92;
  --navy: #0a4f7e; --navy2: #0e7cc4; --blue: var(--accent); --bg: #f1f8fc; --card: #fff; --line: #dbe8f1;
  --text: #18283a; --muted: #607487; --radius: 18px;
  font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #dceffa 0, #eef7fc 300px, #f4f9fc);
}
.theme-2.area-home { --accent: #0e7cc4; --accent-soft: #e4f2fb; --accent-dark: #0a5c92; }
.theme-2.area-bcb { --accent: #7b4fd6; --accent-soft: #efe9fb; --accent-dark: #5c35ad; }
.theme-2.area-to1 { --accent: #1f6feb; --accent-soft: #e5eefd; --accent-dark: #164fb0; }
.theme-2.area-to2 { --accent: #12a06a; --accent-soft: #e2f6ee; --accent-dark: #0c7a50; }
.theme-2.area-to3 { --accent: #ef7a2a; --accent-soft: #fdeede; --accent-dark: #b95a14; }
.theme-2.area-tracuu { --accent: #d6458e; --accent-soft: #fbe8f1; --accent-dark: #a82d6c; }
.theme-2.area-daotao { --accent: #c9900c; --accent-soft: #fbf1d8; --accent-dark: #9a6d06; }
.theme-2.area-canhan { --accent: #0e7cc4; --accent-soft: #e4f2fb; --accent-dark: #0a5c92; }
.theme-2.area-about { --accent: #0fa3a3; --accent-soft: #e0f6f6; --accent-dark: #0a7878; }
.theme-2.area-doi { --accent: #7b4fd6; --accent-soft: #efe9fb; --accent-dark: #5c35ad; }
.theme-2 h1, .theme-2 h2 { color: var(--accent-dark); font-weight: 800; letter-spacing: -.2px; }
.theme-2 h1 { font-size: 24px; } .theme-2 h2 { font-size: 18px; }

/* Đầu trang chuyển màu + tab dạng viên thuốc có biểu tượng */
.theme-2 header.top { background: linear-gradient(105deg, #0a5aa0 0%, #0e8fc9 55%, #12b5a6 100%); padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
.theme-2 .logo { background: #fff; color: #0a5aa0; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.theme-2 .brand-text b { font-weight: 800; letter-spacing: -.1px; }
.theme-2 .usermenu summary, .theme-2 .login-link { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.theme-2 nav.tabs { background: #fff; padding: 8px 10px; gap: 6px; box-shadow: 0 6px 20px rgba(14,124,196,.14); }
.theme-2 nav.tabs a { --tab: #0e7cc4; color: #3a5168; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; background: #f1f6fa; }
.theme-2 nav.tabs a:hover { background: color-mix(in srgb, var(--tab) 14%, #fff); color: var(--tab); }
.theme-2 nav.tabs a.on { background: var(--tab); color: #fff; box-shadow: 0 5px 14px color-mix(in srgb, var(--tab) 45%, transparent); }
.theme-2 nav.tabs a[href^="/ban-can-bo"] { --tab: #7b4fd6; }
.theme-2 nav.tabs a[href="/to/1"] { --tab: #1f6feb; }
.theme-2 nav.tabs a[href="/to/2"] { --tab: #12a06a; }
.theme-2 nav.tabs a[href="/to/3"] { --tab: #ef7a2a; }
.theme-2 nav.tabs a[href^="/tra-cuu"] { --tab: #d6458e; }
.theme-2 nav.tabs a[href^="/gioi-thieu"] { --tab: #0fa3a3; }
.theme-2 nav.tabs a[href^="/dao-tao"] { --tab: #c9900c; }
.theme-2 nav.tabs a::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--tab);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.theme-2 nav.tabs a.on::before { background: #fff; }
.theme-2 nav.tabs a[href="/"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.theme-2 nav.tabs a[href^="/ban-can-bo"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/%3E%3C/svg%3E"); }
.theme-2 nav.tabs a[href^="/to/"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E"); }
.theme-2 nav.tabs a[href^="/tra-cuu"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E"); }
.theme-2 nav.tabs a[href^="/gioi-thieu"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E"); }

.theme-2 nav.tabs a[href^="/dao-tao"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3 1 9l11 6 9-4.91V17h2V9L12 3z'/%3E%3C/svg%3E"); }

/* Hero (trang chủ, giới thiệu) */
.theme-2 .hello { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; margin-bottom: 20px; padding: 48px 24px 22px; min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; box-shadow: 0 16px 36px rgba(14,124,196,.28); }
.theme-2 .hello::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/static/img/t2/hall-card-960.webp) center 28% / cover no-repeat; }
.theme-2 .hello::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8,70,130,.88) 0%, rgba(14,124,196,.6) 45%, rgba(18,181,166,.18) 100%); }
.theme-2 .hello h1 { color: #fff; font-size: 28px; margin: 0 0 4px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.theme-2 .hello p { color: rgba(255,255,255,.92); margin: 0; font-size: 14px; }
.theme-2 .hello p::before { content: "✈ "; }
@media (min-width: 821px) { .theme-2 .hello { min-height: 250px; padding: 70px 36px 28px; }
  .theme-2 .hello::before { background-image: url(/static/img/t2/hall-wide-1920.webp); background-position: center 18%; }
  .theme-2 .hello h1 { font-size: 36px; } }

/* Thẻ, ô số liệu, nút */
.theme-2 .card { border: 0; border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(14,100,160,.10); }
.theme-2 .card.soon { border-top-style: dashed; }
.theme-2 .card-head h2 { display: flex; align-items: center; gap: 8px; }
.theme-2 .status-grid .card:nth-child(4n+1) { --accent: #7b4fd6; --accent-dark: #5c35ad; --accent-soft: #efe9fb; }
.theme-2 .status-grid .card:nth-child(4n+2) { --accent: #1f6feb; --accent-dark: #164fb0; --accent-soft: #e5eefd; }
.theme-2 .status-grid .card:nth-child(4n+3) { --accent: #12a06a; --accent-dark: #0c7a50; --accent-soft: #e2f6ee; }
.theme-2 .status-grid .card:nth-child(4n+4) { --accent: #ef7a2a; --accent-dark: #b95a14; --accent-soft: #fdeede; }
.theme-2 .stat { border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), #fff); box-shadow: 0 6px 18px rgba(14,100,160,.08); border-left: 5px solid var(--accent); }
.theme-2 .stat b { color: var(--accent-dark); font-size: 26px; font-weight: 800; }
.theme-2 .stat.bad { border-left-color: var(--bad); background: linear-gradient(135deg, #fdecec, #fff); }
.theme-2 .stat.warn { border-left-color: #f0a020; background: linear-gradient(135deg, #fff4de, #fff); }
.theme-2 .sc { border: 0; border-radius: 14px; background: var(--accent-soft); transition: transform .15s, box-shadow .15s; }
.theme-2 .sc:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(14,100,160,.16); }
.theme-2 .sc b { color: var(--accent-dark); }
.theme-2 .pill { background: var(--accent-soft); color: var(--accent-dark); }
.theme-2 th { background: var(--accent-soft); color: var(--accent-dark); }
.theme-2 .subnav { border: 0; border-radius: 16px; box-shadow: 0 8px 22px rgba(14,100,160,.10); }
.theme-2 .subnav a { border-radius: 10px; font-weight: 500; }
.theme-2 .subnav a.on { background: var(--accent); color: #fff; }
.theme-2 .subnav a:hover { background: var(--accent-soft); }
.theme-2 .tabs-inline > .on { background: var(--accent); border-color: var(--accent); }
.theme-2 .btn { border-radius: 12px; font-weight: 500; }
.theme-2 .btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-color: var(--accent-dark); font-weight: 600; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.theme-2 .btn.primary:hover { filter: brightness(1.08); }
.theme-2 input:focus, .theme-2 select:focus, .theme-2 textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-2 input, .theme-2 select, .theme-2 textarea { border-radius: 10px; }
.theme-2 .ann.pinned { background: #fff7e6; }

.theme-2 .foot { background: linear-gradient(105deg, #0a5aa0, #0e8fc9 60%, #12b5a6); color: rgba(255,255,255,.88); border-top: 0; margin-top: 30px; }
.theme-2 .foot-brand, .theme-2 .foot-contact { color: #fff; }
.theme-2 .foot a { color: #fff; text-decoration: underline; }
.theme-2 .foot-credit { font-size: 11px; opacity: .85; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Trang đăng nhập: mặt tiền kính T2 và bầu trời */
.theme-2.login-page { background: linear-gradient(rgba(10,90,160,.35), rgba(255,255,255,.1) 55%, rgba(10,70,120,.55)), url(/static/img/t2/gates-1920.webp) center / cover no-repeat; }
.theme-2.login-page nav.tabs { background: rgba(255,255,255,.85); backdrop-filter: blur(6px); }
.theme-2.login-page .card.login { background: rgba(255,255,255,.94); border: 0; border-top: 4px solid var(--accent); border-radius: 24px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(8,50,90,.4); backdrop-filter: blur(8px); }
.theme-2.login-page .login h1 { font-size: 28px; }

.theme-2 .hello .warn-text { color: #ffe3a6; }
.theme-2 .card > h2 { margin-bottom: 12px; }
.theme-2 nav.tabs a[href="/dang-nhap"]::before { display: none; }
