:root {
  --bg: #f5f6f0;
  --surface: #ffffff;
  --surface-soft: #eef5ea;
  --text: #1f2a1f;
  --muted: #667266;
  --line: #dbe4d7;
  /* palette mới dựa trên màu logo */
  --primary: #0393dd;
  --primary-dark: #0273b0;
  --accent: #f3a51f;
  --dark: #172218;
  --radius: 20px;
  --container: 1180px;
  --shadow: 0 18px 50px rgba(31, 42, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(3, 147, 221, 0.12), transparent 26%),
    radial-gradient(circle at left top, rgba(3, 147, 221, 0.08), transparent 30%),
    var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-intro {
  max-width: 100%;
  margin-bottom: 28px;
}

.section-intro h1,
.section-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  color: #a41010;
}

.section-intro p,
.lead,
.copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid #f3fc0f;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(31, 42, 31, 0.12);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-dark {
  color: #fff;
  background: #a41010;
}

.btn-light {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline {
  color: var(--primary-dark);
  background: #fff;
  border-color: #f3fc0f;
}

.utility-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.utility-wrap {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-contact,
.utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.utility-contact a,
.utility-links a {
  color: #fff;
}

.utility-links .lang-switcher-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.utility-links .lang-switcher-icon {
  color: #fff;
}

.utility-links .lang-switcher-panel {
  top: calc(100% + 10px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(245, 246, 240, 0.94);
  border-bottom: 1px solid rgba(23, 34, 24, 0.05);
}

.header-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.header-title-mobile {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  color: #a41010;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.header-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* —— Google Translate / language switcher —— */
.lang-switcher {
  position: relative;
}

.lang-switcher-details {
  position: relative;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher-toggle::-webkit-details-marker {
  display: none;
}

.lang-switcher-icon {
  display: inline-flex;
  color: var(--primary);
}

.lang-switcher-current {
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang-switcher-caret {
  font-size: 11px;
  opacity: 0.65;
}

.lang-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lang-switcher-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background: rgba(3, 147, 221, 0.1);
  color: var(--primary-dark);
}

.lang-google-slot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ẩn thanh công cụ mặc định của Google Translate */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  font-family: inherit !important;
}

.goog-te-gadget .goog-te-combo {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
}

.site-nav {
  border-top: 1px solid rgba(23, 34, 24, 0.06);
  border-bottom: 1px solid rgba(23, 34, 24, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 24px;
}

.nav-scroller {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.nav-scroller::-webkit-scrollbar {
  display: none;
}

.nav-link,
.nav-group summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-group summary:hover,
.nav-link.is-active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-group {
  position: relative;
}

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

.nav-parent-link {
  color: inherit;
  text-decoration: none;
}

.nav-group[open] summary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-parent-caret {
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 290px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.dropdown-panel h4 {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.dropdown-panel a:hover {
  background: var(--surface-soft);
}

.hero,
.page-hero {
  padding: 56px 0 36px;
}

.hero-grid,
.page-hero-grid,
.grid-2,
.grid-3,
.grid-4,
.content-shell,
.footer-grid,
.contact-grid,
.highlight-grid,
.news-grid,
.program-grid,
.archive-grid,
.info-grid {
  display: grid;
  gap: 24px;
}

.hero-grid,
.page-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.hero-copy h1,
.page-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.08;
  color: #a41010;
}

.hero-copy p,
.page-hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-orbit {
  position: absolute;
  inset: 22px 58px 56px 58px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(238, 245, 234, 0.5));
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card.primary {
  top: 22px;
  right: 24px;
  width: 320px;
  height: 340px;
}

.visual-card.secondary {
  left: 18px;
  bottom: 30px;
  width: 220px;
  height: 180px;
}

.visual-badge,
.metric-card,
.info-card,
.program-card,
.news-card,
.note-card,
.feature-card,
.timeline-item,
.quote-card,
.link-panel,
.cta-band,
.footer-card,
.aside-card,
.table-list,
.image-card,
.archive-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-badge {
  position: absolute;
  left: 126px;
  top: 56px;
  padding: 18px 20px;
  max-width: 210px;
}

.visual-badge strong,
.metric-card strong,
.program-card h3,
.news-card h3,
.feature-card h3,
.link-panel h3,
.aside-card h3 {
  display: block;
  margin-bottom: 6px;
}

.visual-badge span,
.metric-card span,
.program-card p,
.news-card p,
.feature-card p,
.aside-card p,
.copy-muted,
.mini-list li {
  color: var(--muted);
  line-height: 1.7;
}

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

.grid-3,
.news-grid,
.program-grid,
.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.highlight-grid,
.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
  text-align: center;
}

.metric-card strong {
  font-size: 34px;
}

.metric-card span {
  display: block;
}

.feature-card,
.link-panel,
.aside-card,
.note-card,
.image-card,
.archive-card {
  padding: 24px;
}

.program-card,
.news-card {
  overflow: hidden;
}

.program-card img,
.news-card img,
.archive-card img,
.page-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-hit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--primary);
}

.news-card--no-media .news-body {
  padding-top: 22px;
}

.program-body,
.news-body {
  padding: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(3, 147, 221, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-meta,
.news-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

.content-shell {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.content-main > * + *,
.content-sidebar > * + * {
  margin-top: 24px;
}

.mini-list,
.feature-list,
.detail-list,
.footer-list,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li,
.detail-list li,
.contact-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list li::before,
.detail-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 24px;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.table-list {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
  font-weight: 800;
  color: var(--primary-dark);
  background: rgba(3, 147, 221, 0.08);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.page-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.page-cover img {
  height: 100%;
  min-height: 360px;
}

.contact-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

.text-input,
.select-input,
.text-area {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.text-area {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  margin-top: 44px;
  padding: 52px 0 24px;
  background:
    linear-gradient(180deg, rgba(212, 234, 245, 0.98), rgba(227, 242, 250, 0.98)),
    #d4eaf5;
  color: #0d2d42;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  align-items: start;
}

.footer-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.64);
}

.footer-card h3,
.footer-card h4 {
  margin: 0 0 14px;
}

.footer-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-form input {
  min-width: 0;
  flex: 1;
  padding: 13px 15px;
  border: 1px solid rgba(3, 147, 221, 0.2);
  border-radius: 999px;
}

.footer-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(3, 147, 221, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: rgba(13, 45, 66, 0.88);
}

.sticky-cta{display: none;}

.back-to-top {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1101px) {
  /* PC: cho phép dropdown-panel tràn ra ngoài nav */
  .nav-scroller {
    overflow: visible;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .page-hero-grid,
  .content-shell,
  .footer-grid,
  .grid-4,
  .highlight-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .news-grid,
  .program-grid,
  .archive-grid,
  .grid-2,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Ẩn thanh utility và đoạn text dài bên phải logo trên mobile */
  .utility-bar {
    display: none;
  }

  .brand-copy {
    display: none;
  }

  .header-shell {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-title-mobile {
    display: block;
    line-height: 1.4;
  }

  .nav-row {
    align-items: flex-start;
    min-height: auto;
    padding: 10px 0;
  }

  .nav-scroller {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-scroller {
    display: flex;
  }

  .nav-group,
  .nav-link {
    width: 100%;
  }

  .nav-link,
  .nav-group summary {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    margin-top: 10px;
    padding: 14px;
    box-shadow: none;
  }

  .sticky-cta {
    position: fixed;
    right: 16px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 40;
  }

  .sticky-cta .cta-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    background: var(--primary-dark);
    color: #fff;
  }

  .sticky-cta .cta-btn.cta-contact {
    background: var(--accent);
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-card.primary {
    width: 260px;
    height: 290px;
  }

  .visual-card.secondary {
    width: 180px;
    height: 150px;
  }

  .footer-form {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section,
  .hero,
  .page-hero {
    padding: 44px 0 26px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .news-grid,
  .program-grid,
  .archive-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .utility-wrap,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-end {
    justify-content: flex-end;
    gap: 8px;
  }

  .header-actions {
    display: none;
  }

  .lang-switcher-toggle {
    padding: 10px 12px;
  }

  .lang-switcher-panel {
    right: 0;
    left: auto;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    font-size: 34px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-orbit {
    inset: 8px 14px 42px;
  }

  .visual-card.primary {
    right: 4px;
    width: 220px;
    height: 220px;
  }

  .visual-card.secondary {
    left: 0;
    bottom: 14px;
    width: 148px;
    height: 120px;
  }

  .visual-badge {
    left: 18px;
    top: 24px;
    max-width: 182px;
    padding: 14px 16px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .timetable-scroll {
    margin-left: -4px;
    margin-right: -4px;
  }
}

/* —— Article detail (tin, ngành, TKB, văn bản) —— */
.article-page {
  padding-top: 36px;
}

.article-container {
  max-width: 820px;
}

.article-breadcrumb {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.article-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.article-breadcrumb span[aria-hidden="true"] {
  margin: 0 8px;
  opacity: 0.5;
}

.article-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 40px 44px;
  box-shadow: var(--shadow);
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--primary-dark);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.article-body {
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
}

.article-body > * + * {
  margin-top: 1.1em;
}

.article-body h2 {
  margin: 1.6em 0 0.5em;
  font-size: 22px;
  color: var(--primary-dark);
}

.article-body h3 {
  margin: 1.2em 0 0.4em;
  font-size: 18px;
  color: var(--primary-dark);
}

.article-body p {
  margin: 0;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 1.35em;
}

.article-body li + li {
  margin-top: 0.45em;
}

.article-body a {
  color: var(--primary);
  font-weight: 600;
}

.article-body figure {
  margin: 1.5em 0 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 16px;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: rgba(3, 147, 221, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
}

.article-body tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.9);
}

.timetable-scroll {
  overflow-x: auto;
  margin: 1.25em 0 0;
  -webkit-overflow-scrolling: touch;
}

.timetable-scroll table {
  min-width: 640px;
}

.timetable-caption {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .article-post {
    padding: 24px 20px 32px;
  }
}
