/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0.1
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Custom Menu Style - Desktop */

.nav-pagination>li>.current, .nav-pagination>li>a:hover, .nav-pagination>li>span:hover {
  background-color: #e60000 !important;
  border-color: #e60000 !important;
  color: #fff !important;
}
#wide-nav.header-bottom {
  background-color: #e60000 !important; /* Nền đỏ cho toàn bộ thanh menu */
}
.home-button-xem-map {
	background-color: #e60000 !important;
	color: #ffffff !important;
}
.section-map {
	padding-bottom: 0px !important;
}

#wide-nav .nav > li > a {
  color: #ffffff !important; /* Chữ trắng */
  font-weight: 700; /* In đậm cho rõ */
}

/* Hover & Active State */
#wide-nav .nav > li > a:hover,
#wide-nav .nav > li.current-menu-item > a,
#wide-nav .nav > li.active > a,
#wide-nav .nav > li.current_page_parent > a {
  background-color: #b30000; /* Đỏ đậm hơn khi hover/active */
  color: #ffffff !important;
}

/* Custom Blog Grid - blogs-home */
.blogs-home .col-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Update to match blog-archive */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eee;
}

.blogs-home .col-inner:hover {
  transform: translateY(-3px); /* Update to match blog-archive */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Update to match blog-archive */
}

.blogs-home .box-image {
  border-radius: 8px 8px 0 0;
}

.blogs-home .box-text {
  padding: 20px 15px;
}

.blogs-home .post-title {
  font-size: 1.3em; /* Update to match blog-archive */
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 700;
}

.blogs-home .post-title a {
  color: #333;
  transition: color 0.2s;
}

.blogs-home .post-title a:hover {
  color: #e60000;
}

.blogs-home .is-divider {
  display: none;
}

.blogs-home .from_the_blog_excerpt {
  font-size: 0.95em; /* Update to match blog-archive */
  color: #666;
  margin-top: 10px;
}

.blogs-home .badge {
  background-color: #e60000 !important;
}
.button-vechungtoi {
  background-color: #e60000 !important;
}

.xem-them-blog-home {
  background-color: #e60000 !important;
  border-radius: 5px;
}
.home-xem-them-blog {
	padding-bottom: 0px !important;
}

/* Custom Widget Title */
.widget-title {
  color: #e60000 !important; /* Chữ màu đỏ */
  border-bottom: 3px solid #e60000; /* Đường gạch chân dài màu đỏ */
  padding-bottom: 10px; /* Khoảng cách giữa chữ và đường gạch */
  margin-bottom: 20px;
  width: 100%;
  display: block;
}

.widget .is-divider {
  display: none;
}

/* Custom Search Widget Modern */
.widget_search .searchform {
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.widget_search .searchform .flex-row {
  margin-left: 0;
  margin-right: 0;
}

.widget_search .search-field {
  border: none !important;
  box-shadow: none !important;
  padding-left: 20px !important;
  background-color: transparent !important;
  margin-bottom: 0 !important;
}

.widget_search .search-submit,
.widget_search button[type="submit"] {
  background-color: #e60000 !important; /* Màu đỏ chủ đạo */
  border-radius: 0 50px 50px 0;
  color: #fff !important;
  min-width: 50px;
}

/* Custom Sidebar News - sidebar-slide-image */
.sidebar-slide-image .box-blog-post,
.sidebar-tin-tuc .box-blog-post {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.sidebar-tin-tuc .col {
  padding: 0 !important;
}

.sidebar-slide-image .col:last-child .box-blog-post,
.sidebar-tin-tuc .col:last-child .box-blog-post {
  border-bottom: none;
}

.sidebar-slide-image .box-image,
  .sidebar-tin-tuc .box-image {
    border-radius: 5px;
    /* overflow: hidden; */
    flex-shrink: 0;
    height: 100% !important; /* Fix chiều cao để ảnh đều nhau */
  }
  
  .sidebar-slide-image .box-image img,
  .sidebar-tin-tuc .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

.sidebar-slide-image .box-text,
.sidebar-tin-tuc .box-text {
  padding: 0 0 0 15px !important;
  text-align: left;
}

.sidebar-slide-image .post-title,
.sidebar-tin-tuc .post-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}

.sidebar-slide-image .post-title a,
.sidebar-tin-tuc .post-title a {
  color: #333;
}

.sidebar-slide-image .post-title a:hover,
.sidebar-tin-tuc .post-title a:hover {
  color: #e60000;
}

.sidebar-slide-image .from_the_blog_excerpt,
.sidebar-tin-tuc .from_the_blog_excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn 2 dòng mô tả */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-slide-image .is-divider,
.sidebar-tin-tuc .is-divider {
  display: none;
}

/* Custom Blog Archive - List Style */
.blog-archive #post-list .col-inner {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.blog-archive #post-list .col {
  padding: 0 !important;
}

.blog-archive #post-list .is-divider {
  display: none;
}

.blog-archive #post-list .col-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-archive .box-image {
  border-radius: 10px;
  overflow: hidden; /* Ensure rounded corners clip image */
}

.blog-archive .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-archive .entry-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-archive .entry-title a {
  color: #333;
  transition: color 0.2s;
}

.blog-archive .entry-title a:hover {
  color: #e60000;
}

.blog-archive .from_the_blog_excerpt {
  color: #666;
  font-size: 0.95em;
  margin-top: 10px;
}

.blog-archive .badge {
  background-color: #e60000 !important;
}
.article-inner {
  box-shadow: none !important;
}
.box-cot-loi {
	border-radius: 10px;
}

.box-cot-loi h4 {
	color: #e60000;
}
.box-cot-loi .box-image {
	    border-radius: 10px 10px 0px 0px;
}
.row .row:not(.row-collapse) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    /* width: 100% !important; */
  }
.absolute-footer {
  display: none;
}
@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/
}

@media screen and (max-width: 850px) {
  
}

@media screen and (max-width: 678px) {
  .col {
    padding: 0 6px 30px !important;
  }
  .box-blog-post .box-text {
    padding: 5px !important;
  }


  /* Fix Blog Archive List on Mobile (Keep side-by-side) */
  .blog-archive #post-list .col-inner {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px dashed #eee !important;
    padding-bottom: 15px !important;
  }
  
  .blog-archive #post-list .col:last-child .col-inner {
    border-bottom: none !important;
  }

  .blog-archive #post-list .box-blog-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  
  .blog-archive #post-list .box-image {
    width: 40% !important;
    max-width: 40% !important;
    flex-shrink: 0 !important;
  }
  
  .blog-archive #post-list .box-text {
    width: 60% !important;
    padding: 0 0 0 15px !important;
  }
  
  .blog-archive .from_the_blog_excerpt {
    display: block !important;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blog-archive .post-item {
    margin-bottom: 15px !important;
  }

  .sidebar-tin-tuc .box-blog-post {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  .sidebar-tin-tuc .box-image {
    width: 90px !important;
    max-width: 90px !important;
    flex-shrink: 0 !important;
  }
  .sidebar-tin-tuc .box-text {
    padding: 0 0 0 15px !important;
    width: auto !important;
  }
  .sidebar-tin-tuc .from_the_blog_excerpt {
    display: block !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
