/*
Theme Name: Flatsome News - Theme Tin Tức
Description: Theme tin tức hiện đại và chuyên nghiệp dựa trên Flatsome
Author: UX Themes
Template: flatsome
Version: 1.0
*/

/* ===== HEADER TÙY CHỈNH ===== */

/* Nền header chính */
.header-wrapper {
  background: #ffffff; /* nền tổng thể trắng nhẹ */
  border-bottom: 2px solid #0f9d58; /* viền dưới màu xanh lá */
}

/* Nền menu dưới */
#wide-nav.header-bottom {
  background-color: #393939; /* xanh lá cây tươi Google Style */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Menu chính - chữ trắng */
#wide-nav .nav > li > a.nav-top-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 4px;
  transition: all 0.3s ease;
}

/* Hover menu chính */
#wide-nav .nav > li > a.nav-top-link:hover,
#wide-nav .nav > li.active > a.nav-top-link {
  color: #ffeb3b; /* vàng tươi */
}

/* Dropdown menu */
#wide-nav .nav-dropdown {
  background-color: #0f9d58; /* cùng tông xanh */
  border-radius: 0 0 8px 8px;
  border: none;
  padding: 5px 0;
}

/* Dropdown item */
#wide-nav .nav-dropdown > li > a {
  color: #ffffff;
  padding: 10px 20px;
  transition: all 0.3s;
}

/* Hover dropdown item */
#wide-nav .nav-dropdown > li > a:hover {
  background-color: #1abc9c; /* xanh nhạt hơn */
  color: #ffeb3b;
}

/* Ô tìm kiếm trong header */
.header-search-form .search-field {
  border: 1px solid #0f9d58;
  border-radius: 50px;
  padding: 6px 14px;
}

.header-search-form .ux-search-submit {
  background-color: #0f9d58;
  border-radius: 50%;
  margin-left: 5px;
}

.header-search-form .ux-search-submit:hover {
  background-color: #1abc9c;
}

/* Menu mobile icon */
.icon-menu {
  color: #0f9d58;
  font-size: 22px;
}

.icon-menu:hover {
  color: #1abc9c;
}




.box-blog-post .box-image .image-cover{
  height: 300px;
}



.box-blog-post .box-text{
  position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 11px 8px 10px;
    z-index: 5;
    color: white;
    background: #07070744;
}


.box-blog-post .box-text a{
  color: #ffffff;
}

.badge-outline .badge-inner {
  border-color: #0f9d58;
}

.has-hover:hover .badge-outline .badge-inner {
  background-color: #0f9d58;
  border-color: #0f9d58;
  color: #fff;
}


.footer-2 {
  background-color: #0f9d58;
}

.nav-pagination>li>.current, .nav-pagination>li>a:hover, .nav-pagination>li>span:hover {
  background-color: #0f9d58;
  border-color: #0f9d58;
  color: #fff;
}

body {
  font-family: 'Poppins', sans-serif;
}





/** Breadcrumbs styles with #0f9d58 green tone */

/* Breadcrumb container */
.breadcrumbs {
  padding: 0 12px;
  background: #e8f5e9; /* very light green for subtle highlight */
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

/* The breadcrumb nav helps a11y but doesn't need extra styling here */

/* Breadcrumb list */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 10px 0 2px 0;
  margin: 0;
  background: transparent;
}

/* Breadcrumb items separator (default >, but you use custom markup so style li) */
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #0f9d58;
  font-weight: bold;
  margin: 0 8px;
  position: absolute;
  left: -18px;
}


.breadcrumb-item{
  position: relative;
}

/* Breadcrumb links */
.breadcrumb .breadcrumb-item a {
  color: #0f9d58;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;

}

/* Breadcrumb icon (e.g., .bi-house) */
.breadcrumb .breadcrumb-item a i {
  margin-right: 6px;
  color: #0f9d58;
  font-size: 1.15em;
  vertical-align: middle;
}

/* Breadcrumb link hover/active */
.breadcrumb .breadcrumb-item a:hover,
.breadcrumb .breadcrumb-item a:focus {
  color: #1abc9c;
  text-decoration: underline;
}

/* Active breadcrumb (current page) */
.breadcrumb .breadcrumb-item.active,
.breadcrumb .breadcrumb-item.active a,
.breadcrumb .breadcrumb-item.active span {
  color: #070707;
  font-weight: 600;
  cursor: default;
  text-decoration: none;
}

/* Add ellipsis effect for long breadcumb text, especially on mobile */
.breadcrumb .breadcrumb-item {
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 16px;
}

@media (max-width: 600px) {
  .breadcrumbs {
    font-size: 13px;
    padding: 0 5px;
  }
  .breadcrumb{
    justify-content: center;
  }
}


body #wrapper a, body #wrapper span, body #wrapper p, body #wrapper li, body #wrapper h1, body #wrapper h2, body #wrapper h3, body #wrapper h4, body #wrapper h5, body #wrapper h6{
  font-family: 'Roboto', sans-serif !important;
}


:root {
  --primary: #0f9d58;
  --primary-dark: #0b7241;
  --primary-light: #57e2ab;
  --primary-gradient: linear-gradient(135deg, #0f9d58 0%, #018749 100%);
}

/* ========================================
 HOMEPAGE WRAPPER 2025
 ======================================== */

.cat-post-content{
  padding-left: 10px;
}

.homepage-wrapper-2025 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-content {
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #f0f0f0;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-icon {
  font-size: 36px;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--primary-dark);
}

/* ========================================
 LAYOUT 1: HERO SLIDER
 ======================================== */

.hero-slider-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: none;
}

.hero-slide-item.active {
  opacity: 1;
  display: block;
  z-index: 1;
}

.hero-slide-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.1) 0%,
      rgba(0,0,0,0.5) 100%
  );
}

.hero-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  color: white;
  z-index: 2;
}

.hero-category {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 25px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-title a:hover {
  color: var(--primary);
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
}

.hero-date,
.hero-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-excerpt {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 157, 88, 0.28);
}

.hero-read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15,157,88,0.35);
  background: var(--primary-dark);
}

/* Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 157, 88, 0.9);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 157, 88, 0.13);
  transition: all 0.3s ease;
  z-index: 100;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-nav:hover {
  background: var(--primary-gradient);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--primary);
  width: 40px;
  border-radius: 6px;
}

/* ========================================
 LAYOUT 2: FEATURED GRID
 ======================================== */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.featured-large {
  grid-column: span 2;
  grid-row: span 2;
}

.featured-item {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.featured-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15,157,88,0.09);
}

.featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.featured-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.featured-large .featured-image {
  height: 100%;
  min-height: 500px;
}

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

.featured-item:hover .featured-image img {
  transform: scale(1.1);
}

.featured-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 15px;
  background: var(--primary-gradient);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  z-index: 10;
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15,157,88,0.58) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.featured-item:hover .featured-overlay {
  opacity: 1;
}

.featured-views {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: rgba(15,157,88,0.8);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.featured-content {
  padding: 20px;
}

.featured-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #222;
  transition: color 0.3s ease;
}

.featured-large .featured-title {
  font-size: 28px;
}

.featured-link:hover .featured-title {
  color: var(--primary);
}

.featured-excerpt {
  font-size: 14px;
  color: #558d6c;
  line-height: 1.6;
  margin-bottom: 12px;
}

.featured-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #54a381;
  padding-top: 12px;
  border-top: 1px solid #ecf0f1;
}

/* ========================================
 LAYOUT 3: CATEGORIES
 ======================================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-block {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.category-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.category-view-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.category-view-all:hover {
  color: var(--primary-dark);
}

.category-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cat-post-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.cat-post-link:hover {
  transform: translateX(5px);
}

/* First post - Large */
.cat-post-first .cat-post-image-large {
  width: 100%;
  max-width: 115px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

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

.cat-post-link:hover .cat-post-image-large img {
  transform: scale(1.08);
}

.cat-post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #222;
}

.cat-post-excerpt {
  font-size: 14px;
  color: #558d6c;
  line-height: 1.5;
  margin-bottom: 8px;
}

.cat-post-date {
  font-size: 12px;
  color: #54a381;
}

/* Small posts */
.cat-post-small {
  display: flex;
  gap: 12px;
}

.cat-post-image-small {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-post-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-post-link:hover .cat-post-image-small img {
  transform: scale(1.1);
}

.cat-post-content-small {
  flex: 1;
  padding-left: 10px;
}

.cat-post-title-small {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-post-date-small {
  font-size: 12px;
  color: #54a381;
}

/* ========================================
 LAYOUT 4: TRENDING
 ======================================== */

.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.trending-item {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.trending-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15,157,88,0.09);
}

.trending-rank {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  color: white;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(15, 157, 88, 0.2);
}

.trending-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.trending-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.trending-item:hover .trending-image img {
  transform: scale(1.15);
}

.trending-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15,157,88,0.58) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.trending-item:hover .trending-overlay {
  opacity: 1;
}

.trending-views {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15,157,88,0.8);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.trending-content {
  padding: 18px;
}

.trending-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.trending-link:hover .trending-title {
  color: var(--primary);
}

.trending-meta {
  font-size: 12px;
  color: #54a381;
}

/* ========================================
 RESPONSIVE
 ======================================== */

@media (max-width: 1200px) {
  .featured-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .trending-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-slider {
      height: 500px;
  }
  
  .hero-title {
      font-size: 32px;
  }
  
  .hero-slide-content {
      padding: 30px;
  }
  
  .categories-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .featured-grid {
      grid-template-columns: 1fr;
  }
  
  .featured-large {
      grid-column: span 1;
      grid-row: span 1;
  }
  
  .trending-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-slider {
      height: 400px;
  }
  
  .hero-title {
      font-size: 24px;
  }
  
  .section-title {
      font-size: 24px;
  }
}

@media (max-width: 576px) {
  .trending-grid {
      grid-template-columns: 1fr;
  }
  
  .hero-nav {
      width: 45px;
      height: 45px;
  }
  
  .hero-slider {
      height: 350px;
  }
  
  .hero-slide-content {
      padding: 20px;
  }
}

.featured-title{
  background: none;
  color: #222;
}