/* =========================================================
   Quỹ Giáo dục Trường Đại học Ngoại thương
   Landing page stylesheet
   ========================================================= */

:root {
  --red: #a91d29;
  --red-bright: #c0242f;
  --red-dark: #7c1119;
  --red-deep: #4c090e;
  --maroon: #5a0d13;
  --gold: #c9a227;
  --gold-light: #e7c76e;
  --gold-pale: #f3e3b6;
  --cream: #fbf7f1;
  --cream-dark: #f3ece1;
  --paper: #fffdf9;
  --ink: #241b18;
  --ink-soft: #4a3c36;
  --muted: #74655e;
  --line: #e8ddd1;
  --white: #ffffff;

  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 4px 18px rgba(58, 17, 20, 0.06);
  --shadow-md: 0 18px 50px rgba(58, 17, 20, 0.12);
  --shadow-lg: 0 30px 80px rgba(45, 8, 12, 0.28);

  --radius: 4px;
  --container: 1200px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--white);
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(70px, 9vw, 118px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow--light {
  color: var(--gold-light);
}

.eyebrow--light::before {
  background: var(--gold-light);
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 4.3vw, 3.35rem);
  color: var(--ink);
  text-wrap: balance;
}

h2 em {
  font-style: italic;
  color: var(--red);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head > div:first-child {
  max-width: 720px;
}

.section-head--stack {
  display: block;
  max-width: 780px;
}

.section-head--stack p:last-child {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(169, 29, 41, 0.22);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a1a06;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline {
  background: transparent;
  border-color: rgba(169, 29, 41, 0.35);
  color: var(--red-dark);
}

.btn--outline:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.01em;
}

.arrow-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.arrow-link:hover svg {
  transform: translateX(4px);
}

.arrow-link--sm {
  font-size: 13px;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--red-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.topbar p {
  color: rgba(255, 255, 255, 0.66);
}

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

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.topbar__links a:hover {
  color: var(--gold-light);
}

.topbar__links svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.985);
  border-bottom: 1px solid rgba(232, 221, 209, 0.8);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 34px rgba(58, 17, 20, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 52px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--red);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__cta {
  flex: none;
}

.nav__mobile-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 130;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--red-dark);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

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

.hero {
  position: relative;
  color: var(--white);
  background: var(--red-deep);
  overflow: hidden;
  padding-top: clamp(58px, 7vw, 92px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.85);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(45, 7, 11, 0.96) 0%, rgba(78, 10, 15, 0.9) 42%, rgba(78, 10, 15, 0.55) 72%, rgba(52, 8, 12, 0.72) 100%),
    radial-gradient(ellipse at 78% 20%, rgba(201, 162, 39, 0.18), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.hero__content {
  padding-block: 10px 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.3vw, 4.7rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 500;
}

.hero__lead {
  max-width: 600px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.8;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero__aside {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.quote-card {
  position: relative;
  width: min(100%, 420px);
  padding: 10px 10px 0;
  background: var(--cream);
  border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform 0.5s ease;
}

.quote-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.quote-card img {
  width: 100%;
  height: auto;
}

.quote-card figcaption {
  padding: 14px 12px 16px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.quote-card figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: center;
  gap: clamp(22px, 3.5vw, 54px);
  margin-top: clamp(52px, 6vw, 84px);
  padding: 26px clamp(24px, 3vw, 38px);
  background: rgba(28, 4, 7, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 2px solid rgba(201, 162, 39, 0.55);
  backdrop-filter: blur(8px);
}

.hero__stats > div {
  position: relative;
  padding-right: clamp(22px, 3.5vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__stats > div:nth-child(3) {
  border-right: 0;
  padding-right: 0;
}

.hero__stats dt {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}

.hero__stats dt span {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 1px;
}

.hero__stats dd {
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.hero__stats-note {
  border-right: 0 !important;
  padding-right: 0 !important;
  justify-self: end;
  text-align: right;
}

.hero__stats-note dd {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  white-space: normal;
}

/* ---------- About ---------- */

.about {
  background: var(--paper);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(50px, 7vw, 96px);
}

.about__visual {
  position: relative;
  padding: 0 34px 44px 0;
}

.about__main {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}

.about__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(52, 8, 12, 0.35));
}

.about__main img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about__visual:hover .about__main img {
  transform: scale(1.03);
}

.about__secondary {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow-md);
}

.about__secondary img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__stamp {
  position: absolute;
  top: 26px;
  left: -18px;
  z-index: 2;
  padding: 18px 20px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
  box-shadow: 0 16px 34px rgba(94, 10, 16, 0.3);
  transform: rotate(-5deg);
}

.about__stamp strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-light);
  line-height: 1.25;
}

.about__lead {
  margin-top: 22px;
  font-size: 1.06rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.about__body > p:not(.eyebrow):not(.about__lead) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about__values li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about__values svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__body .arrow-link {
  margin-top: 30px;
}

/* ---------- Message ---------- */

.message {
  background:
    radial-gradient(circle at 10% 15%, rgba(201, 162, 39, 0.1), transparent 38%),
    var(--cream-dark);
  overflow: hidden;
}

.message::before {
  content: "“";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 460px;
  line-height: 1;
  color: rgba(169, 29, 41, 0.05);
  pointer-events: none;
}

.message__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.message__content h2 {
  margin-bottom: 26px;
}

.message blockquote {
  position: relative;
  padding-left: 26px;
  border-left: 3px solid var(--gold);
}

.message blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  font-style: italic;
  line-height: 1.85;
  color: var(--ink-soft);
}

.message__signature {
  margin: 26px 0 32px;
  padding-left: 29px;
}

.message__signature strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--red-dark);
}

.message__signature span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.message__letter {
  position: relative;
  margin: 0 auto;
  width: min(100%, 430px);
  padding: 12px 12px 0;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
  transition: transform 0.5s ease;
}

.message__letter:hover {
  transform: rotate(0);
}

.message__letter-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.message__letter-btn img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.message__letter-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(40, 6, 9, 0.4));
}

.message__letter-btn:hover img {
  transform: scale(1.02);
}

.message__letter-zoom {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.message__letter-zoom svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.message__letter figcaption {
  padding: 12px 10px 14px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- News ---------- */

.news {
  background: var(--paper);
}

.tabs {
  display: inline-flex;
  flex: none;
  padding: 4px;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tab {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.tab:hover {
  color: var(--red);
}

.tab.is-active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(169, 29, 41, 0.22);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: var(--shadow-md);
}

.news-card[hidden] {
  display: none;
}

.news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream-dark);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  background: rgba(76, 9, 14, 0.88);
  color: var(--gold-pale);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px 24px 26px;
}

.news-card time,
.social-card time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.news-card h3 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  text-wrap: balance;
}

.news-card h3 a {
  transition: color 0.2s ease;
}

.news-card h3 a:hover {
  color: var(--red);
}

.news-card p {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.news-card .arrow-link {
  margin-top: auto;
  padding-top: 20px;
}

/* ---------- Social responsibility ---------- */

.social {
  background:
    radial-gradient(ellipse at 85% 8%, rgba(201, 162, 39, 0.14), transparent 48%),
    linear-gradient(160deg, var(--maroon), var(--red-deep));
  color: rgba(255, 255, 255, 0.8);
}

.social h2 {
  color: var(--white);
}

.social h2 em {
  color: var(--gold-light);
}

.social .section-head--stack p:last-child {
  color: rgba(255, 255, 255, 0.62);
  max-width: 650px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 32px);
}

.social-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-5px);
}

.social-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.2);
}

.social-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.social-card:hover .social-card__media img {
  transform: scale(1.05);
}

.social-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px 24px 26px;
}

.social-card time {
  color: var(--gold-light);
}

.social-card h3 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  text-wrap: balance;
}

.social-card h3 a:hover {
  color: var(--gold-light);
}

.social-card p {
  margin-top: 10px;
  font-size: 0.87rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.social-card .arrow-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--gold-light);
}

/* ---------- Documents ---------- */

.documents {
  background: var(--cream);
  overflow: hidden;
}

.documents__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.documents__content > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--muted);
}

.documents__list {
  margin: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.documents__list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.documents__list span {
  flex: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #977213;
}

.documents__visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-sheet {
  position: absolute;
  width: min(62%, 330px);
  padding: 9px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
}

.doc-sheet img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.doc-sheet--back {
  transform: rotate(6deg) translate(15%, -2%);
  opacity: 0.92;
}

.doc-sheet--front {
  transform: rotate(-4deg) translate(-16%, 4%);
  z-index: 2;
}

.documents__visual:hover .doc-sheet--front {
  transform: rotate(-2deg) translate(-16%, 1%);
}

.documents__visual:hover .doc-sheet--back {
  transform: rotate(8deg) translate(15%, -5%);
}

.documents__badge {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 4%;
  width: 116px;
  height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(124, 17, 25, 0.35);
  transform: rotate(7deg);
}

.documents__badge strong {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-light);
}

.documents__badge span {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding-block: clamp(70px, 9vw, 110px);
  background:
    radial-gradient(ellipse at 18% 25%, rgba(201, 162, 39, 0.2), transparent 42%),
    linear-gradient(120deg, var(--red-dark) 0%, var(--red-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(201, 162, 39, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.cta::before {
  width: 520px;
  height: 520px;
  top: -280px;
  right: -100px;
}

.cta::after {
  width: 340px;
  height: 340px;
  bottom: -220px;
  left: 8%;
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
}

.cta h2 {
  color: var(--white);
}

.cta h2 em {
  color: var(--gold-light);
}

.cta__content > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.cta__card {
  position: relative;
  padding: clamp(28px, 3.5vw, 40px);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}

.cta__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(169, 29, 41, 0.08);
  color: var(--red);
}

.cta__card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta__card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
}

.cta__card > p {
  margin: 12px 0 22px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cta__note summary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  cursor: pointer;
  list-style: none;
}

.cta__note summary::-webkit-details-marker {
  display: none;
}

.cta__note summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.cta__note[open] summary::before {
  content: "–";
}

.cta__note p {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

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

.footer {
  background: #2b090c;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(54px, 7vw, 80px) 48px;
}

.footer__logo {
  display: inline-block;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 2px;
  margin-bottom: 20px;
}

.footer__logo img {
  width: 196px;
  height: auto;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand > p:last-child {
  max-width: 290px;
  font-size: 12.5px;
  line-height: 1.7;
}

.footer__col h3 {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer__col a:not(.btn) {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer__col a:not(.btn):hover {
  color: var(--gold-light);
}

.footer__col p {
  margin-bottom: 7px;
  font-size: 12.5px;
  line-height: 1.65;
}

.footer__col strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.footer__external {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--gold-light) !important;
  font-weight: 600;
}

.footer__external svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__col .btn {
  margin-top: 8px;
}

.footer__source {
  margin-top: 18px !important;
  font-size: 10.5px !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52) !important;
}

.footer__source a {
  display: inline !important;
  margin: 0 !important;
  font-size: inherit !important;
  color: rgba(255, 255, 255, 0.68) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.56);
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  background: var(--red-dark);
  color: var(--gold-light);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(45, 8, 12, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--red);
}

.to-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Letter dialog ---------- */

.letter-dialog {
  width: min(900px, 92vw);
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.letter-dialog::backdrop {
  background: rgba(24, 4, 6, 0.82);
  backdrop-filter: blur(5px);
}

.letter-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.letter-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.letter-dialog__bar h2 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.letter-dialog__close {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--red-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.letter-dialog__close:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.letter-dialog__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.letter-dialog__body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  background: #ece5da;
}

.letter-dialog__body img {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.news-grid .reveal:nth-child(2),
.social-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.news-grid .reveal:nth-child(3),
.social-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1140px) {
  .site-header__inner {
    gap: 22px;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 12.5px;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__stats-note {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 120;
    width: min(360px, 86vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 110px 34px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(45, 8, 12, 0.25);
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.28s ease, visibility 0.38s;
    overflow-y: auto;
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white) !important;
    font-size: 14px !important;
    font-weight: 600;
  }

  .nav__mobile-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header__cta {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero__aside {
    display: none;
  }

  .hero h1 {
    max-width: 760px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .news-grid,
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid .news-card:nth-child(3n) {
    grid-column: auto;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr;
    row-gap: 44px;
  }
}

/* Tablet dọc / màn hình hẹp: chuyển các khối nội dung về một cột
   nhưng giữ số đo dòng chữ ở mức dễ đọc (tối đa 720px). */
@media (max-width: 900px) {
  .about__grid,
  .message__grid,
  .documents__grid {
    grid-template-columns: 1fr;
  }

  .about__visual {
    order: 2;
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .about__body {
    order: 1;
  }

  .about__body,
  .message__content,
  .documents__content {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .message__letter {
    margin-top: 6px;
  }

  .documents__visual {
    order: 2;
    min-height: 500px;
  }

  .documents__content {
    order: 1;
  }
}

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

  .cta__card {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  .topbar p {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    height: 43px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero__actions {
    margin-top: 28px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 18px;
    padding: 20px;
    margin-top: 46px;
  }

  .hero__stats > div {
    padding-right: 18px;
  }

  .hero__stats dt {
    font-size: 1.75rem;
  }

  .hero__stats dd {
    font-size: 9.5px;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .about__values {
    grid-template-columns: 1fr;
  }

  .message__letter-btn img {
    height: 470px;
  }

  .news-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .documents__visual {
    min-height: 420px;
  }

  .doc-sheet {
    width: min(64%, 280px);
  }

  .documents__badge {
    width: 96px;
    height: 96px;
    right: 4%;
  }

  .documents__badge strong {
    font-size: 1.7rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer__brand > p:last-child {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.6rem);
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  .about__visual {
    padding-right: 20px;
    padding-bottom: 34px;
  }

  .about__secondary {
    width: 62%;
    border-width: 6px;
  }

  .about__stamp {
    left: -6px;
    padding: 14px 16px;
  }

  .about__stamp strong {
    font-size: 18px;
  }

  .message blockquote {
    padding-left: 18px;
  }

  .message__signature {
    padding-left: 21px;
  }

  .message__letter-btn img {
    height: 390px;
  }

  .documents__visual {
    min-height: 360px;
  }

  .documents__badge {
    width: 84px;
    height: 84px;
    font-size: 8px;
  }

  .news-card__body,
  .social-card__body {
    padding: 20px;
  }

  .cta__card {
    padding: 26px 22px;
  }

  .letter-dialog__bar h2 {
    font-size: 0.98rem;
  }
}

/* Màn hình nhỏ: tab tin tức giãn đủ rộng, không bị cắt mép */
@media (max-width: 600px) {
  .nav {
    width: 100%;
    border-left: 0;
    padding: 100px 24px 32px;
  }

  body.menu-open .nav-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }
}

/* Điện thoại 320–380px: thu gọn số liệu, nút CTA và nhãn tab */
@media (max-width: 380px) {
  .site-header__inner {
    gap: 8px;
  }

  .hero__stats {
    gap: 10px;
    padding: 16px 14px;
  }

  .hero__stats > div {
    padding-right: 10px;
  }

  .hero__stats dt {
    font-size: 1.55rem;
  }

  .hero__stats dd {
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  .tab {
    padding: 9px 6px;
    font-size: 11px;
  }

  .cta__card {
    padding: 24px 18px;
  }

  .cta__card .btn {
    padding: 13px 12px;
    font-size: 12px;
  }
}

@media (max-width: 720px) {
  .to-top {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
