/* ==========================================================================
   PDIKM News Portal — mobile / shared
   ========================================================================== */

.news-page {
  min-height: 100vh;
  padding: 28px 20px 40px;
  font-family: var(--pdikm-font-body);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.78) 0%, rgba(10, 14, 23, 0.92) 100%),
    url('/assets/img/pdikm/bgpdikm.jpg') center / cover no-repeat;
}

.news-header {
  text-align: center;
  margin-bottom: 22px;
}

.news-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-family: var(--pdikm-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.news-subtitle {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.news-grid {
  display: grid;
  gap: 16px;
}

.news-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.news-section-title {
  margin: 0;
  font-family: var(--pdikm-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffca28;
  letter-spacing: 0.04em;
}

.news-section-count {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-featured {
  margin-bottom: 22px;
}

.news-featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 202, 40, 0.28);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.news-featured-card__image,
.news-featured-card .news-card-image--placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.news-featured-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 20, 0.92) 68%);
}

.news-featured-card__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 202, 40, 0.92);
  color: #3e2723;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-featured-card__title {
  margin: 6px 0 4px;
  font-family: var(--pdikm-font-display);
  font-size: 1.08rem;
  line-height: 1.3;
}

.news-featured-card__meta {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.news-latest {
  margin-bottom: 8px;
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.news-card:active {
  transform: scale(0.99);
  border-color: rgba(255, 202, 40, 0.35);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card-image--placeholder {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(255, 202, 40, 0.15));
  min-height: 160px;
}

.news-card-body {
  padding: 16px;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-card-category {
  color: #ffd54f;
  font-weight: 700;
}

.news-card-title {
  margin: 0 0 8px;
  font-family: var(--pdikm-font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: #fff;
}

.news-card-excerpt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.news-card-stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-empty {
  text-align: center;
  padding: 32px 16px;
  color: rgba(255, 255, 255, 0.6);
}

.news-back-wrap {
  margin-top: 24px;
  text-align: center;
}

.news-back {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.news-article-page {
  padding-bottom: 48px;
}

.news-article-hero img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.news-article-title {
  margin: 0 0 10px;
  font-family: var(--pdikm-font-display);
  font-size: 1.45rem;
  line-height: 1.3;
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.news-article-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.news-article-body img {
  max-width: 100%;
  border-radius: 12px;
}

.news-article-body p {
  margin-bottom: 1em;
}

.news-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.news-photo-gallery__item {
  margin: 0;
}

.news-photo-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.news-engage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.news-like-btn.is-liked {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

.news-comments {
  margin-top: 24px;
}

.news-comments h3 {
  font-family: var(--pdikm-font-display);
  font-size: 1rem;
  margin-bottom: 14px;
  color: #ffd54f;
}

.news-comment-form textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 12, 22, 0.6);
  color: #fff;
  padding: 12px 14px;
  font-family: inherit;
  resize: vertical;
}

.news-comment-form textarea:focus {
  outline: none;
  border-color: rgba(255, 202, 40, 0.45);
}

.news-comment-login {
  padding: 16px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.news-comment-login a {
  color: #93c5fd;
  font-weight: 700;
}

.news-comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.news-comment-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-comment-author {
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.news-comment-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.news-comment-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.news-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.86rem;
}

.news-alert--success {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(102, 187, 106, 0.35);
  color: #a5d6a7;
}

.news-alert--error {
  background: rgba(183, 28, 28, 0.18);
  border: 1px solid rgba(244, 67, 54, 0.35);
  color: #ef9a9a;
}

.news-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Mobile portal layout (wireframe-inspired) */
@media (max-width: 991px) {
  .news-portal-mobile {
    background: #f3f4f6;
    color: #1f2937;
    padding: 20px 16px 36px;
  }

  .news-portal-mobile__head {
    text-align: center;
    margin-bottom: 16px;
  }

  .news-portal-mobile__head h1 {
    margin: 8px 0 6px;
    font-size: 1.25rem;
    color: #111827;
  }

  .news-portal-mobile__head p {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
  }

  .news-portal-mobile__eyebrow {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .news-portal-mobile__hero {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
  }

  .news-portal-mobile__hero-slide {
    display: none;
  }

  .news-portal-mobile__hero-slide.is-active {
    display: block;
  }

  .news-portal-mobile__hero-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
  }

  .news-portal-mobile__hero-card img,
  .news-portal-mobile__placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #d1d5db;
  }

  .news-portal-mobile__hero-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 14px;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
  }

  .news-portal-mobile__chip {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.62rem;
    font-weight: 700;
  }

  .news-portal-mobile__hero-overlay h2 {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.3;
  }

  .news-portal-mobile__hero-overlay p {
    margin: 0;
    font-size: 0.72rem;
    opacity: 0.85;
  }

  .news-portal-mobile__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }

  .news-portal-mobile__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
  }

  .news-portal-mobile__dot.is-active {
    background: #dc2626;
  }

  .news-portal-mobile__quicklinks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .news-portal-mobile__quicklink {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
  }

  .news-portal-mobile__quicklink--dark {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
  }

  .news-portal-mobile__quicklink--accent {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
  }

  .news-portal-mobile__block {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 14px;
  }

  .news-portal-mobile__block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f1f3;
  }

  .news-portal-mobile__block-head h2 {
    margin: 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #111827;
  }

  .news-portal-mobile__block-head span {
    font-size: 0.68rem;
    color: #9ca3af;
  }

  .news-portal-mobile__spotlight {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .news-portal-mobile__spotlight img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 10px;
  }

  .news-portal-mobile__spotlight h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    color: #111827;
  }

  .news-portal-mobile__spotlight p {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.5;
  }

  .news-portal-mobile__list-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
  }

  .news-portal-mobile__list-item:last-child {
    border-bottom: none;
  }

  .news-portal-mobile__thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #e5e7eb;
  }

  .news-portal-mobile__list-item h3 {
    margin: 0 0 4px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #111827;
  }

  .news-portal-mobile__list-item p {
    margin: 0;
    font-size: 0.68rem;
    color: #9ca3af;
  }

  .news-portal-mobile__event {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    text-decoration: none;
    color: inherit;
  }

  .news-portal-mobile__event-date {
    text-align: center;
  }

  .news-portal-mobile__event-date strong {
    display: block;
    font-size: 1.1rem;
    color: #dc2626;
  }

  .news-portal-mobile__event-date span {
    font-size: 0.58rem;
    font-weight: 800;
    color: #9ca3af;
  }

  .news-portal-mobile__event h3 {
    margin: 0 0 2px;
    font-size: 0.78rem;
    color: #111827;
  }

  .news-portal-mobile__event p {
    margin: 0;
    font-size: 0.68rem;
    color: #9ca3af;
  }

  .news-portal-mobile__empty {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
  }

  .news-portal-mobile .news-back {
    color: #dc2626;
  }
}
