/* DangBo Dien Bien custom layout */
/* Global styles */
:root {
  --primary-color: #c8102e;
  --secondary-color: #db0713;
  --text-color: #222;
  --background-color: #f7f7f7;
  --border-color: #e6e6e6;
  --link-color: #c8102e;
  --link-hover-color: #db0713;
  --container-max-width: 1380px;
}
body {
  background-color: #f7f7f7;
  color: #222;
}

.site-header {
  background-color: #ffffff;
}

.site-header-banner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  position: relative;
}

.site-header-banner-left {
  position: absolute;
  top: 0;
  left: 0;
  height: 200px;
  width: 100%;
  display: block;
}

.site-header-banner-right {
  height: 198px;
  width: 100%;
  display: block;
  width: 100%;
}

#mainNav {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 1020;
  background-color: #db0713;
  border-bottom: 1px solid #db0713;
  padding-top: 0;
  padding-bottom: 0;
}

#mainNav .container {
  max-width: var(--container-max-width);
}

#mainNav .navbar-collapse {
  flex-grow: 0;
  width: 100%;
}

#mainNav #navbarResponsive {
  justify-content: flex-end;
}

#mainNav .menu-responsive-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

#mainNav .menu-responsive-wrap .navbar-nav {
  flex-wrap: nowrap;
  overflow: visible;
}

#mainNav .main-menu-list {
  align-items: center;
}

#mainNav .menu-overflow-toggle {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  line-height: 1;
  padding: 0.4rem 0.52rem;
}

#mainNav .menu-overflow-toggle:hover,
#mainNav .menu-overflow-toggle:focus {
  color: #ffe8ec;
  border-color: #ffe8ec;
}

#mainNav .menu-overflow .dropdown-menu {
  min-width: 220px;
}

#mainNav .navbar-nav .dropdown-menu {
  z-index: 1040;
}

#mainNav .dropdown-menu .dropdown {
  position: relative;
}

#mainNav .dropdown-menu .dropdown-menu {
  top: -1px;
  left: 100%;
  margin-left: 0;
}

#mainNav .dropdown-menu .dropdown:hover > .dropdown-menu,
#mainNav .dropdown-menu .dropdown:focus-within > .dropdown-menu {
  display: block;
}

#mainNav .user-nav-menu {
  margin-left: 0.25rem;
  flex-shrink: 0;
}

#mainNav .user-nav-toggle {
  color: #ffffff;
  border-radius: 9999px;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#mainNav .user-nav-toggle:hover,
#mainNav .user-nav-toggle:focus {
  color: #ffe8ec;
  border-color: #ffe8ec;
}

#mainNav .navbar-toggler {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  margin: 0.3rem 0;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link {
  color: #ffffff;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  font-size: 0.78rem;
}

#mainNav .navbar-nav > li.nav-item > a.nav-link:focus,
#mainNav .navbar-nav > li.nav-item > a.nav-link:hover {
  color: #ffe8ec;
}
#mainNav .navbar-nav > li.nav-item > a.other-menu {
  border: none; 
  font-size: 24px;
}

.site-content {
  background-image: url("../assets/images/bg-content.png");
  background-repeat: repeat;
  background-position: top left;
}

.site-content-container {
  max-width: var(--container-max-width);
  background-color: #ffffff;
  padding: 1.5rem;
}

.site-footer {
  background-image: url("../assets/images/bg-footer.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 2rem 0 1.1rem;
  border-top: 1px solid #e6e6e6;
}

.site-footer .container {
  max-width: var(--container-max-width);
}

.site-footer-container {
  color: #2f2f2f;
}

.site-footer-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.site-footer-brand {
  width: 30%;
  min-width: 270px;
}

.site-footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.site-footer-brand-logo {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer-brand-line {
  margin: 0;
  line-height: 1.25;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #c8102e;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer-address,
.site-footer-contact {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  line-height: 1.5;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer-links {
  width: 70%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.site-footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer-link-col a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.35;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-footer-link-col a:hover {
  color: #c8102e;
}

.site-footer-bottom {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid #dcdcdc;
  text-align: center;
  font-size: 0.82rem;
  color: #606060;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 991.98px) {
  .site-header-banner {
    flex-direction: column;
  }

  .site-header-banner-left,
  .site-header-banner-right {
    width: 100%;
  }

  #mainNav .navbar-nav > li.nav-item > a.nav-link {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  #mainNav .menu-responsive-wrap {
    display: block;
  }

  #mainNav .menu-responsive-wrap .navbar-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  #mainNav .menu-overflow-toggle,
  #mainNav .user-nav-toggle {
    border: none;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  #mainNav .user-nav-menu {
    margin-left: 0;
  }

  .site-footer-top {
    flex-direction: column;
  }

  .site-footer-brand,
  .site-footer-links {
    width: 100%;
  }

  .site-footer-brand-header {
    align-items: flex-start;
  }

  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .site-footer-links {
    grid-template-columns: 1fr;
  }
}

.db-article-detail-wrap .site-content-container {
  max-width: var(--container-max-width);
}

.db-article-detail {
  background: #fff;
  color: #1f1f1f;
}

.db-article-detail-category , .db-article-detail-category>a{
  color: #c8102e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.db-article-detail-title {
  font-size: 2rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}

.db-article-detail-divider {
  width: 100%;
  height: 2px;
  background-color: #c8102e;
  margin: 0.9rem 0 0.7rem;
}

.db-article-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #6f6f6f;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.db-article-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.db-article-action-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #3c3c3c;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.db-article-action-btn:hover {
  border-color: #c8102e;
  color: #c8102e;
}

.db-article-detail-cover img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 1px solid #ececec;
}

.db-article-detail-body {
  margin-top: 1rem;
  line-height: 1.75;
  font-size: 1rem;
}

.db-article-detail-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.db-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  font-size: 0.82rem;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  background: #fafafa;
}

.db-article-detail-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #ddd;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #4f4f4f;
  font-size: 0.92rem;
}

.db-share-zalo {
  color: #0a66c2;
  font-weight: 600;
  text-decoration: none;
}

.db-share-zalo:hover {
  text-decoration: underline;
}

.db-comment-box {
  background: #fff6f3;
  border: 1px solid #f2ddd5;
  border-radius: 4px;
  padding: 0.9rem;
}

.db-comment-title {
  color: #c8102e;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.db-popular-card {
  border: 1px solid #e5e5e5;
  background: #fff;
}

.db-popular-title {
  margin: 0;
  padding: 0.62rem 0.85rem;
  background: #c8102e;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 700;
}

.db-popular-list {
  margin: 0;
  padding: 0.8rem 0.9rem;
  list-style: none;
}

.db-popular-list li {
  border-bottom: 1px dashed #ececec;
  padding: 0.5rem 0;
}

.db-popular-list li:last-child {
  border-bottom: none;
}

.db-popular-list a {
  color: #1f1f1f;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
}

.db-popular-list a:hover {
  color: #c8102e;
}

/* Mẫu tin chạy / tin nóng (DangBoHomeFeeds*) */
.dangbo-ticker-wrap {
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dangbo-ticker-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 2.25rem;
  gap: 0.35rem;
}

.dangbo-ticker-label {
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dangbo-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dangbo-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: dangbo-ticker-marquee 55s linear infinite;
}

.dangbo-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes dangbo-ticker-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.dangbo-home-hot .list-group-item {
  position: relative;
}

@media (max-width: 767.98px) {
  .db-article-detail-title {
    font-size: 1.6rem;
  }

  .db-article-detail-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .dangbo-ticker-track {
    animation-duration: 40s;
  }
}
