:root {
  --ct-primary: #115eff;
  --ct-secondary: #0066cc;
  --ct-dark: #004a99;
  --ct-red: #d62828;
  --ct-yellow: #FFC107;
  --ct-white: #FFF;
}
  
body {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  color: #222;
  background: #fff;
  font-size: 15px
}

a {
  color: var(--ct-primary);
  text-decoration: none
}

a:hover {
  color: var(--ct-red)
}

img {
  max-width: 100%
}

p {
  margin-bottom: 0.5rem;
}

/* Top bar */
.ct-lang img {
  vertical-align: -2px;
  border: 1px solid rgba(255, 255, 255, .4)
}

.ct-search-btn:hover {
  background: #fff
}

.ct-searchbar {
  background: var(--ct-primary)
}

.ct-search-btn {
  color: var(--ct-white);
  height: 30px;
  width: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  line-height: 1
}

/* Header */
.ct-logo {
  height: 65px;
  width: auto
}

/* Main nav */
.ct-brand {
  display: flex;
  align-items: center;  
  margin: 0;
  padding: .4rem 0;
  color: var(--ct-dark) !important;
}

.ct-brand:hover {
  color: #fff;
}

.ct-nav {
  background: var(--ct-white);
  border-bottom: 3px solid var(--ct-yellow);
  padding: 0
}

.ct-nav .nav-link {
  color: var(--ct-dark) !important;
  padding: 1rem !important;
  text-transform: uppercase;
  font-size: 14px;  
}

.ct-nav .nav-link i {
  margin-left: 2px;
}

.ct-nav .nav-item {
  font-weight: 700;
}

.ct-nav .nav-link:hover,
.ct-nav .nav-item:hover>.nav-link {
  background: var(--ct-dark);
  color: var(--ct-white) !important
}

.ct-nav .dropdown-menu {
  border: 0;  
  border-radius: 0;
  margin: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  border-radius: 0 0 5px 5px;
  padding-top: 0px;
}
.ct-nav .dropdown-menu li{
  border-top: 1px dotted #CCC;
  padding: 3px 0;
}

.ct-nav .dropdown-item:hover {
  background: var(--ct-dark);
  color: var(--ct-white)
}

@media(min-width:992px) {
  .ct-nav .dropdown:hover>.dropdown-menu {
    display: block
  }
}

@media(max-width:991.98px) {

  .ct-nav .dropdown-menu {
    position: static;
    background: rgba(0, 0, 0, .12);
    border: 0;
    padding: 0
  }

  .ct-nav .dropdown-item {
    color: var(--ct-dark);
    padding-left: 2rem
  }

  .ct-nav .navbar-toggler {
    border-color: var(--ct-dark);
    margin: .25rem 0
  }

}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: space-around;
  }
}

/* Slider */
.ct-slider {
  background: linear-gradient(135deg, var(--ct-primary), var(--ct-dark));
  color: #fff
}

.ct-slide-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920/700;
  object-fit: cover
}

@media(max-width:767.98px) {
  .ct-slide-img {
    aspect-ratio: 16/9
  }
}


/* Cum bai viet */
.ct-cluster-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  padding: .55rem .9rem;
  background: var(--ct-primary);
  color: #fff;
  border-left: 5px solid var(--ct-yellow);
  border-radius: 4px 4px 0 0
}

.ct-cluster-title a {
  color: #fff
}

.ct-cluster-title a:hover {
  color: var(--ct-yellow)
}

.ct-cluster-title.ct-red {
  background: var(--ct-red)
}

.ct-cluster-body {
  border: 1px solid #dfe6ee;
  border-top: 0;
  padding: 14px;
  background: #fff;
  border-radius: 0 0 4px 4px
}

.ct-lead-img {
  flex: 0 0 220px
}

.ct-lead-img img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dfe6ee
}

@media(max-width:575.98px) {
  .ct-lead-img {
    flex: none
  }

  .ct-lead-img img {
    width: 100%;
    height: auto;
    max-height: 220px
  }
}

.ct-lead-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ct-primary);
  display: block;
  margin-bottom: .25rem
}

.ct-lead-title:hover {
  color: var(--ct-red)
}

.ct-date {
  font-size: 12px;
  color: #888;
  font-style: italic
}

.ct-sum {
  margin: .4rem 0;
  color: #444
}

.ct-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed #cfd8e3
}

.ct-list li {
  padding: 5px 0 5px 16px;
  position: relative
}

.ct-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--ct-primary);
  border-radius: 50%
}

.ct-list-side {
  margin: 0;
  padding: 0;
  border: 0
}

.ct-card {
  padding: 14px 0;
  border-bottom: 1px solid #e8edf3
}

/* Trang trong */
.ct-bc {
  font-size: 13px;
  background: var(--ct-white);
  padding: .5rem .8rem;
  border-radius: 4px
}

.ct-page-title,
.ct-post-title {
  color: var(--ct-primary);
  font-weight: 700;
  border-bottom: 3px solid var(--ct-yellow);
  padding-bottom: .4rem;
  margin-bottom: 1rem
}

.ct-page-title {
  font-size: 1.5rem
}

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

.ct-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 1rem
}

.ct-content {
  overflow-x: auto;
  line-height: 1.7;
  font-size: 16px;
  word-wrap: break-word
}

.ct-content img {
  max-width: 100%;
  height: auto
}

.ct-content table {
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0
}

.ct-content table td,
.ct-content table th {
  padding: .4rem .6rem;
  vertical-align: top
}

/* Chỉ vẽ viền ô khi bảng đặt border > 0 */
.ct-content table[border]:not([border="0"]) td,
.ct-content table[border]:not([border="0"]) th {
  border: 1px solid #999
}

.ct-content iframe {
  max-width: 100%
}

.ct-content iframe[src*="youtube"] {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto
}

.ct-content blockquote {
  border-left: 4px solid var(--ct-yellow);
  background: var(--ct-white);
  padding: .6rem 1rem;
  margin: 1rem 0
}

/* Ve chung toi */
.ct-about {
  background: var(--ct-white);
  border-top: 4px solid var(--ct-primary)
}

.ct-section-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ct-primary);
  margin-bottom: 1.5rem;
  position: relative
}

.ct-section-title span {
  background: var(--bs-light);
  padding: 0 1rem;
  position: relative;
  z-index: 1
}

.ct-section-title:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid var(--ct-yellow)
}

.ct-map {
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  border-radius: 6px;
  overflow: hidden
}

/* Menu duoi + footer */
.ct-bottom-menu {
  background: var(--ct-secondary);
  color: #dce8f7
}

.ct-bm-title {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ct-yellow);
  border-bottom: 2px solid var(--ct-red);
  padding-bottom: .4rem;
  margin-bottom: .7rem;
  display: inline-block
}

.ct-bottom-menu a {
  color: #dce8f7;
  display: inline-block;
  padding: 2px 0
}

.ct-bottom-menu a:hover {
  color: var(--ct-yellow)
}

.ct-footer {
  background: var(--ct-dark);
  color: #cfe0f5
}

.ct-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ct-yellow);
  color: #00335f;
  margin-left: 6px;
  font-size: 16px
}

.ct-social a:hover {
  background: var(--ct-red);
  color: #fff
}

/* Nut len dau trang */
.ct-totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ct-dark);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 1030
}

.ct-totop.show {
  opacity: 1;
  visibility: visible
}

.ct-totop:hover {
  background: var(--ct-primary)
}

@media print {

  .ct-topbar,
  .ct-searchbar,
  .ct-nav,
  .ct-about,
  .ct-bottom-menu,
  .ct-footer,
  .ct-totop
}

@media(min-width:768px) {
  .ct-searchbar form {
    max-width: 420px;
    margin-left: auto
  }
}

@media(max-width:767.98px) {
  .ct-logo {
    height: 56px
  }


}

.ct-topbar {
  display: flow-root;
  /* nền luôn ôm hết nội dung bên trong */
  height: auto;
  min-height: 0;
  overflow: visible;
  background: var(--ct-primary);
  color: #fff;
  font-size: 13px;
  padding: 0;
}

.ct-topbar>.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1px;
  padding-bottom: 1px;
  min-height: 28px;
}


.ct-topbar a:hover {
  color: var(--ct-yellow)
}

.ct-topbar {
  position: relative;
  z-index: 2
}



.ct-modal-head {
  background: var(--ct-primary);
  color: #fff;
  border-bottom: 3px solid var(--ct-yellow)
}

.ct-modal-head .modal-title {
  font-size: 1.05rem;
  font-weight: 700
}

.ct-content td p,
.ct-content th p {
  margin-bottom: 0
}

#ctPrint {
  display: none
}

@media print {
  body.ct-printing>*:not(#ctPrint) {
    display: none !important
  }

  body.ct-printing #ctPrint {
    display: block
  }

  #ctPrint .ct-content {
    overflow: visible
  }
}

.pagination {
  justify-content: center;
}

.pagination-sm .page-link {
  font-size: 1rem;
}

/* ===== Header mới: top bar sáng + menu chính chứa logo ===== */
.ct-topbar {
  color: var(--ct-dark);
  border-bottom: 1px solid #d3e0f0;
}

.ct-topbar a {
  color: #FFF
}

.ct-topbar a:hover {
  color: var(--ct-red);
}

.ct-lang img {
  border-color: #c5d3e6;
}

.ct-sep {
  color: #9db3cf;
}

.ct-search-btn:hover {
  background: #d8e5f5;
}

.ct-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}


.ct-brand-name {
  max-width: 250px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}

@media (max-width: 991.98px) {
  .ct-nav .navbar-collapse {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .navbar-toggler-icon {
    height: 1rem !important;
    width: 1rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,102,204,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
  
}

@media (min-width: 992px) {
  .ct-topbar {
    position: sticky;
    top: 0;
    z-index: 1031;
    height: 34px;
  }

  .ct-topbar>.container {
    height: 34px;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .ct-nav {
    top: 34px;
    min-height: 80px;
  }

  .ct-logo {
    height: 64px;
  }

  .ct-nav .navbar-collapse {
    justify-content: flex-end;
  }

  .ct-nav .nav-link {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 0.5rem !important;
  }
}

/* ===== Slide ===== */
.ct-slider .carousel-item {
  overflow: hidden;
  cursor: grab;
}

.ct-slider .carousel-item>a {
  display: block;
  cursor: pointer;
}

.ct-slide-img {
  cursor: inherit;
  user-select: none;
  -webkit-user-drag: none;
}

.ct-slider.is-dragging,
.ct-slider.is-dragging * {
  cursor: grabbing !important;
}

@keyframes ctZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

.ct-slider .carousel-item.active .ct-slide-img {
  animation: ctZoom 7s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
  .ct-slider .carousel-item.active .ct-slide-img {
    animation: none;
  }
}

/* chấm tròn nhỏ ở mép dưới ảnh */
.ct-slider .carousel-indicators {
  margin-bottom: .5rem;
}

.ct-slider .carousel-indicators [data-bs-target] {
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  opacity: .55;
}

.ct-slider .carousel-indicators .active {
  background: var(--ct-yellow);
  opacity: 1;
}

/* mũi tên: chỉ hiện khi rê chuột (PC) */
.ct-slider .carousel-control-prev,
.ct-slider .carousel-control-next {
  width: 56px;
  opacity: 0;
  transition: opacity .25s;
}

@media (hover: hover) {

  .ct-slider:hover .carousel-control-prev,
  .ct-slider:hover .carousel-control-next {
    opacity: .9;
  }
}

@media (hover: none) {

  .ct-slider .carousel-control-prev,
  .ct-slider .carousel-control-next {
    display: none;
  }
}

/* ===== Zoom ảnh lớn của cụm chủ đề ===== */
.ct-lead-img {
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 4px;
}

.ct-lead-img img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  transition: transform .5s ease;
}

.ct-lead-img:hover img {
  transform: scale(1.08);
}

/* ===== Cụm chủ đề nhiều kiểu ===== */
.ct-zoom {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #e9eef5;
}

.ct-zoom img {
  
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ct-zoom:hover img {
  transform: scale(1.08);
}

.ct-ar-169 {
  aspect-ratio: 16/9;
}

.ct-ar-43 {
  aspect-ratio: 4/3;
}

/* Khối nhỏ: ảnh trái, chữ phải */
.ct-mini-img {
  flex: 0 0 110px;
  aspect-ratio: 4/3;
}

.ct-mini-title {
  display: block;  
  line-height: 1.35;
  color: var(--ct-primary);
  margin-top: 0.5rem;
}

.ct-mini-title:hover {
  color: var(--ct-red);
}

.ct-mini-sum {
  margin: .2rem 0 0;
  font-size: 13px;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cfd8e3;
}

/* Video */
.ct-vid-title {
  display: block;
  margin-top: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ct-primary);
}

.ct-vid-title:hover {
  color: var(--ct-red);
}

.ct-vid-list .ct-mini {
  padding: 8px 0;
  border-bottom: 1px dashed #dfe6ee;
}

.ct-vid-list .ct-mini:first-child {
  padding-top: 0;
}

.ct-vid-list .ct-mini:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ct-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  pointer-events: none;
  transition: background .25s;
}

.ct-play-sm {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  font-size: 12px;
  padding-left: 2px;
}

.ct-zoom:hover .ct-play-icon {
  background: var(--ct-red);
}

/* Hợp tác quốc tế */
.ct-cap,
.ct-cap:hover {
  color: #fff;
}

.ct-cap-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

.ct-cap-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ct-cap-sum {
  display: none;
  font-size: 13px;
  line-height: 1.45;
  margin-top: .3rem;
}

@media (hover: hover) {
  .ct-cap-sum {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease;
  }

  .ct-cap:hover .ct-cap-sum {
    max-height: 6em;
    opacity: 1;
  }
}

.ct-box {
  display: block;
  height: 100%;
  padding: .7rem .8rem;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}

.ct-box:hover {
  border-color: var(--ct-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.ct-box-title {
  display: -webkit-box;
  margin-top: .3rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ct-primary);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-box:hover .ct-box-title {
  color: var(--ct-red);
}

/* ===== Tiêu đề cụm chủ đề (không nền, không viền) ===== */
.ct-cluster-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e3e8ef;
}

.ct-cluster-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100px;
  height: 2px;
  background: var(--ct-red);
}

.ct-home-clusters .ct-cluster-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ct-dark);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
}

.ct-home-clusters .ct-cluster-title a {
  color: var(--ct-dark);
}

.ct-home-clusters .ct-cluster-title a:hover {
  color: var(--ct-red);
}

.ct-cluster-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ct-primary), var(--ct-dark));
  color: #fff;
  font-size: 16px;
}

.ct-more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ct-home-clusters .ct-cluster-body {
  border: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

/* ===== Mặc định: danh sách bên phải ===== */
@media (min-width: 992px) {
  .ct-k-mac_dinh .col-lg-5 {
    border-left: 1px dashed #cfd8e3;
  }
}

/* ===== Tin tức: ảnh lớn ~40% ===== */
@media (min-width: 576px) {
  .ct-k-tin_tuc .ct-lead-img {
    flex: 0 0 40%;
  }
}

.ct-k-tin_tuc .ct-lead-img img {
  height: auto;
  max-height: none;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ct-k-tin_tuc .ct-lead-title {
  font-size: 1.25rem;
}

.ct-detail {
  font-size: 13px;
  font-weight: 600;
}

/* ===== Hợp tác quốc tế: tiêu đề canh giữa ===== */
.ct-head-center {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-bottom: 0;
  margin-bottom: 20px;
  border-bottom: 0;
  text-align: center;
}

.ct-head-center::after {
  position: static;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ct-red) 50%, var(--ct-yellow) 50%);
}

.ct-head-center .ct-cluster-title {
  flex-direction: column;
  gap: 8px;
  font-size: 1.3rem;
}

.ct-head-center .ct-cluster-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
}

.ct-more-btn {
  display: inline-block;
  padding: .45rem 1.4rem;
  border: 2px solid var(--ct-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.ct-more-btn:hover {
  background: var(--ct-primary);
  color: #fff;
}

/* ===== Mặc định: ảnh chính lớn hơn ===== */
@media (min-width: 576px) {
  .ct-k-mac_dinh .ct-lead-img {
    flex: 0 0 46%;
  }
}

.ct-k-mac_dinh .ct-lead-img img {
  height: auto;
  max-height: none;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ct-k-mac_dinh .ct-lead-title {
  font-size: 1.2rem;
}

/* ===== Bóng mờ cho tất cả hình trong cụm chủ đề ===== */
.ct-lead-img,
.ct-zoom {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  transition: box-shadow .3s ease;
}

.ct-lead-img:hover,
.ct-zoom:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

/* ===== Tin tức: chữ canh giữa theo chiều dọc của hình, hình chữ nhật ===== */
@media (min-width: 576px) {
  .ct-k-tin_tuc .ct-lead {
    align-items: center;
  }
}

.ct-k-tin_tuc .ct-lead-img img {
  aspect-ratio: 16/9;
}

/* ===== Banner dưới: trượt ngang ===== */
.ct-bn {
  position: relative;
}

.ct-bn-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.ct-bn-track::-webkit-scrollbar {
  display: none;
}

.ct-bn-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.ct-bn-track.is-dragging a {
  pointer-events: none;
}

.ct-bn-item {
  flex: 0 0 calc((100% - 12px) / 2);
  scroll-snap-align: start;
}

@media (min-width: 576px) {
  .ct-bn-item {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (min-width: 768px) {
  .ct-bn-item {
    flex-basis: calc((100% - 36px) / 4);
  }
}

@media (min-width: 992px) {
  .ct-bn-item {
    flex-basis: calc((100% - 48px) / 5);
  }
}

@media (min-width: 1200px) {
  .ct-bn-item {
    flex-basis: calc((100% - 60px) / 6);
  }
}

.ct-bn-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #dfe6ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: border-color .25s;
  user-select: none;
  -webkit-user-drag: none;
}

.ct-bn-item a:hover img {
  border-color: var(--ct-primary);
}

.ct-bn-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}

.ct-bn-prev {
  left: 6px;
}

.ct-bn-next {
  right: 6px;
}

.ct-bn-btn {
  opacity: .75;
}

.ct-bn-btn:hover {
  opacity: 1;
  background: var(--ct-primary);
}

@media (any-hover: none) {
  .ct-bn-btn {
    display: none;
  }
}

.ct-bn.is-static .ct-bn-btn {
  display: none;
}

/* ===== Khi cuộn xuống (PC): ẩn top bar, thu nhỏ menu chính + logo ===== */
@media (min-width: 992px) {
  .ct-topbar {
    transition: transform .3s ease;
  }

  .ct-nav {
    transition: top .3s ease, min-height .3s ease, margin-bottom .3s ease;
  }

  .ct-nav .nav-link {
    transition: height .3s ease, background-color .2s, color .2s;
  }

  .ct-logo {
    transition: height .3s ease;
  }

  body.ct-scrolled .ct-topbar {
    transform: translateY(-100%);
  }

  body.ct-scrolled .ct-nav {
    top: 0;
    min-height: 48px;
    margin-bottom: 32px;
  }

  body.ct-scrolled .ct-nav .nav-link {
    height: 48px;
  }

  body.ct-scrolled .ct-logo {
    height: 35px;
  }
}

/* =====================TIN TỨC Thẻ tin dùng chung: nền đổi màu khi rê chuột */
.ct2-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  height: 100%;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ct2-card:hover,
.ct2-card:hover .ct-mini-title,
.ct2-card:hover .ct-date,
.ct2-card:hover .ct-lead-title,
.ct2-card:hover .ct-sum,
.ct2-card:hover .ct-mini-sum {
  color: #fff !important;
}

.ct2-card:hover {
  background: var(--ct-primary); 
  border-color: #0d6efd; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.ct2-img {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.ct2-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

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


/* Nút nổi: PC xếp dọc góc dưới phải, nằm trên nút lên đầu trang */
.ts-float {
  position: fixed; right: 18px; bottom: 72px; z-index: 1030;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.ts-fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transition: transform .2s;
}
.ts-fab:hover { color: #fff; transform: scale(1.08); }
.ts-fab-chat { background: #6f42c1; }
.ts-fab-tool { background: #0084ff; }
.ts-fab-zalo { background: #0068ff; font-weight: 700; font-size: 17px; }
.ts-fab-reg {
  width: auto; height: auto; padding: .55rem 1rem; border-radius: 999px;
  background: var(--ct-red); font-size: 14px; font-weight: 700; gap: 6px;
}

/* Tooltip cho nút nổi (chỉ máy có chuột) */
@media (hover: hover) and (min-width: 768px) {
  .ts-fab[data-tip],
  .ct-totop[data-tip] { position: relative; }
  .ct-totop[data-tip] { position: fixed; }   /* giữ nguyên vị trí fixed của nút lên đầu trang */

  .ts-fab[data-tip]::after,
  .ct-totop[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s;
  }
  .ts-fab[data-tip]:hover::after,
  .ts-fab[data-tip]:focus-visible::after,
  .ct-totop[data-tip]:hover::after,
  .ct-totop[data-tip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
}