/* ═══════════════════════════════════════════════════════════════════
   GIÁO DỤC STEM — Public Site CSS (VnExpress-style)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────── */
:root {
  --red:       #C01428;  /* UI accent red — darker, không phải màu logo */
  --logo-red:  #E4223B;  /* màu đỏ chính xác của logo */
  --blue:      #0078AE;
  --logo-blue: #1464A0;
  --navy:      #17375E;
  --violet:    #7C3AED;
  --green:     #059669;
  --orange:    #D97706;
  --dark:      #1a1a1a;
  --text:      #333;
  --muted:     #666;
  --border:    #e0e0e0;
  --bg:        #f5f5f5;
  --white:     #fff;
  --radius:    3px;
  --shadow:    0 1px 4px rgba(0,0,0,.1);
  --font:      'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html   { overflow-y: scroll; } /* prevent scrollbar layout shift */
body   { margin: 0; font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; }
a      { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img    { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; color: var(--dark); }
p      { margin: 0 0 1em; }
ul,ol  { padding-left: 20px; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────────────── */
.gd-container { max-width: 1130px; margin: 0 auto; padding: 0 16px; }
.gd-main      { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin: 20px auto; max-width: 1130px; padding: 0 16px; }

/* ── Header ───────────────────────────────────────────────────────── */
.gd-header { background: var(--white); } /* kept for fallback */

/* ── 2-row header ─────────────────────────────────────────────────── */
.gd-header-top { background: var(--white); border-bottom: 1px solid var(--border); }
.gd-header-top-inner { max-width: 1130px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.gd-header-brand { display: flex; align-items: center; }
.gd-header-date-sep { padding-left: 20px; margin-left: 20px; border-left: 1px solid var(--border); }
.gd-header-date { font-size: 13px; color: var(--muted); white-space: nowrap; }
.gd-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ── Sticky navbar ────────────────────────────────────────────────── */
.gd-navbar { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.gd-navbar-inner { max-width: 1130px; margin: 0 auto; padding: 0 16px; display: flex; align-items: stretch; justify-content: center; position: relative; }
.gd-navbar a { padding: 0 15px; height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--navy); transition: color .15s, background .15s; white-space: nowrap; text-decoration: none; }
.gd-navbar a .gd-home-ic { width: 15px; height: 15px; margin-right: 6px; }
.gd-navbar a:hover { color: var(--red); }
.gd-navbar a.active { color: #fff; background: var(--red); border-radius: 4px; font-weight: 700; }
.gd-navbar a.active:hover { color: #fff; background: #a01020; }
/* ── Nav dropdown sub-menu ────────────────────────────────────────── */
.gd-nav-item { position: relative; display: flex; align-items: stretch; }
.gd-nav-item > a { display: flex; align-items: center; }
.gd-nav-item.has-sub > a::after { content: '▾'; font-size: 10px; margin-left: 4px; opacity: .6; }
.gd-nav-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid #e8e8e8; border-top: 3px solid var(--red); border-radius: 0 0 6px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); z-index: 1100; padding: 6px 0; }
.gd-nav-item:hover .gd-nav-sub { display: block; }
.gd-nav-sub a { height: auto !important; padding: 9px 16px !important; font-size: 13px !important; font-weight: 500 !important; color: var(--dark) !important; display: block !important; white-space: nowrap; border-radius: 0 !important; background: none !important; border-bottom: 1px solid #f4f4f4; }
.gd-nav-sub a:last-child { border-bottom: none; }
.gd-nav-sub a:hover { color: var(--red) !important; background: #fdf2f3 !important; }

/* ── Google login / user chip ─────────────────────────────────────── */
.gd-btn-google { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--dark); background: var(--white); transition: background .15s; white-space: nowrap; }
.gd-btn-google:hover { background: #f5f5f5; color: var(--dark); }
.gd-btn-zalo { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; width: 185px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-size: 13px !important; font-weight: 500 !important; color: var(--dark) !important; background: var(--white); white-space: nowrap; text-decoration: none; transition: background .15s; }
.gd-btn-zalo:hover { background: #f5f5f5; color: var(--dark) !important; }
.gd-btn-zalo img, .gd-btn-zalo svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
/* Hamburger + mobile-only header bits — ẩn trên PC, hiện ≤1024px */
.gd-nav-toggle { display: none; align-items: center; gap: 8px; height: 46px; background: none; border: none; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; font-family: inherit; }
.gd-nav-toggle svg { width: 22px; height: 22px; }
.gd-nav-mbar { display: none; }
.gd-sub-toggle { display: none; }
.gd-search-icon { display: none; }
.gd-user-chip { display: flex; align-items: center; gap: 8px; }
.gd-user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.gd-user-name { font-size: 13px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-logout-link { font-size: 12px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px; }
.gd-logout-link:hover { color: var(--red); border-color: var(--red); }
.gd-header-inner { display: flex; align-items: center; height: 80px; gap: 24px; max-width: 1130px; margin: 0 auto; padding: 0 16px; }

.gd-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gd-logo-icon-wrap { width: 56px; height: 56px; flex-shrink: 0; }
.gd-logo-img { width: 56px; height: auto; display: block; }
.gd-logo-info { display: inline-flex; flex-direction: column; align-items: center; }
.gd-logo-text { font-size: 20px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; white-space: nowrap; }
.gd-logo-brand1 { color: var(--logo-blue); }
.gd-logo-brand2 { color: var(--logo-red); }
.gd-logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; letter-spacing: .3px; }

.gd-nav { display: flex; gap: 4px; flex: 1; padding: 0 4px; }
.gd-nav a { padding: 0 14px; height: 34px; display: flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--dark); border-radius: 6px; transition: background .15s, color .15s; }
.gd-nav a:hover { color: var(--red); background: rgba(192,20,40,.07); }
.gd-nav a.active { background: var(--red); color: white; }
.gd-nav a.active:hover { color: white; background: #a01020; }

.gd-header-search { display: flex; align-items: center; margin-left: auto; }
.gd-search-form   { display: flex; height: 32px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.gd-search-form input  { border: none; padding: 0 14px; font-size: 13px; width: 180px; outline: none; font-family: inherit; }
.gd-search-form button { padding: 0 12px; background: transparent; color: #aaa; font-size: 16px; border-left: 1px solid var(--border); }
.gd-search-form button:hover { color: var(--navy); background: transparent; }

/* ── Breadnav (date bar) ──────────────────────────────────────────── */
.gd-topbar { background: var(--navy); }
.gd-topbar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1130px; margin: 0 auto; padding: 5px 16px; font-size: 12px; color: rgba(255,255,255,.9); }
.gd-topbar a { color: rgba(255,255,255,.85); }
.gd-topbar a:hover { color: white; }

/* ── Section header ───────────────────────────────────────────────── */
.gd-sec { margin-bottom: 28px; }
.gd-sec-hd { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--sec-c, var(--navy)); padding-bottom: 8px; margin-bottom: 14px; }
.gd-sec-title { font-size: 18px; font-weight: 700; color: var(--sec-c, var(--navy)); display: flex; align-items: center; gap: 8px; }
.gd-sec-title::before { content:''; display: block; width: 4px; height: 20px; background: var(--sec-c, var(--navy)); border-radius: 2px; }
.gd-sec-more { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.gd-sec-more:hover { color: var(--red); }

/* ── Hero (trang chủ) ─────────────────────────────────────────────── */
.gd-hero { background: var(--white); margin-bottom: 24px; }
.gd-hero-inner { display: grid; grid-template-columns: 1fr 300px; gap: 1px; background: var(--border); }
.gd-hero-main  { background: var(--white); position: relative; }
.gd-hero-side  { background: var(--white); display: flex; flex-direction: column; gap: 1px; background: transparent; }
.gd-hero-side-item { background: var(--white); padding: 10px; }

/* ── Thumbnail (16:9) ─────────────────────────────────────────────── */
.gd-thumb { position: relative; overflow: hidden; background: #f0f0f0; }
.gd-thumb::before { content: ''; display: block; padding-top: 56.25%; }
.gd-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gd-thumb:hover img { transform: scale(1.03); }
.gd-thumb.ratio-4x3::before { padding-top: 75%; }
.gd-thumb.ratio-1x1::before { padding-top: 100%; }

/* ── Article card ─────────────────────────────────────────────────── */
.gd-card { background: var(--white); }
.gd-card-body { padding: 12px; }
.gd-card-cat  { font-size: 11px; font-weight: 700; color: var(--sec-c, var(--navy)); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.gd-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--dark); }
.gd-card-title:hover { color: var(--red); }
.gd-card-title.lg { font-size: 18px; line-height: 1.35; }
.gd-card-title.xl { font-size: 22px; line-height: 1.3; }
.gd-card-excerpt { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.gd-card-meta  { font-size: 11px; color: #999; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.gd-card-meta svg { width: 12px; height: 12px; }

/* Hero main article overlay */
.gd-hero-main-body { padding: 16px 20px; }
.gd-hero-main .gd-card-cat { font-size: 12px; }
.gd-hero-main .gd-card-title { font-size: 24px; line-height: 1.3; }
.gd-hero-main .gd-card-excerpt { font-size: 14px; }

/* ── Section body (lead + list) ──────────────────────────────────── */
.gd-sec-body          { display: grid; grid-template-columns: 3fr 2fr; gap: 0; }
.gd-sec-body.cols-3   { grid-template-columns: repeat(3, 1fr); }
.gd-sec-body.cols-4   { grid-template-columns: repeat(4, 1fr); }

.gd-list              { display: flex; flex-direction: column; border-left: 1px solid #e8e8e8; }
.gd-list-item         { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eee; }
.gd-list-item:last-child { border-bottom: none; }
.gd-list-thumb        { flex-shrink: 0; width: 120px; }
.gd-list-thumb .gd-thumb { border-radius: 2px; }
.gd-list-body         { flex: 1; min-width: 0; }
.gd-list-title        { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--dark); }
.gd-list-title:hover  { color: var(--red); }
.gd-list-time         { font-size: 12px; color: #999; margin-top: 5px; }

/* Horizontal list below section top (ảnh trái + text phải) */
.gd-hlist             { display: flex; flex-direction: column; border-top: 1px solid #eee; margin-top: 0; }
.gd-hlist-item        { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.gd-hlist-item:last-child { border-bottom: none; }
.gd-hlist-thumb       { flex-shrink: 0; width: 130px; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; }
.gd-hlist-thumb img   { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gd-hlist-body        { flex: 1; min-width: 0; }
.gd-hlist-title       { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--dark); display: block; }
.gd-hlist-title:hover { color: var(--red); }
.gd-hlist-excerpt     { font-size: 14px; color: #666; line-height: 1.55; margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-hlist-time        { font-size: 12px; color: #999; margin-top: 6px; }

/* Article list — horizontal list below secondary cards */
.gd-article-list { margin-bottom: 24px; }
.gd-article-list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.gd-article-list-item:first-child { padding-top: 0; }
.gd-article-list-item:last-child  { border-bottom: none; }
.gd-al-thumb     { flex-shrink: 0; width: 160px; display: block; overflow: hidden; border-radius: 2px; }
.gd-al-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .35s; }
.gd-al-thumb:hover img { transform: scale(1.04); }
.gd-al-body      { flex: 1; min-width: 0; }
.gd-al-title     { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-al-title:hover { color: var(--red); }
.gd-al-excerpt   { font-size: 14px; color: #666; margin-top: 5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-al-time      { font-size: 12px; color: #999; margin-top: 6px; }

/* Lead (large) card in section */
.gd-lead .gd-card-body  { padding: 12px 14px 14px; }
.gd-lead .gd-card-title.lg { font-size: 17px; }
.gd-lead .gd-card-excerpt  { font-size: 14px; line-height: 1.6; }

/* ── Grid layouts ─────────────────────────────────────────────────── */
.gd-grid     { display: grid; gap: 1px; background: var(--border); }
.gd-grid-2   { grid-template-columns: repeat(2, 1fr); }
.gd-grid-3   { grid-template-columns: repeat(3, 1fr); }
.gd-grid-4   { grid-template-columns: repeat(4, 1fr); }
.gd-grid > * { background: var(--white); }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.gd-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 56px; align-self: start; }
.gd-sidebar-block { background: var(--white); }
.gd-sidebar-block .gd-sec-hd { padding: 12px 14px 8px; margin-bottom: 0; border-bottom: 3px solid var(--sec-c, var(--navy)); }

.gd-sidebar-list { padding: 8px 0; }
.gd-sidebar-list li { display: flex; gap: 8px; padding: 8px 14px; border-bottom: 1px dashed var(--border); }
.gd-sidebar-list li:last-child { border-bottom: none; }
.gd-sidebar-list .num { width: 20px; height: 20px; background: var(--sec-c, var(--navy)); color: white; font-size: 11px; font-weight: 700; border-radius: 3px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.gd-sidebar-list .num.muted { background: #ccc; }
.gd-sidebar-list a { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; }
.gd-sidebar-list a:hover { color: var(--red); }

/* Ad placeholder */
.gd-ad { background: #f9f9f9; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 12px; }
.gd-ad-300x250 { width: 300px; height: 250px; }
.gd-ad-300x500 { width: 300px; height: 500px; }
.gd-ad-300x600 { width: 300px; height: 600px; }

/* Sidebar article list (category page) */
.gd-sba-list       { padding: 6px 0; }
.gd-sba-item       { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.gd-sba-item:last-child { border-bottom: none; }
.gd-sba-thumb      { flex-shrink: 0; width: 72px; height: 50px; overflow: hidden; display: block; background: #f0f0f0; position: relative; }
.gd-sba-thumb img  { position: absolute; top: 0; left: 0; width: 72px !important; height: 50px !important; object-fit: cover; display: block; }
.gd-sba-body       { flex: 1; min-width: 0; }
.gd-sba-title      { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); display: block; }
.gd-sba-title:hover { color: var(--red); }
.gd-sba-time       { font-size: 11px; color: #aaa; margin-top: 4px; }
.gd-sba-star       { color: #f59e0b; font-style: normal; margin-right: 2px; }

/* ── Category page ────────────────────────────────────────────────── */
.gd-cat-hero { background: var(--white); border-bottom: 3px solid var(--cat-c, var(--red)); margin-bottom: 20px; padding: 16px; }
.gd-cat-label { font-size: 11px; font-weight: 700; color: var(--cat-c, var(--red)); text-transform: uppercase; letter-spacing: 1px; }
.gd-cat-name  { font-size: 28px; font-weight: 800; color: var(--dark); }
.gd-cat-desc  { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Topic nav bar (homepage + topic pages) */
.gd-topic-nav         { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.gd-topic-nav::-webkit-scrollbar { display: none; }
#gd-home-body { transition: opacity .18s; }
/* Nút Home trong thanh chủ đề / header danh mục con của Trang chủ (đồng bộ) */
.gd-home-link      { display: inline-flex; align-items: center; vertical-align: middle; color: var(--navy); flex-shrink: 0; padding-right: 13px; border-right: 1px solid #e0e0e0; transition: color .15s; }
.gd-home-link:hover { color: var(--red); }
.gd-home-link .gd-home-ic { width: 21px; height: 21px; }

/* Category heading (VnExpress style) */
.gd-cat-hd         { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; flex-wrap: wrap; }
.gd-cat-hd-title   { font-size: 26px; font-weight: 700; margin: 0; line-height: 1; color: var(--navy); flex-shrink: 0; display: flex; align-items: center; }
.gd-cat-hd-title a { color: inherit; text-decoration: none; }
.gd-cat-hd-title a:hover { color: var(--red); }
.gd-cat-subnav     { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.gd-cat-subnav a   { font-size: 13px; font-weight: 600; color: #555; padding: 4px 14px; border-radius: 20px; white-space: nowrap; line-height: 1.4; text-decoration: none; transition: background .15s, color .15s; }
.gd-cat-subnav a:hover { color: var(--red); background: rgba(192,20,40,.09); }
.gd-cat-subnav a.active { color: #fff; background: var(--navy); font-weight: 700; }

/* Featured article */
.gd-feat            { display: flex; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.gd-feat-img        { flex: 0 0 65%; display: block; overflow: hidden; background: #f0f0f0; align-self: flex-start; }
.gd-feat-img img    { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .4s; }
.gd-feat-img:hover img { transform: scale(1.03); }
.gd-feat-body       { flex: 1; display: flex; flex-direction: column; padding: 2px 0; }
.gd-feat-title      { font-size: 20px; font-weight: 700; line-height: 1.4; color: #1a1a1a; margin: 0 0 12px; }
.gd-feat-title:hover { color: var(--red); }
.gd-feat-excerpt    { font-size: 16px; color: #444; line-height: 1.7; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-feat-preview    { font-size: 14px; color: #888; line-height: 1.6; margin: 0; flex: 1;
                      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-feat-cat-tag    { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--cat-c-nav, var(--navy)); }

/* Secondary 3-column row */
.gd-sec-row         { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid #e5e5e5; margin-bottom: 20px; }
.gd-sec-card        { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 20px; border-right: 1px solid #e5e5e5; }
.gd-sec-card:first-child { padding-left: 0; }
.gd-sec-card:last-child  { border-right: none; padding-right: 0; }
.gd-sec-thumb       { display: block; overflow: hidden; background: #f0f0f0; height: 160px; }
.gd-sec-thumb img   { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gd-sec-thumb:hover img { transform: scale(1.03); }
.gd-sc-body         { flex: 1; }
.gd-sc-title        { font-size: 15px; font-weight: 700; line-height: 1.45; color: #1a1a1a; margin-bottom: 6px;
                      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gd-sc-title:hover  { color: var(--red); }
.gd-sc-meta         { font-size: 12px; color: #aaa; }

/* Thin divider */
.gd-divider-thin { height: 1px; background: #e5e5e5; margin: 0 0 20px; }

/* No results */
.gd-no-results { background: var(--white); padding: 48px 20px; text-align: center; color: #aaa; }

/* ── Article page ─────────────────────────────────────────────────── */
.gd-article-wrap { background: var(--white); padding: 28px 32px; }
.gd-breadcrumb   { font-size: 12px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gd-breadcrumb a { color: var(--muted); }
.gd-breadcrumb a:hover { color: var(--red); }
.gd-breadcrumb span { color: #bbb; }
.gd-article-cat  { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.gd-article-cat a:hover { text-decoration: underline; }
.gd-article-h1   { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--dark); margin-bottom: 14px; }
.gd-article-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.gd-article-meta .author { font-weight: 600; color: var(--dark); }
.gd-article-excerpt { font-size: 16px; font-weight: 600; color: var(--dark); line-height: 1.7; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; font-style: italic; }
.gd-article-feat-img { margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #f0f0f0; }
.gd-article-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article content styles */
.gd-article-content { font-size: 17px; line-height: 1.85; color: #222; }
.gd-article-content h2 { font-size: 22px; margin: 1.6em 0 .7em; color: var(--dark); border-left: 4px solid var(--red); padding-left: 12px; }
.gd-article-content h3 { font-size: 18px; margin: 1.3em 0 .5em; color: var(--dark); }
.gd-article-content p  { margin: 0 0 1.1em; }
.gd-article-content ul,
.gd-article-content ol { margin: 0 0 1em; padding-left: 24px; }
.gd-article-content li { margin-bottom: .4em; }
.gd-article-content blockquote { border-left: 4px solid var(--red); margin: 1.2em 0; padding: 10px 16px; background: #fafafa; color: #444; font-style: italic; border-radius: 0 4px 4px 0; }
.gd-article-content img { max-width: 100%; border-radius: 4px; margin: 1em 0; }
.gd-article-content strong { font-weight: 700; }
.gd-article-content a { color: var(--blue); text-decoration: underline; }
.gd-article-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.gd-article-content td,
.gd-article-content th { padding: 8px 12px; border: 1px solid var(--border); font-size: 14px; }
.gd-article-content th { background: #f5f5f5; font-weight: 700; }

.gd-article-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.gd-article-tags span { font-size: 13px; color: var(--muted); }
.gd-article-tags a { background: var(--bg); padding: 3px 10px; border-radius: 12px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); }
.gd-article-tags a:hover { background: var(--red); color: white; border-color: var(--red); }

/* Related */
.gd-related { margin-top: 28px; }
.gd-related-list { display: flex; flex-direction: column; }
.gd-related-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.gd-related-item:last-child { border-bottom: none; }
.gd-related-thumb { flex-shrink: 0; width: 200px; aspect-ratio: 5/3; overflow: hidden; display: block; background: #f0f0f0; border-radius: var(--radius); }
.gd-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gd-related-thumb:hover img { transform: scale(1.06); }
.gd-related-body { flex: 1; min-width: 0; padding-top: 2px; }
.gd-related-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--dark); display: block; margin-bottom: 6px; }
.gd-related-title:hover { color: var(--red); }
.gd-related-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-related-meta { font-size: 12px; color: var(--muted); }

/* ── Pagination ───────────────────────────────────────────────────── */
.gd-pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 24px 0; }
.gd-pager a, .gd-pager span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 3px; background: var(--white); border: 1px solid var(--border); color: var(--dark); }
.gd-pager a:hover  { border-color: var(--red); color: var(--red); }
.gd-pager .active  { background: var(--red); color: white; border-color: var(--red); }
.gd-pager .dots    { background: none; border: none; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────── */
.gd-footer { background: #222; color: rgba(255,255,255,.75); margin-top: 40px; }
.gd-footer-main { max-width: 1130px; margin: 0 auto; padding: 36px 16px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.gd-footer-brand .gd-logo { gap: 10px; }
.gd-footer-brand .gd-logo-text { font-size: 18px; }
.gd-footer-brand .gd-logo-brand1 { color: #6aafdc; }
.gd-footer-brand .gd-logo-brand2 { color: #f07080; }
.gd-footer-brand .gd-logo-sub { color: rgba(255,255,255,.5); }
.gd-footer-brand p { font-size: 13px; line-height: 1.65; margin-top: 10px; }
.gd-footer h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.gd-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gd-footer ul a { font-size: 13px; color: rgba(255,255,255,.65); }
.gd-footer ul a:hover { color: white; }
.gd-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 16px; text-align: center; font-size: 12px; max-width: 1130px; margin: 0 auto; }

/* ── Nút về đầu trang (bên trái nút chat) ────────────────── */
.gd-totop { position: fixed; right: 88px; bottom: 24px; z-index: 1200; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; border: none; cursor: pointer; box-shadow: 0 6px 18px rgba(23,55,94,.32); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease, background .2s ease, box-shadow .2s ease; }
.gd-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.gd-totop svg { width: 22px; height: 22px; transition: transform .2s ease; }
.gd-totop:hover { background: var(--red); box-shadow: 0 8px 22px rgba(192,20,40,.36); }
.gd-totop:hover svg { transform: translateY(-2px); }
.gd-totop:active { transform: scale(.92); }
@media (max-width: 600px) { .gd-totop { width: 42px; height: 42px; right: 74px; bottom: 16px; } .gd-totop svg { width: 20px; height: 20px; } }

/* ── Chat hỗ trợ (góc dưới phải) ─────────────────────────── */
#gd-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1250; }
/* [hidden] phải thắng display của các class dưới đây (nếu không popup tự mở) */
.gd-chat-panel[hidden], .gd-chat-form[hidden], .gd-chat-thread[hidden], .gd-chat-input[hidden], .gd-chat-typing[hidden] { display: none; }
.gd-chat-typing { display: flex; align-items: center; gap: 8px; padding: 2px 14px 8px; font-size: 12px; color: #8a94a3; background: #f7f9fc; flex-shrink: 0; }
.gd-typing-dots { display: inline-flex; gap: 3px; }
.gd-typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b2; animation: gdTyping 1.2s infinite; }
.gd-typing-dots i:nth-child(2) { animation-delay: .15s; }
.gd-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gdTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.gd-chat-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(23,55,94,.38); transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.gd-chat-btn:hover { background: #1d4676; box-shadow: 0 10px 26px rgba(23,55,94,.46); }
.gd-chat-btn:active { transform: scale(.93); }
/* Hiệu ứng pulse nhẹ gây chú ý (dừng khi mở popup) */
.gd-chat-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--navy); z-index: -1; animation: gdChatPulse 2.4s ease-out infinite; }
#gd-chat.open .gd-chat-btn::before { animation: none; }
@keyframes gdChatPulse { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gd-chat-btn::before { animation: none; } }
.gd-chat-btn svg { width: 27px; height: 27px; }
.gd-chat-dot { position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.gd-chat-panel { position: absolute; right: 0; bottom: 68px; width: 340px; max-width: calc(100vw - 32px); height: 462px; max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.24); display: flex; flex-direction: column; overflow: hidden; animation: gdChatIn .18s ease; }
@keyframes gdChatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.gd-chat-hd { background: var(--navy); color: #fff; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.gd-chat-hd-title { font-size: 15px; font-weight: 700; display: block; }
.gd-chat-hd-sub { font-size: 11px; opacity: .82; display: block; margin-top: 2px; }
.gd-chat-close { background: none; border: none; color: #fff; font-size: 19px; cursor: pointer; opacity: .85; line-height: 1; }
.gd-chat-close:hover { opacity: 1; }
.gd-chat-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.gd-chat-form-intro { font-size: 13px; color: #555; margin: 2px 0 4px; }
.gd-chat-form input, .gd-chat-form textarea { padding: 10px 12px; border: 1px solid #d8dde6; border-radius: 9px; font-size: 14px; font-family: inherit; box-sizing: border-box; width: 100%; }
.gd-chat-form textarea { resize: vertical; }
.gd-chat-send-form { padding: 11px; background: var(--red); color: #fff; border: none; border-radius: 9px; font-size: 15px; font-weight: 700; cursor: pointer; }
.gd-chat-send-form:hover { background: #a01020; }
.gd-chat-send-form:disabled { opacity: .6; cursor: default; }
.gd-chat-form-err { font-size: 12px; color: var(--red); min-height: 14px; }
.gd-chat-thread { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: #f7f9fc; }
.gd-cmsg { max-width: 82%; padding: 8px 12px; border-radius: 13px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.gd-cmsg-time { font-size: 10px; opacity: .6; margin-top: 3px; display: block; }
.gd-cmsg-client { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.gd-cmsg-admin { align-self: flex-start; background: #fff; color: #222; border: 1px solid #e6e9ef; border-bottom-left-radius: 4px; }
.gd-cmsg-system { align-self: center; background: #fff7e6; color: #8a6d3b; font-size: 12.5px; text-align: center; max-width: 92%; border: 1px solid #f0e2c4; }
.gd-chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; flex-shrink: 0; background: #fff; }
.gd-chat-input input { flex: 1; padding: 10px 12px; border: 1px solid #d8dde6; border-radius: 20px; font-size: 14px; font-family: inherit; }
.gd-chat-input button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--navy); color: #fff; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.gd-chat-input button:hover { background: var(--red); }
.gd-chat-input button svg { width: 18px; height: 18px; }
@media (max-width: 600px) { #gd-chat { right: 14px; bottom: 14px; } .gd-chat-btn { width: 52px; height: 52px; } .gd-chat-panel { width: calc(100vw - 24px); height: 72vh; bottom: 64px; right: -4px; } }
.gd-footer-stats { border-top: 1px solid rgba(255,255,255,.1); }
.gd-footer-stats .gd-container { display:flex; align-items:center; flex-wrap:nowrap; gap:6px 16px; padding:10px 16px; font-size:12px; color:rgba(255,255,255,.65); overflow:hidden; white-space:nowrap; }
.gd-footer-stats .gd-fs-label { color:rgba(255,255,255,.5); margin-right:4px; }
.gd-footer-stats .gd-fs-group-label { color:rgba(255,255,255,.75); font-weight:600; }
.gd-footer-stats .gd-fs-sep { color:rgba(255,255,255,.25); margin:0 4px; }
.gd-footer-stats strong { color:#fff; font-weight:700; }

/* ── Search ───────────────────────────────────────────────────────── */
.gd-search-header { background: var(--white); padding: 20px; margin-bottom: 20px; }
.gd-search-header h1 { font-size: 22px; }
.gd-search-header span { color: var(--red); }
.gd-no-results { background: var(--white); padding: 60px 20px; text-align: center; color: var(--muted); }
.gd-no-results h2 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }

/* ── Tag / Category badge ─────────────────────────────────────────── */
.gd-badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: white; }

/* ── Responsive ───────────────────────────────────────────────────── */

/* ── Tablet ≤900px ─────────────────────────────────── */
@media (max-width: 900px) {
  .gd-main         { grid-template-columns: minmax(0, 1fr); }
  .gd-sidebar      { display: none; }
  .gd-hero-inner   { grid-template-columns: 1fr; }
  .gd-hero-side    { display: none; }
  .gd-footer-main  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gd-article-h1   { font-size: 18px; }

  /* Featured: stack on tablet */
  .gd-feat         { flex-direction: column; gap: 14px; }
  .gd-feat-img     { flex: none; width: 100%; }
  .gd-feat-body    { padding: 0; }

  /* Sec row: 2 col */
  .gd-sec-row      { grid-template-columns: 1fr 1fr; }
  .gd-sec-card:last-child { display: none; }
}

/* ── Header mobile ≤1024px (tablet + điện thoại, kể cả nằm ngang) ── */
@media (max-width: 1024px) {
  /* Header-top: 1 hàng, logo GIỮ dòng mô tả */
  .gd-header-top       { position: relative; }
  .gd-header-top-inner { height: auto; min-height: 62px; padding: 8px 14px; }
  .gd-header-date-sep  { display: none; }
  .gd-logo-icon-wrap   { width: 46px; height: 46px; }
  .gd-logo-img         { width: 46px; }
  .gd-logo-text        { font-size: 17px; }
  .gd-logo-sub         { display: block; font-size: 11px; }
  .gd-header-actions   { gap: 8px; }
  .gd-btn-text         { display: none; }
  .gd-user-name        { display: none; }

  /* Tìm kiếm: icon → bấm mới sổ ô nhập */
  .gd-search-icon  { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
                     background: none; border: 1px solid var(--border); border-radius: 50%; color: var(--navy);
                     cursor: pointer; padding: 0; flex-shrink: 0; }
  .gd-search-icon svg { width: 19px; height: 19px; }
  .gd-search-form  { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 1300;
                     height: auto; border: none; border-top: 1px solid #eee; border-radius: 0; background: #fff;
                     padding: 10px 14px; box-shadow: 0 10px 18px rgba(0,0,0,.12); }
  .gd-search-form.gd-open { display: flex; gap: 8px; }
  .gd-search-form input  { flex: 1; width: auto; font-size: 15px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
  .gd-search-form button { border: none; font-size: 18px; padding: 0 6px; }
  /* Đăng nhập: icon tròn */
  .gd-btn-google   { width: 38px; height: 38px; padding: 0; border-radius: 50%; justify-content: center; flex-shrink: 0; }

  /* Navbar bar: ☰ Menu (trái) — Tham gia nhóm Zalo (phải) */
  .gd-nav-mbar     { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; min-height: 48px; }
  .gd-nav-toggle   { display: flex; padding: 0 6px; }
  .gd-nav-mbar .gd-btn-zalo { position: static; transform: none; margin-left: auto; width: auto; min-width: 0; height: auto;
                     gap: 6px; border: 1px solid #e3e6ea; border-radius: 8px; padding: 7px 12px; line-height: 1; }
  .gd-nav-mbar .gd-btn-zalo img { width: 16px; height: 16px; }

  /* Drawer: chỉ menu cấp 1; sub sổ bằng mũi tên */
  /* Drawer = panel 50% màn hình, nền navy-tint tách khỏi nội dung */
  .gd-navbar-inner { display: none; position: absolute; top: 100%; left: 0; right: auto; width: 50%; min-width: 200px; max-width: 300px;
                     flex-direction: column; align-items: stretch; background: #eef2f8;
                     border-right: 1px solid #d7dfea; border-bottom: 1px solid #d7dfea; border-radius: 0 0 10px 0;
                     box-shadow: 4px 14px 28px rgba(23,55,94,.20); max-height: 80vh; overflow-y: auto; padding: 4px 0; }
  .gd-navbar-inner.gd-open { display: flex; }
  .gd-navbar a     { width: 100%; height: auto; padding: 14px 18px; justify-content: flex-start; border-radius: 0; font-size: 15px; }
  .gd-navbar a.active { background: #dde6f3; color: var(--navy); box-shadow: inset 3px 0 0 var(--red); font-weight: 700; }
  .gd-navbar-inner > a { border-bottom: 1px solid #e0e6ef; }
  .gd-navbar-inner .gd-btn-zalo { display: none; }
  /* Drawer: menu cha 1 dòng; bấm mũi tên → menu con sổ xuống DỌC */
  .gd-nav-item     { position: relative; display: block; min-height: 50px; border-bottom: 1px solid #e0e6ef; }
  .gd-nav-item > a { display: flex; align-items: center; width: 100%; min-height: 50px; padding: 0 50px 0 18px; }
  .gd-nav-item.has-sub > a::after { display: none; }
  .gd-sub-toggle   { position: absolute; top: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
                     width: 46px; height: 50px; background: none; border: none; border-left: 1px solid #e0e6ef; color: #9aa7b8; cursor: pointer; }
  .gd-sub-toggle:active { color: var(--navy); }
  .gd-sub-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; }
  .gd-nav-item.gd-sub-open .gd-sub-toggle { color: var(--navy); }
  .gd-nav-item.gd-sub-open .gd-sub-toggle svg { transform: rotate(180deg); }
  .gd-nav-sub      { display: none; position: relative; min-width: 0; padding: 2px 0; margin: 0;
                     border: none; border-radius: 0; box-shadow: none; background: #e5ecf5; }
  .gd-nav-sub::before { content: ''; position: absolute; left: 26px; top: 6px; bottom: 6px; width: 2px; background: #aab9cd; border-radius: 2px; }
  /* Cảm ứng dính :hover → vô hiệu hover-mở của desktop, chỉ mở/đóng bằng nút mũi tên */
  .gd-nav-item:hover .gd-nav-sub { display: none; }
  .gd-nav-item.gd-sub-open .gd-nav-sub { display: block; }
  .gd-nav-sub a    { padding: 10px 16px 10px 42px !important; font-size: 14px !important; border-bottom: none !important; color: #3a4a5f !important; }

  /* Zalo trong drawer: ẩn (đã có ở thanh bar) */
  .gd-navbar-inner .gd-btn-zalo { display: none; }
}

/* ── Mobile ≤600px ─────────────────────────────────── */
@media (max-width: 600px) {

  /* Header: logo nhỏ hơn chút trên điện thoại hẹp (giữ thiết kế ≤1024) */
  .gd-logo             { gap: 8px; }
  .gd-logo-icon-wrap   { width: 42px; height: 42px; }
  .gd-logo-img         { width: 42px; }
  .gd-logo-text        { font-size: 16px; }
  .gd-logo-sub         { font-size: 10.5px; }

  /* Navbar: dùng hamburger drawer (định nghĩa ở ≤900) */

  /* Container */
  .gd-container        { padding: 0 12px; }
  .gd-main             { padding: 0 12px; margin: 12px auto; }

  /* Category heading: tiêu đề + danh sách menu con CÙNG 1 HÀNG, cuộn ngang + dấu » */
  .gd-cat-hd           { flex-wrap: nowrap; align-items: center; position: relative; gap: 10px; padding: 10px 30px 8px 0; }
  .gd-cat-hd-title     { font-size: 18px; flex-shrink: 0; }
  .gd-cat-hd::after    { content: '\00BB'; position: absolute; right: 0; top: 0; bottom: 9px; display: flex; align-items: center;
                         padding-left: 18px; font-size: 17px; font-weight: 700; color: #9aa7b8; pointer-events: none;
                         background: linear-gradient(to right, rgba(245,245,245,0), var(--bg) 55%); }
  .gd-topic-nav        { padding: 10px 0 8px; gap: 10px; }
  .gd-home-link        { padding-right: 10px; }
  .gd-home-link .gd-home-ic { width: 19px; height: 19px; }
  .gd-cat-subnav       { flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .gd-cat-subnav::-webkit-scrollbar { display: none; }

  /* Featured: full stack, smaller title */
  .gd-feat             { flex-direction: column; gap: 12px; padding-bottom: 16px; }
  .gd-feat-img         { flex: none; width: 100%; }
  .gd-feat-title       { font-size: 18px; font-weight: 700; }
  .gd-feat-excerpt     { font-size: 14px; -webkit-line-clamp: 2; }

  /* Sec row: single col */
  .gd-sec-row          { grid-template-columns: 1fr; }
  .gd-sec-card         { padding: 0 0 16px; border-right: none; border-bottom: 1px solid #e5e5e5; }
  .gd-sec-card:first-child { padding-left: 0; }
  .gd-sec-card:last-child  { display: flex; border-bottom: none; padding-bottom: 0; }
  .gd-sec-thumb        { aspect-ratio: 16/9; height: auto; }

  /* Section body */
  .gd-sec-body         { grid-template-columns: 1fr; }
  .gd-list             { border-left: none; border-top: 1px solid #e8e8e8; }
  .gd-list-thumb       { width: 96px; }

  /* Article list mobile */
  .gd-al-thumb         { width: 110px; }
  .gd-al-title         { font-size: 14px; }
  .gd-article-list-item { gap: 12px; padding: 12px 0; }

  /* Grid */
  .gd-grid-3,
  .gd-grid-4           { grid-template-columns: 1fr 1fr; }

  /* Article page */
  .gd-article-wrap     { padding: 14px 14px 24px; }
  .gd-article-h1       { font-size: 17px; line-height: 1.35; }
  .gd-article-excerpt  { font-size: 15px; }
  .gd-article-meta     { flex-wrap: wrap; gap: 6px; font-size: 12px; padding: 8px 0; }
  .gd-article-content  { font-size: 15px; line-height: 1.8; }
  .gd-article-content h2 { font-size: 18px; }
  .gd-article-content h3 { font-size: 16px; }
  .gd-article-content table { font-size: 13px; display: block; overflow-x: auto; }

  /* Related articles */
  .gd-related-item     { gap: 10px; }
  .gd-related-thumb    { width: 110px; }
  .gd-related-title    { font-size: 14px; }
  .gd-related-excerpt  { display: none; }

  /* Footer */
  .gd-footer-main      { grid-template-columns: 1fr; padding: 20px 12px; gap: 20px; }
  .gd-footer h4        { margin-bottom: 8px; }
  .gd-footer ul        { gap: 6px; }

  /* Pagination */
  .gd-pager a,
  .gd-pager span       { width: 32px; height: 32px; font-size: 13px; }

  /* Section header */
  .gd-sec-title        { font-size: 16px; }
}

/* ── Partners / Liên hệ — redesign ──────────────────────────────── */

/* Hero intro bar */
.gd-ph-hero { display:flex; align-items:center; gap:20px; background:linear-gradient(135deg,var(--navy) 0%,#1e4a7a 60%,var(--blue) 100%); border-radius:14px; padding:28px 36px; margin:24px 0 32px; color:#fff; }
.gd-ph-hero-icon { flex-shrink:0; width:56px; height:56px; background:rgba(255,255,255,.15); border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; }
.gd-ph-hero-title { font-size:24px; font-weight:800; color:#fff; margin-bottom:4px; }
.gd-ph-hero-sub { font-size:14px; color:rgba(255,255,255,.75); margin:0; }
.gd-ph-hero-stat { margin-left:auto; text-align:center; flex-shrink:0; background:rgba(255,255,255,.12); border-radius:10px; padding:12px 20px; }
.gd-ph-stat-num { display:block; font-size:28px; font-weight:800; color:#fff; line-height:1; }
.gd-ph-stat-label { font-size:12px; color:rgba(255,255,255,.7); }

/* Featured card */
.gd-ph-featured { display:flex; gap:30px; align-items:center; background:#fff; border-radius:16px; padding:32px 36px; text-decoration:none; color:inherit; position:relative; overflow:hidden;
  box-shadow:0 2px 4px rgba(23,55,94,.06),0 8px 24px rgba(23,55,94,.1);
  transition:box-shadow .25s,transform .25s; margin-bottom:40px; }
.gd-ph-featured::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--navy) 0%,#2d7dd2 50%,var(--navy) 100%); }
.gd-ph-featured:hover { box-shadow:0 6px 16px rgba(23,55,94,.12),0 24px 48px rgba(23,55,94,.16); transform:translateY(-2px); }
.gd-ph-feat-logo { flex-shrink:0; width:116px; height:116px; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,#eef2ff,#e0e8ff); border:3px solid rgba(23,55,94,.1);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(23,55,94,.15); }
.gd-ph-feat-logo img { width:100%; height:100%; object-fit:contain; }
.gd-ph-feat-body { flex:1; min-width:0; }
.gd-ph-feat-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:#92400e; background:linear-gradient(135deg,#fef3c7,#fde68a); border-radius:20px; padding:3px 12px; margin-bottom:10px; letter-spacing:.3px; }
.gd-ph-feat-name { font-size:24px; font-weight:800; color:var(--navy); margin-bottom:10px; line-height:1.25; }
.gd-ph-feat-desc { font-size:15px; color:#555; line-height:1.65; margin-bottom:18px; }
.gd-ph-feat-meta { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.gd-ph-chip { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#555; background:#f4f6fb; border:1px solid #e8ecf3; border-radius:20px; padding:5px 13px; }
.gd-ph-feat-cta { display:inline-flex; align-items:center; gap:8px; background:linear-gradient(135deg,var(--navy) 0%,#1e5a9e 100%); color:#fff; font-size:13px; font-weight:700; padding:11px 24px; border-radius:8px; transition:opacity .15s,gap .15s; }
.gd-ph-feat-cta span { transition:transform .15s; }
.gd-ph-featured:hover .gd-ph-feat-cta span { transform:translateX(3px); }
.gd-ph-feat-deco { position:absolute; right:-40px; bottom:-40px; width:200px; height:200px; border-radius:50%; background:radial-gradient(circle,rgba(23,55,94,.06) 0%,transparent 70%); pointer-events:none; }

/* Section title */
.gd-ph-section-hd { margin-bottom:18px; }
.gd-ph-section-title { font-size:17px; font-weight:700; color:var(--navy); margin:0; padding-bottom:14px; border-bottom:2px solid var(--border); display:flex; align-items:center; gap:8px; }
.gd-ph-section-title::before { content:''; display:inline-block; width:4px; height:18px; background:var(--navy); border-radius:2px; }

/* Partner grid */
.gd-ph-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.gd-ph-card { display:flex; flex-direction:column; background:#fff; border-radius:14px; overflow:hidden; text-decoration:none; color:inherit;
  border:1px solid rgba(0,0,0,.06); box-shadow:0 1px 3px rgba(0,0,0,.07),0 4px 12px rgba(0,0,0,.04);
  transition:box-shadow .22s,transform .22s; }
.gd-ph-card:hover { box-shadow:0 4px 16px rgba(23,55,94,.12),0 16px 40px rgba(23,55,94,.1); transform:translateY(-4px); }
.gd-ph-card-top { background:linear-gradient(135deg,#eef2ff 0%,#dde6f7 100%); display:flex; align-items:center; justify-content:center; padding:28px; min-height:100px; }
.gd-ph-card-logo { width:76px; height:76px; border-radius:50%; overflow:hidden; background:#fff; border:2.5px solid rgba(23,55,94,.12); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(0,0,0,.1); }
.gd-ph-card-logo img { width:100%; height:100%; object-fit:contain; }
.gd-ph-card-body { flex:1; padding:18px 20px 12px; }
.gd-ph-card-name { font-size:15px; font-weight:700; color:var(--navy); margin-bottom:7px; line-height:1.3; }
.gd-ph-card-desc { font-size:13px; color:#666; line-height:1.55; margin-bottom:10px; }
.gd-ph-card-addr { display:inline-flex; align-items:center; gap:4px; font-size:11.5px; color:#888; background:#f5f7fc; border-radius:20px; padding:3px 10px; }
.gd-ph-card-footer { padding:12px 20px; border-top:1px solid #f0f2f7; display:flex; align-items:center; justify-content:space-between; }
.gd-ph-card-cta { font-size:12.5px; font-weight:700; color:var(--navy); display:flex; align-items:center; gap:5px; }
.gd-ph-arrow { display:inline-block; transition:transform .15s; }
.gd-ph-card:hover .gd-ph-arrow { transform:translateX(4px); }

/* Logo placeholder — circle gradient */
.gd-ph-logo-init { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--navy),var(--blue)); color:#fff; font-size:20px; font-weight:800; letter-spacing:-.5px; }

/* Detail page */
.gd-partner-detail { max-width:820px; margin:0 auto; }
.gd-partner-detail-header { display:flex; gap:28px; align-items:flex-start; background:#fff; border-radius:16px; padding:32px; margin-bottom:24px;
  box-shadow:0 2px 4px rgba(23,55,94,.06),0 8px 24px rgba(23,55,94,.08); }
.gd-partner-detail-logo { flex-shrink:0; width:120px; height:120px; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,#eef2ff,#dde6f7); border:3px solid rgba(23,55,94,.1); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(23,55,94,.15); }
.gd-partner-detail-logo img { width:100%; height:100%; object-fit:contain; }
.gd-partner-detail-info { flex:1; min-width:0; }
.gd-partner-detail-name { font-size:24px; font-weight:800; color:var(--navy); margin-bottom:6px; }
.gd-partner-badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; color:#92400e; background:linear-gradient(135deg,#fef3c7,#fde68a); border-radius:20px; padding:3px 12px; }
.gd-partner-contacts { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.gd-partner-contact-row { display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text); }
.gd-partner-contact-row a { color:var(--navy); text-decoration:none; }
.gd-partner-contact-row a:hover { text-decoration:underline; }
.gd-partner-detail-content { background:#fff; border-radius:16px; padding:32px; box-shadow:0 1px 3px rgba(23,55,94,.06),0 4px 16px rgba(23,55,94,.06); }

/* Responsive */
@media (max-width:900px) { .gd-ph-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:640px) {
  .gd-ph-hero { flex-wrap:wrap; padding:20px 22px; }
  .gd-ph-hero-stat { margin-left:0; }
  .gd-ph-featured { flex-direction:column; align-items:flex-start; padding:24px; }
  .gd-ph-feat-logo { width:84px; height:84px; }
  .gd-ph-grid { grid-template-columns:1fr; }
  .gd-partner-detail-header { flex-direction:column; padding:22px; }
}

/* ── Partner listing ─────────────────────────────────────────────── */
.gd-partner-list { display:flex; flex-direction:column; }
.gd-partner-card { display:flex; align-items:flex-start; gap:20px; padding:22px 0; border-bottom:1px solid #eee; text-decoration:none; color:inherit; transition:background .15s; }
.gd-partner-card:first-child { padding-top:0; }
.gd-partner-card:last-child  { border-bottom:none; }
.gd-partner-card:hover .gd-partner-card-name { color:var(--red); }
.gd-partner-card-logo { flex-shrink:0; width:88px; height:88px; border:1px solid #eee; border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#fafafa; }
.gd-partner-card-logo img { width:100%; height:100%; object-fit:contain; padding:8px; }
.gd-partner-logo-init { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; color:var(--navy); background:#e8eaf6; }
.gd-partner-card-body { flex:1; min-width:0; }
.gd-partner-badge { display:inline-block; font-size:11px; font-weight:600; color:#92400e; background:#fef3c7; border:1px solid #fcd34d; border-radius:4px; padding:2px 8px; margin-bottom:6px; }
.gd-partner-card-name { font-size:17px; font-weight:700; color:var(--navy); margin-bottom:5px; transition:color .15s; }
.gd-partner-card-desc { font-size:15px; color:#555; line-height:1.55; margin-bottom:10px; }
.gd-partner-card-addrs  { display:flex; flex-direction:column; gap:3px; margin-top:5px; }
.gd-partner-addr-row    { font-size:13px; color:#444; line-height:1.45; }
.gd-partner-card-contacts { display:flex; flex-wrap:wrap; gap:0 16px; margin-top:7px; }
.gd-partner-chip { font-size:13px; color:#444; padding:0; white-space:nowrap; }
.gd-partner-card-cta { flex-shrink:0; align-self:center; font-size:13px; font-weight:600; color:var(--red); white-space:nowrap; padding-left:8px; }
/* ── Partner detail ───────────────────────────────────────────────── */
.gd-partner-profile { display:flex; gap:28px; align-items:flex-start; background:#fff; border:1px solid #e8e8e8; border-radius:12px; padding:28px; margin-bottom:28px; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.gd-partner-profile-logo { flex-shrink:0; width:120px; height:120px; border:1px solid #eee; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#fafafa; }
.gd-partner-profile-logo img { width:100%; height:100%; object-fit:contain; padding:10px; }
.gd-partner-logo-lg { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:34px; font-weight:700; color:var(--navy); background:#e8eaf6; }
.gd-partner-profile-info { flex:1; min-width:0; }
.gd-partner-profile-name { font-size:22px; font-weight:700; color:var(--navy); margin:0 0 6px; }
.gd-partner-profile-desc { font-size:15px; color:#555; line-height:1.6; margin:0 0 14px; }
.gd-partner-profile-contacts { display:flex; flex-direction:column; gap:8px; }
.gd-partner-contact-row { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:#333; }
.gd-partner-contact-icon { flex-shrink:0; }
.gd-partner-contact-row a { color:var(--navy); text-decoration:none; }
.gd-partner-contact-row a:hover { color:var(--red); text-decoration:underline; }
.gd-partner-body { background:#fff; border:1px solid #e8e8e8; border-radius:10px; padding:28px; }
@media (max-width:600px) {
  .gd-partner-card { gap:12px; padding:16px 0; }
  .gd-partner-card-logo { width:64px; height:64px; }
  .gd-partner-card-cta { display:none; }
  .gd-partner-card-contacts { flex-direction:column; gap:3px; }
  .gd-partner-chip { background:none; padding:0; }
  .gd-partner-profile { flex-direction:column; padding:20px; gap:16px; }
  .gd-partner-profile-logo { width:88px; height:88px; }
  .gd-partner-profile-name { font-size:18px; }
  .gd-partner-body { padding:20px; }
}

/* ── Utility ──────────────────────────────────────────────────────── */
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.fw-bold     { font-weight: 700; }
.fs-12       { font-size: 12px; }
.fs-13       { font-size: 13px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-8       { gap: 8px; }
.visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ═══════════════════════════════════════════════════════════════════
   SHOP — Sản phẩm, popup, "Quan tâm", đơn hàng
   ═══════════════════════════════════════════════════════════════════ */

/* ── Lưới thẻ sản phẩm ─────────────────────────────────────────────── */
.gd-prod-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:24px; }
.gd-prod-card { display:flex; flex-direction:column; background:#fff; border:1px solid #ececec; border-radius:12px; overflow:hidden;
  box-shadow:0 1px 3px rgba(0,0,0,.05); transition:box-shadow .2s, transform .2s; }
.gd-prod-card:hover { box-shadow:0 6px 20px rgba(23,55,94,.12); transform:translateY(-3px); }
.gd-prod-thumb { position:relative; display:block; width:100%; aspect-ratio:16/9; background:#f6f7f9; border:none; padding:0; cursor:pointer; overflow:hidden; }
.gd-prod-thumb img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .35s; }
.gd-prod-card:hover .gd-prod-thumb img { transform:scale(1.04); }
.gd-prod-badge { position:absolute; top:10px; left:10px; background:var(--red); color:#fff; font-size:12px; font-weight:700; padding:3px 9px; border-radius:20px; }
.gd-prod-star { position:absolute; top:9px; right:9px; width:26px; height:26px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.92); color:#f59e0b; font-size:15px; border-radius:50%; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.gd-prod-oos { position:absolute; top:9px; left:9px; background:rgba(220,38,38,.94); color:#fff; font-size:11px; font-weight:700; padding:3px 9px; border-radius:6px; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.gd-prod-body { display:flex; flex-direction:column; gap:6px; padding:12px 14px 14px; flex:1; }
.gd-prod-name { font-size:15px; font-weight:600; line-height:1.4; color:var(--dark); margin:0; cursor:pointer;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.gd-prod-name:hover { color:var(--red); }
.gd-prod-desc { font-size:13px; color:var(--muted); line-height:1.5; margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.gd-prod-price { margin-top:auto; padding-top:4px; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.gd-prod-price-now { font-size:17px; font-weight:800; color:var(--red); }
.gd-prod-price-old { font-size:13px; color:#aaa; text-decoration:line-through; }
.gd-prod-actions { display:flex; gap:8px; margin-top:auto; padding-top:8px; }
.gd-prod-btn { flex:1; padding:8px 8px; border-radius:7px; font-size:13px; font-weight:600; cursor:pointer; text-align:center;
  border:1px solid var(--navy); background:#fff; color:var(--navy); transition:.15s; white-space:nowrap; font-family:inherit; min-width:0; }
.gd-prod-btn-info:hover { background:#f0f4f8; }
.gd-prod-btn-add { border-color:var(--red); color:var(--red); }
.gd-prod-btn-add:hover { background:var(--red); color:#fff; }
.gd-prod-btn-add.added { background:var(--red); color:#fff; }

/* ── Dải "đang quan tâm" (fixed đáy) ───────────────────────────────── */
.gd-interest-bar { position:fixed; left:0; right:0; bottom:0; z-index:900; background:var(--navy); color:#fff;
  box-shadow:0 -3px 14px rgba(0,0,0,.18); animation:gdBarUp .25s ease; }
@keyframes gdBarUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
.gd-interest-inner { display:flex; align-items:center; justify-content:space-between; padding:11px 16px; gap:14px; }
.gd-interest-text { font-size:14px; }
.gd-interest-text strong { font-size:16px; color:#ffd54a; }
.gd-interest-heart { color:#ff6b81; margin-right:4px; }
.gd-interest-acts { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.gd-interest-clear { background:none; border:1px solid rgba(255,255,255,.4); color:#fff; padding:7px 14px; border-radius:7px; font-size:13px; cursor:pointer; font-family:inherit; }
.gd-interest-clear:hover { background:rgba(255,255,255,.12); }
.gd-interest-send { background:var(--red); color:#fff; padding:8px 18px; border-radius:7px; font-size:14px; font-weight:700; white-space:nowrap; }
.gd-interest-send:hover { background:#a01020; color:#fff; }
body.gd-has-bar { padding-bottom:62px; }

/* ── Toast ─────────────────────────────────────────────────────────── */
.gd-toast { position:fixed; bottom:78px; left:50%; transform:translateX(-50%) translateY(10px); z-index:1200;
  background:#222; color:#fff; padding:10px 18px; border-radius:24px; font-size:13px; font-weight:600;
  opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; box-shadow:0 4px 16px rgba(0,0,0,.25); }
.gd-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Popup chi tiết ────────────────────────────────────────────────── */
.gd-modal { position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; padding:20px; }
.gd-modal[hidden] { display:none; }
.gd-modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(2px); }
.gd-modal-box { position:relative; background:#fff; border-radius:16px; max-width:880px; width:100%; max-height:90vh; overflow:auto;
  box-shadow:0 24px 60px rgba(0,0,0,.3); animation:gdModalIn .2s ease; }
@keyframes gdModalIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.gd-modal-close { position:absolute; top:12px; right:12px; z-index:5; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.92); border:1px solid #e5e5e5; font-size:16px; cursor:pointer; color:#555; display:flex; align-items:center; justify-content:center; }
.gd-modal-close:hover { background:#fff; color:var(--red); }
.gd-modal-loading { padding:60px 20px; text-align:center; color:#aaa; }
.gd-modal-content { display:block; }
.gd-md-gallery { padding:18px; }
.gd-md-main { aspect-ratio:4/3; background:#f6f7f9; border-radius:12px; overflow:hidden; display:flex; align-items:center; justify-content:center; cursor:zoom-in; }
.gd-md-main img { width:100%; height:100%; object-fit:contain; transition:transform .22s ease; will-change:transform; }
.gd-md-thumbs { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.gd-md-thumbs img { width:60px; height:60px; object-fit:cover; border-radius:7px; border:2px solid transparent; cursor:pointer; background:#f6f7f9; }
.gd-md-thumbs img.active { border-color:var(--navy); }
.gd-md-info { padding:6px 22px 22px; }
.gd-md-cat { font-size:12px; font-weight:700; color:var(--navy); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.gd-md-name { font-size:22px; font-weight:800; color:var(--dark); line-height:1.3; margin:0 0 12px; }
.gd-md-price { display:flex; align-items:baseline; gap:10px; margin-bottom:10px; }
.gd-md-stock { display:inline-block; font-size:13px; font-weight:600; padding:4px 12px; border-radius:20px; margin:0 0 14px; }
.gd-md-stock.in  { background:#ecfdf5; color:#059669; }
.gd-md-stock.low { background:#fff7ed; color:#c2410c; }
.gd-md-stock.out { background:#fef2f2; color:#dc2626; }
.gd-md-price-now { font-size:24px; font-weight:800; color:var(--red); }
.gd-md-price-old { font-size:15px; color:#aaa; text-decoration:line-through; }
.gd-md-short { font-size:15px; color:#444; line-height:1.6; margin:0 0 14px; }
.gd-md-specs { width:100%; border-collapse:collapse; margin:0 0 16px; font-size:14px; }
.gd-md-specs th, .gd-md-specs td { text-align:left; padding:7px 10px; border:1px solid #eee; vertical-align:top; }
.gd-md-specs th { background:#f7f8fa; font-weight:600; color:#555; width:38%; }
.gd-md-desc { font-size:15px; line-height:1.75; color:#333; margin-bottom:18px; }
.gd-md-actions { display:flex; gap:10px; margin-top:18px; }
.gd-md-actions .gd-prod-btn { flex:1; padding:13px; font-size:15px; box-shadow:0 2px 8px rgba(0,0,0,.1); }
/* Quan tâm — nền đỏ (chính); đã chọn → nền xanh lá */
.gd-md-actions .gd-modal-add { background:var(--red); color:#fff; border-color:var(--red); }
.gd-md-actions .gd-modal-add:hover { background:#a01020; border-color:#a01020; color:#fff; }
.gd-md-actions .gd-modal-add.added { background:var(--green); border-color:var(--green); color:#fff; }
/* Xem danh sách — nền navy (phụ) */
.gd-md-actions .gd-md-go { background:var(--navy) !important; color:#fff !important; border-color:var(--navy) !important; }
.gd-md-actions .gd-md-go:hover { background:#11335c !important; border-color:#11335c !important; color:#fff !important; }
@media (min-width:720px) {
  .gd-modal-content { display:grid; grid-template-columns:minmax(0,46%) minmax(0,54%); align-items:start; }
  .gd-md-info { padding:24px 24px 24px 6px; max-height:90vh; overflow:auto; }
}

/* ── Trang /yeu-cau ────────────────────────────────────────────────── */
.gd-order-wrap { margin-bottom:40px; }
.gd-chip-demo { display:inline-flex; align-items:center; gap:3px; padding:3px 11px; background:var(--red); color:#fff; border-radius:14px; font-weight:600; font-size:13px; white-space:nowrap; vertical-align:middle; }
.gd-empty-cta { display:inline-flex; align-items:center; gap:7px; margin-top:20px; padding:13px 30px; background:var(--navy); color:#fff; border-radius:9px; font-size:15px; font-weight:700; box-shadow:0 3px 12px rgba(23,55,94,.22); transition:background .15s, transform .15s; }
.gd-empty-cta:hover { background:#11335c; color:#fff; transform:translateY(-2px); }
.gd-order-grid { display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start; }
.gd-order-items { background:#fff; border:1px solid #ececec; border-radius:12px; overflow:hidden; }
.gd-oi { display:flex; align-items:center; gap:14px; padding:14px 16px; border-bottom:1px solid #f0f0f0; }
.gd-oi:last-child { border-bottom:none; }
.gd-oi-img { width:64px; height:64px; object-fit:cover; border-radius:8px; background:#f6f7f9; flex-shrink:0; }
.gd-oi-info { flex:1; min-width:0; }
.gd-oi-name { font-size:14px; font-weight:600; color:var(--dark); line-height:1.4; }
.gd-oi-unit { font-size:13px; color:var(--muted); margin-top:3px; }
.gd-oi-qty { display:flex; align-items:center; gap:0; border:1px solid #ddd; border-radius:7px; overflow:hidden; flex-shrink:0; }
.gd-oi-qty button { width:30px; height:32px; background:#f7f8fa; border:none; font-size:16px; cursor:pointer; color:#444; }
.gd-oi-qty button:hover { background:#eef0f3; color:var(--red); }
.gd-oi-qty span { min-width:34px; text-align:center; font-size:14px; font-weight:600; }
.gd-oi-line { width:96px; text-align:right; font-size:14px; font-weight:700; color:var(--dark); flex-shrink:0; }
.gd-oi-del { background:none; border:none; color:#bbb; font-size:15px; cursor:pointer; padding:4px; flex-shrink:0; }
.gd-oi-del:hover { color:var(--red); }
.gd-order-sum { display:flex; align-items:center; justify-content:space-between; padding:16px; margin-top:14px; background:#fff; border:1px solid #ececec; border-radius:12px; }
.gd-order-sum strong { font-size:20px; color:var(--red); }
.gd-order-hint { font-size:12px; color:#999; margin-top:8px; line-height:1.5; }
.gd-order-form { background:#fff; border:1px solid #ececec; border-radius:12px; padding:20px; position:sticky; top:80px; }
.gd-order-form-title { font-size:16px; font-weight:700; color:var(--navy); margin:0 0 16px; }
.gd-of-row { margin-bottom:14px; }
.gd-of-row label { display:block; font-size:13px; font-weight:600; color:#444; margin-bottom:5px; }
.gd-of-row .req { color:var(--red); }
.gd-of-row input, .gd-of-row textarea { width:100%; padding:10px 12px; border:1px solid #d8d8d8; border-radius:8px; font-size:14px; font-family:inherit; box-sizing:border-box; }
.gd-of-row input:focus, .gd-of-row textarea:focus { outline:none; border-color:var(--navy); }
.gd-of-submit { width:100%; padding:13px; background:var(--red); color:#fff; border:none; border-radius:8px; font-size:16px; font-weight:700; cursor:pointer; font-family:inherit; }
.gd-of-submit:hover { background:#a01020; }
.gd-of-submit:disabled { opacity:.6; cursor:default; }
.gd-of-err { margin-top:10px; padding:9px 12px; background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; border-radius:7px; font-size:13px; }

/* ── Trang /don-hang ───────────────────────────────────────────────── */
.gd-ov-wrap { max-width:880px; margin:24px auto 48px; }
.gd-ov-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.gd-ov-code-label { font-size:12px; color:var(--muted); }
.gd-ov-code { font-size:22px; font-weight:800; color:var(--navy); letter-spacing:.5px; }
.gd-ov-status { font-size:13px; font-weight:700; padding:6px 14px; border-radius:20px; white-space:nowrap; }
.gd-ov-banner { padding:14px 18px; border-radius:10px; font-size:14px; line-height:1.6; margin-bottom:20px; }
.gd-ov-banner-pay { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.gd-ov-banner-wait { background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; }
.gd-ov-banner-ok { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.gd-ov-banner-cancel { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.gd-ov-zalo-btn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:12px; background:#0068ff; color:#fff; border-radius:9px; font-size:15px; font-weight:700; text-decoration:none; box-sizing:border-box; transition:background .15s; }
.gd-ov-zalo-btn:hover { background:#0055d4; color:#fff; }
.gd-ov-zalo-btn img { width:22px; height:22px; border-radius:5px; background:#fff; }
.gd-ov-zalo-wrap { background:#fff; border:1px solid #e6f0ff; border-radius:12px; padding:16px; margin-bottom:20px; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.gd-ov-zalo-note { font-size:12.5px; color:#666; text-align:center; margin-top:9px; line-height:1.5; }
.gd-ov-bill-card { background:#fff; border:1px solid #ececec; border-radius:12px; padding:20px; }
.gd-ov-bill-hint { font-size:13px; color:#666; margin:0 0 14px; line-height:1.55; }
.gd-ov-bill-grid { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.gd-ov-bill-grid:empty { display:none; }
.gd-ov-bill-thumb { position:relative; width:78px; height:78px; border-radius:8px; overflow:hidden; border:1px solid #e6e9ef; background:#f6f7f9; }
.gd-ov-bill-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.gd-ov-bill-x { position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%; background:rgba(225,29,72,.92); color:#fff; border:none; font-size:11px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.3); padding:0; }
.gd-ov-bill-x:hover { background:#be123c; }
.gd-ov-bill-pick { width:100%; padding:11px; background:#eef2f7; color:var(--navy); border:1px dashed #b8c4d4; border-radius:9px; font-size:14px; font-weight:700; cursor:pointer; }
.gd-ov-bill-pick:hover { background:#e3ebf4; }
.gd-ov-bill-send { width:100%; padding:12px; margin-top:10px; background:var(--navy); color:#fff; border:none; border-radius:9px; font-size:15px; font-weight:700; cursor:pointer; }
.gd-ov-bill-send:hover:not(:disabled) { background:#11335c; }
.gd-ov-bill-send:disabled { background:#c4ccd6; cursor:default; }
.gd-ov-bill-msg { font-size:12.5px; text-align:center; margin-top:9px; min-height:14px; }
.gd-ov-bill-done-msg { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; border-radius:9px; padding:13px 14px; font-size:13.5px; line-height:1.55; font-weight:500; text-align:center; }
.gd-ov-bill-done-link { display:inline-block; margin-top:12px; font-size:13px; color:var(--blue); font-weight:600; }
.gd-ov-grid { display:grid; grid-template-columns:1fr 340px; gap:20px; align-items:start; }
.gd-ov-items-card, .gd-ov-pay-card { background:#fff; border:1px solid #ececec; border-radius:12px; padding:20px; }
.gd-ov-h2 { font-size:16px; font-weight:700; color:var(--navy); margin:0 0 14px; }
.gd-ov-item { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px dashed #eee; font-size:14px; }
.gd-ov-item-qty { color:#999; font-weight:400; }
.gd-ov-item-total { font-weight:600; white-space:nowrap; }
.gd-ov-total-row { display:flex; justify-content:space-between; padding-top:14px; margin-top:6px; font-size:15px; }
.gd-ov-total-row strong { font-size:20px; color:var(--red); }
.gd-ov-cust { margin-top:16px; padding-top:14px; border-top:1px solid #f0f0f0; font-size:13px; color:#555; line-height:1.8; }
.gd-ov-qr { text-align:center; margin-bottom:16px; }
.gd-ov-qr img { width:200px; height:200px; border:1px solid #eee; border-radius:10px; padding:6px; background:#fff; }
.gd-ov-qr-hint { font-size:12px; color:var(--muted); margin-top:8px; line-height:1.5; }
.gd-ov-bank { background:#f8fafc; border-radius:9px; padding:6px 14px; margin-bottom:16px; }
.gd-ov-bank-row { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid #eef1f4; font-size:13px; }
.gd-ov-bank-row:last-child { border-bottom:none; }
.gd-ov-bank-row span { color:var(--muted); }
.gd-ov-bank-row b { color:var(--dark); text-align:right; }
.gd-ov-bank-content b { color:var(--red); }
.gd-ov-nobank { font-size:13px; color:#b45309; background:#fffbeb; padding:10px; border-radius:7px; }
.gd-ov-paid-btn { width:100%; padding:13px; background:var(--green); color:#fff; border:none; border-radius:8px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; }
.gd-ov-paid-btn:hover { background:#047857; }
.gd-ov-paid-btn:disabled { opacity:.6; cursor:default; }
.gd-ov-paid-note { font-size:12px; color:#999; text-align:center; margin-top:8px; }
.gd-ov-back { margin-top:24px; }
.gd-ov-back a { font-size:14px; color:var(--blue); }

/* ── Shop responsive ───────────────────────────────────────────────── */
@media (max-width:900px) {
  .gd-prod-grid { grid-template-columns:repeat(3,1fr); gap:14px; }
  .gd-order-grid { grid-template-columns:1fr; }
  .gd-order-form { position:static; }
  .gd-ov-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .gd-prod-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .gd-prod-name { font-size:14px; }
  .gd-prod-price-now { font-size:15px; }
  .gd-prod-actions { flex-direction:column; }
  .gd-interest-text { font-size:13px; }
  .gd-interest-send { padding:8px 14px; }
  .gd-oi-img { width:52px; height:52px; }
  .gd-oi-line { width:78px; font-size:13px; }
  .gd-md-name { font-size:19px; }
  .gd-md-price-now { font-size:21px; }
}

/* ── Carousel Sản phẩm (trang chủ) ─────────────────────────────── */
.gd-pcaro { margin:0 0 28px; }
.gd-pcaro-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.gd-pcaro-title { font-size:20px; font-weight:800; color:var(--dark); margin:0; position:relative; padding-left:12px; }
.gd-pcaro-title::before { content:''; position:absolute; left:0; top:3px; bottom:3px; width:4px; border-radius:3px; background:var(--red); }
.gd-pcaro-all { font-size:13px; font-weight:600; color:var(--navy); text-decoration:none; white-space:nowrap; }
.gd-pcaro-all:hover { color:var(--red); }
.gd-pcaro { min-width:0; }
.gd-pcaro-wrap { position:relative; min-width:0; }
.gd-pcaro-viewport { overflow-x:auto; overflow-y:hidden; min-width:0; max-width:100%; cursor:grab; scrollbar-width:none; -ms-overflow-style:none; scroll-behavior:auto; }
.gd-pcaro-viewport::-webkit-scrollbar { display:none; }
.gd-pcaro-viewport.grabbing { cursor:grabbing; }
.gd-pcaro-viewport.grabbing a { pointer-events:none; }
.gd-pcaro-track { display:flex; gap:14px; width:max-content; padding:3px 1px; }
.gd-pcaro-card { flex:0 0 210px; width:210px; background:#fff; border:1px solid #ececec; border-radius:12px; overflow:hidden; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:box-shadow .2s, transform .2s; user-select:none; }
.gd-pcaro-card:hover { box-shadow:0 8px 22px rgba(23,55,94,.14); transform:translateY(-3px); }
.gd-pcaro-thumb { aspect-ratio:16/9; background:#f6f7f9; overflow:hidden; }
.gd-pcaro-thumb img { width:100%; height:100%; object-fit:cover; display:block; -webkit-user-drag:none; user-drag:none; }
.gd-pcaro-info { padding:10px 12px 12px; }
.gd-pcaro-name { font-size:13.5px; font-weight:600; color:var(--dark); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:38px; }
.gd-pcaro-price { margin-top:6px; font-size:14px; }
.gd-pcaro-price .now { color:var(--red); font-weight:700; }
.gd-pcaro-price .old { color:#aaa; font-weight:400; font-size:12px; text-decoration:line-through; margin-left:4px; }
.gd-pcaro-price .contact { color:var(--navy); font-weight:600; font-size:13px; }
.gd-pcaro-nav { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:1px solid #e2e6ea; background:#fff; color:var(--navy); font-size:22px; line-height:1; cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.14); display:flex; align-items:center; justify-content:center; z-index:3; transition:background .15s, color .15s; }
.gd-pcaro-nav:hover { background:var(--navy); color:#fff; }
.gd-pcaro-prev { left:-6px; }
.gd-pcaro-next { right:-6px; }
@media (max-width:640px) {
  .gd-pcaro-card { flex-basis:150px; width:150px; }
  .gd-pcaro-title { font-size:17px; }
  .gd-pcaro-nav { width:32px; height:32px; font-size:18px; }
}

/* ── Trang Học tập: thẻ danh mục con ─────────────────────────────── */
.gd-learn-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:6px 0 28px; }
.gd-learn-card { position:relative; display:flex; flex-direction:column; background:#fff; border:1px solid #eceef1; border-radius:18px; padding:26px 26px 22px; text-decoration:none; overflow:hidden; transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.gd-learn-card::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background:var(--c,#1464A0); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; }
.gd-learn-card:hover { transform:translateY(-4px); box-shadow:0 18px 40px -12px rgba(23,55,94,.28); border-color:#e6ecf3; }
.gd-learn-card:hover::before { transform:scaleX(1); }
.gd-learn-ic { width:62px; height:62px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:#fff; overflow:hidden; background-color:var(--c,#1464A0); background-image:linear-gradient(150deg, rgba(255,255,255,.28), rgba(0,0,0,.16)); box-shadow:0 9px 20px -7px rgba(23,55,94,.34); transition:transform .25s ease; }
.gd-learn-card:hover .gd-learn-ic { transform:scale(1.07) rotate(-3deg); }
.gd-learn-ic svg { width:31px; height:31px; }
.gd-learn-ic img { width:100%; height:100%; object-fit:cover; }
.gd-learn-name { font-size:21px; font-weight:700; color:var(--navy); margin-bottom:7px; line-height:1.25; }
.gd-learn-desc { font-size:14.5px; color:var(--muted); line-height:1.55; margin-bottom:18px; }
.gd-learn-go { margin-top:auto; display:inline-flex; align-items:center; gap:7px; font-size:14.5px; font-weight:600; color:var(--c,#1464A0); }
.gd-learn-go svg { width:17px; height:17px; transition:transform .25s ease; }
.gd-learn-card:hover .gd-learn-go svg { transform:translateX(5px); }
@media (max-width:640px) { .gd-learn-grid { grid-template-columns:1fr; gap:14px; } .gd-learn-name { font-size:19px; } .gd-learn-card { padding:22px; } }

/* ── Khu Học sinh (portal + đăng nhập) ──────────────────────────────────────── */
.gd-btn-login { display:inline-flex; align-items:center; padding:9px 22px; border:1.5px solid #d3dbe6; border-radius:10px; background:#fff; color:var(--navy,#14243b); font-size:14.5px; font-weight:600; font-family:inherit; cursor:pointer; transition:border-color .16s,background .16s,box-shadow .16s; }
.gd-btn-login:hover { border-color:#1568a8; background:#f6faff; box-shadow:0 2px 10px rgba(20,100,160,.10); }
.gd-user-avatar-ph { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#1464A0,#0e9f6e); color:#fff; font-weight:700; font-size:14px; text-transform:uppercase; }

/* Dropdown tài khoản học sinh (bấm chip → tiến độ + báo cáo + hình ảnh + thoát) */
.gd-user-wrap { position:relative; }
.gd-user-chip { display:inline-flex; align-items:center; gap:9px; padding:6px 13px 6px 7px; border:1.5px solid #e2e7ee; border-radius:11px; background:#fff; font-family:inherit; cursor:pointer; transition:border-color .15s,box-shadow .15s; }
.gd-user-chip:hover { border-color:#1464A0; box-shadow:0 2px 10px rgba(20,100,160,.12); }
.gd-user-wrap .gd-user-avatar { width:30px; height:30px; border-radius:8px; object-fit:cover; border:0; flex:0 0 auto; }
.gd-user-avatar-bot { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:8px; background:linear-gradient(135deg,#eef4fb,#e7f5ef); font-size:18px; flex:0 0 auto; }
.gd-user-caret { color:#8a94a3; font-size:11px; }
.gd-user-menu { position:absolute; right:0; top:calc(100% + 8px); width:310px; max-width:88vw; background:#fff; border:1px solid #e6ecf3; border-radius:14px; box-shadow:0 16px 44px rgba(15,25,45,.18); padding:14px; z-index:1200; }
.gd-user-menu[hidden] { display:none; }
.gd-um-stats { padding:2px 4px 12px; border-bottom:1px solid #eef2f6; margin-bottom:10px; }
.gd-um-actions { display:flex; flex-direction:column; gap:2px; }
.gd-um-actions button, .gd-um-actions a { display:flex; align-items:center; gap:10px; padding:10px; border:0; background:transparent; border-radius:9px; font-size:14.5px; font-weight:600; color:var(--navy,#14243b); font-family:inherit; cursor:pointer; text-decoration:none; text-align:left; width:100%; transition:background .12s; }
.gd-um-actions button:hover, .gd-um-actions a:hover { background:#f4f7fb; }
.gd-um-actions .gd-um-logout { color:#c01428; }
.gd-um-actions .gd-um-logout:hover { background:#fef2f2; }

.gdlog-modal { position:fixed; inset:0; z-index:1500; display:flex; align-items:center; justify-content:center; padding:16px; }
.gdlog-modal[hidden] { display:none; }
.gdlog-backdrop { position:absolute; inset:0; background:rgba(12,20,34,.55); backdrop-filter:blur(2px); }
.gdlog-box { position:relative; width:100%; max-width:380px; background:#fff; border-radius:18px; padding:30px 26px 26px; box-shadow:0 24px 60px rgba(0,0,0,.28); text-align:center; animation:hsPop .2s ease; }
@keyframes hsPop { from { opacity:0; transform:translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
.gdlog-x { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:18px; color:#9aa4b2; cursor:pointer; line-height:1; }
.gdlog-x:hover { color:#333; }
.gdlog-badge { width:72px; height:72px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; }
.gdlog-badge img { max-width:100%; max-height:100%; object-fit:contain; }
.gdlog-box h3 { font-size:20px; font-weight:700; color:var(--navy,#14243b); margin:0 0 4px; }
.gdlog-sub { font-size:13.5px; color:var(--muted,#6b7686); margin:0 0 18px; }
.gdlog-box form { display:flex; flex-direction:column; gap:11px; }
.gdlog-box input { width:100%; padding:12px 14px; border:1.5px solid #dde3ea; border-radius:11px; font-size:15px; font-family:inherit; transition:border-color .15s; }
.gdlog-box input:focus { outline:none; border-color:#1464A0; }
.gdlog-err { background:#fef2f2; color:#c01428; font-size:13.5px; padding:9px 12px; border-radius:9px; text-align:left; }
.gdlog-submit { padding:12px; border:0; border-radius:11px; background:linear-gradient(135deg,#1464A0,#0e9f6e); color:#fff; font-size:15.5px; font-weight:700; font-family:inherit; cursor:pointer; transition:filter .15s,transform .1s; }
.gdlog-submit:hover { filter:brightness(1.06); }
.gdlog-submit:active { transform:translateY(1px); }
.gdlog-submit:disabled { opacity:.7; cursor:default; }

.hs-portal { padding:40px 0 60px; }
.hs-guest { max-width:640px; margin:20px auto; text-align:center; padding:44px 30px; background:linear-gradient(160deg,#f6fafe,#eef7f2); border:1px solid #e2ecf5; border-radius:22px; }
.hs-guest-badge { display:inline-block; background:#fff; border:1px solid #dbe6f1; color:#1464A0; font-weight:700; font-size:13.5px; padding:5px 14px; border-radius:999px; margin-bottom:16px; }
.hs-guest h1 { font-size:30px; font-weight:800; color:var(--navy,#14243b); margin:0 0 12px; }
.hs-guest-lead { font-size:16px; color:#465262; line-height:1.65; margin:0 auto 24px; max-width:520px; }
.hs-cta { display:inline-flex; align-items:center; gap:8px; padding:14px 30px; border:0; border-radius:12px; background:linear-gradient(135deg,#1464A0,#0e9f6e); color:#fff; font-size:16.5px; font-weight:700; font-family:inherit; cursor:pointer; box-shadow:0 8px 24px rgba(20,100,160,.28); transition:transform .12s,box-shadow .18s; }
.hs-cta:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(20,100,160,.34); }
.hs-guest-note { font-size:13.5px; color:var(--muted,#6b7686); margin:20px 0 0; }
.hs-welcome { max-width:720px; margin:20px auto; padding:36px 32px; background:#fff; border:1px solid #e6ecf3; border-radius:18px; }
.hs-welcome h1 { font-size:26px; font-weight:800; color:var(--navy,#14243b); margin:0 0 12px; }
.hs-welcome p { font-size:15.5px; color:#465262; line-height:1.7; margin:0 0 10px; }
.hs-tmp-note { font-size:14px; color:var(--muted,#6b7686); }
