/**
 * CSS styles for Most Popular Content Landing Page
 * 
 * @author: nmduc2
 * @date: 2022-03-26
 * @description: Styles for trang tá»•ng há»£p ná»™i dung Ä‘Æ°á»£c quan tÃ¢m nhiá»u nháº¥t, 
 * bao gá»“m tab navigation, article cards, vÃ  responsive layouts
 */

/* General styles */
.popular-content {
  font-family: GoogleSans, Arial, sans-serif;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Main Title */
.main-title-container {
  text-align: center;
  margin: 40px 0;
}

.main-title {
  /* font-family: 'Inter', sans-serif; */
  font-weight: 700;
  font-size: 26px;
  line-height: 100%;
  color: rgba(16, 68, 18, 1);
  letter-spacing: 0%;
  text-align: center;
  margin: 0;
  padding: 0 15px;
  line-height: normal;
}

/* Navigation tabs */
.tab-navigation {
  position: sticky;
  top: 60px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
  z-index: 100;
  margin-bottom: 40px;
}

.nav-tabs {
  display: flex;
  /* flex-wrap: nowrap; */
  /* overflow-x: auto; */
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e5e5e5;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
  /* flex-wrap: wrap; */
  align-items: center;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tabs li {
  margin: 0;
  text-align: center;
  flex: none;
  display: flex;
  justify-content: center;
  /* flex: 1; */
}

.nav-tabs li a {
  display: block;
  padding: 11px 11px;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  /* white-space: nowrap; */
  /* transition: all 0.3s ease; */
  /* height: max-content; */
  /* text-transform: uppercase; */
  /* width: max-content; */
}

.nav-tabs li.active a {
  color: #0068d9;
  border-bottom: 2px solid #0068d9;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 102px; */
}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus{
  color: #0068d9;
  border-bottom: 2px solid #0068d9;
}

.nav-tabs li:hover a {
  color: #0068d9;
}

/* Section header */
.content-section {
  padding: 20px 0 50px;
  display: block; /* LuÃ´n hiá»ƒn thá»‹ táº¥t cáº£ cÃ¡c section */
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(38, 128, 235, 1);
  padding-bottom: 10px;
}

.section-title {
  font-size: 24px;
  color: rgba(11, 89, 182, 1);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.section-title br{
  display: none;
}

.section-title:before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-image: url('/sites/amis/images/pages/most-popular-content/icon-nav.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.view-all-link {
  color: #0068d9;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.view-all-link:after {
  content: '';
  display: inline-block;
  width: 21px;
  height: 21px;
  margin-left: 8px;
  background-image: url('/sites/amis/images/pages/most-popular-content/ic-more.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Articles container */
.articles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-details {
  padding: 20px;
}

.article-title {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.5;
  min-height: 38px; /* Äáº£m báº£o chiá»u cao tá»‘i thiá»ƒu cho 3 dÃ²ng text */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* font-weight: 600; */
}

.article-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.article-title a:hover {
  color: #0068d9;
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #777;
}

.post-date {
  display: inline-flex;
  align-items: center;
}

.post-date:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-image: url('/sites/amis/images/pages/most-popular-content/icon-calendar.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.post-views {
  display: inline-flex;
  align-items: center;
  margin-left: 15px;
}

.post-views:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-image: url('/sites/amis/images/pages/most-popular-content/icon-eye.svg');
  background-size: contain;
  background-repeat: no-repeat;
}
.nav-tabs>li>a:hover {
  border-color: unset;
  outline: unset;
  border: unset;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .articles-container {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
      font-size: 22px;
  }
  
  .main-title {
      font-size: 36px;
  }
}

@media screen and (max-width: 767px) {
  .tab-navigation {
      top: 50px;
  }
  
  .nav-tabs li a {
      padding: 8px 11px;
      font-size: 14px;
  }
  ul.nav-tabs {
    flex-wrap: wrap;
}
  
  .section-title {
      font-size: 20px;
  }
  
  .articles-container {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .article-image {
      height: 180px;
  }
  
  .article-title {
      font-size: 16px;
  }
  
  .main-title {
      font-size: 30px;
  }
}

@media screen and (max-width: 480px) {
  .section-header {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .view-all-link {
      margin-top: 10px;
  }
  
  .article-image {
      height: 160px;
  }
  
  .main-title {
      font-size: 24px;
  }
}

/* knowleague_update */

.head-knowleague_update {
display: grid;
grid-template-columns: 1fr 3fr;
align-items: center;
padding-bottom: 53px;
}

.item-line-knowleague_update {
display: flex;
justify-content: space-around;
font-size: 19px;
font-family: "GoogleSans Bold", Arial, Helvetica, sans-serif;
justify-items: center;
color: #000;
}

.knowleague_update {
background-color: #f2f2f2;
padding-top: 74px;
padding-bottom: 29px;
}

.wrap-knowleague_update {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 56px;
}

.list-item-mini-knowleague_update {
display: grid;
grid-template-columns: 1fr 1fr;
}

.number-knowleague_update {
font-size: 38px;
font-family: "GoogleSans Bold", Arial, sans-serif;
color: #cb102e;
line-height: 45px;
}

.item-knowleague_update {
display: grid;
grid-template-columns: 2fr 7fr;
align-items: center;
gap: 5px;
}

.title-knowleague_update {
font-size: 22px;
color: #414141;
}

.item-line-knowleague_update > a:hover {
color: #fff;
}

.item-line-knowleague_update div a:hover {
color: #c8102e;
}

.item-line-knowleague_update div a {
color: #414141;
}
.box-mobile-knowleague_update {
display: none;
}

@media (max-width: 979px) {
.box-mobile-knowleague_update {
  display: grid;
  margin-top: 11px;
  gap: 14px;
}
.item-line-knowleague_update {
  display: none;
}

.list-item-mini-knowleague_update {
  grid-template-columns: 1fr;
}

a.img-knowleague_update {
  display: none;
}

.head-knowleague_update {
  grid-template-columns: 1fr;
  margin-bottom: -25px;
  margin-top: -30px;
}
.box-mobile-knowleague_update a {
  border: 1px solid #000;
  padding: 7px 14px;
  border-radius: 20px;
  color: #000;
  font-size: 14px;
  font-family: "GoogleSans Bold", Arial, Helvetica, sans-serif;
}

.box-mobile-knowleague_update > div:nth-child(1) a {
  /* color: #c8102e; */
  /* border-color: #c8102e; */
}

.number-knowleague_update {
  line-height: unset;
  font-size: 28px;
}

.title-knowleague_update {
  font-size: 15px;
}

.wrap-knowleague_update {
  gap: 10px;
}

a.item-knowleague_update {
  gap: 10px;
}
}

/* end knowleague_update */ 