/**
 * Design System & Main Stylesheet
 * Trường THCS Cát Linh — 31 Cát Linh, Đống Đa, Hà Nội
 * Brand Colors: Deep Royal Navy (#0E2356), Azure Blue (#0284C7), Red (#D3222A), Gold (#F59E0B)
 */

:root {
  /* Brand Colors matching official Logo */
  --primary: #0E2356;
  --primary-dark: #071333;
  --primary-light: #1E3A8A;
  --primary-hover: #162E6E;
  
  --blue-sky: #0284C7;
  --blue-cyan: #38BDF8;
  --blue-light: #E0F2FE;
  
  --red: #D3222A;
  --red-scarlet: #D3222A;
  --red-dark: #B91C1C;
  --red-light: #FEE2E2;
  
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  
  --bg-main: #F4F7FB;
  --bg-surface: #FFFFFF;
  --bg-alt: #EBF1F8;
  
  --text-main: #0F172A;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;

  --font-title: 'Source Serif 4', Georgia, serif;
  
  --border-light: rgba(14, 35, 86, 0.08);
  --border-medium: rgba(14, 35, 86, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-sm: 0 4px 16px rgba(14, 35, 86, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 35, 86, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 35, 86, 0.12);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  position: relative;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--primary);
  text-wrap: balance;
  margin-top: 0;
}

p {
  text-wrap: pretty;
}

/* Skip link for a11y */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.section-shell {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
  border-bottom: 2px solid var(--blue-sky);
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}

.text-link span {
  transition: transform 0.25s ease;
}

.text-link:hover {
  color: var(--blue-sky);
}

.text-link:hover span {
  transform: translateX(5px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #ffffff;
  transform: translateZ(0);
  will-change: background-color, color, box-shadow;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(14, 35, 86, 0.08);
}

.header-shell {
  width: min(1420px, calc(100% - 40px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 2px solid var(--blue-sky);
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(6deg) scale(1.05);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.brand-copy small {
  opacity: 0.8;
  font-size: 0.68rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 1.8rem;
}

.desktop-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.desktop-nav a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--blue-cyan);
  transition: right 0.25s ease;
}

.site-header.scrolled .desktop-nav a:after {
  background: var(--blue-sky);
}

.desktop-nav a:hover:after,
.desktop-nav a.active:after {
  right: 0;
}

.desktop-nav a.active {
  color: var(--blue-cyan);
}

.site-header.scrolled .desktop-nav a.active {
  color: var(--blue-sky);
}

.site-header.scrolled .desktop-nav a:hover {
  color: var(--blue-sky);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.utility-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.utility-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.scrolled .utility-link {
  border-color: var(--blue-sky);
  color: var(--primary);
  background: var(--blue-light);
}

.scrolled .utility-link:hover {
  background: var(--primary);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  color: inherit;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  top: 17px;
  transition: transform 0.25s ease;
}

.menu-toggle span:last-child {
  top: 25px;
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100svh;
  position: relative;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-media,
.hero-media img,
.hero-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05) translateZ(0);
  will-change: transform;
}

.hero-veil {
  background: 
    linear-gradient(90deg, rgba(7, 19, 51, 0.88) 0%, rgba(14, 35, 86, 0.55) 50%, rgba(14, 35, 86, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 19, 51, 0.95) 0%, rgba(7, 19, 51, 0.3) 45%, transparent 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 190px 0 90px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: #ffffff;
}

/* FIXED ORPHAN WORD ISSUE: "Từ nền tảng vững vàng, mở ra thế giới." */
.hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.8rem, 5.6vw, 6.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: min(1180px, 100%);
  margin: 0 0 1.6rem;
  color: #ffffff;
  font-weight: 500;
}

.title-line {
  display: inline-block;
  max-width: 100%;
}

@media (min-width: 768px) {
  .title-line {
    white-space: nowrap;
  }
}

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

.hero-copy {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 1.8rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(211, 34, 42, 0.35);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(211, 34, 42, 0.45);
}

.btn-light {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.btn-ghost {
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 90px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  background: rgba(7, 19, 51, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0% 35%, var(--gold) 35% 55%, var(--blue-sky) 55% 80%, var(--blue-cyan) 80% 100%);
}

/* ==========================================================================
   Quick Access Section
   ========================================================================== */
.quick-access {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.quick-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
}

.quick-label {
  padding: 1.5rem 1.5rem 1.5rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-label:before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.quick-links a {
  padding: 1.4rem 1.2rem;
  border-left: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.quick-links a b {
  color: var(--blue-sky);
  transition: transform 0.25s ease;
}

.quick-links a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.quick-links a:hover b {
  transform: translate(3px, -3px);
  color: var(--red);
}

/* ==========================================================================
   Section 01: Story Section (FIXED STYLE AT IMAGE 2)
   ========================================================================== */
.story-section {
  padding: 130px 0 120px;
  background: var(--bg-main);
  position: relative;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6vw;
  align-items: start;
}

.story-intro {
  position: sticky;
  top: 130px;
}

.story-intro h2 {
  font-size: clamp(2.4rem, 3.8vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.8rem 0 1.5rem;
  color: var(--primary);
}

.story-intro p {
  line-height: 1.85;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

/* Story Visual Card & Clean Milestones Timeline */
.story-visual-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.story-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.story-photo-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.story-photo-card:hover img {
  transform: scale(1.02);
}

.story-photo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(14, 35, 86, 0.88);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-photo-badge:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   COAXIAL TIMELINE TRACK - 100% MATHEMATICALLY ALIGNED (NO DISPLACEMENT)
   ========================================================================== */
.timeline-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 0.5rem;
  position: relative;
}

.milestone-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  position: relative;
}

.milestone-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
}

.milestone-line {
  position: absolute;
  top: 0;
  bottom: -1.6rem;
  width: 2px;
  background: #CBD5E1;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.milestone-item:first-child .milestone-line {
  top: 42px;
}

.milestone-item:last-child .milestone-line {
  bottom: calc(100% - 42px);
}

.milestone-dot {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 35, 86, 0.12);
  margin-top: 32px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  flex-shrink: 0;
}

.milestone-card {
  background: #ffffff;
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-sky);
}

.milestone-item:hover .milestone-dot {
  border-color: var(--red);
  box-shadow: 0 0 0 6px rgba(211, 34, 42, 0.25);
  transform: scale(1.15);
}

.milestone-item:hover .milestone-year {
  color: var(--red);
}

.milestone-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.milestone-year {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.2s ease;
}

.milestone-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-sky);
  background: var(--blue-light);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.milestone-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.2rem 0;
}

.milestone-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Section 02: Learning Stage (Dark Navy Sapphire Palette)
   ========================================================================== */
.learning-section {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}

.learning-section:before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.learning-head {
  display: grid;
  grid-template-columns: 1.15fr 0.65fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 60px;
}

.learning-head h2 {
  font-size: clamp(2.8rem, 4.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0.6rem 0;
}

.learning-head h2 em {
  font-weight: 500;
  font-style: italic;
  color: var(--blue-cyan);
}

.learning-head > p {
  line-height: 1.8;
  color: #CBD5E1;
  font-size: 1.02rem;
}

.learning-stage {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  min-height: 640px;
  background: rgba(7, 19, 51, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.learning-image-stack {
  position: relative;
  overflow: hidden;
  background: #000;
}

.learning-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s ease, transform 0.8s ease;
  margin: 0;
}

.learning-photo.active {
  opacity: 1;
  transform: scale(1);
}

.learning-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-list {
  display: flex;
  flex-direction: column;
  background: rgba(14, 35, 86, 0.5);
  backdrop-filter: blur(16px);
}

.learning-item {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-align: left;
  padding: 2.2rem 2.4rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.learning-item:last-child {
  border-bottom: none;
}

.learning-item span {
  grid-row: 1 / 3;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-cyan);
}

.learning-item strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: #ffffff;
}

.learning-item small {
  color: #94A3B8;
  line-height: 1.6;
  font-size: 0.9rem;
}

.learning-item.active,
.learning-item:hover {
  background: rgba(30, 58, 138, 0.6);
}

.learning-item.active strong {
  color: var(--gold);
}

.learning-item.active small {
  color: #E2E8F0;
}

/* ==========================================================================
   Section 03: Campus Interactive Map
   ========================================================================== */
.campus-section {
  padding: 130px 0;
  background: var(--bg-main);
}

.campus-head {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: 45px;
}

.campus-head h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.6rem 0;
  color: var(--primary);
}

.campus-head p:last-child {
  line-height: 1.75;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.campus-shell {
  width: min(1440px, calc(100% - 36px));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 430px;
  min-height: 820px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: none;
}

.campus-canvas-wrap {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, #EDF2F9 0%, #E2E8F0 100%);
  overflow: hidden;
}

#campusCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.campus-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
}

.campus-toolbar {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 5;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  max-width: calc(100% - 85px);
}

.campus-toolbar button {
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.campus-toolbar button:hover {
  background: var(--primary);
  color: #ffffff;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 35, 86, 0.15);
}

.campus-btn-autorotate {
  color: var(--blue-sky) !important;
  border: none !important;
}

.campus-btn-autorotate.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0369A1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 6px 16px rgba(14, 35, 86, 0.2) !important;
}

.campus-btn-autorotate .autorotate-icon {
  font-size: 0.7rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.campus-btn-autorotate.active .autorotate-icon {
  animation: campusPulse 1.4s ease-in-out infinite alternate;
}

.campus-btn-students {
  color: #059669 !important;
  border: none !important;
}

.campus-btn-students.active {
  background: linear-gradient(135deg, #065F46 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22), 0 6px 16px rgba(6, 95, 70, 0.2) !important;
}

.campus-btn-labels {
  color: #4F46E5 !important;
  border: none !important;
}

.campus-btn-labels.active {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 6px 16px rgba(55, 48, 163, 0.2) !important;
}

.campus-presets-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.25rem;
}

.campus-preset-btn {
  font-size: 0.7rem !important;
  padding: 0.38rem 0.7rem !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--text-dark) !important;
  border: none !important;
}

.campus-preset-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
}

@keyframes campusPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Floating Compass Dial */
.campus-compass {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.compass-dial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 14px rgba(14, 35, 86, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campus-compass:hover .compass-dial {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(14, 35, 86, 0.16);
  border-color: var(--blue-sky);
}

.compass-needle-arrow {
  width: 4px;
  height: 26px;
  position: relative;
  transition: transform 0.06s linear;
}

.compass-needle-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 12px solid #DC2626;
}

.compass-needle-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 12px solid #64748B;
}

.compass-deg {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Floating Student Activity Tooltip */
.campus-student-tooltip {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -120%);
  background: rgba(14, 35, 86, 0.94);
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(14, 35, 86, 0.25);
  backdrop-filter: blur(8px);
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.campus-student-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(14, 35, 86, 0.94);
}

/* Campus Right Panel */
.campus-panel {
  background: #ffffff;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 1px solid var(--border-light);
  overflow-y: auto;
  max-height: 850px;
}

.campus-panel::-webkit-scrollbar {
  width: 6px;
}

.campus-panel::-webkit-scrollbar-track {
  background: #F8FAFC;
}

.campus-panel::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.campus-panel-index {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3.8rem;
  line-height: 1;
  color: #E2E8F0;
  position: absolute;
  right: 20px;
  top: 18px;
  font-weight: 700;
  user-select: none;
}

.campus-panel h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.8rem;
  color: var(--primary);
}

.campus-panel > p:not(.eyebrow) {
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.campus-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.meta-tag {
  font-size: 0.76rem;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.type-tag {
  background: var(--blue-light);
  color: var(--blue-sky);
  align-self: flex-start;
}

.floor-tag {
  background: var(--bg-alt);
  color: var(--primary);
  align-self: flex-start;
}

.feat-tag {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.73rem;
}

/* Interactive Rooms Section in Panel */
.campus-rooms-box {
  margin-top: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.campus-rooms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.campus-rooms-head strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
}

.rooms-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #EFF6FF;
  color: var(--blue-sky);
  padding: 2px 8px;
  border-radius: 999px;
  border: none;
}

.campus-floor-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.campus-floor-tab {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: #F8FAFC;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.campus-floor-tab:hover {
  background: #E2E8F0;
  border: none;
  color: var(--blue-sky);
}

.campus-floor-tab.active {
  background: var(--primary);
  border: none;
  color: #ffffff;
}

.campus-rooms-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.campus-room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #F8FAFC;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.campus-room-card:hover {
  background: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
  transform: translateY(-1px);
}

.campus-room-card.active {
  background: #EFF6FF;
  border: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.campus-room-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.campus-room-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.campus-room-floor {
  font-size: 0.68rem;
  font-weight: 700;
  background: #E2E8F0;
  color: #1E293B;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.campus-room-card.active .campus-room-floor {
  background: var(--blue-sky);
  color: #ffffff;
}

.campus-room-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus-room-feature {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campus-room-arrow {
  color: var(--blue-sky);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.campus-room-card:hover .campus-room-arrow {
  transform: translateX(3px);
}

/* Room Detail View inside Panel */
.campus-room-detail-card {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: campusFadeIn 0.25s ease;
}

@keyframes campusFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.campus-room-photo {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.campus-room-detail-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--primary);
  margin: 0;
}

.campus-room-detail-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.campus-room-specs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #ffffff;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.campus-room-spec-item {
  font-size: 0.73rem;
  color: #334155;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.campus-room-spec-item strong {
  color: var(--primary);
  min-width: 75px;
}

.campus-room-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-sky);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  align-self: flex-start;
  transition: color 0.15s ease;
}

.campus-room-back-btn:hover {
  color: var(--primary);
}

.campus-panel-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.campus-modal-trigger {
  background: #F1F5F9;
  color: var(--primary);
  border: 1px solid var(--border-medium);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.campus-modal-trigger:hover {
  background: #E2E8F0;
  border-color: var(--primary);
}

.campus-mobile-list {
  display: none;
}

/* ==========================================================================
   Section 04: Student Life Section
   ========================================================================== */
.life-section {
  padding: 130px 0 160px;
  background: #ffffff;
}

.life-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  align-items: end;
  margin-bottom: 55px;
}

.life-head h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--primary);
}

.life-collage {
  width: min(1440px, calc(100% - 36px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1.05fr;
  grid-template-rows: 400px 330px;
  gap: 20px;
}

.life-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.life-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.life-shot:hover img {
  transform: scale(1.04);
}

.shot-a {
  grid-row: 1 / 3;
}

.shot-b {
  grid-column: 2 / 4;
}

.shot-c {
  grid-column: 2;
}

.life-copy-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 2.6rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.life-copy-block:before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 34, 42, 0.4) 0%, transparent 70%);
}

.life-copy-block strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.life-copy-block p {
  line-height: 1.7;
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.life-copy-block .text-link {
  color: #ffffff;
  border-color: var(--blue-cyan);
  align-self: flex-start;
}

.life-copy-block .text-link:hover {
  color: var(--blue-cyan);
}

/* ==========================================================================
   Section 05: Social Media Hub (Fanpage Facebook & Kênh YouTube Cát Linh)
   ========================================================================== */
.social-hub-section {
  background: linear-gradient(150deg, #071536 0%, #0E2356 60%, #15397f 100%);
  color: #ffffff;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.social-hub-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.social-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.social-hub-header h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0.6rem 0 0.8rem;
}

.social-hub-desc {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.social-hub-channels {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.social-channel-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.social-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-pill-icon.fb-icon {
  background: #1877F2;
  color: #ffffff;
}

.social-pill-icon.yt-icon {
  background: #DC2626;
  color: #ffffff;
}

.social-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.social-pill-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.social-pill-text small {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* Filter Bar & Tabs */
.social-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.social-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.social-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.social-tab-btn.active {
  background: #ffffff;
  color: #0E2356;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tab-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.social-tab-btn.active .tab-badge {
  background: rgba(14, 35, 86, 0.12);
  color: #0E2356;
}

.social-tab-btn:not(.active) .tab-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.tab-dot.fb {
  background: #1877F2;
}

.tab-dot.yt {
  background: #DC2626;
}

.social-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Social Grid Cards */
.social-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.social-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  border: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.social-card.is-hidden {
  display: none !important;
}

/* Media Box */
.social-media-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0F172A;
  overflow: hidden;
}

.social-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.social-card:hover .social-media-container img {
  transform: scale(1.04);
}

.yt-play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
}

.yt-play-trigger:hover {
  background: rgba(0, 0, 0, 0.4);
}

.yt-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.5);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-card:hover .yt-play-icon {
  transform: scale(1.1);
  background: #DC2626;
}

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.social-type-badge {
  display: none !important;
}

/* Card Body */
.social-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.social-card-header {
  padding: 16px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
}

.social-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-card-author .author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 2px;
}

.author-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-check,
.fb-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1877F2;
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
}

.post-time {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 1px;
}

.social-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 12px 0 8px;
}

.social-card-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-card-title a:hover {
  color: var(--blue-sky);
}

.social-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px;
}

.social-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-card-action {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.social-card-action:hover {
  gap: 7px;
}

.social-card-action.yt-action {
  color: #DC2626;
}

.social-card-action.fb-action {
  color: #1877F2;
}

/* Facebook Specific Styles */
.social-fb-text {
  padding: 14px 20px 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1E293B;
}

.social-fb-text p {
  margin: 0;
}

.social-media-container.fb-image-box {
  height: 230px;
}

.social-fb-metrics {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748B;
  background: #FAFBFD;
  border-top: none;
}

.reaction-icons {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}

.react-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.react-circle.like {
  background: #1877F2;
}

.react-circle.love {
  background: #FA383E;
  margin-left: -4px;
}

.social-card-footer.fb-footer {
  padding: 12px 20px;
  margin-top: 0;
}

/* ==========================================================================
   Section 07: National Education News (Bộ GD&ĐT & Báo Giáo dục và Thời đại)
   ========================================================================== */
.edu-news-section {
  padding: 110px 0;
  background: #ffffff;
  position: relative;
  border-top: 1px solid #E2E8F0;
}

.edu-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.edu-news-header h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: 0.6rem 0 0.8rem;
}

.edu-news-desc {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.edu-source-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.edu-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 18px;
  border-radius: 12px;
  background: #F1F5F9;
  border: none;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: none;
}

.edu-source-btn:hover {
  background: #E2E8F0;
  border: none;
  box-shadow: none;
  transform: translateY(-2px);
  color: var(--blue-sky);
}

.edu-source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: none;
}

.edu-source-btn strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
}

.edu-source-btn small {
  display: block;
  font-size: 0.72rem;
  color: #64748B;
}

/* 2-Column Editorial News Box */
.edu-news-box-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.edu-featured-card {
  background: #F8FAFC;
  border-radius: 20px;
  padding: 36px;
  border: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(14, 35, 86, 0.04);
}

.edu-featured-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-tag.moet-tag {
  background: #EFF6FF;
  color: #1D4ED8;
  border: none;
}

.source-tag.gdtd-tag {
  background: #FEF2F2;
  color: #DC2626;
  border: none;
}

.edu-date {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

.edu-featured-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0 0 14px;
}

.edu-featured-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.edu-featured-title a:hover {
  color: #1D4ED8;
}

.edu-featured-media {
  margin: 0 0 20px;
}

.edu-media-frame {
  display: block;
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background: #E2E8F0;
  text-decoration: none;
}

.edu-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.edu-media-frame:hover .edu-featured-img {
  transform: scale(1.03);
}

.edu-img-caption {
  display: block;
  font-size: 0.8rem;
  color: #64748B;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.5;
}

.edu-featured-summary {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 24px;
}

.edu-featured-points {
  display: grid;
  gap: 14px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  border: none;
  margin-top: auto;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(14, 35, 86, 0.03);
}

.edu-point-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.point-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1D4ED8;
  line-height: 1.2;
  padding-top: 2px;
}

.edu-point-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.edu-point-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

.edu-card-action {
  padding-top: 8px;
}

.edu-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1D4ED8;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.edu-read-more:hover {
  gap: 10px;
  color: #0E2356;
}

/* Stream Card (Right Column) */
.edu-stream-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  border: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(14, 35, 86, 0.04);
}

.edu-stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: none;
  margin-bottom: 8px;
}

.edu-stream-head h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.stream-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 8px;
  border-radius: 999px;
  border: none;
}

.edu-stream-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edu-stream-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border: none;
}

.stream-item-main {
  flex: 1;
  min-width: 0;
}

.stream-item-thumb {
  width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #F1F5F9;
}

.stream-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.stream-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.edu-stream-item:hover .stream-item-thumb img {
  transform: scale(1.06);
}

.edu-stream-item:last-child {
  border-bottom: none;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.item-time {
  font-size: 0.72rem;
  color: #64748B;
}

.item-cat {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}

.item-cat::before {
  content: '• ';
}

.edu-stream-item h5 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
}

.edu-stream-item h5 a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.edu-stream-item h5 a:hover {
  color: #DC2626;
}

.edu-stream-item p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

.edu-stream-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: none;
}

.edu-stream-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #DC2626;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.edu-stream-link:hover {
  gap: 10px;
}

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

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

/* ==========================================================================
   Section 06: News Section
   ========================================================================== */
.news-section {
  padding: 130px 0;
  background: var(--bg-main);
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.news-head h2 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0;
  color: var(--primary);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
}

.news-lead {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.news-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}

.news-lead:hover img {
  transform: scale(1.03);
}

.news-lead:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 19, 51, 0.95) 0%, rgba(7, 19, 51, 0.4) 50%, transparent 100%);
}

.news-lead-copy {
  position: absolute;
  z-index: 2;
  left: 36px;
  right: 36px;
  bottom: 36px;
  color: #ffffff;
}

.news-lead-copy span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--blue-cyan);
  text-transform: uppercase;
}

.news-lead-copy h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  color: #ffffff;
  margin: 0.6rem 0 0.8rem;
}

.news-lead-copy p {
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.news-stack {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  border: none;
}

.news-stack article {
  padding: 1.8rem 0;
  border-bottom: none;
}

.news-stack article:last-child {
  border-bottom: none;
}

.news-stack span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
}

.news-stack h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.8rem;
  color: var(--primary);
  transition: color 0.25s ease;
}

.news-stack article:hover h3 {
  color: var(--blue-sky);
}

.news-stack a {
  color: var(--blue-sky);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.2s ease;
}

.news-stack a:hover {
  transform: translateX(4px);
  color: var(--red);
}

/* ==========================================================================
   Section 07: Social Section
   ========================================================================== */
.social-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 120px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;
  align-items: center;
}

.social-intro h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  color: #ffffff;
  margin: 0.6rem 0 1.2rem;
}

.social-intro p {
  line-height: 1.8;
  color: #CBD5E1;
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.social-links a {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: padding-left 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  padding-left: 0.8rem;
  color: var(--blue-cyan);
}

.social-links span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--blue-cyan);
  font-weight: 700;
  text-transform: uppercase;
}

.social-links strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.45rem;
}

.social-links b {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.7;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 70px 0 35px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 6vw;
  padding-bottom: 50px;
}

.footer-grid h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: #ffffff;
  margin: 0.6rem 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a,
.footer-contact a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s, transform 0.25s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--blue-cyan);
  transform: translateX(4px);
}

.footer-contact p {
  color: #94A3B8;
  line-height: 1.6;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #94A3B8;
}

/* ==========================================================================
   Poinciana Falling Leaves Floating Toggle Button & Isolated Canvas
   ========================================================================== */
#poincianaCanvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 15 !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
}

.petal-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transform: translateZ(0);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.petal-toggle-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.petal-toggle-btn.off {
  opacity: 0.6;
  filter: grayscale(1);
}

.petal-toggle-btn .petal-icon {
  font-size: 1rem;
}

/* ==========================================================================
   Inner Hero Banner with Authentic Photo Background & Navy Veil
   ========================================================================== */
.inner-hero {
  position: relative;
  padding: 195px 0 105px;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-color: var(--primary);
  color: #ffffff;
  overflow: hidden;
}

.inner-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 35, 86, 0.92) 0%,
    rgba(14, 35, 86, 0.78) 50%,
    rgba(14, 35, 86, 0.95) 100%
  );
  z-index: 1;
}

.inner-hero:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.32) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

.inner-hero .section-shell {
  position: relative;
  z-index: 3;
}

.inner-hero .eyebrow {
  color: #FCD34D;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  text-shadow: none;
  backdrop-filter: blur(8px);
}

.inner-hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 1.08;
  color: #ffffff;
  margin: 0.5rem 0 1.2rem;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.inner-hero p {
  max-width: 760px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  margin: 0;
}

.content-section {
  padding: 90px 0;
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.simple-card {
  background: #ffffff;
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.simple-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border: none;
}

.simple-card h3 {
  font-size: 1.5rem;
  margin: 0.4rem 0 0.8rem;
  color: var(--primary);
}

.simple-card p {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   Editorial Content, Prose Grid & Process Steppers
   ========================================================================== */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.prose-header {
  margin-bottom: 1.75rem;
}

.prose-header h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--primary);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.prose-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.prose-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(14, 35, 86, 0.1);
  border: 1px solid var(--border-light);
  background: #ffffff;
}

.prose-media-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.prose-media-card:hover img {
  transform: scale(1.03);
}

.prose-media-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(14, 35, 86, 0.88);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.prose-media-badge span {
  font-weight: 600;
}

.prose-media-badge small {
  color: var(--gold);
  font-weight: 600;
}

.info-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-callout-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-callout-text h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.info-callout-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.info-callout-text strong {
  color: var(--primary);
}

.process-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(14, 35, 86, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(14, 35, 86, 0.08);
  border: none;
}

.step-indicator {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #1E3A8A 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 35, 86, 0.2);
  border: 2px solid #ffffff;
}

.step-indicator small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.step-indicator span {
  font-size: 1.3rem;
  line-height: 1;
  font-family: var(--font-title);
  color: #ffffff;
}

.step-card:nth-child(1) .step-indicator {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
}

.step-card:nth-child(2) .step-indicator {
  background: linear-gradient(135deg, #D3222A 0%, #B91C1C 100%);
}

.step-card:nth-child(3) .step-indicator {
  background: linear-gradient(135deg, #0E2356 0%, #1E3A8A 100%);
}

.step-content {
  flex: 1;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.step-badge-blue {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.step-badge-red {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.step-badge-navy {
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.step-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.step-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-check-item {
  font-size: 0.78rem;
  font-weight: 500;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.step-check-item b {
  color: #059669;
  font-size: 0.85rem;
}

/* News & Content List (Used in tin-tuc.html & article archives) */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.content-list article {
  background: #ffffff;
  padding: 1.85rem 2.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(14, 35, 86, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.content-list article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(14, 35, 86, 0.08);
  border-color: var(--blue-sky);
}

.content-list article span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-scarlet);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.content-list article h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.content-list article p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.prose-body-text p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.85;
  margin: 0 0 1.25rem;
}

.prose-body-text p:first-of-type {
  font-size: 1.08rem;
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   Breadcrumb Component
   ========================================================================== */
.breadcrumb-nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  background: #F8FAFC;
  font-size: 0.82rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
  color: var(--blue-sky);
}

.breadcrumb-sep {
  color: #94A3B8;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--primary);
  font-weight: 600;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Article Detail Page (tin-tuc-chi-tiet.html)
   ========================================================================== */
.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3.5rem;
  align-items: start;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-scarlet);
  background: rgba(211, 34, 42, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.article-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-family: var(--font-title);
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta-item strong {
  color: var(--primary);
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.article-sapo {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.8;
  color: #0F172A;
  margin: 0 0 2rem;
}

.article-figure {
  margin: 2.25rem 0;
}

.article-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.article-figure figcaption {
  padding-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-content h2 {
  font-size: 1.65rem;
  color: var(--primary);
  margin: 2.25rem 0 1rem;
  font-family: var(--font-title);
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.35rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-quote {
  margin: 2.75rem 0;
  padding: 0 0 0 3.25rem;
  position: relative;
}

.article-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.35rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
}

.article-quote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.article-quote cite {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-sky);
  font-style: normal;
  display: block;
}

.article-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.article-stat-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
  box-shadow: 0 4px 12px rgba(14, 35, 86, 0.04);
}

.article-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.article-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.article-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.article-photo-row figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(14, 35, 86, 0.06);
}

.article-photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.article-photo-row figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #FAF8F5;
  border-top: 1px solid var(--border-light);
}

.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.article-tag-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.article-tag {
  font-size: 0.78rem;
  font-weight: 600;
  background: #F1F5F9;
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag:hover {
  background: var(--primary);
  color: #ffffff;
}

.article-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #F8FAFC;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
}

.article-author-box .author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 0 0 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-nav-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.article-nav-card:hover {
  border-color: var(--blue-sky);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(14, 35, 86, 0.08);
}

.article-nav-card small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-sky);
  margin-bottom: 0.35rem;
}

.article-nav-card strong {
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.4;
}

/* Sidebar Widgets */
.sidebar-sticky {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: none;
  box-shadow: 0 4px 16px rgba(14, 35, 86, 0.04);
}

.sidebar-widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-news-item {
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sidebar-news-item:hover {
  opacity: 0.85;
}

.sidebar-news-thumb {
  width: 72px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-news-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-news-info span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red-scarlet);
  text-transform: uppercase;
}

.sidebar-news-info strong {
  font-size: 0.86rem;
  color: var(--primary);
  line-height: 1.35;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, #1E3A8A 100%);
  color: #ffffff;
  padding: 1.85rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(14, 35, 86, 0.15);
  position: relative;
  overflow: hidden;
}

.sidebar-cta-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.25);
  pointer-events: none;
}

.sidebar-cta-card h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
}

.sidebar-cta-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.sidebar-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  background: #FCD34D;
}

/* ==========================================================================
   Image Gallery / Library Detail Page (thu-vien-chi-tiet.html)
   ========================================================================== */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.gallery-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-filter-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  color: var(--primary);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 35, 86, 0.15);
}

.gallery-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0E2356;
  box-shadow: 0 4px 18px rgba(14, 35, 86, 0.08);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.88;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 35, 86, 0.92) 0%, rgba(14, 35, 86, 0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FCD34D;
  margin-bottom: 0.35rem;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.gallery-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-item-zoom {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   Full-Screen Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-main-img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: #ffffff;
  max-width: 720px;
}

.lightbox-caption-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.lightbox-caption-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-counter {
  position: absolute;
  top: -45px;
  left: 0;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #DC2626;
  border-color: #DC2626;
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--blue-sky);
  border-color: var(--blue-sky);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn {
  left: -70px;
}

.lightbox-next-btn {
  right: -70px;
}

/* Student Life Collage Link & Caption Overlay + Yii2 Pagination */
.life-shot-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: #ffffff;
}

.life-shot-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.5rem 1.25rem;
  background: linear-gradient(0deg, rgba(7, 19, 51, 0.86) 0%, rgba(7, 19, 51, 0.35) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.life-shot:hover .life-shot-caption,
.life-shot-link:focus-visible .life-shot-caption {
  opacity: 1;
}

.life-shot-caption small {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
}

.life-shot-caption strong {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #ffffff;
}

.cl-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.cl-pagination ul.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.cl-pagination ul.pagination li a,
.cl-pagination ul.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cl-pagination ul.pagination li.active a,
.cl-pagination ul.pagination li.active span,
.cl-pagination ul.pagination li a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .article-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.wide {
    grid-column: span 1;
  }
  .lightbox-prev-btn {
    left: 10px;
  }
  .lightbox-next-btn {
    right: 10px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .utility-link {
    display: none;
  }
  .mobile-menu {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #ffffff;
    color: var(--primary);
    padding: 1.5rem 24px 2rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu.open {
    display: flex;
  }
  .mobile-menu a {
    color: inherit;
    text-decoration: none;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.4rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-light);
  }
  .story-grid,
  .learning-head,
  .campus-head,
  .achievement-grid,
  .social-grid,
  .prose-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story-intro {
    position: relative;
    top: auto;
  }
  .learning-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .learning-image-stack {
    height: 440px;
  }
  .campus-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .campus-canvas-wrap {
    height: 580px;
  }
  .campus-panel {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }
  .life-head {
    grid-template-columns: 1fr;
  }
  .news-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / 3;
  }
  .quick-shell {
    grid-template-columns: 1fr;
  }
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-label {
    padding-bottom: 0.6rem;
  }
  .simple-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-shell {
    width: min(100% - 32px, 1360px);
  }
  .header-shell {
    width: calc(100% - 32px);
    height: 76px;
  }
  .brand-copy small {
    display: none;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .mobile-menu {
    top: 76px;
  }
  .hero-shell {
    width: calc(100% - 32px);
    padding: 140px 0 60px;
  }
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
  }
  .title-line {
    white-space: normal;
  }
  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .hero-caption {
    display: none;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
  .quick-links a {
    border-left: 0;
    border-top: 1px solid var(--border-light);
    padding: 1.1rem 0;
  }
  .story-section,
  .learning-section,
  .campus-section,
  .life-section,
  .achievement-section,
  .news-section,
  .social-section {
    padding: 80px 0;
  }
  .story-photo-card img {
    height: 340px;
  }
  .milestone-item {
    grid-template-columns: 24px 1fr;
    gap: 1rem;
  }
  .milestone-dot {
    width: 16px;
    height: 16px;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(14, 35, 86, 0.1);
    margin-top: 26px;
  }
  .milestone-item:first-child .milestone-line {
    top: 34px;
  }
  .milestone-item:last-child .milestone-line {
    bottom: calc(100% - 34px);
  }
  .milestone-card {
    padding: 1.2rem 1.4rem;
  }
  .milestone-year {
    font-size: 1.7rem;
  }
  .learning-image-stack {
    height: 320px;
  }
  .learning-item {
    padding: 1.5rem;
  }
  .learning-item strong {
    font-size: 1.5rem;
  }
  .campus-shell {
    width: calc(100% - 24px);
    border-radius: var(--radius-lg);
  }
  .campus-canvas-wrap {
    height: 440px;
  }
  .campus-panel {
    display: none;
  }
  .campus-hint {
    display: none;
  }
  .campus-mobile-list {
    display: flex;
    overflow-x: auto;
    gap: 0.6rem;
    padding: 14px 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .campus-chip {
    min-width: 170px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--primary);
    cursor: pointer;
  }
  .campus-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }
  .campus-chip strong {
    display: block;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }
  .campus-chip span {
    font-size: 0.72rem;
    opacity: 0.8;
  }
  .life-collage {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  .life-shot {
    height: 280px;
  }
  .shot-a, .shot-b, .shot-c {
    grid-column: auto;
    grid-row: auto;
  }
  .life-copy-block {
    min-height: 260px;
    padding: 1.8rem;
  }
  .life-shot-caption {
    opacity: 1;
  }
  .news-lead {
    min-height: 440px;
  }
  .news-lead-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .social-links a {
    grid-template-columns: 85px 1fr;
  }
  .social-links b {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.6rem;
  }
  .simple-grid,
  .article-stats-grid,
  .article-photo-row,
  .article-pagination {
    grid-template-columns: 1fr;
  }
  .step-card {
    flex-direction: column;
    padding: 1.4rem;
    gap: 1rem;
  }
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .info-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .inner-hero {
    padding: 130px 0 60px;
  }
  .petal-toggle-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.45rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Blog & News Layout 2026 Standards — Trường THCS Cát Linh
   ========================================================================== */
.cl-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1024px) {
  .cl-blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cl-blog-main {
  min-width: 0;
}

.cl-blog-sidebar-col {
  min-width: 0;
}

.cl-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cl-blog-posts-wrap {
  display: flex;
  flex-direction: column;
}

.cl-post-card {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 24px;
}

.cl-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(14, 35, 86, 0.08), 0 8px 10px -6px rgba(14, 35, 86, 0.04);
  border-color: #cbd5e1;
}

@media (max-width: 640px) {
  .cl-post-card {
    flex-direction: column;
  }
}

.cl-post-card-thumb {
  position: relative;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 200px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cl-post-card-thumb {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 210px;
  }
  .cl-post-card-mobile-cat {
    display: block !important;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: #0E2356;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }
}

.cl-post-card-thumb img.cl-thumb-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease;
}

.cl-post-card:hover .cl-post-card-thumb img.cl-thumb-cover {
  transform: scale(1.04);
}

.cl-post-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  text-align: center;
  box-sizing: border-box;
}

.cl-post-card-fallback img.cl-fallback-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(14, 35, 86, 0.08));
  transition: transform 0.3s ease;
}

.cl-post-card:hover .cl-post-card-fallback img.cl-fallback-logo {
  transform: scale(1.08);
}

.cl-post-card-fallback .cl-fallback-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0E2356;
  opacity: 0.75;
}

.cl-post-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.cl-post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cl-post-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #eff6ff;
  color: #0E2356;
  border: 1px solid #dbeafe;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cl-post-card-cat:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.cl-post-card-date {
  font-size: 12px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cl-post-card-title {
  font-family: var(--font-title, 'Source Serif 4', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0E2356;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.cl-post-card-title a {
  color: inherit;
  text-decoration: none;
}

.cl-post-card:hover .cl-post-card-title {
  color: #1d4ed8;
}

.cl-post-card-desc {
  font-family: var(--font-body, 'Be Vietnam Pro', sans-serif);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
}

.cl-post-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #0E2356;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: auto;
}

.cl-post-card:hover .cl-post-card-more {
  color: #1d4ed8;
  transform: translateX(3px);
}

.cl-sidebar-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 20px 22px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.cl-sidebar-card:last-child {
  margin-bottom: 0;
}

.cl-sidebar-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0E2356;
  padding-bottom: 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-sidebar-card-title .cl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.cl-sidebar-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.cl-sidebar-search-input {
  width: 100%;
  padding: 10px 44px 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.cl-sidebar-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cl-sidebar-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 34px;
  border: none;
  border-radius: 8px;
  background: #0E2356;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cl-sidebar-search-btn:hover {
  background: #1d4ed8;
}

.cl-sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cl-sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cl-sidebar-cat-link:hover {
  background: #f1f5f9;
  color: #0E2356;
}

.cl-sidebar-cat-link.active {
  background: #0E2356;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(14, 35, 86, 0.15);
}

.cl-sidebar-cat-link .cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cl-sidebar-cat-link .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.cl-sidebar-cat-link.active .cat-dot {
  background: #fbbf24;
}

.cl-sidebar-cat-link .cat-arrow {
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

.cl-sidebar-news-stack {
  display: flex;
  flex-direction: column;
}

.cl-sidebar-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.cl-sidebar-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cl-sidebar-post-thumb {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cl-sidebar-post-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.cl-sidebar-post-thumb img.fallback-logo {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
}

.cl-sidebar-post-info {
  flex: 1;
  min-width: 0;
}

.cl-sidebar-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.cl-sidebar-post-item:hover .cl-sidebar-post-title {
  color: #1d4ed8;
}

.cl-sidebar-post-date {
  font-size: 11px;
  color: #94a3b8;
}

.cl-article-detail {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 36px 40px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .cl-article-detail {
    padding: 24px 18px;
  }
}

.cl-article-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.cl-article-header-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eff6ff;
  color: #0E2356;
  border: 1px solid #dbeafe;
  text-decoration: none;
}

.cl-article-title {
  font-family: var(--font-title, 'Source Serif 4', Georgia, serif);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0E2356;
  margin: 12px 0 16px;
}

.cl-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: #64748b;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.cl-article-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cl-article-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.cl-share-btn-fb {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.cl-share-btn-fb:hover {
  background: #1877f2;
  color: #ffffff;
}

.cl-share-btn-zalo {
  background: #eff6ff;
  color: #1d4ed8;
}

.cl-share-btn-zalo:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.cl-share-btn-gray {
  background: #f1f5f9;
  color: #475569;
}

.cl-share-btn-gray:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.cl-article-sapo {
  padding: 20px 24px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  font-family: var(--font-title, serif);
  font-style: italic;
  margin: 0 0 24px;
  box-sizing: border-box;
}

.cl-article-featured-img {
  width: 100%;
  max-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid #e2e8f0;
}

.cl-article-featured-img img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  display: block;
}

.cl-article-content {
  font-family: var(--font-body, 'Be Vietnam Pro', sans-serif);
  font-size: 1.02rem;
  line-height: 1.8;
  color: #334155;
}

.cl-article-content p {
  margin-bottom: 1.4rem;
}

.cl-article-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
  margin: 1.2rem auto;
  display: block;
}

.cl-article-author-box {
  margin-top: 36px;
  padding: 20px 24px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
}

.cl-article-author-box img.author-logo {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

.cl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.cl-pagination li a,
.cl-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0E2356;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cl-pagination li.active a,
.cl-pagination li.active span {
  background: #0E2356;
  border-color: #0E2356;
  color: #ffffff;
}

.cl-pagination li a:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

