:root {
  --ink: #20201C;
  --navy: #16233D;
  --navy-light: #24355A;
  --gold: #B8873A;
  --gold-soft: #E7D2A6;
  --moss: #2B4436;
  --paper: #F6F3EC;
  --paper-warm: #EFEADD;
  --line: rgba(32, 32, 28, 0.14);
  --white: #FDFCF8;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.top-bar {
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 13px;
}

.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar a { opacity: 0.9; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }

.top-bar .sep { opacity: 0.4; margin: 0 10px; }

header.main {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand .mark {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  flex-shrink: 0;
}

.brand .names { display: flex; flex-direction: column; line-height: 1.25; }
.brand .vn { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); }
.brand .en { font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink); opacity: 0.65; }

nav.primary { display: flex; gap: 28px; }
nav.primary a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a.active {
  border-bottom-color: var(--gold);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 16px;
    display: none;
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  padding-top: 72px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  margin: 14px 0 20px;
}

.hero p.lede {
  font-size: 17px;
  color: rgba(253, 252, 248, 0.82);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 3px;
  border: 1.5px solid transparent;
}

.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #cf9c4a; }

.btn.outline { border-color: rgba(253, 252, 248, 0.5); color: var(--white); }
.btn.outline:hover { border-color: var(--white); background: rgba(253,252,248,0.08); }

.hero-figure {
  position: relative;
  border: 1px solid rgba(253, 252, 248, 0.25);
  padding: 22px;
}

.hero-figure .num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold-soft);
  line-height: 1;
}

.hero-figure .label {
  font-size: 13px;
  color: rgba(253,252,248,0.75);
  margin-top: 6px;
}

.hero-figure .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.hero-figure .row > div:not(:last-child),
.hero-figure .row > div {
  border-top: 1px solid rgba(253,252,248,0.18);
  padding-top: 16px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
}

/* ---------- Section headings ---------- */

.section { padding: 64px 0; }
.section.alt { background: var(--paper-warm); }
.section.navy { background: var(--navy); color: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  margin: 0;
}

.section-head a.more { font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

.section.navy .section-head { border-bottom-color: rgba(253,252,248,0.2); }
.section.navy .section-head h2 { color: var(--white); }

/* ---------- News grid (newspaper style) ---------- */

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.news-feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 18px; }
.news-feature .tag { font-size: 12.5px; color: var(--moss); font-weight: 600; }
.news-feature h3 { font-family: var(--serif); font-size: 25px; margin: 8px 0 10px; line-height: 1.28; }
.news-feature p { color: rgba(32,32,28,0.75); font-size: 15px; margin: 0 0 8px; }
.news-feature .date { font-size: 12.5px; opacity: 0.6; }

.news-list { display: flex; flex-direction: column; }
.news-list li { list-style: none; border-top: 1px solid var(--line); padding: 16px 0; }
.news-list li:first-child { border-top: none; padding-top: 0; }
.news-list .tag { font-size: 12px; color: var(--moss); font-weight: 600; }
.news-list h4 { font-family: var(--serif); font-size: 16.5px; margin: 5px 0 4px; line-height: 1.3; font-weight: 600; }
.news-list .date { font-size: 12px; opacity: 0.6; }

@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Admissions cards ---------- */

.adm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.adm-card {
  background: var(--white);
  padding: 26px 24px;
}

.adm-card .idx { font-family: var(--serif); font-size: 13px; color: var(--gold); font-weight: 600; }
.adm-card h3 { font-family: var(--serif); font-size: 19px; margin: 10px 0 8px; }
.adm-card p { font-size: 14px; color: rgba(32,32,28,0.72); margin: 0 0 12px; }
.adm-card .link { font-size: 13.5px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

@media (max-width: 860px) {
  .adm-grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat .num { font-family: var(--serif); font-size: 40px; color: var(--gold-soft); }
.stat .label { font-size: 13.5px; color: rgba(253,252,248,0.78); margin-top: 6px; max-width: 22ch; }

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Faculties ---------- */

.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fac-card {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--white);
}

.fac-card h4 { font-family: var(--serif); font-size: 16px; margin: 0 0 8px; }
.fac-card p { font-size: 13px; color: rgba(32,32,28,0.68); margin: 0; }

@media (max-width: 860px) {
  .fac-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: rgba(253,252,248,0.72);
  font-size: 13.5px;
}

footer .wrap {
  padding: 52px 28px 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

footer h5 {
  color: var(--white);
  font-family: var(--serif);
  font-size: 15px;
  margin: 0 0 14px;
  font-weight: 600;
}

footer .brand-en { color: var(--gold-soft); font-size: 12px; letter-spacing: 0.03em; margin-bottom: 10px; }

footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(253,252,248,0.14);
  padding: 18px 28px;
  font-size: 12.5px;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 860px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
}

.footer-doc-note {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 10px;
}

/* ---------- Generic page header (for subpages) ---------- */

.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 40px;
}
.page-head .eyebrow { color: var(--gold-soft); font-size: 13.5px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 10px 0 8px; }
.page-head p { color: rgba(253,252,248,0.78); max-width: 60ch; margin: 0; font-size: 15.5px; }

.crumb { font-size: 12.5px; color: rgba(253,252,248,0.6); margin-bottom: 4px; }
.crumb a:hover { color: var(--white); }

/* ---------- Article / listing pieces ---------- */

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-row button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.filter-row button.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.listing { display: flex; flex-direction: column; }
.listing-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.listing-item:first-child { border-top: none; }
.listing-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.listing-item .tag { font-size: 12px; color: var(--moss); font-weight: 600; }
.listing-item h3 { font-family: var(--serif); font-size: 20px; margin: 8px 0 8px; line-height: 1.3; }
.listing-item p { font-size: 14.5px; color: rgba(32,32,28,0.72); margin: 0 0 8px; }
.listing-item .date { font-size: 12.5px; opacity: 0.6; }

@media (max-width: 700px) {
  .listing-item { grid-template-columns: 120px 1fr; }
  .listing-item h3 { font-size: 17px; }
}

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 13.5px;
  border-radius: 3px;
}
.pager .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Admissions timeline (tuyen-sinh page) ---------- */

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 4px; bottom: 4px;
  width: 1px;
  background: var(--line);
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--gold);
}
.tl-item .when { font-size: 12.5px; font-weight: 600; color: var(--moss); }
.tl-item h4 { font-family: var(--serif); font-size: 17.5px; margin: 6px 0 6px; }
.tl-item p { font-size: 14.5px; color: rgba(32,32,28,0.72); margin: 0; }

.major-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.major-table th, .major-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.major-table th { font-size: 12.5px; text-transform: none; color: rgba(32,32,28,0.6); font-weight: 600; }
.major-table tr:hover td { background: var(--paper-warm); }

.cta-band {
  background: var(--moss);
  color: var(--white);
  padding: 44px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(253,252,248,0.82); font-size: 14.5px; }
