@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ==========================================================================
   STYLE CHUẨN CỔNG THÔNG TIN ĐIỆN TỬ THEO MẪU BDHN.EDU.VN
   Trường Bồi dưỡng cán bộ giáo dục Hà Nội
   ========================================================================== */

:root {
  --primary-blue: #2090ce;
  --primary-dark: #177cb8;
  --primary-deep: #05518b;
  --secondary-red: #d90429;
  --ribbon-orange: #f5b707;
  --ribbon-border: #f1a60d;
  --text-main: #333333;
  --text-link: #0288d1;
  --text-muted: #64748b;
  --border-panel: #c8d9e6;
  --font-base: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@layer base {
  h1 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--primary-deep); }
  h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--primary-deep); }
  h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--primary-deep); }
  h4 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--text-main); }
  h5 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
  h6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.body-bg, body {
  margin: 0;
  padding: 0;
  background-color: #eeeeee;
  background-image: url(/assets/images/bdhn/header.png), linear-gradient(to bottom, #2090CE, #2090CE 39px, rgba(255, 255, 255, 1) 39px, rgba(255, 255, 255, 0) 100%);
  background-repeat: no-repeat, repeat-x;
  background-position: center 39px, left top;
  background-size: 100% auto, auto;
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--secondary-red);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==========================================================================
   1. TOP MARQUEE BAR (BDHN MENUTOP-FIX)
   ========================================================================== */
.top-nav-bar {
  background-color: var(--primary-blue);
  height: 39px;
  position: relative;
  z-index: 100;
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 39px;
}

.menutop-fix-left {
  flex: 1;
  overflow: hidden;
  color: #ffffff;
  min-width: 0;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
  height: 39px;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 39px;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
    padding-left: 0;
    white-space: normal;
  }
}

/* ==========================================================================
   2. HEADER BANNER (BDHN BANNER PATTERN & LOGO)
   ========================================================================== */
#header-section {
  position: relative;
  background: transparent;
}

.header-container {
  min-height: 102px;
  display: flex;
  align-items: center;
  padding: 12px 15px 15px;
}

.logo-row {
  width: 100%;
}

.header-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 102px;
  display: block;
}

/* ==========================================================================
   3. SECOND NAVIGATION (BDHN .second-nav BLUE MENU BAR)
   ========================================================================== */
.second-nav {
  background-color: var(--primary-blue);
  height: 39px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 900;
}

.second-nav .container {
  height: 39px;
}

.mobile-nav-toggle-wrap {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 39px;
}

.mobile-nav-home {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.btn-mobile-menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-mobile-menu-toggle:hover {
  background: rgba(0, 0, 0, 0.35);
}

ul.slimmenu {
  display: flex;
  align-items: stretch;
  height: 39px;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--primary-blue);
}

ul.slimmenu > li {
  position: relative;
  display: flex;
  align-items: center;
}

ul.slimmenu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 39px;
  color: #ffffff;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

/* HOVER & ACTIVE COLOR GOLDEN ORANGE #f5b707 CHUẨN BDHN */
ul.slimmenu > li:hover > a,
ul.slimmenu > li.current > a,
ul.slimmenu > li.active > a {
  background-color: #f5b707 !important;
  color: #ffffff !important;
}

.arrow-down {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.9;
}

/* LEVEL 1 DROPDOWN */
.sub-dropdown {
  display: none;
  position: absolute;
  top: 39px;
  left: 0;
  min-width: 235px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.slimmenu > li:hover > .sub-dropdown {
  display: block;
}

.sub-dropdown > li {
  position: relative;
  border-bottom: 1px solid #f0f3f6;
}

.sub-dropdown > li:last-child {
  border-bottom: none;
}

.sub-dropdown > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 15px;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #ffffff;
  transition: all 0.15s ease;
}

.sub-dropdown > li:hover > a,
.sub-dropdown > li > a:hover {
  background-color: #f5b707 !important;
  color: #ffffff !important;
  padding-left: 18px;
}

.caret-right-icon {
  font-size: 11px;
  margin-left: 10px;
  opacity: 0.7;
}

.sub-dropdown > li:hover > a .caret-right-icon {
  opacity: 1;
}

/* LEVEL 2 FLYOUT SUBMENU (ĐƠN VỊ) */
.sub-flyout {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 4px 4px 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  z-index: 1001;
  padding: 0;
  margin: 0;
  list-style: none;
}

.has-flyout:hover > .sub-flyout {
  display: block;
}

.sub-flyout > li {
  border-bottom: 1px solid #f0f3f6;
}

.sub-flyout > li:last-child {
  border-bottom: none;
}

.sub-flyout > li > a {
  display: block;
  padding: 9px 15px;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #ffffff;
  transition: all 0.15s ease;
}

.sub-flyout > li:hover > a,
.sub-flyout > li > a:hover {
  background-color: #f5b707 !important;
  color: #ffffff !important;
  padding-left: 18px;
}

/* ==========================================================================
   4. THIRD SUB-NAV (BREADCRUMBS & RED UTILITY LINKS CHUẨN BDHN)
   ========================================================================== */
.sub-nav-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #d5e1ea;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 10px;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
  padding: 4px 15px;
}

.breadcrumbs-wrap {
  display: inline-block;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-block;
  margin: 0;
}

.breadcrumbs a {
  background-color: #dcdcdc;
  padding: 4px 12px;
  display: inline-block;
  text-decoration: none;
  color: #333333;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  margin-right: 14px;
}

.breadcrumbs a:hover {
  background-color: #a6c8e6;
}

.breadcrumbs a:before {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -13px;
  border-width: 13px 0 13px 8px;
  border-style: solid;
  border-color: #dcdcdc #dcdcdc #dcdcdc transparent;
  left: -8px;
}

.breadcrumbs a:hover:before {
  border-color: #a6c8e6 #a6c8e6 #a6c8e6 transparent;
}

.breadcrumbs a:after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -13px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 8px solid #dcdcdc;
  right: -8px;
}

.breadcrumbs a:hover:after {
  border-left-color: #a6c8e6;
}

.breadcrumbs li:first-child a:before {
  display: none;
}

.breadcrumbs li:last-child a {
  font-weight: 700;
  background: none;
  color: #333333;
  margin-right: 0;
}

.breadcrumbs li:last-child a:after,
.breadcrumbs li:last-child a:before {
  display: none;
}

.third-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.third-nav-links .current-time {
  color: #475569;
  font-weight: 500;
  margin-right: 8px;
}

.third-nav-links a {
  color: #d90429 !important;
  font-weight: 700;
  text-decoration: none;
}

.third-nav-links a:hover {
  text-decoration: underline;
  color: #b7001f !important;
}

.third-nav-links .separator {
  color: var(--primary-blue);
  font-weight: 700;
}

/* Responsive Menu */
@media (max-width: 991px) {
  .second-nav {
    height: auto;
  }
  .mobile-nav-toggle-wrap {
    display: flex;
  }
  ul.slimmenu {
    display: none;
    flex-direction: column;
    height: auto;
    width: 100%;
  }
  ul.slimmenu.active {
    display: flex;
  }
  ul.slimmenu > li {
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  ul.slimmenu > li > a {
    width: 100%;
    border-right: none;
    padding: 10px 15px;
  }
  .sub-dropdown, .sub-flyout {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
}


/* ==========================================================================
   5. MAIN CONTENT WRAPPER (BDHN BODY CONTAINER)
   ========================================================================== */

.body-wrapper {
  background-color: #ffffff;
  margin-top: 12px;
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid var(--border-panel);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.portal-row {
  display: flex;
  gap: 20px;
}

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

.col-sidebar {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .portal-row {
    flex-direction: column;
  }
  .col-sidebar {
    width: 100%;
  }
}

/* 5.1 VIDEO HƯỚNG DẪN LMS */
.top-video-section {
  margin-bottom: 16px;
  border: 1px solid var(--border-panel);
  background: #ffffff;
  padding: 4px;
}

.top-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000000;
}

.top-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 5.2 TIÊU ĐIỂM TIN TỨC (BDHN #topnews) */
#topnews {
  border: 1px solid var(--border-panel);
  background: #ffffff;
  padding: 12px;
  margin-bottom: 20px;
}

.topnews-grid {
  display: flex;
  gap: 15px;
}

.topnews-left {
  width: 58%;
}

.topnews-right {
  width: 42%;
  border-left: 1px dotted #d0dfea;
  padding-left: 15px;
}

@media (max-width: 768px) {
  .topnews-grid {
    flex-direction: column;
  }
  .topnews-left, .topnews-right {
    width: 100%;
    border-left: none;
    padding-left: 0;
  }
}

.topnews-featured-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 2px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.topnews-featured-img:hover {
  transform: scale(1.01);
}

.topnews-featured-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-link);
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: 6px;
  cursor: pointer;
}

.topnews-featured-title:hover {
  color: var(--secondary-red);
}

.topnews-featured-excerpt {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 8px;
}

.topnews-readmore {
  text-align: right;
  margin-top: 6px;
}

.topnews-readmore a {
  color: var(--text-link);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.topnews-readmore a:hover {
  color: var(--secondary-red);
}

.topnews-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topnews-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted #ccc;
  cursor: pointer;
}

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

.topnews-list-title {
  flex: 1;
  font-size: 13px;
  color: #222222;
  line-height: 1.35;
  font-weight: 500;
}

.topnews-list-item:hover .topnews-list-title {
  color: var(--text-link);
}

.topnews-list-thumb {
  width: 65px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 1px;
  flex-shrink: 0;
}

/* 5.3 KHỐI TIN THEO CHUYÊN MỤC (VỚI RUY BĂNG VÀNG CAM BDHN) */
.cat-blocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .cat-blocks-grid {
    grid-template-columns: 1fr;
  }
}

.cat-panel {
  border: 1px solid var(--border-panel);
  background: #ffffff;
  position: relative;
}

.cat-panel-heading {
  position: relative;
  margin-left: -9px;
  margin-right: 50px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.cat-panel-heading h4 {
  font-size: 14px;
  font-weight: bold;
  position: relative;
  background-image: url(/assets/images/bdhn/homepage-focus-bg.gif);
  background-repeat: repeat;
  border: 1px var(--ribbon-border) solid;
  margin: 0;
  padding: 0;
}

.cat-panel-heading h4::before {
  width: 9px;
  height: 11px;
  content: "";
  position: absolute;
  bottom: -12px;
  left: -1px;
  background-image: url(/assets/images/bdhn/news-cat-conner.jpg);
  background-repeat: no-repeat;
}

.cat-panel-heading h4 a {
  color: #ffffff !important;
  display: block;
  background-image: linear-gradient(to bottom, rgba(251, 149, 1, 0.39) 0%, rgba(251, 149, 1, 0.36) 100%) !important;
  padding: 5px 12px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.cat-panel-body {
  padding: 10px 12px;
}

.cat-lead-title {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--text-link);
  line-height: 1.35;
  margin-bottom: 4px;
  cursor: pointer;
}

.cat-lead-title:hover {
  color: var(--secondary-red);
}

.cat-lead-meta {
  font-size: 11px;
  color: #888888;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.cat-lead-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cat-lead-excerpt {
  font-size: 12.5px;
  color: #444444;
  line-height: 1.45;
  flex: 1;
}

.cat-lead-thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 2px;
  flex-shrink: 0;
}

.cat-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dotted #ccc;
  padding-top: 4px;
}

.cat-related-item {
  padding: 5px 0;
  border-bottom: 1px dotted #e5e5e5;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: #222222;
  cursor: pointer;
}

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

.cat-related-bullet {
  color: #f59e0b;
  font-size: 10px;
  flex-shrink: 0;
}

.cat-related-item:hover {
  color: var(--text-link);
}

/* 5.4 CHƯƠNG TRÌNH ĐÀO TẠO TIÊU BIỂU */
.programs-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

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

.prog-subcard {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.prog-subcard-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.prog-subcard-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prog-subcard-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-deep);
  margin-bottom: 6px;
  cursor: pointer;
}

.prog-subcard-title:hover {
  color: var(--secondary-red);
}

.prog-subcard-desc {
  font-size: 12.5px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.prog-subcard-footer {
  display: flex;
  gap: 8px;
}

.btn-prog-view {
  flex: 1;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.btn-prog-view:hover {
  background: #e2e8f0;
}

.btn-prog-reg {
  flex: 1;
  padding: 6px;
  background: var(--primary-blue);
  border: 1px solid var(--primary-dark);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.btn-prog-reg:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   6. RIGHT SIDEBAR PANELS (BLUE HEADINGS & LISTS)
   ========================================================================== */

.sidebar-panel {
  border: 1px solid var(--primary-blue);
  background: #ffffff;
  margin-bottom: 16px;
}

.sidebar-panel-heading {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 7px 12px;
  text-transform: uppercase;
}

.sidebar-panel-heading a {
  color: #ffffff !important;
  text-decoration: none;
}

.sidebar-panel-body {
  padding: 8px 10px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list-item {
  padding: 7px 4px;
  border-bottom: 1px dotted #ccc;
  font-size: 13px;
  color: var(--text-link);
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-list-item:hover {
  color: var(--secondary-red);
  padding-left: 6px;
}

.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-news-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted #ccc;
  cursor: pointer;
}

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

.sidebar-news-thumb {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 1px;
  flex-shrink: 0;
}

.sidebar-news-title {
  font-size: 12.5px;
  color: var(--text-link);
  line-height: 1.35;
  flex: 1;
}

.sidebar-news-item:hover .sidebar-news-title {
  color: var(--secondary-red);
}

.sidebar-service-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sidebar-service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.btn-sidebar-service:hover {
  opacity: 0.92;
  transform: translateX(3px);
}

.btn-service-lookup { background: linear-gradient(135deg, #0288d1, #01579b); }
.btn-service-register { background: linear-gradient(135deg, #f59e0b, #d97706); }
.btn-service-upload { background: linear-gradient(135deg, #10b981, #059669); }
.btn-service-exam { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.sidebar-banners-group {
  margin-bottom: 16px;
}

.sidebar-banner-img {
  width: 100%;
  display: block;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
}

.sidebar-banner-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
}

.stats-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.stats-li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted #e2e8f0;
}

.stats-li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   7. ALBUM ẢNH HOẠT ĐỘNG (BDHN FULL WIDTH PANEL)
   ========================================================================== */

.album-panel {
  border: 1px solid var(--primary-blue);
  background: #ffffff;
  margin-top: 20px;
}

.album-panel-heading {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 12px;
  text-transform: uppercase;
}

.album-panel-body {
  padding: 12px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.album-card {
  cursor: pointer;
}

.album-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid #ddd;
  padding: 2px;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

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

.album-card-title {
  font-size: 12.5px;
  font-weight: bold;
  color: #222222;
  line-height: 1.35;
}

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

/* ==========================================================================
   8. SITE FOOTER (BDHN FOOTER LAYOUT)
   ========================================================================== */

#footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-panel);
  margin-top: 30px;
}

.top_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e1e8ed;
}

.social_footer {
  display: flex;
  gap: 8px;
}

.social_btn {
  width: 30px;
  height: 30px;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
}

.social_btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.right_top_footer ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.right_top_footer a {
  color: var(--text-link);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.right_top_footer a:hover {
  color: var(--secondary-red);
}

.linefooter {
  height: 3px;
  background-color: var(--primary-blue);
}

.content_f {
  overflow: hidden;
  box-shadow: inset -670px 0px 0px 0px #0093dd;
}

.content_footer {
  background: url(/assets/images/bdhn/bg_footer_1.jpg) no-repeat right top, url(/assets/images/bdhn/bg_footer_2.jpg) repeat-y top right;
  overflow: hidden;
  padding: 20px 15px;
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer_logo img {
  height: 85px;
  width: auto;
}

.footer_address {
  font-size: 13px;
  color: #444444;
  line-height: 1.7;
}

.footer_address strong {
  color: var(--primary-deep);
}

/* ==========================================================================
   9. NATIVE DIALOGS / MODALS
   ========================================================================== */

dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 0;
  max-width: 720px;
  width: 90vw;
  max-height: 88vh;
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: none;
  flex-direction: column;
  background: #ffffff;
  z-index: 1000;
}

dialog[open] {
  display: flex;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 17px;
  color: var(--primary-deep);
  margin: 0;
}

.modal-close {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.btn-modal-close {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  color: #475569;
}

.btn-modal-close:hover {
  background: #f1f5f9;
}

.btn-modal-action {
  padding: 8px 16px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.btn-modal-action:hover {
  background: var(--primary-dark);
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.required {
  color: var(--secondary-red);
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(32, 144, 206, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.btn-submit {
  padding: 9px 20px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.btn-cancel {
  padding: 9px 16px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 4px;
  font-weight: 600;
}

/* Exam Timer & Questions */
.exam-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exam-timer-display {
  font-size: 18px;
  font-weight: 800;
  color: var(--secondary-red);
  background: #fee2e2;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: monospace;
}

.exam-badge {
  font-size: 12px;
  color: #64748b;
}

.exam-question-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 14px;
}

.exam-question-text {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 10px;
}

.exam-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exam-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.exam-option-label:hover {
  background: #f0f7fd;
  border-color: var(--primary-blue);
}

.exam-option-label input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--primary-blue);
}

.btn-submit-exam {
  padding: 9px 20px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
}

.btn-submit-exam:hover {
  background: #15803d;
}

/* Dropzone */
.file-dropzone {
  border: 2px dashed #94a3b8;
  padding: 24px;
  text-align: center;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
}

.file-dropzone:hover {
  border-color: var(--primary-blue);
  background: #f0f7fd;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (MOBILE, TABLET & DESKTOP COMPATIBILITY)
   ========================================================================== */

/* Tablet & Smaller Screens (<= 991px) */
@media (max-width: 991px) {
  /* 10.1 Mobile Navigation Bar */
  .second-nav {
    height: auto;
    min-height: 42px;
  }

  .second-nav .container {
    height: auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-nav-toggle-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
    width: 100%;
  }

  .second-nav ul.slimmenu {
    display: none;
    flex-direction: column;
    height: auto;
    width: 100%;
    background-color: var(--primary-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 0 8px;
  }

  .second-nav ul.slimmenu.is-open {
    display: flex !important;
  }

  .second-nav ul.slimmenu > li {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .second-nav ul.slimmenu > li:last-child {
    border-bottom: none;
  }

  .second-nav ul.slimmenu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    border-right: none;
    font-size: 13.5px;
    width: 100%;
  }

  .second-nav ul.slimmenu > li:hover > a {
    background-color: transparent;
  }

  .second-nav ul.slimmenu > li:active > a,
  .second-nav ul.slimmenu > li.active > a {
    background-color: var(--primary-dark);
  }

  /* Sub-dropdown Accordion on Mobile */
  .second-nav ul.slimmenu > li:hover > .sub-dropdown {
    display: none;
  }

  .sub-dropdown {
    display: none;
    position: static;
    width: 100%;
    min-width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid #dce8f5;
    background: #f1f7fc;
    padding: 0;
  }

  .second-nav ul.slimmenu > li.sub-open > .sub-dropdown {
    display: block !important;
  }

  .sub-dropdown li a {
    padding: 10px 22px;
    font-size: 13px;
    border-bottom: 1px solid #e2edf8;
    color: #1e3a5f;
    font-weight: 500;
  }

  .sub-dropdown li a:hover {
    background: #e1effa;
    padding-left: 26px;
  }

  /* 10.2 Layout Columns */
  .portal-row {
    flex-direction: column;
    gap: 20px;
  }

  .col-sidebar {
    width: 100%;
  }

  /* 10.3 Grids */
  .programs-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* 10.4 Header Branding */
  .brand-gov {
    font-size: 14px;
  }

  .brand-school {
    font-size: 21px;
  }

  .brand-sub {
    font-size: 10.5px;
  }

  .header-logo-img {
    height: 75px;
  }
}

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  /* Header adjustments */
  #header {
    padding: 8px 0;
  }

  .header-container {
    min-height: auto;
  }

  .brand-link {
    gap: 12px;
  }

  .header-logo-img {
    height: 62px;
    width: auto;
  }

  .brand-gov {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .brand-school {
    font-size: 17.5px;
    line-height: 1.25;
  }

  .brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.3px;
  }

  .menutop-fix-left {
    margin-right: 0;
  }

  .top-nav-bar {
    height: 34px;
  }

  .top-nav-bar,
  .top-nav-inner,
  .marquee-wrapper {
    height: 34px;
  }

  .marquee-content {
    line-height: 34px;
    font-size: 12px;
  }

  /* W3C Form input auto-zoom prevention on iOS (< 16px triggers zoom) */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* W3C Touch Targets (minimum 42-44px) */
  .btn-submit,
  .btn-modal-action,
  .btn-modal-close,
  .btn-portal-search,
  .btn-doc-download,
  .subpage-tab-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-mobile-menu-toggle {
    min-height: 36px;
    padding: 7px 14px;
  }

  /* Subpage Filter Tabs: Horizontal touch scrollable on mobile */
  .subpage-filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Responsive Data Tables with Touch Momentum */
  .data-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-radius: 6px;
    width: 100%;
  }

  /* Third Sub-Nav */
  .third-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .third-nav-date {
    font-size: 12px;
  }

  .third-nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  /* Top News Section */
  .topnews-grid {
    flex-direction: column;
  }

  .topnews-left, .topnews-right {
    width: 100%;
    border-left: none;
    padding-left: 0;
  }

  .topnews-featured-img {
    height: auto;
    max-height: 240px;
  }

  /* Category Blocks & Ribbons */
  .cat-blocks-grid {
    grid-template-columns: 1fr;
  }

  .cat-panel-heading {
    margin-left: 0;
    margin-right: 15px;
  }

  .cat-panel-heading h4::before {
    display: none;
  }

  /* Footer */
  .content_f {
    box-shadow: none;
  }

  .content_footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 18px 12px;
    background-size: cover;
  }

  .footer_logo {
    display: flex;
    justify-content: center;
  }

  .footer_logo img {
    height: 70px;
  }

  .footer_address {
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
  }

  .top_footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .right_top_footer ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
  }

  /* Modals */
  dialog {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
  }

  .modal-header h3 {
    font-size: 15px;
  }

  .modal-body {
    padding: 14px;
  }

  .modal-footer {
    padding: 10px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exam-header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .exam-timer-display {
    font-size: 15px;
    padding: 2px 8px;
  }
}

/* Small Mobile Screens (<= 520px) */
@media (max-width: 520px) {
  .header-container {
    min-height: 60px;
    padding: 6px 0;
  }

  .brand-link {
    gap: 8px;
  }

  .header-logo-img {
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .brand-gov {
    font-size: 11px;
  }

  .brand-school {
    font-size: 14px;
    line-height: 1.2;
  }

  .brand-sub {
    font-size: 8.5px;
  }

  .body-wrapper {
    padding: 10px 8px;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .programs-subgrid {
    grid-template-columns: 1fr;
  }

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

  .cat-lead-row {
    gap: 8px;
  }

  .cat-lead-thumb {
    width: 85px;
    height: 60px;
  }

  .file-dropzone {
    padding: 16px 10px;
  }

  .dept-card {
    padding: 12px;
  }

  .subpage-title {
    font-size: 16px;
  }

  .article-title-lg {
    font-size: 18px;
  }
}

/* ==========================================================================
   11. SUBPAGE & ARTICLE STYLES (CHUẨN CỔNG THÔNG TIN BDHN)
   ========================================================================== */

.breadcrumbs-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.breadcrumbs-list li a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumbs-list li a:hover {
  color: var(--secondary-red);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: #94a3b8;
  font-size: 11px;
}

.breadcrumbs-current {
  color: #1e293b;
  font-weight: 700;
}

/* Subpage Header */
.subpage-header {
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 18px;
  position: relative;
}

.subpage-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subpage-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--ribbon-orange);
  border-radius: 2px;
}

/* Subpage Tabs / Filter Bar */
.subpage-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 6px;
}

.subpage-tab-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.subpage-tab-btn:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.subpage-tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-dark);
}

/* Article Detail formatting */
.article-full {
  background: #ffffff;
}

.article-title-lg {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #64748b;
}

.article-lead-box {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.6;
  background: #f8fafc;
  padding: 12px 16px;
  border-left: 4px solid var(--primary-blue);
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.article-body-content {
  font-size: 14.5px;
  line-height: 1.8;
  color: #24292f;
}

.article-body-content p {
  margin-bottom: 16px;
}

.article-body-content img {
  border: 1px solid #e2e8f0;
  padding: 3px;
  margin: 16px auto;
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

.article-caption {
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 18px;
}

.article-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dotted #cbd5e1;
  margin-top: 24px;
  font-size: 13px;
}

.tag-badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Data Tables (Văn bản, biểu mẫu, ba công khai) */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 20px;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.portal-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.portal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.portal-table tbody tr:hover {
  background: #f8fafc;
}

.btn-doc-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.btn-doc-download:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* Department & Khoa Phòng Cards */
.dept-card {
  border: 1px solid var(--border-panel);
  border-radius: 6px;
  background: #ffffff;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dept-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.dept-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dept-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0;
}

.dept-card-body {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.faculty-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.faculty-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faculty-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Ba công khai Box */
.disclosure-box {
  background: #fdfdfe;
  border: 1px solid #dbeafe;
  border-left: 5px solid var(--primary-blue);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.disclosure-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

/* Search Box for Documents & News */
.portal-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.portal-search-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: inherit;
}

.portal-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(32, 144, 206, 0.2);
}

.btn-portal-search {
  padding: 8px 18px;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-portal-search:hover {
  background: var(--primary-dark);
}

/* News List Item on subpage */
.news-subpage-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dotted #cbd5e1;
}

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

.news-subpage-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  padding: 2px;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-subpage-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-subpage-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-link);
  line-height: 1.35;
  margin-bottom: 6px;
}

.news-subpage-title:hover {
  color: var(--secondary-red);
}

.news-subpage-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.news-subpage-excerpt {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .news-subpage-item {
    flex-direction: column;
    gap: 10px;
  }
  .news-subpage-thumb {
    width: 100%;
    height: 160px;
  }
  .subpage-title {
    font-size: 17px;
  }
  .article-title-lg {
    font-size: 18px;
  }
}


