/* Kỷ yếu 70 năm HUSC – Khoa Môi trường
   Mọi quy tắc đều nằm trong .ky70 để không ảnh hưởng tới giao diện WordPress hiện có. */
.ky70 {
  --g900: #12351f;
  --g800: #1a4a2e;
  --g600: #2f7a45;
  --lime: #81c234;
  --blue: #2599dc;
  --gold: #c9a24b;
  --ink: #1f2a24;
  --muted: #5d6b63;
  --line: #dfe7e1;
  --paper: #ffffff;
  --mist: #f3f7f2;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", Roboto, Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ky70 *, .ky70 *::before, .ky70 *::after { box-sizing: border-box; }
.ky70 img { max-width: 100%; height: auto; display: block; }
.ky70 a { color: var(--g600); }
.ky70 p { margin: 0 0 1em; text-wrap: pretty; }
.ky70 h1, .ky70 h2, .ky70 h3, .ky70 h4 { margin: 0; color: inherit; font-family: var(--serif); line-height: 1.2; text-transform: none; text-wrap: balance; }
.ky70 .ky-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.ky70 section { padding: 72px 0; scroll-margin-top: 60px; }
.ky70 .ky-alt { background: var(--mist); }

/* Thanh điều hướng trong trang */
.ky70 .ky-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 53, 31, .96); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--lime);
}
.ky70 .ky-nav ul {
  list-style: none; margin: 0; padding: 0 20px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  justify-content: safe center;
}
.ky70 .ky-nav ul::-webkit-scrollbar { display: none; }
.ky70 .ky-nav a {
  display: block; padding: 14px 14px; white-space: nowrap;
  color: #dbe9dd; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.ky70 .ky-nav a:hover, .ky70 .ky-nav a.is-active { color: #fff; border-bottom-color: var(--gold); }

/* Hero */
.ky70 .ky-hero {
  padding: 0; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(129, 194, 52, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(37, 153, 220, .25), transparent 60%),
    linear-gradient(160deg, var(--g900), var(--g800) 60%, #1f5a3a);
}
.ky70 .ky-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 72px 0 64px;
}
.ky70 .ky-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.ky70 .ky-brand img { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; }
.ky70 .ky-brand span { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #cfe3d2; line-height: 1.5; }
.ky70 .ky-brand strong { display: block; color: #fff; font-size: 16px; }
.ky70 .ky-kicker {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); border: 1px solid rgba(201, 162, 75, .55); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px;
}
.ky70 .ky-hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.01em; }
.ky70 .ky-hero h1 em { font-style: italic; font-weight: 500; color: var(--lime); }
.ky70 .ky-hero-lead { margin-top: 22px; font-size: 19.5px; color: #d9e8dc; text-wrap: balance; }
.ky70 .ky-years { margin-top: 30px; display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 21px; color: #fff; }
.ky70 .ky-years span { white-space: nowrap; }
.ky70 .ky-hero-photo { position: relative; }
.ky70 .ky-hero-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.ky70 .ky-hero-frame { position: relative; margin: 0 18px 18px 0; }
.ky70 .ky-hero-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 6px; opacity: .7;
}
.ky70 .ky-hero-photo img { position: relative; }
.ky70 .ky-hero-photo figcaption { position: relative; margin-top: 14px; font-size: 15px; color: #bcd2c0; }
.ky70 figure { margin: 0; }

.ky70 .ky-stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.ky70 .ky-stat { padding: 24px 14px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.ky70 .ky-stat:first-child { border-left: 0; padding-left: 0; }
.ky70 .ky-stat b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 700; color: #fff; line-height: 1.1; white-space: nowrap; }
.ky70 .ky-stat span { display: block; margin-top: 6px; font-size: 15px; color: #c4d8c8; line-height: 1.45; }

/* Tiêu đề mục */
.ky70 .ky-head { margin-bottom: 36px; }
.ky70 .ky-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--g600); margin-bottom: 10px; display: block; }
.ky70 .ky-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; color: var(--g900); }
.ky70 .ky-head h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 18px; }
.ky70 .ky-head p { margin: 16px 0 0; color: var(--muted); max-width: 760px; }

/* Thông điệp */
.ky70 .ky-message blockquote { margin: 0; padding: 0 0 0 28px; border: 0; border-left: 3px solid var(--lime); font-family: var(--serif); font-size: 22px; line-height: 1.65; color: var(--g900); max-width: 1000px; background: none; }
.ky70 .ky-sign { margin: 28px 0 0 31px; font-size: 16px; color: var(--muted); }
.ky70 .ky-sign strong { display: block; color: var(--ink); font-size: 20px; font-family: var(--serif); }
.ky70 .ky-message blockquote p + p { margin-top: .9em; }

/* Lịch sử */
.ky70 .ky-history { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ky70 .ky-prose p { color: #33413a; }
.ky70 .ky-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.ky70 .ky-timeline li { position: relative; padding: 0 0 26px 22px; }
.ky70 .ky-timeline li:last-child { padding-bottom: 0; }
.ky70 .ky-timeline li::before {
  content: ""; position: absolute; left: -35px; top: 9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--g600);
}
.ky70 .ky-timeline li.is-key::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(201, 162, 75, .2); }
.ky70 .ky-timeline b { font-family: var(--serif); font-size: 26px; color: var(--g800); display: block; line-height: 1.2; }
.ky70 .ky-timeline span { display: block; font-size: 16.5px; color: #3c4a43; margin-top: 4px; text-wrap: pretty; }

/* Thành tựu */
.ky70 .ky-ach { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: ach; }
.ky70 .ky-ach article {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.ky70 .ky-ach .ky-num { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--g600); }
.ky70 .ky-ach h3 { font-size: 25px; color: var(--g900); margin-bottom: 14px; }
.ky70 .ky-ach p { color: #33413a; }
.ky70 .ky-ach p:last-child { margin-bottom: 0; }
.ky70 .ky-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.ky70 .ky-chips li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.ky70 .ky-chips b { color: var(--g800); font-family: var(--serif); font-size: 19px; margin-right: 6px; }

/* Cựu sinh viên */
.ky70 .ky-alumni { display: grid; gap: 28px; }
.ky70 .ky-alum {
  display: grid; grid-template-columns: 250px 1fr; gap: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.ky70 .ky-alum:nth-child(even) { grid-template-columns: 1fr 250px; }
.ky70 .ky-alum:nth-child(even) .ky-alum-photo { order: 2; }
.ky70 .ky-alum-photo { position: relative; min-height: 300px; background: var(--mist); }
.ky70 .ky-alum-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ky70 .ky-alum-photo small { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); }
.ky70 .ky-alum-body { padding: 30px 34px; }
.ky70 .ky-tag { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--g600); background: #e9f3e3; border-radius: 4px; padding: 4px 10px; margin-bottom: 12px; }
.ky70 .ky-alum h3 { font-size: 26px; color: var(--g900); }
.ky70 .ky-role { font-size: 16px; color: var(--muted); margin: 8px 0 16px; font-weight: 600; }
.ky70 .ky-alum-body p:last-child { margin: 0; font-size: 16.5px; color: #33413a; }

/* Cảm nghĩ */
.ky70 .ky-memoirs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ky70 .ky-memoir { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--g800); border-radius: 6px; padding: 32px 32px 26px; display: flex; flex-direction: column; }
.ky70 .ky-memoir h3 { font-size: 22px; color: var(--g900); letter-spacing: .01em; margin-bottom: 20px; }
.ky70 .ky-author { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.ky70 .ky-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: 0 0 76px; border: 3px solid #e9f3e3; }
.ky70 .ky-author strong { display: block; font-size: 17.5px; }
.ky70 .ky-author span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; text-wrap: balance; }
.ky70 .ky-memoir-text { font-size: 16.5px; color: #33413a; }
.ky70 .ky-memoir-text p:last-child { margin-bottom: 0; }
.ky70 .ky-memoir-text.is-clamped { max-height: 15.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ky70 .ky-more { align-self: flex-start; margin-top: 14px; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--g600); cursor: pointer; }
.ky70 .ky-more:hover { text-decoration: underline; }

/* Thư viện ảnh */
.ky70 .ky-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.ky70 .ky-gallery figure { grid-column: span 2; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.ky70 .ky-gallery figure.is-wide { grid-column: span 3; }
.ky70 .ky-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.ky70 .ky-gallery figure:hover img { transform: scale(1.04); }
.ky70 .ky-gallery figcaption { padding: 14px 18px 18px; color: #33413a; font-size: 15.5px; line-height: 1.5; }
.ky70 .ky-gallery figcaption span { text-wrap: pretty; }
.ky70 .ky-gallery figcaption b { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g600); margin-bottom: 4px; }
.ky70 .ky-gallery button { all: unset; display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.ky70 .ky-gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

.ky70 .ky-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(8, 20, 12, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.ky70 .ky-lightbox.is-open { display: flex; }
.ky70 .ky-lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; }
.ky70 .ky-lightbox p { color: #e6efe7; max-width: 900px; text-align: center; margin: 16px 0 0; font-size: 16.5px; text-wrap: balance; }
.ky70 .ky-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; }
.ky70 .ky-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.ky70 .ky-lb-close { top: 18px; right: 18px; }
.ky70 .ky-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ky70 .ky-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Video */
.ky70 .ky-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ky70 .ky-video { margin: 0; }
.ky70 .ky-video .ky-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.ky70 .ky-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ky70 .ky-video figcaption { margin-top: 12px; font-weight: 600; font-size: 17.5px; color: #fff; }
.ky70 .ky-dark { background: var(--g900); color: #e3eee5; }
.ky70 .ky-dark .ky-head h2 { color: #fff; }
.ky70 .ky-dark .ky-eyebrow { color: var(--lime); }
.ky70 .ky-dark .ky-head p { color: #b9cdbd; }
.ky70 .ky-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ky70 .ky-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.ky70 .ky-btn:hover { background: #fff; color: var(--g900); }

/* Danh sách cán bộ */
.ky70 .ky-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 40px; }
.ky70 .ky-staff h3 { font-size: 22px; color: var(--g800); margin-bottom: 16px; }
.ky70 table { width: 100%; border-collapse: collapse; font-size: 16.5px; margin: 0; }
.ky70 th, .ky70 td { padding: 12px 16px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); }
.ky70 thead th { background: var(--g800); color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.ky70 tbody tr:last-child td { border-bottom: 0; }
.ky70 tbody tr:nth-child(even) td { background: #f8fbf7; }
.ky70 td:first-child { color: var(--muted); width: 48px; font-variant-numeric: tabular-nums; }
.ky70 td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.ky70 td:nth-child(3) { white-space: nowrap; color: var(--muted); }

/* Chân trang */
.ky70 .ky-foot { background: var(--g900); color: #b9cdbd; padding: 34px 0; font-size: 15.5px; border-top: 3px solid var(--gold); }
.ky70 .ky-foot .ky-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ky70 .ky-foot strong { color: #fff; }
.ky70 .ky-foot a { color: #dbe9dd; }

/* Hiệu ứng xuất hiện */
.ky70 .ky-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ky70 .ky-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ky70 .ky-reveal { opacity: 1; transform: none; transition: none; }
  .ky70 .ky-gallery img { transition: none; }
}

@media (max-width: 1240px) {
  .ky70 .ky-stat { padding-left: 12px; padding-right: 8px; }
  .ky70 .ky-stat b { font-size: 32px; }
  .ky70 .ky-stat span { font-size: 14px; }
  .ky70 .ky-hero-photo figcaption { font-size: 14px; }
}
@media (max-width: 980px) {
  .ky70 section { padding: 56px 0; }
  .ky70 .ky-hero-grid, .ky70 .ky-history, .ky70 .ky-memoirs, .ky70 .ky-videos { grid-template-columns: 1fr; gap: 36px; }
  .ky70 .ky-hero-grid { padding: 48px 0; }
  .ky70 .ky-hero-frame { margin: 0 10px 12px 0; }
  .ky70 .ky-hero-frame::before { inset: 12px -10px -12px 10px; }
  .ky70 .ky-stats { grid-template-columns: repeat(3, 1fr); }
  .ky70 .ky-stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .ky70 .ky-stat:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .ky70 .ky-nav ul { justify-content: flex-start; }
  .ky70 .ky-gallery figure, .ky70 .ky-gallery figure.is-wide { grid-column: span 3; }
  .ky70 .ky-message blockquote { font-size: 20px; padding-left: 20px; }
  .ky70 .ky-sign { margin-left: 23px; }
}
@media (max-width: 640px) {
  .ky70 { font-size: 16px; }
  .ky70 .ky-wrap { width: calc(100% - 32px); }
  .ky70 .ky-kicker { font-size: 12.5px; letter-spacing: .1em; }
  .ky70 .ky-stats { grid-template-columns: repeat(2, 1fr); }
  .ky70 .ky-stat { padding: 18px 12px 20px; }
  .ky70 .ky-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ky70 .ky-stat:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 12px; }
  .ky70 .ky-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .ky70 .ky-stat b { font-size: 30px; }
  .ky70 .ky-ach article { grid-template-columns: 1fr; gap: 8px; padding: 30px 0; }
  .ky70 .ky-ach .ky-num { font-size: 48px; }
  .ky70 .ky-alum, .ky70 .ky-alum:nth-child(even) { grid-template-columns: 1fr; }
  .ky70 .ky-alum:nth-child(even) .ky-alum-photo { order: 0; }
  .ky70 .ky-alum-photo { min-height: 0; aspect-ratio: 1 / 1; }
  .ky70 .ky-years { font-size: 18px; }
  .ky70 .ky-years span, .ky70 .ky-chips li, .ky70 .ky-kicker { white-space: normal; }
  .ky70 .ky-message blockquote { font-size: 18.5px; }
  .ky70 .ky-alum-body { padding: 24px 22px; }
  .ky70 .ky-memoir { padding: 26px 22px 22px; }
  .ky70 .ky-gallery { grid-template-columns: 1fr; }
  .ky70 .ky-gallery figure, .ky70 .ky-gallery figure.is-wide { grid-column: auto; }
  .ky70 .ky-lb-prev, .ky70 .ky-lb-next { top: auto; bottom: 18px; transform: none; }
  .ky70 td:nth-child(2), .ky70 td:nth-child(3) { white-space: normal; }
}

/* Đoạn văn: canh đều hai bên, không thụt đầu dòng */
.ky70 .ky-message blockquote p,
.ky70 .ky-prose p,
.ky70 .ky-ach article p,
.ky70 .ky-alum-body p:last-child,
.ky70 .ky-memoir-text p {
  text-align: justify; text-indent: 0; hyphens: none; text-wrap: wrap;
}
