/* Hero Section */
    .hero {
      background: linear-gradient(
        to bottom,
        #eef4fb 0%,
        #e4effa 30%,
        #d6e9fb 65%,
        #c3e0ff 100%
      );
      padding: 100px 140px 120px;
      position: relative;
      text-align: center;
    }

    .hero::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 1px;

      background: linear-gradient(
        to right,
        transparent,
        rgba(1,118,211,0.35),
        transparent
      );

      opacity: 0.6;
    }
    
    .hero-content {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
    
    .hero h1 {
      font-size: 58px;
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 28px;
      
      color: var(--dark-blue);
    }
    
    .hero p {
      text-align: center;
      font-size: 18px;
      color: var(--text-secondary);
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
    }

    /* Search Bar */
    .search-container {
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      position: relative;
      display: flex;
      align-items: center;
      margin-top: 40px;
    }
    
    .search-bar {
      width: 100%;
      padding: 18px 24px 18px 56px;
      border: 2px solid rgba(4,118,211,0.2);
      border-radius: 50px;
      font-size: 16px;
      background: white;
      transition: all 0.3s;
      box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }
    
    .search-bar:focus {
      outline: none;
      border-color: var(--primary-blue);
      box-shadow: 0 8px 24px rgba(4,118,211,0.15);
    }
    
    .search-icon {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--primary-blue);
    }
    
    .search-icon i {
      font-size: 24px;
      display: flex;
      align-items: center;
    }

    .search-result-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 8px;
  z-index: 999;
  display: none;
  overflow: hidden;
}

.search-group-title {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  background: #f5f7fb;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  display: none;
}

.search-group-title img {
  width: 13px;
  height: 13px;
}

.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: var(--light-blue);
}

.search-thumb {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.search-title {
  font-size: 14px;
  font-weight: 600;
  text-align: start;
}

.search-no-result {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Layout */
.news-page {
    background-color: transparent;
    padding: 60px 140px;
}

.container {
    max-width: 1280px;
}

/* Filter */
.news-filter {
    margin-bottom: 70px;
}

.news-filter ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.news-filter ul li {
    flex: 0 0 auto;
}

.news-filter ul li a {
    display: block;
    padding: 8px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.news-filter ul li.active a {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--white);
    border: 1px solid #e1e8f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.post-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #e1e8f0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-categories {
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a {
    color: var(--dark-blue);
    text-decoration: none;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.custom-line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.6;
    max-height: calc(1.6em * 3);
    min-height: calc(1.6em * 3);
}

/* Pagination */
.news-pagination {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pagination-prev,
.pagination-next {
    flex: 0 0 auto;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.news-pagination .page-numbers,
.news-pagination a {
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.news-pagination .current {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.news-pagination a:hover {
    background-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid { gap: 16px;}
    .post-title { font-size: 18px !important;}
}

@media (max-width: 768px) {
    .news-grid { gap: 12px; grid-template-columns: 1fr;}

    .news-filter {
        overflow: hidden;
        margin-bottom: 20px;
    }

    .news-filter ul {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 10px;
        gap: 10px;
        margin-bottom: 20px;
    }

    .news-filter ul::-webkit-scrollbar {
        display: none;
    }

    .news-filter ul li a {
        font-size: 13px;
        padding: 8px 16px;
    }

    .news-pagination::-webkit-scrollbar {
        display: none;
    }

    .news-pagination {
        padding: 0 16px;
        gap: 10px;
    }

    /* Numbers scroll ngang */
    .pagination-numbers {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .pagination-numbers::-webkit-scrollbar {
        display: none;
    }

    .news-pagination .page-numbers,
    .news-pagination a {
        border: none;
        background: transparent;
        min-width: auto;
        padding: 0 6px;
    }

    .news-pagination .current {
        border: 1px solid var(--primary-blue);
        background-color: var(--light-blue);
        padding: 0 10px;
    }

    .pagination-prev a,
    .pagination-next a {
        min-width: auto;
        padding: 0 8px;
        font-size: 13px;
    }
}