/* ==========================================
   All News Page Styles
   ========================================== */

/* Hero Banner */
.allnews-hero {
  background: linear-gradient(to right, #014a9f, #83a6cf);
  padding: 60px 100px 50px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.allnews-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 380px;
  background-image: url('../img/batik-bg.png');
  background-size: cover;
  background-position: left center;
  opacity: 0.55;
  pointer-events: none;
}

.allnews-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.allnews-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 18px;
}

.allnews-hero .breadcrumb a:hover {
  color: white;
}

.allnews-hero .breadcrumb .breadcrumb-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.allnews-hero .breadcrumb .current {
  color: white;
  font-size: 18px;
}

.allnews-hero__title {
  font-size: 48px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.allnews-hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  line-height: 1.6;
}

.allnews-hero--compact {
  padding: 40px 100px;
  min-height: 0;
}

.allnews-hero--compact .breadcrumb {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .allnews-hero--compact {
    padding: 32px 40px;
  }
}

@media (max-width: 700px) {
  .allnews-hero--compact {
    padding: 24px 20px;
  }
}

/* ==========================================
   ARTICLE DETAIL
   ========================================== */

.article-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 40px;
}

.article-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color, #014a9f);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

.article-detail__badge i {
  font-size: 16px;
}

.article-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 40px;
}

.article-detail__head {
  display: flex;
  flex-direction: column;
}

.article-detail__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color, #014a9f);
  margin: 0 0 24px;
}

.article-detail__divider {
  display: block;
  width: 260px;
  max-width: 100%;
  height: 2px;
  background-color: #799ABF;
  margin-bottom: 24px;
}

.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--primary-color, #014a9f);
  margin-bottom: 24px;
}

.article-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-detail__meta i {
  color: var(--primary-color, #014a9f);
  font-size: 15px;
}

.article-detail__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary-color, #014a9f);
  margin: 0;
}

.article-detail__media {
  border-radius: 20px;
  overflow: hidden;
  background: #eef3fb;
}

.article-detail__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.article-detail__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary-color, #014a9f);
}

.article-detail__body p {
  margin-bottom: 1.25rem;
}

.article-detail__body h2,
.article-detail__body h3,
.article-detail__body h4 {
  color: var(--primary-color, #014a9f);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-detail__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.article-detail__body a {
  color: var(--primary-color, #014a9f);
  text-decoration: underline;
}

.article-detail__body ul,
.article-detail__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-detail__body li {
  margin-bottom: 0.5rem;
}

.article-detail__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.article-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: var(--primary-color, #014a9f);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.article-detail__back:hover {
  background: var(--primary-color, #014a9f);
  color: #fff;
  border-color: var(--primary-color, #014a9f);
}

.article-detail__share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.article-detail__share a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: var(--primary-color, #014a9f);
  text-decoration: none;
  transition: all 0.2s;
}

.article-detail__share a:hover {
  background: var(--primary-color, #014a9f);
  color: #fff;
  border-color: var(--primary-color, #014a9f);
}

/* ==========================================
   RELATED ARTICLES
   ========================================== */

.article-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.article-related__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color, #014a9f);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.article-related .news-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.article-related .news-title {
  color: var(--primary-color, #014a9f);
  font-size: 1.1rem;
  margin: 0 0 0.8rem;
  line-height: 1.4;
}

.article-related .news-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .article-detail {
    padding: 40px 24px 32px;
  }

  .article-detail__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-detail__title {
    font-size: 28px;
  }

  .article-related {
    padding: 32px 24px 60px;
  }
}

@media (max-width: 640px) {
  .article-detail__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Header */
.allnews-header {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.allnews-header__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.allnews-header__subtitle {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ==========================================
   SEARCH + FILTER ROW (FIXED)
   ========================================== */

.allnews-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 20px auto 0;
  width: 100%;
}

/* FIX: remove old centering behavior */
.allnews-search-row .allnews-search {
  flex: 1;
  max-width: none;
  margin: 0;
}

/* Search */
.allnews-search {
  position: relative;
}

.allnews-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 18px;
}

.allnews-search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 50px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s;
}

.allnews-search input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(1, 74, 159, 0.08);
}

/* Select wrapper */
.allnews-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icons */
.allnews-select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

.allnews-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

/* Select */
.allnews-select {
  appearance: none;
  -webkit-appearance: none;
  height: 52px;
  padding: 0 40px 0 40px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.2s;
}

.allnews-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* OPTIONAL: make them feel like one component */
.allnews-search input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.allnews-select {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

/* ==========================================
   GRID
   ========================================== */

.allnews-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* ==========================================
   PAGINATION
   ========================================== */

.allnews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.allnews-pagination .page-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.allnews-pagination .page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.allnews-pagination .page-btn.active {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.allnews-pagination .page-btn:disabled {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}

.allnews-pagination .page-ellipsis {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

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

@media (max-width: 1100px) {
  .allnews-hero {
    padding: 50px 40px 40px;
  }

  .allnews-section {
    padding: 0 40px 60px;
  }
}

@media (max-width: 700px) {
  .allnews-hero {
    padding: 40px 20px 30px;
  }

  .allnews-hero__title {
    font-size: 32px;
  }

  .allnews-header__title {
    font-size: 28px;
  }

  .allnews-header {
    padding: 40px 20px 30px;
  }

  .allnews-section {
    padding: 0 20px 50px;
  }
}

/* MOBILE FIX: stack search + filter */
@media (max-width: 640px) {
  .allnews-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .allnews-search input {
    border-radius: 12px;
  }

  .allnews-select {
    width: 100%;
    border-radius: 12px;
    border-left: 1px solid #ddd;
  }
}