﻿  :root {
      --red: #b30000;
      --red-dark: #8f0000;
      --gold: #ffd54f;
      --text: #222;
    }
    body { font-family: Arial, sans-serif; color: var(--text); background:#fff; }
    .site-header { background: var(--red); color:#fff; padding: 0 0; border-bottom: 2px solid var(--gold); }
    .site-title { font-weight: 700; font-size: 22px; line-height: 1.3; text-transform: uppercase; }
    .hero { background:#fff; padding: 20px; margin-top: 16px; border:1px solid #eee; }
    .hero img { width:100%; height:auto; border:1px solid #ddd; }
    .hero-caption { font-size: 15px; color:#555; margin-top: 8px; }
    .section-title { border-left: 6px solid var(--red); padding-left: 10px; margin: 24px 0 12px; font-weight: 700; text-transform: uppercase; }
    .featured-grid .card-title { font-weight: 700; font-size: 16px; }
    .news-item { padding: 4px 0; border-bottom:1px solid #eee; }
    .news-item:last-child { border-bottom: none; }
    .news-item a { color: var(--text); font-weight: 600; text-decoration: none; }
    .news-item a:hover { color: var(--red-dark); text-decoration: underline; }
    .promo-banner { background: var(--gold); color: var(--text); padding: 14px; text-align: center; font-weight: 700; border: 2px solid var(--red); margin-top: 20px; }
    .site-footer { background:#fff; border-top:1px solid #eee; margin-top: 30px; padding:16px 0; font-size: 14pt; color:#666; }
    .logo { height:56px; }
    .main-menu .nav-link {
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 16px;
}
.tapchi-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  pointer-events: none;
  overflow: hidden; scrollbar-width: none; /* Firefox */
}
 .tapchi-popup iframe::-webkit-scrollbar { display: none; /* Chrome, Safari */ }
 
.tapchi-popup.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tapchi-content {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;              /* ✅ rộng 80% màn hình */
  height: 90vh;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;            /* ✅ dùng flex để iframe chiếm hết */
  flex-direction: column;
}

.tapchi-content iframe {
  flex: 1;                  /* ✅ chiếm toàn bộ chiều cao còn lại */
  width: 100%;
  border: none;
}
/* Nút đóng */ .tapchi-close { position: absolute; top: 10px; right: 14px; z-index: 1; width: 36px; height: 36px; border: 0; background: #fff; border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); font-size: 22px; line-height: 36px; text-align: center; cursor: pointer; } 
.tapchi-close:hover { background: #f3f3f3; }
.tapchi-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.5); /* nền đen trong suốt 50% */
  color: #fff;
  padding: 10px;
  margin-right:15px;
  text-align: center;
}
.tapchi-caption p {
  margin: 0;
  font-size: 1rem;
}


.news-thumb {
    width: 100%;
    height: 200px;       /* hoặc chiều cao anh muốn */
    object-fit: cover;   /* giữ tỷ lệ, crop thừa */  
	border-radius: .25rem; /* bo góc như bootstrap */
}
.carousel-inner img {
  transition: none !important;
  transform: none !important;
}
.Content {
  background-color: #fff9e6; /* nền vàng mờ */
  padding: 15px;
  border-radius: 4px;
}

.Content ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.Content ul.nav li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;              /* cách nhau 10px */
  border-bottom: 1px solid #f0d9a9; /* viền ngăn cách mờ */
  padding-bottom: 10px;
}

.Content ul.nav li:last-child {
  border-bottom: none; /* bỏ viền cuối */
}

.Content ul.nav li img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}

.Content ul.nav li .article-title {
  text-transform: uppercase; /* chữ hoa */
  font-weight: bold;
  color: #b22222;            /* đỏ đậm */
  font-size: 16px;
}

.Content ul.nav li a.item {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.Content ul.nav li a.item:hover .article-title {
  color: #ff0000; /* hover đỏ sáng hơn */
}

#autocompleteList {
  border: 1px solid #ddd;
  max-height: 500px;
  overflow-y: auto;
}

#autocompleteList .list-group-item {
  background-color: #d2f7e0; /* đỏ nhạt */
  color: #000;              /* chữ đen cho dễ đọc */
}

#autocompleteList .list-group-item:hover {
  background-color: #ffcccc; /* đỏ nhạt hơn khi hover */
}




.main-menu .nav-link:hover {
  background-color: #a00000;
}

.main-menu .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.main-menu .dropdown-menu {
  background-color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.main-menu .dropdown-item {
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 20px;
}

.main-menu .dropdown-item:hover {
  background-color: #f8d7da;
  color: #b30000;
}
.row.align-items-stretch {
  display: flex;
}
.row.align-items-stretch > [class*='col-'] {
  display: flex;
}
.row.align-items-stretch .card {
  flex: 1; /* ép card cao bằng nhau */
}
.news-item i {
  font-size: 14px;
}
.card-body a {
  text-decoration: none;   /* bỏ gạch chân */
}

.card-body a:hover {
  text-decoration: none;   /* giữ nguyên khi hover */
  color: #b30000;          /* đổi màu khi hover cho nổi bật */
}
.row.align-items-stretch {
  display: flex;
}
.row.align-items-stretch > [class*='col-'] {
  display: flex;
}
.row.align-items-stretch .card {
  flex: 1;
}
/* Ken Burns effect */
.carousel-item img {
  animation: kenburns 5s ease-in-out forwards;
  transform-origin: center center;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-10px, -10px);
  }
}
.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' ... fill='%23fff'/%3E");
}
/* Giữ màu chữ trắng khi active */
.navbar .nav-link.active,
.navbar .nav-link.show,
.navbar .nav-link:focus {
  color: #fff !important;
}

/* Nếu muốn hover cũng trắng */
.navbar .nav-link:hover {
  color: #f8f9fa !important;
}

.navbar .nav-link.active {
  color: #fff !important;
  position: relative;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}
.navbar-toggler {
  border-color: #ffc107; /* viền vàng */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffc107' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.header-title {
  background-color: #b30000; /* đỏ đậm */
  background-image: url('../images/hoavan.png'); /* ảnh hoa văn PNG/JPG */
  background-repeat: repeat; /* hoặc no-repeat nếu ảnh phủ toàn bộ */
  background-size: cover; /* hoặc contain tùy ảnh */
}

/* GridView đẹp hơn với Bootstrap */
.table {
  font-size: 0.95rem;
  border-radius: 6px;
  overflow: hidden;
}

.table th {
 /*  background-color: #b30000; đỏ đậm */
  color: #b30000;
  text-align: center;
}

.table td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: #f5f5f5;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  font-weight: 500;
}

.stat-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.stat-right {
  font-weight: bold;
  color: #000;
}

.news-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-summary {
  font-style: italic;
  color: #555;
}

.news-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

.news-content {
  line-height: 1.6;
  font-size: 1rem;
}

.share-buttons .btn {
  font-weight: 500;
}
.card-title a:hover {
    color: #dc3545; /* đỏ bootstrap */
}
.card {
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: scale(1);
}
.btn.active {
    pointer-events: none; /* không click được */
    font-weight: bold;
}
.card-header {
    font-size: 1.2rem;
}
.card-body .d-flex:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
}
/* Popup fade in/out */
.popup-vanban {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  z-index: 9999;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.card {
  border: 1px solid #f2f2f2; /* siêu nhạt */
}

.popup-vanban.show {
  opacity: 1;
  transform: translateY(0);
}


.popup-header {
  background: #b30000;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.popup-body {
  padding: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.popup-item {
  margin-bottom: 10px;
}

.popup-item a {
  font-weight: 500;
  color: #007bff;
  text-decoration: none;
}

.popup-date {
  font-size: 0.8rem;
  color: #666;
}

.popup-footer {
  text-align: right;
  padding: 10px;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  width: 800px;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #b22222;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.member-row.single {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.member-row.double {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.member-list.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* luôn 3 cột */
  gap: 20px;
  justify-items: center;
}

.member-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  max-width: 280px;
}
.member-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #b22222; /* đỏ nhấn mạnh */
  margin: 10px 0;
}
.member-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card.big {
  max-width: 320px;
  border: 2px solid #b22222;
}

.member-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 15px;
}

.member-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 5px 0;
}

.member-role {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #b22222; /* đỏ nhấn mạnh */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 15px;
}

.member-table th,
.member-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.member-table th {
  background-color: #b22222; /* nền đỏ cho tiêu đề */
  color: #fff;
  text-align: center;
}

.member-table tr:nth-child(even) {
  background-color: #f9f9f9; /* xen kẽ màu nhạt */
}

.member-table tr:hover {
  background-color: #f1f1f1; /* hover đổi màu */
}

.member-table td:first-child {
  text-align: center;
  font-weight: bold;
  width: 50px;
}
 .banner-desktop {
  background-size: cover;
  background-position: center;
  height: 120px;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 220px;
}

.banner-text h1 {
  font-size: 1.05rem;
}

.banner-text h2 {
  font-size: 1.35rem;
}

@media (max-width: 768px) {
  .banner-mobile h1,
  .banner-mobile h2 {
    font-size: 1rem;
  }
}

    
    /* media */
 .media-title {
  font-size: 22px;
  font-weight: bold;
}

.media-tabs .tab {
  padding: 6px 12px;
  margin-left: 8px;
  border-radius: 4px;
  background: #eee;
  color: #333;
  text-decoration: none;
}
.media-tabs .tab.active {
  background: #fff;
  color: #b51000;
  font-weight: bold;
}

/* Khung slider */
.slider-box {
  position: relative;          /* Bắt buộc: để caption định vị theo khung */
  overflow: hidden;
  height: 300px;               /* đổi 400px nếu cần */
  background: #000;            /* chống nháy khi ảnh chưa load */
}

/* Dải slide trượt theo trục X */
.slides {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 2s ease;  /* trượt mượt trong 2s */
  will-change: transform;
}

/* Mỗi slide chiếm full khung */
.slide {
  flex: 0 0 100%;
  position: relative;           /* để caption nằm trong slide */
}
.swiper {
  width: 100%;
  height: 300px; /* hoặc 400px */
}

.swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide {
  position: relative; /* để caption định vị trong slide */
}

.caption {
  position: absolute;
  bottom: 20px;            /* nhấc lên 10px so với mép dưới */
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 15px;
  font-size: 16px;
  text-align: center;
  opacity: 1;
  font-weight:bold;
}


.swiper-button-next,
.swiper-button-prev {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.4) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Icon bên trong */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  color: #fff !important;
  font-weight: bold !important;
}



.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0,0,0,0.6); /* hover đậm hơn */
}


.video-list {
  height: 300px; /* hoặc 100% nếu cha có height cố định */
  overflow-y: auto;
  background: #b51000;
  padding: 15px;
  border-radius: 6px;
}

.video-list li { display: flex; align-items: center; gap: 10px; /* thêm khoảng cách giữa ảnh và text */ }
.video-list .thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.video-list a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.video-list a:hover {
  text-decoration: underline;
}
.video-list li.active {
  background-color:#fff; /* nền đỏ đậm hơn */
   color: #ff0000!important;
  border-radius: 4px;
}
.video-list li.active a {
  color: #ff0000!important;
  font-weight: bold;
}

.MultiFunctionControl .banner {
    width: 100%;
    /* margin: 30px auto 0px auto; */
    display: flex;
    justify-content: left;
    align-items: center;
    /* padding-left: 30px; */
    padding: 20px 10px;
    gap: 35px;
    position: relative;
}
.MultiFunctionControl .banner img {
    width: 200px;
    height: auto;
        object-fit: cover;
}
.MultiFunctionControl .banner .info {
    font-family: Inter;
    font-size: 22px;
    font-weight: bold;
    line-height: 42px;
    text-align: left;
    color: #68443b;
}
.MultiFunctionControl .banner .info2 {
   font-family: "Roboto";
    font-size: 36px;
    font-weight: 900;
    line-height: 38px;
    letter-spacing: 0.5px;
    text-align: left;
    color: #ff1801;
      
     text-shadow: 1px 1px 1px #b51000, 1px 2px 1px #a1a1a1, 1px 2px 1px #e9e9e9, 1px 4px 1px #b9b9b9, 1px 7px 2px rgb(166 166 166 / 20%), 1px 11px 10px rgb(153 153 153 / 20%), 1px 15px 10px rgb(189 189 189 / 40%);
}
header {
  background: linear-gradient(90deg, #ffffff, #fff5f7, #ffe6eb);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: #333;
  border-bottom: 1px solid #ddd;
  
}

/* Animation keyframes */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Nếu muốn chữ trong header vẫn đỏ nổi bật */
header .info2 {
  color: #ff1801;
}


/* Banner text hover effect */
.MultiFunctionControl .banner .info2 {
  transition: all 0.3s ease;
}
.MultiFunctionControl .banner .info2:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff1801, 0 0 20px #ff4500;
}

/* Logo hover effect */
.MultiFunctionControl .banner img {
  transition: transform 0.3s ease;
}
.MultiFunctionControl .banner img:hover {
  transform: scale(1.05) rotate(-2deg);
}

/* Mobile responsive */
@media (max-width: 576px) {
  .MultiFunctionControl .banner {
    flex-direction: row;          /* vẫn giữ ngang: logo trái, chữ phải */
    align-items: center;          /* căn giữa theo chiều dọc */
    gap: 10px;                    /* khoảng cách nhỏ hơn */
    text-align: left;             /* chữ vẫn căn trái */
    padding: 10px;                /* thu gọn padding */
  }

  .MultiFunctionControl .banner img {
    width: 100px;                 /* logo nhỏ lại */
    height: auto;
    object-fit: cover;
  }

  .MultiFunctionControl .banner .text {
    flex: 1;                      /* chữ chiếm phần còn lại */
  }

  .MultiFunctionControl .banner .info {
    font-size: 15px;              /* chữ nhỏ hơn */
    line-height: 22px;
  }

  .MultiFunctionControl .banner .info2 {
    font-size: 16px;              /* chữ tiêu đề nhỏ lại */
    line-height: 26px;
  }
}


.footer {
        color: #fff;
        margin: 0 auto;
        position: relative;
        background: url("../images/trongdong1.png") no-repeat scroll center center #b31515;
        border-top:5px solid #db0713;
        padding-bottom: 25px;
   	margin-top: 20px;
        text-align: center;
        padding: 20px 10px;
}


/* Trợ lý Hỏi đáp Nghị quyết — MasterPage */
/* Đỏ portal (#db0713) nhạt → hoà nền trắng, không dùng đỏ thẫm */
@keyframes portalChatbotFabGlow {
    0% {
        box-shadow:
            0 0 0 0 rgba(219, 7, 19, 0.18),
            0 0 6px 1px rgba(219, 7, 19, 0.12),
            0 0 18px 6px rgba(255, 240, 241, 0.95);
    }

    40% {
        box-shadow:
            0 0 0 10px rgba(219, 7, 19, 0.07),
            0 0 16px 4px rgba(255, 182, 188, 0.35),
            0 0 28px 12px rgba(255, 255, 255, 0.92);
    }

    70% {
        box-shadow:
            0 0 0 20px rgba(219, 7, 19, 0),
            0 0 20px 8px rgba(255, 220, 224, 0.45),
            0 0 32px 14px rgba(255, 255, 255, 0.98);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(219, 7, 19, 0.18),
            0 0 6px 1px rgba(219, 7, 19, 0.12),
            0 0 18px 6px rgba(255, 240, 241, 0.95);
    }
}

.portal-chatbot-fab {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    z-index: 1055;
    padding: 0;
    overflow: hidden;
    background-color: #9b1c2e;
    background-image: url("/images/codang.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    animation: portalChatbotFabGlow 2.4s ease-out infinite;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .portal-chatbot-fab:hover,
    .portal-chatbot-fab:focus-visible {
        filter: brightness(1.08);
        transform: scale(1.06);
        animation-duration: 1.7s;
    }

.portal-chatbot-offcanvas {
    width: min(440px, 100vw) !important;
    max-width: 100vw;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.portal-chatbot-title-logo {
    height: 40px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.portal-chatbot-title-text {
    line-height: 1.35;
    min-width: 0;
}

    .portal-chatbot-offcanvas .offcanvas-header {
        align-items: center;
        gap: 0.5rem;
    }

        .portal-chatbot-offcanvas .offcanvas-header .btn-close {
            flex-shrink: 0;
        }

.portal-chatbot-offcanvas__body {
    height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow: hidden;
}

.portal-chatbot-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 480px) {
    .portal-chatbot-fab {
        right: 74px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
}
/* Banner tra cứu bản đồ Đảng bộ (trên khối thời tiết) */
.portal-bando-banner {
    background: linear-gradient(145deg, #9f1239 0%, #b91c1c 40%, #dc2626 100%);
    padding: 14px 12px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .portal-bando-banner:hover,
    .portal-bando-banner:focus-visible {
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(185, 28, 28, 0.45);
        outline: none;
    }

.portal-bando-banner__icon {
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.95;
}

.portal-cds-banner__logo {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    object-fit: cover;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.75);
}

.portal-bando-banner__text {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.portal-bando-banner__cta {
    font-weight: 600;
    opacity: 0.92;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
#backtotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #dc3545; /* đỏ */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

    #backtotop:hover {
        background: #b02a37; /* đỏ đậm khi hover */
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(220,53,69,0.8); /* phát sáng đỏ */
    }

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

#backtotop.show {
    animation: bounceIn 0.5s;
}

.custom-header {
  text-transform: uppercase;
  background: transparent !important;             /* bỏ nền */
  border-bottom: 2px solid #dc3545;    /* viền dưới đỏ */
  padding: 10px;
  color: #dc3545!important;                       /* chữ đỏ */
}




/* Toggle button */
/* Nút bật/tắt chatbot */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 80px;
  width: 50px;
  height: 50px;
  background: url("../images/logo.png") no-repeat center center;
  background-size: cover;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}
#chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Khung chat */
#chatbot-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

/* Vùng tin nhắn */
#chatbot-messages {
  max-height: 360px;
  overflow-y: auto;
  padding: 5px;
}

/* Bong bóng chat người dùng */
.user-msg {
  background: #0078ff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 15px 15px 0 15px;
  margin: 5px 0;
  display: inline-block;
  max-width: 80%;
  float: right;          /* đẩy bong bóng sang phải */
  clear: both;           /* tránh dính với bong bóng trước */
  text-align: left;      /* chữ bên trong vẫn căn trái cho dễ đọc */
}

/* Bong bóng chat bot */
.bot-msg {
  background: #f1f1f1;
  color: #333;
  padding: 8px 12px;
  border-radius: 15px 15px 15px 0;
  margin: 5px 0;
  display: inline-block;
  max-width: 80%;
  float: left;           /* đẩy bong bóng sang trái */
  clear: both;
  text-align: left;
}


/* Avatar bot */
.bot-msg::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("../images/logo.png") no-repeat center center;
  background-size: contain;   /* hoặc cover */
  margin-right: 5px;
  vertical-align: middle;
}



/* Header */
#chatbot-box::before {
  content: "Trợ lý AI";
  display: block;
  background: #b22222;  /* đỏ đậm */
  color: #fff9e6;       /* chữ vàng nhạt */
  padding: 10px;
  font-weight: bold;
  text-align: center;
}



/* Input + button */
#chatbot-input {
  width: 100%;
  border: 1px solid #b22222;
  padding: 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  border-radius: 6px;
  margin: 8px;
}

#chatbot-send {
  width: calc(100% - 16px);
  margin: 0 8px 8px 8px;
  background: #b22222;   /* đỏ đậm */
  color: #fff9e6;        /* vàng nhạt */
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}
#chatbot-send:hover {
  background: #ff0000;   /* đỏ sáng hơn khi hover */
}


@media (max-width: 767px) {
  #carouselBannerGiua,
  #carouselBannerPhai,
  .card.flex-fill {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Chỉ hiện 3 tin đầu, ẩn từ tin thứ 4 trở đi ở Tin nổi bật khác */
  .news-item:nth-child(n+4) {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Chỉ hiện 3 tin đầu, ẩn từ tin thứ 4 trở đi tin ngang  */
  .list-group-item:nth-child(n+3) {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Chỉ hiện 3 video đầu, ẩn từ video thứ 4 trở đi */
  .swiper-slide:nth-child(n+3) {
    display: none !important;
  }
}
@media (max-width: 767px) {
  /* Chỉ hiện 3 tin đầu, ẩn từ tin thứ 4 trở đi */
  .mb-2:nth-child(n+3) {
    display: none !important;
  }
}
@media (max-width: 767px) {
  /* Ẩn cột thứ 3 (Trích yếu) */
  #ctl00_ContentPlaceHolder1_gvVanBan th:nth-child(3),
  #ctl00_ContentPlaceHolder1_gvVanBan td:nth-child(3) {
    display: none !important;
  }
}
