.main-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}

.row-title h1 {
  color: #E03C31;
  border-bottom: 1px solid #E03C31;
  float: left;
  width: auto;
  padding: 5px;
}

.row-title {
  background: #FFFFFF;
  margin-top: 15px;
  box-shadow: rgb(0 0 0 / 6%) 0px 4px 6px, rgb(0 0 0 / 0%) 0px 1px 3px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
}


.tag-dark {
  background-color: rgba(17, 24, 39, 0.7);
}

/* --- Main Layout Grid --- */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 25px;
}

/* --- Featured News Section --- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.featured-col-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.small-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.featured-col-2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-news-item {
  background-color: transparent;
  transition: all 0.2s ease;
  border-bottom: 1px solid #e5e7eb7d;
  padding: 6px 0;
}

.text-news-date {
  font-size: 0.75rem;
  color: rgb(115 115 115);
  margin-bottom: 8px;
  font-weight: 500;
}

.text-news-title {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  /* gray-700 */
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.text-news-title:hover {
  color: #DC2626;
  /* red-600 */
}

.featured-post {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.featured-post .content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 24px;
  color: #fff;
}

.featured-post .content a {
  color: #fff
}

.featured-post-large {
  height: 333px;
}

.featured-post-large .content h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.featured-post-large .tag {
  margin-bottom: 8px;
}

.featured-post-small {
  height: 161px;
}

.featured-post-small .content {
  padding: 16px;
}

.featured-post-small .content h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.featured-post-small .content h3 a {
  color: #fff
}

.post-date {
  font-size: 0.875rem;
  color: #d1d5db;
  margin-top: 8px;
}

/* --- News List Section --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb82;
}

.news-list .news-item:last-child {
  border-bottom: none;
}

.news-item-image {
  position: relative;
  width: 100%;
  height: 192px;
  flex-shrink: 0;
}

.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.news-item-image .tag {
  position: absolute;
  top: 8px;
  left: 8px;
}

.news-item-content .date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.news-item-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  transition: color 0.2s;
}

.news-item-content h3:hover {
  color: #DC2626;
}

.news-item-content p {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.pagination a.page-link {
  background-color: #f3f4f6;
  color: #374151;
}

.pagination a.page-link:hover {
  background-color: #e5e7eb;
}

.pagination a.active {
  background-color: #DC2626;
  color: #fff;
}

/* --- Sidebar --- */
.sidebar {
  display: flex;
  flex-direction: column;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-bar .search-field {
    width: 100%;
    border-radius: 8px;
    transition: 0.3s;
    padding: 10px !important;
        margin-bottom: 0;
}

.search-bar .search-field:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.search-bar .search-submit {
  position: absolute;
  top: 9%;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 0;
  margin: 0;
}

.search-bar .search-submit .icon {
  width: 20px;
  height: 20px;
}

.search-bar form{
    margin-bottom: 0;
}
.search-bar .search-submit {
    position: absolute;
    top: 13%;
    right: 29px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0;
    margin: 0;
    width: auto;
}

.archive .sidebar {
    gap: 11px;
    top: 20px;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: 2fr 1fr;
  }

  .featured-post-large {
    grid-column: span 1 / span 1;
  }

  .small-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-col-2 {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .news-item {
    flex-direction: row;
  }

  .news-item-image {
    width: 32%;
  }

  .news-item-content {
    width: 66.666667%;
  }
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;
    gap: 30px;
  }

  .main-grid {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 30px;
  }
}

/* Thêm media query cho mobile */
@media (max-width: 768px) {
  .news-item-image {
    position: relative;
    width: 40%;
    height: auto;
    flex-shrink: 0;
}

.news-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.sidebar {
    margin-top: 30px;    gap: 10px
}

.search-bar form{
    margin-bottom: 0;
}
.search-bar .search-submit {
    position: absolute;
    top: 13%;
    right: 29px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    padding: 0;
    margin: 0;
    width: auto;
}
}


