:root {
  --paper: #f6edd9;
  --paper-2: #efe3c7;
  --ink: #3a2e23;
  --ink-soft: #6b5b48;
  --maroon: #8b3a3a;
  --maroon-dark: #6e2c2c;
  --gold: #c19433;
  --gold-soft: #e7c873;
  --line: #d8c39a;
  --shadow: rgba(58, 46, 35, 0.18);
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(193,148,51,0.10), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(139,58,58,0.08), transparent 40%);
  line-height: 1.6;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; }

a { color: var(--maroon); }

.container { width: min(1080px, 92%); margin: 0 auto; }

/* ===== Top nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #f6dca0, #e9c97f);
  border-bottom: 3px solid var(--maroon);
  box-shadow: 0 4px 18px rgba(110, 44, 44, .18);
}
.nav .container { width: min(1340px, 96%); display: flex; align-items: center; gap: 14px; padding: 9px 0; }

/* Brand: font vuong van day dan, mau do, nhap nhay */
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 800; font-size: 1.78rem; line-height: 1.1; letter-spacing: .3px;
  color: #d62828; text-decoration: none; white-space: nowrap;
  animation: brandBlink 1.3s steps(1, end) infinite;
}
@keyframes brandBlink {
  0%, 49%   { opacity: 1;   text-shadow: 0 0 10px rgba(214, 40, 40, .55); }
  50%, 100% { opacity: .35; text-shadow: none; }
}

.nav-links { margin-left: auto; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links > a { text-decoration: none; color: var(--ink); padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav-links > a:hover { background: rgba(139, 58, 58, .10); color: var(--maroon); }
.nav-links > a.active { background: var(--maroon); color: #fff; }

/* Nut Dang nhap / Dang ky khi chua login */
.nav-cta { text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--maroon); border: 1.5px solid var(--maroon); margin-left: 4px; }
.nav-cta:hover { background: var(--maroon); color: #fff; }
.nav-cta.gold { background: var(--gold); color: #3a2e23; border-color: var(--gold); }
.nav-cta.gold:hover { background: var(--gold-soft); color: #3a2e23; }

/* Menu tai khoan (dropdown hover) */
.user-menu { position: relative; margin-left: 6px; }
.user-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(139, 58, 58, .08); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-family: var(--sans);
  font-weight: 600; font-size: .94rem; color: var(--ink); white-space: nowrap;
}
.user-btn b { color: var(--maroon); font-weight: 700; }
.user-menu .caret { font-size: .8rem; transition: transform .2s; }
.user-menu:hover .caret { transform: rotate(180deg); }
.user-menu::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* cau noi hover */
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  background: #fffdf6; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; }
.user-dropdown a:hover { background: var(--paper-2); color: var(--maroon); }

/* Logo goc trai */
.nav-logo { display: inline-flex; flex: none; margin-right: 4px; }
.nav-logo img {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2.5px solid var(--maroon); box-shadow: 0 2px 10px var(--shadow);
  object-fit: cover; background: #fff;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--maroon); cursor: pointer; padding: 2px 8px; }

@media (max-width: 760px) {
  /* ===== Nav: hamburger menu tha doc ===== */
  .nav .container { flex-wrap: wrap; gap: 8px 10px; }
  .nav-logo { order: -1; }
  .nav-logo img { width: 44px; height: 44px; }
  .brand { font-size: 1.1rem; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 4px; margin: 6px 0 2px; order: 5;
  }
  #navbar.open .nav-links { display: flex; }
  .nav-links > a { text-align: center; padding: 12px; font-size: 1rem; }
  .nav-cta { text-align: center; margin: 2px 0; }
  .user-menu { width: 100%; margin: 0; }
  .user-btn { width: 100%; justify-content: center; }
  .user-menu::after { display: none; }
  .user-menu .user-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; min-width: 0; padding: 0;
  }
  .user-dropdown a { justify-content: center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: none; cursor: pointer; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; padding: 12px 22px; border-radius: 999px;
  background: var(--maroon); color: #fff; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px var(--shadow);
}
.btn:hover { background: var(--maroon-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.gold { background: var(--gold); color: #3a2e23; }
.btn.gold:hover { background: var(--gold-soft); }
.btn.ghost { background: transparent; color: var(--maroon); border: 1.5px solid var(--maroon); box-shadow: none; }
.btn.ghost:hover { background: var(--maroon); color: #fff; }
.btn.sm { padding: 7px 14px; font-size: .88rem; }
.btn.block { width: 100%; }

/* ===== Cards / forms ===== */
.card {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--ink-soft); }
.input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: #fffef9; color: var(--ink);
}
.input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,148,51,.18); }
textarea { resize: vertical; min-height: 90px; }

.msg { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .95rem; display: none; }
.msg.show { display: block; }
.msg.ok { background: #e3f0d8; color: #355f1c; border: 1px solid #b7d59a; }
.msg.err { background: #f6dcdc; color: #8b2c2c; border: 1px solid #e2a9a9; }

.muted { color: var(--ink-soft); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: none; margin: 22px 0; }

/* ===== Hero / landing ===== */
.hero { text-align: center; padding: 70px 0 50px; }
.hero .eyebrow { letter-spacing: 4px; text-transform: uppercase; color: var(--gold); font-weight: 700; font-size: .85rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 12px 0 6px; color: var(--maroon); line-height: 1.05; }
.hero .sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.countdown { display: flex; gap: 14px; justify-content: center; margin: 36px 0; flex-wrap: wrap; }
.cd-box {
  background: #fffdf6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 10px; min-width: 92px; box-shadow: 0 8px 20px var(--shadow);
}
.cd-box .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 800; color: var(--maroon); line-height: 1; }
.cd-box .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-top: 6px; }

.section { padding: 50px 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--maroon); text-align: center; margin-bottom: 8px; }
.section .lead { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 34px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.info-grid .card { text-align: center; }
.info-grid .ico { font-size: 2rem; }
.info-grid h3 { color: var(--maroon); margin: 10px 0 4px; }

.stat-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.stat { text-align: center; }
.stat .big { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); font-weight: 800; }

.footer { text-align: center; padding: 34px 0; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 40px; font-size: .9rem; }

/* ===== Auth pages ===== */
.auth-wrap { max-width: 440px; margin: 50px auto; }
.auth-wrap h1 { color: var(--maroon); text-align: center; margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; background: var(--paper-2); padding: 5px; border-radius: 999px; margin-bottom: 22px; }
.tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px; font-family: var(--sans); font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.tabs button.active { background: var(--maroon); color: #fff; }

/* ===== Social wall ===== */
.wall { max-width: 620px; margin: 30px auto; }
.composer textarea { border: none; background: transparent; min-height: 60px; padding: 0; font-size: 1.05rem; }
.composer textarea:focus { box-shadow: none; }
.composer .row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.preview-img { max-height: 220px; border-radius: 10px; margin-top: 12px; display: none; }
.post { margin-bottom: 18px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--maroon-dark); display: grid; place-items: center; font-weight: 800; font-family: var(--serif); font-size: 1.1rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-head .name { font-weight: 700; }
.post-head .time { font-size: .82rem; color: var(--ink-soft); }
.post .body { white-space: pre-wrap; word-break: break-word; }
.post img.photo { width: 100%; border-radius: 10px; margin-top: 12px; }
.post-actions { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-actions button { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-family: var(--sans); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; padding: 4px; }
.post-actions button:hover { color: var(--maroon); }
.post-actions button.liked { color: var(--maroon); }
.comments { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.comment { font-size: .92rem; margin-bottom: 8px; }
.comment .c-name { font-weight: 700; color: var(--maroon); }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--sans); }

.badge { background: var(--maroon); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; margin-left: 4px; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ===== Admin table ===== */
.table { width: 100%; border-collapse: collapse; background: #fffdf6; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { background: var(--paper-2); font-family: var(--serif); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.pending { background: #f5e3c0; color: #8a6312; }
.pill.approved { background: #d8ecc8; color: #3a6420; }
.pill.rejected { background: #f1cccc; color: #8b2c2c; }
.admin-tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }

/* ===== Landing full-bleed panels ===== */
.panel {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-color: #5e2626;            /* fallback am khi chua co anh nen */
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.panel > .container { position: relative; z-index: 2; width: min(1080px, 92%); }
.panel .scrim { position: absolute; inset: 0; z-index: 1; }
.scrim.bottom { background: linear-gradient(to top, rgba(28,18,12,.82), rgba(28,18,12,.25) 55%, rgba(28,18,12,.05)); }
.scrim.full   { background: linear-gradient(rgba(20,14,10,.55), rgba(20,14,10,.65)); }
.scrim.side   { background: linear-gradient(105deg, rgba(20,14,10,.80) 0%, rgba(20,14,10,.45) 48%, rgba(20,14,10,.05) 80%); }

.panel-label { letter-spacing: 3px; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; font-size: .82rem; }
.panel h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin: 8px 0 14px; text-shadow: 0 2px 16px rgba(0,0,0,.5); }

/* hop noi dung kinh mo (luon de doc tren moi anh nen) */
.glass {
  max-width: 620px;
  background: rgba(26,18,12,.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 18px;
  padding: 34px 36px; color: #fdf6e7; box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.glass h2 { text-align: left; }
.glass p { color: #ece1cc; }
.glass .tag { display: inline-block; background: var(--gold); color: #2a1b10; font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: .82rem; margin-bottom: 12px; }
.glass .class-photo { width: 100%; display: block; border-radius: 10px; margin: 14px 0; border: 4px solid #fffdf6; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.class-facts { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 9px; }
.class-facts li { display: flex; align-items: center; gap: 10px; color: #ece1cc; font-size: 1.02rem; }
.class-facts .ic { font-size: 1.15rem; }
.class-facts b { color: #fff; }

/* Frame 1 - hero: anh GOC full-width, khong nen, khong phu toi */
.hero-stage { position: relative; width: 100%; background: var(--paper); }
.hero-img { display: block; width: 100%; height: auto; }
.hero-missing { padding: 90px 24px; text-align: center; color: var(--ink-soft); background: var(--paper-2); }
.hero-bar-wrap { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 20px 0; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-bar .countdown { margin: 0; }
.hero-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.hero-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .note { color: var(--ink-soft); font-size: .92rem; }

/* Dem nguoc + CTA overlay tren poster (vung san truong) */
.hero-overlay {
  width: 100%; box-sizing: border-box;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: 20px 16px;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.hero-overlay .countdown { margin: 0; gap: 10px; }
.hero-overlay .cd-box {
  background: linear-gradient(150deg, rgba(255,240,222,.95), rgba(255,223,231,.95));
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.75); padding: 11px 8px; min-width: 70px;
  box-shadow: 0 6px 16px rgba(150,90,60,.28);
}
.hero-overlay .cd-box .num { font-size: 1.95rem; color: var(--maroon); }
.hero-overlay .cd-box .lbl { font-size: .72rem; color: #a87b5a; }
.hero-overlay .hero-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn.lg { padding: 13px 30px; font-size: 1.05rem; }
.hero-overlay .note {
  color: #2f5d1c; font-weight: 700; font-size: .9rem;
  background: rgba(206,234,184,.92); border: 1px solid rgba(126,176,96,.55);
  padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(2px);
}

/* Title-Bar (banner ngan cach giua cac frame) */
.title-bar {
  background: linear-gradient(90deg, var(--maroon-dark), var(--maroon) 50%, var(--maroon-dark));
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  padding: 20px 0; text-align: center;
}
.title-bar h2 {
  font-family: var(--serif); color: #fce8c6;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem); margin: 0; letter-spacing: .5px;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.title-bar h2::before, .title-bar h2::after {
  content: '✦'; color: var(--gold-soft); font-size: .65em; vertical-align: middle; margin: 0 16px;
}

/* Frame "feature" - hien anh GOC tron ven tren nen sang (vd anh tap the lop) */
.feature { background: var(--paper); padding: 58px 0 0; text-align: center; }
.feature .head { width: min(1080px, 92%); margin: 0 auto 26px; }
.feature .label { letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; font-size: .82rem; }
.feature h2 { font-family: var(--serif); color: var(--maroon); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 10px; }
.feature .lead { color: var(--ink-soft); max-width: 660px; margin: 0 auto; }
.feature .photo-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.feature .photo { width: 100%; display: block; border-radius: 12px; box-shadow: 0 14px 36px var(--shadow); }
.feature .photo-missing { padding: 70px 24px; color: var(--ink-soft); background: var(--paper-2); border-radius: 12px; border: 1px dashed var(--line); }
.feature .caption { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0; color: var(--ink-soft); }

/* Frame 3 - timeline tren glass */
.timeline { position: relative; padding-left: 26px; margin-top: 6px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.3); }
.tl-item { position: relative; padding: 0 0 26px 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -27px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); border: 3px solid rgba(0,0,0,.3); }
.tl-item .t { font-family: var(--serif); font-weight: 800; color: var(--gold-soft); font-size: 1.35rem; margin-bottom: 2px; }
.tl-item .d { font-weight: 500; color: #f1e7d4; font-size: 1.12rem; line-height: 1.45; }
.tbd { display: inline-block; background: rgba(231,200,115,.25); color: var(--gold-soft); border: 1px solid rgba(231,200,115,.4); border-radius: 6px; padding: 1px 8px; font-size: .8rem; font-weight: 700; }

/* ===== Nav trong suot tren trang chu ===== */
.home .nav {
  position: fixed; left: 0; right: 0; top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent);
  border-bottom: none; backdrop-filter: none; transition: background .3s ease;
}
.home .nav .brand { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.home .nav-links a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.home .nav-links a:hover, .home .nav-links a.active { background: rgba(255,255,255,.2); }
.home .nav-links a.btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.home .nav.scrolled {
  background: rgba(246,237,217,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.home .nav.scrolled .brand { color: var(--maroon); text-shadow: none; }
.home .nav.scrolled .nav-links a { color: var(--ink); text-shadow: none; }
.home .nav.scrolled .nav-links a:hover { background: var(--paper-2); }
.home .nav.scrolled .nav-links a.active { background: var(--maroon); color: #fff; }
.home .nav.scrolled .nav-links a.btn.ghost { color: var(--maroon); border-color: var(--maroon); }

@media (max-width: 700px) {
  .hero-bar { justify-content: center; }
  .hero-cta { align-items: center; }
  .glass { padding: 26px 22px; }
}

@media (max-width: 560px) {
  .card { padding: 20px; }
}

/* ===== Mobile hero/title (dat CUOI file de override rule goc) ===== */
@media (max-width: 760px) {
  /* 1 hang ngang: [4 o nho] [Tham Gia] [pill], can le trai, can giua doc */
  .hero-overlay { justify-content: flex-start; align-items: center; gap: 6px 8px; padding: 8px 10px; }
  .hero-overlay .countdown { width: auto; gap: 3px; }
  .hero-overlay .cd-box { min-width: 0; width: 35px; flex: none; max-width: none; padding: 5px 1px; border-radius: 8px; text-align: center; }
  .hero-overlay .cd-box .num { font-size: .95rem; }
  .hero-overlay .cd-box .lbl { font-size: .44rem; letter-spacing: 0; margin-top: 1px; }
  .hero-overlay .hero-cta { flex-direction: row; align-items: center; gap: 8px; }
  .hero-overlay .btn.lg { padding: 6px 14px; font-size: .82rem; }
  .hero-overlay .note { font-size: .7rem; padding: 4px 9px; white-space: nowrap; }

  .title-bar { padding: 15px 12px; }
  .title-bar h2 { font-size: 1.2rem; line-height: 1.35; }
  .title-bar h2::before, .title-bar h2::after { margin: 0 8px; }

  .glass { padding: 22px 18px !important; }
  .tl-item .t { font-size: 1.15rem; }
  .tl-item .d { font-size: 1rem; }
}

/* ===== Trang noi dung (Bang tin / Thu vien / Lien he) ===== */
.page { padding: 40px 0 60px; min-height: 62vh; }
.page-head { text-align: center; margin-bottom: 26px; }
.page-head h1 { color: var(--maroon); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.page-head p { color: var(--ink-soft); margin: 0; }

.admin-box { background: #fffdf6; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px; margin-bottom: 26px; }
.admin-box h3 { margin: 0 0 12px; color: var(--maroon); }

/* Bang tin - the ngang */
.news-card { display: flex; gap: 0; background: #fffdf6; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px var(--shadow); overflow: hidden; margin-bottom: 16px; }
.news-card .thumb { flex: none; width: 190px; background: var(--paper-2); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .thumb.no-img { display: grid; place-items: center; color: var(--gold); font-size: 2rem; }
.news-card .body { flex: 1; padding: 16px 20px; min-width: 0; }
.news-card .body h3 { color: var(--maroon); margin: 0 0 6px; font-size: 1.2rem; }
.news-card .body .excerpt { margin: 0; color: var(--ink); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .meta { margin-top: 12px; font-size: .82rem; color: var(--ink-soft); display: flex; gap: 14px; align-items: center; }

/* Thu vien - luoi anh */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid .cell { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.gallery-grid .cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-grid .cell:hover img { transform: scale(1.06); }
.gallery-grid .cell .del { position: absolute; top: 6px; right: 6px; }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; } }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: none; place-items: center; z-index: 200; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox .close { position: absolute; top: 14px; right: 20px; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; background: none; border: none; }

/* Lien he */
.contact-box { display: grid; grid-template-columns: 1fr 1.25fr; background: #fffdf6; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px var(--shadow); overflow: hidden; max-width: 880px; margin: 0 auto; }
.contact-info { background: linear-gradient(160deg, var(--maroon), var(--maroon-dark)); color: #fdf3df; padding: 32px 28px; }
.contact-info h3 { color: #fff; margin: 0 0 16px; font-family: var(--serif); font-size: 1.4rem; }
.contact-info a { color: var(--gold-soft); text-decoration: none; }
.contact-info .row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .98rem; }
.contact-info .row .ic { font-size: 1.2rem; }
.contact-form { padding: 28px 26px; }
@media (max-width: 700px) {
  .contact-box { grid-template-columns: 1fr; }
  .news-card .thumb { width: 108px; }
  .news-card .body { padding: 12px 14px; }
}
