/* =========================================================
   News All Page - view.css
   ========================================================= */

/* ===== Page Title ===== */
.page-title {
  padding: 80px 0 40px;
  background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../images/pattern.png') center/cover;
  opacity: .08;
  pointer-events: none;
}

.page-title .heading {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #fff;
}

.page-title p {
  font-size: 1.05rem;
  opacity: .95;
  color: #fff;
}

.breadcrumbs {
  background: rgba(255, 255, 255, .08);
  padding: 12px 0;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs ol li {
  color: #fff;
  font-size: .95rem;
}

.breadcrumbs ol li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: .7;
}

.breadcrumbs ol li a {
  color: #fff;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}

.breadcrumbs ol li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumbs ol li.current {
  font-weight: 600;
}

/* ===== News All Section ===== */
.news-all.section {
  padding: 60px 0;
  background: #f8f9fc;
}

/* ===== News Navigation Tabs ===== */
.news-nav-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: #89287f transparent;
}

.news-nav-wrapper::-webkit-scrollbar {
  height: 6px;
}

.news-nav-wrapper::-webkit-scrollbar-thumb {
  background: #89287f;
  border-radius: 10px;
}

.news-tabs-container {
  display: flex;
  justify-content: center;
  min-width: max-content;
}

.news-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  flex-wrap: nowrap;
}

.news-tabs .nav-item {
  margin: 0;
}

.news-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  color: #555;
  font-weight: 500;
  font-size: .95rem;
  border: 0;
  background: transparent;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
}

.news-tabs .nav-link:hover {
  background: #f5e9f3;
  color: #89287f;
}

.news-tabs .nav-link.active {
  background: linear-gradient(135deg, #89287f, #9B4A9D);
  color: #fff;
  box-shadow: 0 4px 12px rgba(137, 40, 127, .3);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  background: rgba(0, 0, 0, .08);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}

.news-tabs .nav-link.active .tab-count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* ===== Pagination Info ===== */
.pagination-info p {
  font-size: .95rem;
  margin: 0;
}

.pagination-info strong {
  color: #89287f;
}

/* ===== News Card ===== */
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(137, 40, 127, .15);
}

.news-image-link {
  display: block;
  overflow: hidden;
}

.news-image-wrapper {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  background: #eee;
}

.news-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.06);
}

.news-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.15em;
}

.news-card-title a {
  color: #222;
  text-decoration: none;
  transition: color .2s;
}

.news-card-title a:hover {
  color: #89287f;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  color: #888;
  margin-top: auto;
}

.news-date-text i {
  color: #89287f;
  margin-right: 4px;
}

/* ===== SDG Badges ===== */
.sdg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed #e5e5e5;
}

.sdg-badge-link {
  display: inline-block;
  transition: transform .2s;
}

.sdg-badge-link:hover {
  transform: scale(1.12);
}

.sdg-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

/* ===== No News ===== */
.no-news-container {
  padding: 60px 20px;
  text-align: center;
}

.no-news-icon {
  font-size: 4rem;
  color: #d3d3d3;
  margin-bottom: 16px;
}

.no-news-title {
  font-size: 1.4rem;
  color: #666;
  margin-bottom: 8px;
}

.no-news-description {
  color: #999;
  margin: 0;
}

/* ===== Pagination ===== */
.pagination-wrapper {
  margin-top: 30px;
}

.pagination {
  gap: 6px;
  flex-wrap: wrap;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  color: #555;
  background: #fff;
  font-weight: 500;
  transition: all .2s;
  justify-content: center;
}

.page-item .page-link:hover {
  background: #f5e9f3;
  color: #89287f;
  border-color: #89287f;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #89287f, #9B4A9D);
  border-color: #89287f;
  color: #fff;
  box-shadow: 0 4px 10px rgba(137, 40, 127, .25);
}

.page-item.disabled .page-link {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-title {
    padding: 60px 0 30px;
  }

  .page-title h1 {
    font-size: 1.7rem;
  }

  .news-all.section {
    padding: 40px 0;
  }

  .news-tabs .nav-link {
    padding: 8px 16px;
    font-size: .88rem;
  }

  .page-item .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .news-card-title {
    font-size: .98rem;
  }

  .pagination-info p {
    font-size: .85rem;
  }
}