﻿  :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: 14px 0; border-bottom: 4px 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;
}

.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.02);
}
.btn.active {
    pointer-events: none; /* không click được */
    font-weight: bold;
}
.card-header {
    font-size: 1rem;
}
.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;
}

.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;
}