/* ============================================
   NEWS HERO SECTION
   ============================================ */

.news-hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.news-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.news-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
}

.news-hero-title {
  font-family: "Playfair Display", serif;
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.news-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: var(--white);
}

.news-breadcrumbs a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-breadcrumbs a:hover {
  color: var(--primary-brown);
}

.breadcrumb-separator {
  margin: 0 5px;
  opacity: 0.7;
}

.breadcrumb-current {
  opacity: 0.8;
}

/* ============================================
   NEWS CONTENT SECTION
   ============================================ */

.news-content-section {
  background: #fff;
  padding: 80px 0;
}

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

.news-main {
  padding-right: 40px;
}

/* Blog Post */
.news-post {
  margin-bottom: 60px;

}
.news-post a:hover {
  text-decoration:none;

}

.news-post-image {
  width: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: block;
}

.news-post-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Hover phóng ảnh */
.news-post:hover .news-post-image img {
  transform: scale(1.06);
}
.news-post:hover .news-post-title {
    color: var(--primary-brown);
}


/* META */
.news-post-meta {
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark-meta);
  margin: 5px 0;
  flex-wrap: wrap;
}

.post-author,
.post-date,
.post-categories {
  color: var(--dark-meta);
}

.post-separator {
  opacity: 0.5;
}

/* TITLE */
.news-post-title {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 15px;
  line-height: 1.3;
  text-decoration: none;
  display: block;
}

.news-post-title:hover {
  color: var(--primary-brown);
}

/* EXCERPT */
.news-post-excerpt {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 25px;
}

/* BUTTON */
.btn-read-more {
  display: inline-block;
  background-color: var(--primary-brown);
  color: var(--white);
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-read-more:hover {
  
  color: var(--white);
      box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    background-color: #9a7a55;
}

/* Pagination */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--dark-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.pagination-item:hover {
  background-color: var(--primary-brown);
  color: var(--white);
  border-color: var(--primary-brown);
}

.pagination-item.active {
  background-color: var(--primary-brown);
  color: var(--white);
}

.pagination-next {
  border-radius: 50%;
}

/* ============================================
   SIDEBAR
   ============================================ */

.news-sidebar {
  padding-left: 40px;
}
.widget-title {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-brown);
}
.sidebar-widget {
  padding: 30px 10px;
}
/* Search Form */
.search-form {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-right: none;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary-brown);
}

.search-btn {
  padding: 15px 20px;
  background-color: var(--primary-brown);
  color: var(--white);
  border: 1px solid var(--primary-brown);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.search-btn:hover {
  background-color: var(--light-brown);
  border-color: var(--light-brown);
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 350px; 
  overflow-y: auto;
  overflow-x: hidden;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.recent-post-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

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

.recent-post-item:hover .recent-post-thumb img {
  transform: scale(1.1);
}

.recent-post-content {
  flex: 1;
}

.recent-post-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-post-item:hover .recent-post-title {
  color: var(--primary-brown);
}

.recent-post-date {
  font-size: 12px;
  color: var(--dark-meta);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: var(--dark-text);
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background-color: var(--primary-brown);
  color: var(--white);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-brown);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--light-brown);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 992px) {
  .news-main {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .news-sidebar {
    padding-left: 0;
  }

  .news-hero-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 36px;
  }

  .news-post-title {
    font-size: 28px;
  }

  .top-left,
  .top-right {
    margin-left: 20px;
    margin-right: 20px;
  }

  .container-fluid {
    padding: 0 20px;
  }
}

.gallery-img {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.gallery-img > div {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}
.gallery-img > div:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}
.gallery-img > div::after {
  content: "view";
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.gallery-img > div:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
@media (max-width: 768px) {
  .gallery-img {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}
