/* Branding and navigation. */
.block-system-branding-block {
  margin: 0;
}

/* Logo: block--system-branding-block.html.twig */

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Main menu dropdown: see menu-dropdown.css */

/* .site-menu-toggle — header.css */

/* Hero: supports both new semantic markup and migrated UIkit slideshow markup. */
.shp-hero,
.site-hero .uk-slideshow,
.site-hero .uk-slideshow > li {
  position: relative;
  min-height: clamp(260px, 34vw, 430px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.shp-hero__slide,
.site-hero .uk-slideshow > li {
  position: absolute;
  inset: 0;
  display: none;
}

.shp-hero__slide.is-active,
.site-hero .uk-slideshow > li.is-active,
.site-hero .uk-slideshow > li:first-child:last-child {
  display: block;
}

.shp-hero img,
.site-hero .uk-slideshow img {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 34vw, 430px);
  object-fit: cover;
}

.shp-hero__caption,
.site-hero .uk-overlay-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: rgb(0 0 0 / 58%);
  color: #fff;
  text-align: center;
}

.shp-hero__quote,
.site-hero .huantu {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-style: italic;
}

/* Views and migrated homepage blocks. */
.block__title {
  margin: 0 0 1rem;
  border-top: 5px solid var(--shp-orange);
  box-shadow: 0 2px 0 #ddd;
  background: #f5f5f5;
  color: var(--shp-orange);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.block__title a,
.block__title {
  display: block;
  padding: .65rem;
}

.block__title a {
  margin: -.65rem;
  color: inherit;
}

.block__title a:hover {
  text-decoration: none;
}

.path-frontpage .block-page-title-block {
  display: none;
}

.region-featured {
  padding: 0;
}

.shp-card-view .view-content,
.view-nhomtintrangchu .view-content,
.view-tintucnangcap .view-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.shp-card {
  min-width: 0;
}

.shp-card img,
.view-content .views-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.view-danh-sach-tin .views-row img,
.view-tusach-tinlienquan-export .views-row img {
  aspect-ratio: auto;
  object-fit: unset;
  height: auto;
}

.views-field-title,
.tieude {
  padding-block: 0.35rem 0.5rem;
  text-align: left;
}

.view-nhomtintrangchu .thongtin .tieude,
.view-nhomtintrangchu .noidung .tieude {
  font-size: 18px;
  text-align: left;
}

.view-nhomtintrangchu .mota {
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

.path-frontpage .region-content > .block-views {
  margin-top: 0;
  margin-bottom: 16px;
}

.path-frontpage .region-content > .block-views:last-child {
  margin-bottom: 16px;
}

.views-field-title a,
.tieude a,
.view-content .views-row a {
  text-decoration: none;
}

.views-field-title a,
.tieude a {
  color: var(--shp-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.views-field-title a:hover,
.tieude a:hover {
  color: var(--shp-orange);
  text-decoration: none;
}

.view-empty {
  padding: 1rem;
  border: 1px solid var(--shp-border);
  background: #f9fafb;
}

.view-filters {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--shp-border);
  background: #f9fafb;
}

.view-filters .form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
}

/* Article listings and content. */
.view-danh-sach-tin .views-row,
.view-tusach-tinlienquan-export .views-row {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 8px solid #f5f5f5;
}

.node__content img {
  margin-inline: auto;
}

.pager__items {
  display: flex;
  justify-content: center;
  gap: .25rem;
  padding: 0;
  list-style: none;
}

.pager__item a,
.pager__item.is-active {
  display: inline-grid;
  min-width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  border: 3px solid #f5f6f6;
  border-radius: 50%;
}

.site-sidebar {
  color: var(--shp-muted);
}

.site-sidebar .block {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 5px solid #f5f5f5;
  border-radius: 3px;
  background: #fff;
}

.messages {
  margin-block: 1rem;
  padding: 1rem;
  border-left: 5px solid #2563eb;
  background: #eff6ff;
}

@media (max-width: 700px) {
  .shp-card-view .view-content,
  .view-nhomtintrangchu .view-content,
  .view-tintucnangcap .view-content {
    grid-template-columns: 1fr;
  }

  .view-filters .form--inline {
    display: block;
  }
}
