/* PPID BERITA PAGE SPECIFIC STYLES */
.ppid-page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 120px 20px 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.ppid-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background-pattern.png') repeat;
  opacity: 0.05;
}

.ppid-page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ppid-page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.ppid-page-content {
  padding: 60px 0;
  background-color: #f5f8fb;
  min-height: 60vh;
}

.blue-container {
  background-color: var(--primary-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.blue-container::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

.news-content {
  color: white;
  position: relative;
  z-index: 2;
  text-align: center;
}

.news-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.news-content > p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.category-filter {
  margin-bottom: 30px;
  text-align: left;
}

.category-filter h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.news-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
  height: 180px;
  background-color: #e8f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-details h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-color);
  line-height: 1.3;
  min-height: 44px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  background-color: #f5f8fb;
  padding: 4px 8px;
  border-radius: 4px;
}

.news-meta i {
  margin-right: 6px;
  color: var(--primary-color);
  font-size: 12px;
}

.news-details p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 15px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.read-more i {
  margin-left: 6px;
  transition: transform 0.3s ease;
  font-size: 12px;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover i {
  transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-link:hover,
.page-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.page-link.prev,
.page-link.next {
    min-width: 120px;
}

.page-link.next i {
    margin-left: 8px;
}

.page-link.prev i {
    margin-right: 8px;
}

.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.no-news p {
  font-size: 18px;
  color: white;
}

/* RESPONSIVE STYLES */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ppid-page-hero {
    padding: 100px 20px 60px;
  }
  
  .ppid-page-hero h1 {
    font-size: 2rem;
  }
  
  .ppid-page-hero p {
    font-size: 1rem;
  }
  
  .blue-container {
    padding: 30px 20px;
  }
  
  .news-content h2 {
    font-size: 24px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .news-image {
    height: 160px;
  }
  
  .news-details h3 {
    font-size: 17px;
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .ppid-page-hero h1 {
    font-size: 1.8rem;
  }
  
  .blue-container {
    padding: 25px 15px;
    border-radius: 12px;
  }
  
  .news-content h2 {
    font-size: 22px;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  
  .news-details {
    padding: 15px;
  }
  
  .news-details h3 {
    font-size: 16px;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .news-details p {
    font-size: 13px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .page-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-link {
        width: 100%;
        max-width: 200px;
    }
    
    .page-link.prev,
    .page-link.next {
        min-width: 100%;
    }
}

.news-card {
  position: relative !important;
  z-index: 10 !important;
  background: #fff !important;
  color: #000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
.news-card * {
  color: #000 !important;
}
