/* ==========================================================================
   Hanoi College Theme - Inner Pages Styles (Single, Page, Archive, Contact, 404)
   ========================================================================== */

/* ==========================================================================
   SINGLE POST HERO COVER BANNER (Ảnh bìa bài viết chuẩn mẫu PTIT)
   ========================================================================== */
.single-post-hero-banner {
  position: relative;
  width: 100%;
  min-height: 320px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 20px 75px;
  overflow: hidden;
}

.single-post-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.42) 100%);
  z-index: 1;
}

.single-post-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.single-post-hero-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.single-breadcrumb-nav,
.single-post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 100%;
  font-size: 0.92rem;
  color: #64748b;
  text-shadow: none;
  margin-bottom: 24px;
  font-weight: 500;
  font-family: var(--font-body);
}

.single-breadcrumb-nav [itemprop="itemListElement"]:not(.breadcrumb-current),
.single-breadcrumb-nav .breadcrumb-item:not(.breadcrumb-current),
.single-post-breadcrumb [itemprop="itemListElement"]:not(.breadcrumb-current),
.single-post-breadcrumb .breadcrumb-item:not(.breadcrumb-current) {
  flex-shrink: 0;
  white-space: nowrap;
}

.single-breadcrumb-nav .breadcrumb-home-link,
.single-post-breadcrumb .breadcrumb-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  color: #64748b;
  padding: 0;
  background: transparent;
  transition: color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.single-breadcrumb-nav .breadcrumb-home-link:hover,
.single-post-breadcrumb .breadcrumb-home-link:hover {
  background: transparent;
  color: #F36F21;
  transform: none;
  box-shadow: none;
}

.single-breadcrumb-nav .breadcrumb-home-icon,
.single-post-breadcrumb .breadcrumb-home-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.single-breadcrumb-nav .breadcrumb-separator,
.single-post-breadcrumb .breadcrumb-separator {
  color: #94a3b8;
  font-size: 0.8rem;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}

.single-breadcrumb-nav .breadcrumb-cat-link,
.single-post-breadcrumb .breadcrumb-cat-link {
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.single-breadcrumb-nav .breadcrumb-cat-link:hover,
.single-post-breadcrumb .breadcrumb-cat-link:hover {
  color: #F36F21;
  text-decoration: underline;
}

.single-breadcrumb-nav .breadcrumb-current,
.single-post-breadcrumb .breadcrumb-current {
  color: #203B72;
  font-weight: 600;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.single-post-hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 auto;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
  max-width: 920px;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .single-post-hero-banner {
    min-height: 240px;
    padding: 45px 15px 50px;
  }

  .single-post-hero-title {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  .single-post-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .single-post-breadcrumb .breadcrumb-current {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .single-post-breadcrumb .breadcrumb-current {
    max-width: 180px;
  }
}

/* Main Layout with Sidebar */
.site-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0 60px;
  align-items: start;
}

.site-main-layout.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
  padding: 35px 0 60px;
}

/* Article & Page Card Wrapper */
.article-single {
  background: var(--bg-card);
  padding: 35px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

/* Post Meta (3 Thẻ Pill: Chuyên mục, Ngày đăng, Tác giả) */
.article-header .post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.article-header .post-category-badge,
.article-header .posted-on,
.article-header .byline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 16px;
  border-radius: 9999px;
  color: #203B72;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.article-header .post-category-badge:hover {
  background: #e2e8f0;
  color: #203B72;
  transform: translateY(-1px);
}

.article-header .meta-icon {
  color: #b91c1c;
  stroke: #b91c1c;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.article-header .author.vcard {
  font-weight: 500;
  color: #203B72;
}

.article-header .entry-date {
  color: #203B72;
}

/* Header Meta & Share Flex Row */
.article-header-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   SOCIAL SHARE & PRINT BAR (Cụm nút Chia sẻ & In bài viết chuẩn mẫu)
   ========================================================================== */
.article-share-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.article-share-bar .share-label {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.share-buttons-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #b91c1c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  padding: 0;
  box-shadow: 0 2px 5px rgba(185, 28, 28, 0.25);
}

.share-circle-btn:hover {
  transform: translateY(-2px) scale(1.08);
  color: #ffffff;
}

.share-circle-btn svg {
  display: block;
  fill: currentColor;
}

.share-circle-btn.share-btn-fb:hover {
  background-color: #1877F2;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.4);
}

.share-circle-btn.share-btn-zalo:hover {
  background-color: #0068FF;
  box-shadow: 0 4px 10px rgba(0, 104, 255, 0.4);
}

.share-circle-btn.share-btn-gmail:hover {
  background-color: #EA4335;
  box-shadow: 0 4px 10px rgba(234, 67, 53, 0.4);
}

.share-circle-btn.share-btn-print:hover {
  background-color: #203B72;
  box-shadow: 0 4px 10px rgba(32, 59, 114, 0.4);
}

.article-footer-share-row {
  display: flex;
  align-items: center;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-dark, #203B72);
  margin: 0 0 16px 0;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.single-post-title,
.form-single-title,
.plan-single-title,
.notice-single-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-meta {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.article-featured-image {
  margin: 25px 0 30px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

/* Entry Content Typography & Responsive Embed Protection */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.entry-content img,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video,
.entry-content canvas {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* PDF Embedder Plugin & Document Viewer Responsive Scaling */
.entry-content .pdfemb-viewer,
.entry-content .pdfemb-inner-div,
.entry-content .wp-block-file,
.entry-content .wp-block-embed {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.entry-content .pdfemb-viewer canvas,
.entry-content .pdfemb-inner-div canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* Responsive Table Scrolling inside Content */
.entry-content table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

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

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 500;
  color: var(--primary, #203B72);
}

.entry-content h1 strong,
.entry-content h2 strong,
.entry-content h3 strong,
.entry-content h4 strong,
.entry-content h5 strong,
.entry-content h6 strong,
.entry-content h1 b,
.entry-content h2 b,
.entry-content h3 b,
.entry-content h4 b,
.entry-content h5 b,
.entry-content h6 b {
  font-weight: 600;
}

.entry-content strong,
.entry-content b {
  font-weight: 600;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  background: var(--bg-alt);
  font-style: italic;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Post Footer & Tags */
.article-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   TRAINING SINGLE ARTICLES (Kế hoạch năm học, Thông báo đào tạo, Văn bản biểu mẫu)
   ========================================================================== */
.single-post-article {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--border-radius, 10px);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.single-post-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.single-post-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 14px 0;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.single-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.single-post-meta .meta-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 16px;
  border-radius: 9999px;
  color: #203B72;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
}

.single-post-meta .meta-date svg {
  color: #b91c1c;
  stroke: #b91c1c;
  flex-shrink: 0;
}

.single-post-featured-thumb {
  margin: 20px 0 25px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

.single-post-featured-thumb img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.single-post-footer {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #f1f5f9;
  color: #203B72;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.25s ease;
}

.btn-back-to-list:hover {
  background: #203B72;
  color: #ffffff;
  border-color: #203B72;
  transform: translateX(-3px);
}

/* ==========================================================================
   SINGLE POST RIGHT SIDEBAR (Bài viết liên quan cột bên phải)
   ========================================================================== */
.single-post-section {
  background-color: #f8fafc;
  padding: 28px 0 65px;
}

.single-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  padding: 0;
}

.single-post-layout .site-main,
.site-main-layout .site-main,
.form-single-col,
.plan-single-col,
.notice-single-col,
.training-content-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.single-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  align-self: start;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.single-right-sidebar::-webkit-scrollbar {
  width: 5px;
}

.single-right-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.single-sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.single-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #203B72;
  position: relative;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.single-sidebar-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #F36F21;
}

.single-sidebar-title .sidebar-title-bar {
  display: none;
}

.single-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.single-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.single-related-thumb-link {
  flex-shrink: 0;
  width: 82px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #e2e8f0;
}

.single-related-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.single-related-thumb-link:hover img {
  transform: scale(1.08);
}

.single-related-info {
  flex: 1;
  min-width: 0;
}

.single-related-date {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.single-related-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.38;
}

.single-related-title a {
  color: #203B72;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.single-related-title a:hover {
  color: #F36F21;
}

.no-related-posts {
  font-size: 0.88rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   BÀI VIẾT LIÊN QUAN (Khối card hiển thị ở bên dưới cùng trang bài viết)
   ========================================================================== */
.single-related-bottom-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.single-related-header {
  margin-bottom: 24px;
  position: relative;
}

.single-related-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #203B72;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
}

.single-related-underline {
  width: 50px;
  height: 3px;
  background-color: #F36F21;
  border-radius: 2px;
}

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

.related-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(32, 59, 114, 0.08);
  border-color: #cbd5e1;
}

.related-card-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.related-card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.related-card:hover .related-card-thumb-link img {
  transform: scale(1.06);
}

.related-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card-date {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.related-card-date svg {
  width: 13px;
  height: 13px;
  color: #F36F21;
  flex-shrink: 0;
}

.related-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.42;
  margin: 0;
}

.related-card-title a {
  color: #203B72;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-card:hover .related-card-title a {
  color: #F36F21;
}

@media (max-width: 991px) {
  .single-related-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 576px) {
  .single-related-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .single-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .single-post-layout {
    padding: 20px 0 40px;
    gap: 25px;
  }

  .article-single,
  .single-post-article {
    padding: 22px 18px;
    border-radius: 10px;
  }

  .article-title,
  .single-post-title {
    font-size: 1.55rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .article-header,
  .single-post-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .article-header .post-meta,
  .single-post-meta {
    gap: 10px;
  }

  .article-header .post-category-badge,
  .article-header .posted-on,
  .article-header .byline,
  .single-post-meta .meta-date {
    padding: 5px 12px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .article-featured-image,
  .single-post-featured-thumb {
    margin: 18px 0 22px;
  }
}

@media (max-width: 576px) {

  .article-single,
  .single-post-article {
    padding: 18px 14px;
    border-radius: 8px;
  }

  .article-title,
  .single-post-title {
    font-size: 1.35rem;
    line-height: 1.35;
  }

  .article-header .post-meta,
  .single-post-meta {
    gap: 8px;
  }

  .article-header .post-category-badge,
  .article-header .posted-on,
  .article-header .byline,
  .single-post-meta .meta-date {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .article-share-bar .share-label {
    font-size: 0.85rem;
  }

  .btn-back-to-list {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .single-post-breadcrumb .breadcrumb-current {
    max-width: 180px;
  }

  .plan-media-thumb-link {
    width: 110px;
  }
}

/* Contact Template Styles */
.contact-info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.contact-card {
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--border-radius);
}

/* ==========================================================================
   ABOUT PAGE LAYOUT (Banner con, Sidebar 5 mục, Nội dung chi tiết)
   ========================================================================== */

/* Banner trên cùng */
.inner-page-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.inner-banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Bố cục trang Giới thiệu */
.about-page-main-wrap {
  width: 100%;
  background: #ffffff;
  padding: 0;
}

.about-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 60px;
  align-items: stretch;
  min-height: calc(100vh - 400px);
}

/* Cột Trái: Sidebar Menu 5 mục kéo dài với hiệu ứng Sticky bám màn hình */
.about-sidebar-col {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-sidebar-nav-wrap {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 36px 24px;
  box-sizing: border-box;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.about-sidebar-nav-wrap::-webkit-scrollbar {
  width: 5px;
}

.about-sidebar-nav-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.about-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-nav-item {
  position: relative;
}

.about-nav-link {
  color: #475569;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  line-height: 1.4;
}

.about-nav-item.is-active .about-nav-link,
.about-nav-link:hover {
  color: #203B72;
  font-weight: 600;
}

/* Cột Phải: Nội dung chi tiết */
.about-content-col {
  padding-top: 40px;
  padding-bottom: 70px;
}


.about-section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.about-entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-entry-content p {
  margin: 0;
  text-align: justify;
}

/* Khung Video Giới Thiệu */
.about-video-card {
  margin-top: 28px;
  width: 100%;
  max-width: 626px;
  aspect-ratio: 626 / 352.12;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.about-video-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

.about-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 28, 60, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.about-video-title {
  color: #F36F21;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.about-video-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #F36F21;
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(243, 111, 33, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-video-play-btn svg {
  margin-left: 3px;
}

.about-video-play-btn:hover {
  transform: scale(1.1);
  background: #e05e10;
}

/* ==========================================================================
   VISION & MISSION PAGE (Tầm nhìn - Sứ mệnh)
   ========================================================================== */
.vision-mission-content-col {
  padding-top: 40px;
  padding-bottom: 70px;
}

/* Khối Quote trích dẫn */
.vision-quote-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 38px;
  padding-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.quote-icon-wrap {
  flex: 0 0 24px;
  width: 24px;
  margin-top: 3px;
}

.quote-mark-icon {
  width: 22px;
  height: auto;
  display: block;
}

.quote-text-wrap {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.quote-paragraph {
  font-size: 1.05rem;
  font-weight: 500;
  color: #203B72;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Khối TẦM NHÌN & SỨ MỆNH */
.vision-mission-block {
  margin-bottom: 34px;
  width: 100%;
  box-sizing: border-box;
}

.vision-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.vision-bullet-img {
  width: 22px;
  height: auto;
  max-height: 14px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.vision-block-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.vision-block-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
  word-break: break-word;
  overflow-wrap: anywhere;
  width: 100%;
  box-sizing: border-box;
}

.vision-block-body p {
  margin: 0;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Nhịp thở khoảng cách cho các khối động Trang Tầm Nhìn - Sứ Mệnh */
.vision-mission-dynamic-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.vision-dynamic-item {
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.vision-dynamic-item.type-quote {
  margin-bottom: 34px;
}

.vision-dynamic-item.type-heading_bullet {
  margin-top: 36px;
  margin-bottom: 14px;
}

.vision-mission-dynamic-wrapper>.vision-dynamic-item:first-child.type-heading_bullet {
  margin-top: 0;
}

.vision-dynamic-item.type-normal {
  margin-bottom: 24px;
}

.vision-dynamic-item:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   ORGANIZATION STRUCTURE PAGE (Cơ cấu tổ chức)
   ========================================================================== */
.org-chart-content-col {
  padding-top: 45px;
  padding-bottom: 90px;
}

.org-page-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 45px 0;
  line-height: 1.3;
}

.org-tree-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Khối Cam: HỘI ĐỒNG QUẢN TRỊ & BAN GIÁM HIỆU */
.org-node-top,
.org-node-second {
  display: flex;
  justify-content: center;
  width: 100%;
}

.org-box-orange {
  background: #F36F21;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 6px;
  text-align: center;
  width: 300px;
  box-shadow: 0 1px 4px rgba(243, 111, 33, 0.2);
}

/* Đường nối dọc màu xám xanh */
.org-line-vertical {
  width: 1.5px;
  height: 38px;
  background-color: #8fa5c4;
  margin: 0 auto;
}

/* Khối liên kết 3 Cột */
.org-chart-main-structure {
  width: 100%;
  position: relative;
}

/* Thanh rẽ nhánh ngang phía trên 3 cột */
.org-main-branch-bar {
  position: relative;
  height: 38px;
  /* Thanh ngang kéo dài từ tâm cột 1 (190px / 2 = 95px) sang tâm cột 3 (95px) */
  margin-left: 95px;
  margin-right: 95px;
  border-top: 1.5px solid #8fa5c4;
}

.org-branch-pin {
  position: absolute;
  top: 0;
  width: 1.5px;
  height: 38px;
  background-color: #8fa5c4;
}

.org-branch-pin.pin-left {
  left: 0;
}

.org-branch-pin.pin-center {
  left: 50%;
  transform: translateX(-50%);
}

.org-branch-pin.pin-right {
  right: 0;
}

/* Lưới 3 Cột - Khoảng cách trái phải rộng rãi */
.org-columns-grid {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  gap: 36px;
  width: 100%;
  align-items: start;
}

.org-col {
  display: flex;
  flex-direction: column;
}

.org-col-header {
  background: #203B72;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 8px;
  border-radius: 4px 4px 0 0;
  letter-spacing: 0.02em;
}

.org-col-body {
  border: 1.5px solid #8fa5c4;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 26px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Ô con phòng ban / khoa */
.org-item-box {
  background: #f1f5f9;
  border: 1.5px solid #8fa5c4;
  border-radius: 6px;
  padding: 9px 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #203B72;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.35;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* ──────────────────────────────────────────────────────────────────────────
   ĐƯỜNG KẺ NỐI DỌC & NGANG BÊN TRONG CẢ 3 CỘT (MÀU XÁM XANH ĐỒNG BỘ)
   ────────────────────────────────────────────────────────────────────────── */

/* Cột 1: TỔ CHỨC ĐOÀN THỂ (Trục dọc nối 2 ô) */
.org-col-doanthe .org-col-body {
  position: relative;
  gap: 26px;
}

.org-col-doanthe .org-col-body::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background-color: #8fa5c4;
  z-index: 1;
}

/* Cột 3: KHOA CHUYÊN MÔN (Trục dọc nối xuyên suốt 5 ô) */
.org-col-khoa .org-col-body {
  position: relative;
  gap: 22px;
}

.org-col-khoa .org-col-body::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background-color: #8fa5c4;
  z-index: 1;
}

/* Cột 2: CÁC PHÒNG BAN (Mạng lưới trục dọc & 5 hàng đôi đối xứng) */
.org-phongban-body {
  position: relative;
  gap: 22px;
}

/* Đoạn trục dọc từ đỉnh cột xuống chạm hàng 1 */
.org-phongban-body::before {
  content: '';
  position: absolute;
  top: 0;
  height: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background-color: #8fa5c4;
  z-index: 1;
}

/* Hàng đôi 2 ô đối xứng qua trục dọc */
.org-pb-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 2;
  width: 100%;
}

.org-pb-row .org-item-box {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 46px;
}

/* Thanh ngang nối 2 ô qua trục dọc chính giữa (chớm sâu vào 2 box 3px để chống tách nét) */
.org-pb-row::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(28px + 6px);
  height: 1.5px;
  background-color: #8fa5c4;
  z-index: 1;
}

/* Trục dọc nối từ đỉnh hàng xuyên qua thanh ngang xuống hàng kế tiếp */
.org-pb-row::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: calc(100% + 22px);
  width: 1.5px;
  background-color: #8fa5c4;
  transform: translateX(-50%);
  z-index: 1;
}

/* Riêng hàng cuối cùng: Trục dọc dừng lại chính xác tại thanh ngang (50%), tuyệt đối không bị thừa nét xuống dưới */
.org-pb-row:last-child::after {
  height: 50%;
}

/* ==========================================================================
   EDUCATION PHILOSOPHY PAGE (Triết lý đào tạo)
   ========================================================================== */
.philosophy-content-col {
  padding-top: 40px;
  padding-bottom: 80px;
}

.philosophy-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.philosophy-intro-box {
  margin-bottom: 40px;
}

.philosophy-intro-quote {
  font-size: 1rem;
  font-weight: 400;
  color: #334155;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

/* Lưới 3 Thẻ */
.philosophy-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.philosophy-card-item {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 36px 18px 24px;
  display: flex;
  flex-direction: column;
}

/* Badge Nổi trên đỉnh card */
.philosophy-card-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #203B72;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(32, 59, 114, 0.2);
  z-index: 2;
}

.philosophy-badge-icon {
  width: 20px;
  height: 20px;
  max-height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.philosophy-badge-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

/* Nội dung trong card */
.philosophy-card-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.philosophy-card-body p {
  margin: 0;
}

/* ==========================================================================
   TRAINING ENVIRONMENT PAGE (Môi trường đào tạo)
   ========================================================================== */
.env-content-col {
  padding-top: 40px;
  padding-bottom: 80px;
}

.env-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 28px 0;
  line-height: 1.3;
}

.env-text-block {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: justify;
}

.env-text-top {
  margin-bottom: 32px;
}

.env-text-bottom {
  margin-top: 32px;
}

.env-gallery-section {
  margin: 32px 0;
}

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

.env-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

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

.env-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: inherit;
}

.env-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
}

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

.env-card-link:hover .env-card-img {
  transform: scale(1.04);
}

.env-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #1e3a8a 0%, #203B72 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.env-placeholder-text {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.env-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #203B72;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.env-card-link:hover .env-card-title {
  color: #F36F21;
}

/* Single Môi trường đào tạo */
.single-env-content-col {
  padding-top: 35px;
  padding-bottom: 70px;
}

.single-env-back-link {
  margin-bottom: 20px;
}

.env-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #203B72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.env-back-btn:hover {
  color: #F36F21;
}

.single-env-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.single-env-featured-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.single-env-img {
  width: 100%;
  height: auto;
  display: block;
}

.single-env-entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #334155;
}

.single-env-entry-content p {
  margin-bottom: 16px;
  text-align: justify;
}

/* Pagination (Chuyển trang mượt mà không reload) */
.env-pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.env-page-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.env-page-btn,
.env-page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.env-page-btn:hover:not(:disabled),
.env-page-number:hover:not(.is-active) {
  background: #e2e8f0;
  color: #203B72;
}

.env-page-number.is-active {
  background: #203B72;
  color: #ffffff;
  cursor: default;
}

/* ==========================================================================
   TRAINING / ACADEMIC PROGRAMS PAGE (Trang Đào tạo)
   ========================================================================== */
.training-sidebar-nav-wrap {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 30px 20px;
  box-sizing: border-box;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.training-sidebar-nav-wrap::-webkit-scrollbar {
  width: 5px;
}

.training-sidebar-nav-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.training-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.training-nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #203B72;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.training-nav-link:hover,
.training-nav-item.is-active>.training-nav-link {
  color: #F36F21;
}

.training-subnav-list {
  list-style: none;
  padding: 12px 0 0 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.training-subnav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.subnav-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.training-subnav-link:hover,
.training-subnav-item.is-active .training-subnav-link {
  color: #203B72;
  font-weight: 700;
}

.training-subnav-link:hover .subnav-arrow,
.training-subnav-item.is-active .subnav-arrow {
  color: #F36F21;
  transform: translateX(2px);
}

/* Nội dung Đào tạo bên phải */
.training-content-col {
  padding-top: 35px;
  padding-bottom: 85px;
}

.training-section {
  margin-bottom: 50px;
}

.training-sec-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* Lưới 14 Ngành Đào Tạo */
.majors-grid-row {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

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

.majors-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 80%;
}

.major-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.major-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: inherit;
}

.major-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

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

.major-card-link:hover .major-card-img {
  transform: scale(1.06);
}

.major-card-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: #203B72;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.major-card-link:hover .major-card-title {
  color: #F36F21;
}

/* Đội ngũ giảng viên */
.lecturers-intro-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
  text-align: justify;
}

.lecturers-stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 32px 0 10px;
}

.lecturer-stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: #F36F21;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #203B72;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Mô hình đào tạo (5 Thẻ Xanh Navy) */
.model-intro-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 24px;
  text-align: justify;
}

.training-model-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.model-navy-card {
  background: #203B72;
  color: #ffffff;
  border-radius: 6px;
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  min-height: 185px;
  box-shadow: 0 4px 12px rgba(32, 59, 114, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.model-navy-card:hover {
  transform: translateY(-4px);
  background: #172d58;
}

.model-card-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card-icon {
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.model-card-icon-img {
  width: 36px;
  height: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

/* Đường kẻ ngang ngăn cách màu trắng mờ dưới icon */
.model-card-divider {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 14px auto 16px;
  flex-shrink: 0;
}

.model-card-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

/* ==========================================================================
   ACADEMIC PLAN PAGE (Trang Kế hoạch năm học)
   ========================================================================== */
.plan-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 28px 0;
  line-height: 1.3;
}

.plan-two-columns-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Cột Trái: Text List */
.plan-text-col {
  padding-right: 0;
  padding-top: 36px;
}

.plan-text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.plan-text-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 13px 0;
  margin: 0;
}

.plan-text-item:first-child {
  padding-top: 0;
}

.plan-text-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.plan-text-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: #203B72;
  transition: all 0.2s ease;
}

.plan-item-icon-wrap {
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.plan-text-link:hover .plan-icon-img {
  transform: scale(1.08);
}

.plan-item-title-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: #203B72;
  transition: color 0.2s ease;
}

.plan-text-link:hover .plan-item-title-text {
  color: #F36F21;
}

/* Cột Phải: Media Cards List */
.plan-media-col {
  padding-top: 0;
}

.plan-media-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-media-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-media-thumb-link {
  flex-shrink: 0;
  width: 165px;
  height: 105px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

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

.plan-media-item:hover .plan-media-thumb {
  transform: scale(1.06);
}

.plan-media-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #203B72;
  margin: 0;
}

.plan-media-title-link {
  text-decoration: none;
  color: #203B72;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-media-item:hover .plan-media-title-link {
  color: #F36F21;
}

/* Phân trang Plan Pagination */
.plan-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.plan-page-btn,
.plan-page-number {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: #203B72;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-page-number.is-active {
  background: #203B72;
  color: #ffffff;
  border-color: #203B72;
}

.plan-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.plan-page-btn:hover:not(:disabled),
.plan-page-number:hover:not(.is-active) {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #203B72;
}

/* ==========================================================================
   TRAINING NOTICES PAGE (Trang Thông báo đào tạo)
   ========================================================================== */
.notice-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 36px 0;
  line-height: 1.3;
}

.notice-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
}

.notice-item {
  display: block;
}

.notice-item-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: #203B72;
  transition: all 0.2s ease;
}

.notice-icon-box {
  flex-shrink: 0;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notice-bullet-icon {
  width: 22px;
  height: auto;
  max-height: 16px;
  object-fit: contain;
  display: block;
}

.notice-bullet-svg {
  width: 20px;
  height: 12px;
  display: block;
}

.notice-item-title {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: #203B72;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.notice-item-link:hover .notice-item-title {
  color: #F36F21;
}

/* Phân trang Notice Pagination */
.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 55px;
  max-width: 900px;
}

.notice-page-btn,
.notice-page-number {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notice-page-number.is-active {
  background: #203B72;
  color: #ffffff;
  border-color: #203B72;
  cursor: default;
}

.notice-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notice-page-btn:not(:disabled):hover,
.notice-page-number:not(.is-active):hover {
  background: #e2e8f0;
  color: #203B72;
}

/* Khung hiển thị khi chưa có bài viết */
.notice-empty-box,
.plan-empty-box {
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  text-align: center;
  margin-top: 20px;
}

.notice-empty-text,
.plan-empty-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

/* ==========================================================================
   TRAINING FORMS PAGE (Trang Văn bản biểu mẫu)
   ========================================================================== */
.forms-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 36px 0;
  line-height: 1.3;
}

/* Mở rộng khung chứa trang Đào tạo & Văn bản biểu mẫu: Card bài viết lấn sang phải lấp đầy khoảng trống */
.training-page-main-wrap .about-page-container {
  max-width: 1440px;
  width: 100%;
  padding: 0 32px;
}

.forms-layout-grid {
  grid-template-columns: 250px 1fr !important;
  gap: 40px !important;
  width: 100%;
}

.forms-content-col {
  width: 100%;
  max-width: 100%;
}

.forms-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 50px;
  /* Cách trên dưới thưa ra, thoáng đãng */
  width: 100%;
}

.form-card-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.form-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.form-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.form-card-link:hover .form-card-img {
  transform: scale(1.05);
}

.form-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  /* Giãn cách dòng thoáng đãng khi tiêu đề dài 3 dòng */
  color: #203B72;
  text-align: left;
  /* Căn trái bám đều và vuông vắn */
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Khống chế tối đa 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
  /* Đảm bảo độ cao đồng nhất cho các card trong cùng hàng */
  transition: color 0.2s ease;
}

.form-card-link:hover .form-card-title {
  color: #F36F21;
}

/* Phân trang Forms Pagination */
.forms-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 55px;
}

.forms-page-btn,
.forms-page-number {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.forms-page-number.is-active {
  background: #203B72;
  color: #ffffff;
  border-color: #203B72;
  cursor: default;
}

.forms-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.forms-page-btn:not(:disabled):hover,
.forms-page-number:not(.is-active):hover {
  background: #e2e8f0;
  color: #203B72;
}

.forms-empty-box {
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  text-align: center;
  margin-top: 20px;
}

.forms-empty-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

/* Responsive for Inner Pages */
@media (max-width: 1024px) {
  .site-main-layout {
    grid-template-columns: 1fr;
  }

  .about-layout-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
  }

  .philosophy-cards-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .majors-grid-5,
  .majors-grid-4 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

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

  .plan-two-columns-layout {
    gap: 24px;
  }

  .forms-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .forms-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 36px;
  }
}

@media (max-width: 768px) {

  .about-page-main-wrap,
  .about-page-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .about-layout-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }

  .about-sidebar-col,
  .training-sidebar-col {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    background: transparent !important;
    padding-top: 15px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .about-sidebar-nav-wrap,
  .training-sidebar-nav-wrap {
    min-height: auto;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .about-nav-list,
  .training-nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .about-nav-item,
  .training-nav-item {
    flex: 0 1 auto !important;
    display: inline-block !important;
  }

  .about-nav-link,
  .training-nav-link {
    padding: 6px 11px !important;
    background: #ffffff;
    color: #475569 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3 !important;
    transition: all 0.2s ease;
  }

  .about-nav-item.is-active .about-nav-link,
  .training-nav-item.is-active .training-nav-link {
    background: #203B72 !important;
    color: #ffffff !important;
    border-color: #203B72 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(32, 59, 114, 0.25);
  }

  /* Đào tạo: Ẩn danh sách 14 ngành con trên thanh tab mobile */
  .training-subnav-list,
  .training-sub-list {
    display: none !important;
  }

  .about-content-col,
  .training-content-col {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 10px;
    padding-bottom: 50px;
  }

  .about-section-title,
  .org-page-title,
  .philosophy-page-title,
  .training-sec-title,
  .plan-page-title,
  .notice-page-title,
  .forms-page-title {
    font-size: 1.55rem;
    word-break: break-word;
  }

  /* Trang Tầm Nhìn - Sứ Mệnh trên Mobile */
  .vision-mission-content-col {
    padding-top: 15px;
    padding-bottom: 40px;
  }

  .vision-quote-card {
    gap: 12px;
    margin-bottom: 24px;
  }

  .quote-icon-wrap {
    flex: 0 0 18px;
    width: 18px;
  }

  .quote-mark-icon {
    width: 16px;
  }

  .quote-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }

  .vision-block-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .vision-bullet-img {
    width: 18px;
    max-height: 12px;
  }

  .vision-block-title {
    font-size: 1.22rem;
  }

  .vision-block-body {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .vision-block-body p {
    text-align: left;
  }

  .vision-dynamic-item.type-heading_bullet {
    margin-top: 24px;
  }

  /* Sơ đồ Cơ Cấu Tổ Chức trên Mobile: Tự động vừa vặn 100% màn hình & căn giữa, không cuộn ngang */
  .org-chart-content-col {
    padding-top: 15px;
    padding-bottom: 40px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .org-chart-article {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
  }

  .org-tree-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .org-box-orange {
    width: 180px !important;
    max-width: 85% !important;
    font-size: 0.72rem !important;
    padding: 7px 10px !important;
    border-radius: 4px !important;
  }

  .org-line-vertical {
    height: 18px !important;
  }

  .org-chart-main-structure {
    width: 100% !important;
  }

  .org-main-branch-bar {
    display: block !important;
    height: 18px !important;
    margin-left: 12.8% !important;
    margin-right: 12.8% !important;
  }

  .org-branch-pin {
    height: 18px !important;
  }

  .org-columns-grid {
    grid-template-columns: 1fr 1.9fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .org-col-header {
    font-size: clamp(0.55rem, 2.2vw, 0.72rem) !important;
    padding: 6px 2px !important;
    border-radius: 3px 3px 0 0 !important;
    line-height: 1.25 !important;
  }

  .org-col-body {
    padding: 10px 3px !important;
    border-radius: 0 0 4px 4px !important;
  }

  .org-col-doanthe .org-col-body {
    gap: 16px !important;
  }

  .org-col-khoa .org-col-body {
    gap: 14px !important;
  }

  .org-phongban-body {
    gap: 14px !important;
  }

  .org-phongban-body::before {
    height: 10px !important;
    bottom: auto !important;
  }

  .org-item-box {
    font-size: clamp(0.48rem, 2.0vw, 0.64rem) !important;
    padding: 4px 2px !important;
    min-height: 40px !important;
    border-radius: 4px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .org-pb-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .org-pb-row::before {
    width: calc(6px + 4px) !important;
  }

  .org-pb-row::after {
    height: calc(100% + 14px) !important;
  }

  .org-pb-row:last-child::after {
    height: 50% !important;
  }

  .org-pb-row .org-item-box {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 40px !important;
  }

  .org-col-doanthe .org-col-body::before,
  .org-col-khoa .org-col-body::before {
    bottom: 16px !important;
  }

  .philosophy-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .philosophy-card-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .env-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .majors-grid-5,
  .majors-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

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

  .lecturers-stats-grid {
    gap: 36px;
  }

  .plan-two-columns-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .plan-text-col {
    padding-right: 0;
    padding-top: 0;
  }

  .notice-items-list {
    gap: 18px;
  }

  .forms-cards-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .archive-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {

  .about-page-main-wrap,
  .inner-archive-section,
  .single-custom-section {
    padding: 30px 0 60px;
  }

  .about-page-container {
    padding: 0 14px;
  }

  .about-section-title,
  .org-page-title,
  .philosophy-page-title,
  .training-sec-title,
  .plan-page-title,
  .notice-page-title,
  .forms-page-title,
  .archive-main-title {
    font-size: 1.35rem;
    margin-bottom: 22px;
  }

  .training-sidebar-nav-wrap,
  .about-sidebar-nav-wrap {
    padding: 6px 4px !important;
    border-radius: 8px !important;
  }

  .training-nav-link,
  .about-nav-link {
    font-size: 0.72rem !important;
    padding: 5px 8px !important;
    border-radius: 12px !important;
  }

  .majors-grid-5,
  .majors-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .major-card-hanoi {
    padding: 16px;
  }

  .plan-text-item {
    gap: 10px;
  }

  .plan-text-title {
    font-size: 0.88rem;
  }

  .notice-item-link {
    font-size: 0.88rem;
    gap: 10px;
  }

  .forms-pagination,
  .archive-pagination-wrap {
    margin-top: 35px;
    gap: 5px;
  }

  .forms-page-btn,
  .forms-page-number,
  .archive-pagination-wrap .page-numbers a,
  .archive-pagination-wrap .page-numbers span {
    min-width: 30px;
    height: 30px;
    font-size: 0.8rem;
    padding: 0 4px;
  }
}

/* ==========================================================================
   TRANG CHI TIẾT NGÀNH ĐÀO TẠO (CẤP 3)
   ========================================================================== */

.major-detail-content-col {
  padding-bottom: 60px;
}

.major-detail-page-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* 1. Phần Giới thiệu + Hộp văn bằng */
.major-detail-intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: center;
  margin-bottom: 42px;
}

.major-detail-intro-text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 16px 0;
  text-align: justify;
}

.major-detail-intro-text p:last-child {
  margin-bottom: 0;
}

.major-degree-box {
  background: #ffffff;
  border: 1.5px solid #F36F21;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(243, 111, 33, 0.08);
}

.major-degree-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.major-degree-info-item {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}

.major-degree-info-item strong {
  font-weight: 600;
  color: #203B72;
}

/* Tiêu đề các mục lớn */
.major-section-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 45px 0 22px 0;
  line-height: 1.3;
}

/* 2. Bảng Môn học tiêu biểu (Lưới 4 cột x 3 dòng = 12 ô) */
.major-subjects-table-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid #cbd5e1;
  background: #cbd5e1;
  gap: 1.5px;
  margin-bottom: 45px;
  border-radius: 4px;
  overflow: hidden;
}

.major-subject-cell {
  background: #ffffff;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  min-height: 64px;
  transition: background 0.2s ease, color 0.2s ease;
}

.major-subject-cell:hover {
  background: #f8fafc;
  color: #203B72;
}

/* 3. Chuẩn đầu ra chương trình (Lưới 3 cột gồm 9 thẻ xám) */
.major-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.major-outcome-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 500;
  color: #203B72;
  line-height: 1.4;
  min-height: 56px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Định dạng nội dung tùy biến và bảng biểu từ TinyMCE / Advanced Editor Tools */
.major-entry-content-wrap {
  margin-bottom: 45px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

.major-entry-content-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.major-entry-content-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #203B72;
  margin: 28px 0 14px 0;
}

.major-entry-content-wrap p {
  margin: 0 0 16px 0;
  line-height: 1.75;
}

.major-entry-content-wrap ul,
.major-entry-content-wrap ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.major-entry-content-wrap li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Định dạng Bảng biểu (hỗ trợ Advanced Editor Tools Tables) */
.major-entry-content-wrap table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 20px 0 35px 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.major-entry-content-wrap th,
.major-entry-content-wrap td {
  border: 1px solid #cbd5e1;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
  vertical-align: middle;
}

.major-entry-content-wrap th {
  background: #203B72;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.major-entry-content-wrap td {
  background: #ffffff;
  transition: background 0.15s ease;
}

.major-entry-content-wrap tr:nth-child(even) td {
  background: #f8fafc;
}

.major-entry-content-wrap tr:hover td {
  background: #f1f5f9;
}

/* 4. Cơ hội thực tập tại các doanh nghiệp lớn (Chung 1 hàng ngang duy nhất) */
.major-partners-wrap {
  margin-bottom: 55px;
  width: 100%;
}

.major-partners-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap !important;
  width: 100%;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.major-partners-row::-webkit-scrollbar {
  display: none;
}

.major-partner-item {
  flex: 0 0 calc((100% - 84px) / 7);
  max-width: 120px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.major-partner-logo {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
  transition: transform 0.2s ease;
}

.major-partner-logo:hover {
  transform: scale(1.06);
}

/* 5. Khối CTA Tuyển sinh */
.major-cta-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 30px 45px;
  margin-top: 50px;
}

.major-cta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #203B72;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto 16px;
  max-width: 680px;
}

.major-cta-desc {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.7;
  color: #475569;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.major-cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 42px;
  margin-bottom: 35px;
}

.major-cta-card {
  background: #203B72;
  border-radius: 8px;
  padding: 46px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 175px;
  box-shadow: 0 4px 14px rgba(32, 59, 114, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.major-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(32, 59, 114, 0.28);
}

/* Vòng tròn icon nổi ở mép trên thẻ */
.major-cta-icon-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  z-index: 2;
  transition: transform 0.25s ease;
}

.major-cta-card:hover .major-cta-icon-badge {
  transform: translate(-50%, -54%) scale(1.05);
}

.major-cta-icon-img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}

.major-cta-icon-badge svg {
  width: 30px;
  height: 30px;
  stroke: #203B72;
}

.major-cta-card-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

.major-cta-btn-wrap {
  display: flex;
  justify-content: center;
}

.major-cta-btn {
  background: #F36F21;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 42px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(243, 111, 33, 0.35);
  transition: all 0.2s ease;
}

.major-cta-btn:hover {
  background: #e05e10;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(243, 111, 33, 0.45);
}

/* Responsive cho Trang Chi Tiết Ngành */
@media (max-width: 992px) {
  .major-detail-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .major-degree-box {
    max-width: 420px;
  }

  .major-subjects-table-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .major-cta-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 42px;
    margin-top: 42px;
  }
}

@media (max-width: 640px) {
  .major-detail-page-title {
    font-size: 1.45rem;
  }

  .major-section-heading {
    font-size: 1.25rem;
    margin: 35px 0 18px 0;
  }

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

  .major-subject-cell {
    min-height: 52px;
    padding: 14px 10px;
    font-size: 0.85rem;
  }

  .major-outcomes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .major-outcome-card {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .major-partners-row {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap !important;
  }

  .major-partner-item {
    flex: 0 0 85px;
    max-width: 85px;
    height: 44px;
  }

  .major-cta-section {
    padding: 30px 16px 35px;
  }

  .major-cta-title {
    font-size: 1.2rem;
  }

  .major-cta-cards-grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
    margin-top: 38px;
  }

  .major-cta-card {
    padding: 42px 16px 22px;
    min-height: auto;
  }

  .major-cta-btn {
    font-size: 0.95rem;
    padding: 12px 32px;
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   ARCHIVE & CATEGORY PAGE (Giao diện Lưu trữ & Chuyên mục)
   - 2 bài viết dạng card trên 1 hàng
   - Cột trái: Thanh tìm kiếm + Bài viết mới nhất cùng loại
   - Phân trang đầy đủ
   ========================================================================== */
.archive-custom-section {
  padding: 40px 0 80px;
  background-color: #f8fafc;
  min-height: 60vh;
}

.archive-section-header {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: none;
}

.archive-section-header .section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F36F21;
  margin-bottom: 6px;
}

.archive-section-header .section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.archive-section-header .section-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 800px;
}

/* Layout 2 cột: Cột trái sidebar 320px, cột phải nội dung */
.archive-main-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* CỘT TRÁI: SIDEBAR */
.archive-left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  align-self: start;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.archive-left-sidebar::-webkit-scrollbar {
  width: 5px;
}

.archive-left-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.archive-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.archive-widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #203B72;
  position: relative;
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-break: break-word;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.archive-widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #F36F21;
}

/* Form tìm kiếm */
.archive-search-form .search-input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.archive-search-form .search-field {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.archive-search-form .search-field:focus {
  border-color: #203B72;
  background: #ffffff;
}

.archive-search-form .search-submit {
  flex-shrink: 0;
  background: #203B72;
  color: #ffffff;
  border: 1px solid #203B72;
  border-radius: 0 6px 6px 0;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.archive-search-form .search-submit:hover {
  background: #F36F21;
  border-color: #F36F21;
}

/* Danh sách bài viết liên quan cột trái */
.archive-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-thumb-link {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  background: #e2e8f0;
}

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

.related-thumb-link:hover .related-thumb-img {
  transform: scale(1.08);
}

.related-info {
  flex: 1;
  min-width: 0;
}

.related-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.related-title a {
  color: #203B72;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.related-title a:hover {
  color: #F36F21;
}

.no-related-posts {
  font-size: 0.88rem;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
}

/* CỘT PHẢI: LƯỚI BÀI VIẾT 2 CARD TRÊN 1 HÀNG */
.archive-right-main {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

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

.archive-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.archive-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(32, 59, 114, 0.1);
  border-color: #cbd5e1;
}

.archive-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.archive-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.archive-card-item:hover .archive-card-img {
  transform: scale(1.05);
}

.archive-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.archive-card-meta {
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.archive-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 12px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.archive-card-title a {
  color: #203B72;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.archive-card-title a:hover {
  color: #F36F21;
}

.archive-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.archive-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.archive-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #203B72;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.archive-card-readmore:hover {
  color: #F36F21;
  transform: translateX(3px);
}

/* PHÂN TRANG (PAGINATION) */
.archive-pagination-wrapper {
  margin-top: 45px;
  display: flex;
  justify-content: center;
}

.archive-pagination-wrapper .pagination {
  margin: 0;
}

.archive-pagination-wrapper .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.archive-pagination-wrapper .page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.archive-pagination-wrapper .page-numbers:hover:not(.current):not(.dots) {
  background: #f1f5f9;
  color: #203B72;
  border-color: #cbd5e1;
}

.archive-pagination-wrapper .page-numbers.current {
  background: #203B72;
  color: #ffffff;
  border-color: #203B72;
  cursor: default;
}

.archive-pagination-wrapper .page-numbers.dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  min-width: 24px;
}

/* Empty State */
.archive-empty-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 50px 24px;
  text-align: center;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .archive-main-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .archive-left-sidebar {
    order: 2;
    width: 100%;
  }

  .archive-right-main {
    order: 1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .archive-custom-section {
    padding: 24px 0 50px;
  }

  .archive-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .archive-section-header .section-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .archive-grid-2col {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .archive-custom-section {
    padding: 18px 0 35px;
  }

  .archive-section-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .archive-section-header .section-title {
    font-size: 1.35rem;
  }

  .archive-section-header .section-subtitle {
    font-size: 0.78rem;
  }

  .archive-card-body {
    padding: 16px 14px 18px;
  }

  .archive-card-title {
    font-size: 1.05rem;
  }

  .archive-card-excerpt {
    font-size: 0.85rem;
  }

  .archive-widget {
    padding: 18px 14px;
  }

  .archive-pagination-wrapper {
    margin-top: 25px;
  }

  .archive-pagination-wrapper .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   PRINT STYLES (In bài viết chuẩn đẹp - Ctrl + P)
   ========================================================================== */
@page {
  margin: 0;
  size: auto;
}

/* ==========================================================================
   Page 404 (Not Found) - Minimalist & Elegant Design
   ========================================================================== */
.page-404-section {
  background: radial-gradient(circle at 50% 30%, rgba(32, 59, 114, 0.04) 0%, rgba(244, 247, 251, 0.6) 70%, #ffffff 100%);
  padding: 80px 0 100px;
  min-height: calc(100vh - 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-404-wrapper {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

/* 404 Center Card */
.page-404-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px -10px rgba(32, 59, 114, 0.09), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 60px 40px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-404-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #203B72 0%, #F36F21 50%, #203B72 100%);
}

.page-404-badge-wrap {
  margin-bottom: 12px;
}

.page-404-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F36F21;
  background: rgba(243, 111, 33, 0.1);
  border: 1px solid rgba(243, 111, 33, 0.2);
}

.page-404-number-wrap {
  position: relative;
  display: inline-block;
  margin: 12px 0 8px;
}

.page-404-number {
  font-size: clamp(6.5rem, 16vw, 9.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #203B72 0%, #2c4d91 40%, #F36F21 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(32, 59, 114, 0.12));
  user-select: none;
}

.page-404-title {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 600;
  color: #162952;
  margin: 18px auto 14px;
  max-width: 580px;
  line-height: 1.35;
}

.page-404-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 36px;
}

/* 404 Action Button */
.page-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-404 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-404-primary {
  background: #203B72;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(32, 59, 114, 0.22);
}

.btn-404-primary:hover {
  background: #162952;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(32, 59, 114, 0.32);
}

@media (max-width: 768px) {
  .page-404-section {
    padding: 50px 0 70px;
    min-height: auto;
  }

  .page-404-card {
    padding: 40px 22px 36px;
    border-radius: 16px;
  }

  .btn-404 {
    width: 100%;
    padding: 13px 20px;
  }
}

@media print {

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
    padding: 18mm 20mm !important;
  }

  .site-topbar,
  .site-header,
  .single-post-hero-banner,
  .single-right-sidebar,
  .site-footer,
  .article-share-bar,
  .mobile-nav-toggle,
  .post-tags,
  .page-links {
    display: none !important;
  }

  .site-section {
    padding: 0 !important;
  }

  .site-main-layout,
  .single-post-layout {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .article-single {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .article-title {
    font-size: 22pt !important;
    color: #000000 !important;
    margin-bottom: 10pt !important;
  }

  .entry-content {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    color: #000000 !important;
  }

  .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Table of Contents (T.O.C) & Author Box
   ========================================================================== */

/* Table of Contents (T.O.C) */
.hanoi-college-toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0c3e86;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 25px 0 35px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.toc-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-icon {
  font-size: 1.15rem;
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #0c3e86;
  letter-spacing: 0.02em;
}

.toc-toggle-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toc-toggle-btn:hover {
  color: #F36F21;
  background: rgba(243, 111, 33, 0.08);
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item-h2 {
  font-weight: 600;
  font-size: 0.95rem;
}

.toc-item-h3 {
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 18px;
  list-style-type: circle;
}

.toc-link {
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: #F36F21;
  text-decoration: underline;
  padding-left: 2px;
}

/* Article Author Box */
.article-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 35px;
}

.author-avatar-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #F36F21;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.author-name a {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0c3e86;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-name a:hover {
  color: #F36F21;
}

.author-bio {
  font-size: 0.88rem;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.5;
}

@media (max-width: 576px) {
  .article-author-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ==========================================================================
   GLOBAL STICKY SIDEBARS & WIDGET ENHANCEMENTS
   ========================================================================== */

/* Standard Theme Sidebar (sidebar.php - used in page.php, search.php, index.php) */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  align-self: start;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.site-sidebar::-webkit-scrollbar {
  width: 5px;
}

.site-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.site-sidebar .widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 22px 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.site-sidebar .widget-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #203B72;
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #203B72;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #F36F21;
}

.site-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-sidebar .widget ul li {
  padding-bottom: 10px;
  border-bottom: 1px dashed #edf2f7;
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-sidebar .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.site-sidebar .widget ul li a {
  color: #334155;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}

.site-sidebar .widget ul li a:hover {
  color: #F36F21;
  transform: translateX(3px);
}

/* WordPress Admin Bar Compatibility for All Sticky Sidebars */
.admin-bar .about-sidebar-nav-wrap,
.admin-bar .training-sidebar-nav-wrap,
.admin-bar .single-right-sidebar,
.admin-bar .archive-left-sidebar,
.admin-bar .site-sidebar {
  top: 122px;
  max-height: calc(100vh - 142px);
}

@media screen and (max-width: 782px) {

  .admin-bar .about-sidebar-nav-wrap,
  .admin-bar .training-sidebar-nav-wrap,
  .admin-bar .single-right-sidebar,
  .admin-bar .archive-left-sidebar,
  .admin-bar .site-sidebar {
    top: 136px;
    max-height: calc(100vh - 156px);
  }
}

/* Responsive Sticky Reset: On tablet/mobile, sidebars stack naturally without viewport lock */
@media (max-width: 1024px) {

  .about-sidebar-nav-wrap,
  .training-sidebar-nav-wrap,
  .single-right-sidebar,
  .archive-left-sidebar,
  .site-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    align-self: auto !important;
  }
}

/* Search Results Section & Category List Widget */
.search-results-section {
  padding: 30px 0 80px;
}

.archive-categories-list li {
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.92rem;
}

.archive-categories-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-categories-list li a {
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.archive-categories-list li a:hover {
  color: #F36F21;
  transform: translateX(3px);
}

/* Fallback Post Card & Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(32, 59, 114, 0.1);
}

.post-card .post-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card .post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

.post-card h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.post-card h3 a {
  color: #203B72;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card h3 a:hover {
  color: #F36F21;
}

.post-card .post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}