/* News Section Styles */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 300;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* News Card */
.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    width: 390px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* News Image */
.news-image {
    position: relative;
    /* height: 250px; */
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

/* Date Badge */
.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.date-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-badge i {
    font-size: 0.7rem;
}

/* News Content */
.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-title a {
    color: var(--pantone-546);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--pantone-313);
}

.news-summary {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* News Meta */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}

/* Read More Button */
.news-actions {
    margin-top: auto;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
}

.pagination-wrapper .pagination {
    justify-content: center;
}

.pagination-wrapper .page-link {
    border-radius: 10px;
    margin: 0 5px;
    border: none;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-link:hover {
    background: linear-gradient(135deg, var(--pantone-313) 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, var(--pantone-313) 0%, #764ba2 100%);
    border: none;
}

.link {
  text-align: center;
  margin: 28px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .news-content {
        padding: 1rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for meta items */
.meta-item:hover {
    color: var(--pantone-313);
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* Custom scrollbar for news summary */
.news-summary::-webkit-scrollbar {
    width: 4px;
}

.news-summary::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-summary::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Loading state */
.news-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.news-title a:focus,
.read-more-badge:focus {
    outline: 2px solid #0085ad;
    outline-offset: 2px;
}

/* Legacy support for old news block */
#news-block img {
    height: 200px;
    object-fit: cover;
}

#news-block .box:hover img {
    box-shadow: 1px 0px 9px 3px;
}

#news-block .items,
#news-view .items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 1rem;
    gap: 1rem;
}

/* Read More Badge */
.read-more-badge {
    background-color: var(--pantone-152);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
}

.read-more-badge:hover {
    transform: translateY(-2px);
    background-color: var(--pantone-106);
    color: white;
    text-decoration: none;
}

.read-more-badge i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.read-more-badge:hover i {
    transform: translateX(3px);
}

/* ===== PAGINATION STYLES ===== */
.pagination-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.pager {
  display: inline-block;
  padding: 0.5rem;
}

.pager__items {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.pager__item {
  margin: 0;
}

.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: #6c757d;
  background: transparent;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.pager__item a:hover {
  background: var(--pantone-313);
  color: white;
  border-color: var(--pantone-313);
}

/* Active page styling */
.pager__item.is-active a {
  background: var(--pantone-313);
  color: white;
  font-weight: 600;
  border-color: var(--pantone-313);
}

/* Navigation buttons (First, Previous, Next, Last) */
.pager__item--first a,
.pager__item--previous a,
.pager__item--next a,
.pager__item--last a {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
}

.pager__item--first a:hover,
.pager__item--previous a:hover,
.pager__item--next a:hover,
.pager__item--last a:hover {
  background: var(--pantone-313);
  color: white;
}

/* Ellipsis styling */
.pager__item--ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  color: #6c757d;
  font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pager__item a {
    min-width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  /* Hide some navigation buttons on mobile for space */
  .pager__item--first,
  .pager__item--last {
    display: none;
  }
}

@media (max-width: 576px) {
  .pager__item a {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

/* Focus styles for accessibility */
.pager__item a:focus {
  outline: 2px solid var(--pantone-313);
  outline-offset: 2px;
}

/* Visually hidden elements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

