/* ==================================================
   KABAYAN HOT NEWS
   File: assets/css/hotnews.css
   ================================================== */

:root {
  --hotnews-primary: #173b67;
  --hotnews-primary-light: #edf3fa;
  --hotnews-accent: #d6a63c;
  --hotnews-text: #172b45;
  --hotnews-text-soft: #536273;
  --hotnews-muted: #667085;
  --hotnews-border: rgba(23, 59, 103, 0.12);
  --hotnews-background: #f7f9fc;
  --hotnews-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--hotnews-text);
  background: var(--hotnews-background);
}

/* ==================================================
   HALAMAN HOT NEWS
   ================================================== */

.hotnews-page {
  min-height: 100vh;
}

.hotnews-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==================================================
   HERO
   ================================================== */

.hotnews-hero {
  padding: 80px 20px 64px;
  text-align: center;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f5f8fc 100%
    );
}

.hotnews-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hotnews-primary);
  background: var(--hotnews-primary-light);
}

.hotnews-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--hotnews-text);
}

.hotnews-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--hotnews-text-soft);
}

/* ==================================================
   DAFTAR ARTIKEL
   ================================================== */

.hotnews-list-section {
  padding: 48px 0 90px;
}

.hotnews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hotnews-card {
  overflow: hidden;
  border: 1px solid var(--hotnews-border);
  border-radius: 22px;
  background: var(--hotnews-white);
  box-shadow: 0 12px 40px rgba(24, 43, 71, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hotnews-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(24, 43, 71, 0.12);
}

.hotnews-card-content {
  display: flex;
  min-height: 100%;
  padding: 28px;
  flex-direction: column;
}

.hotnews-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hotnews-card-category {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hotnews-primary);
  background: var(--hotnews-primary-light);
}

.hotnews-card-date {
  font-size: 0.82rem;
  color: var(--hotnews-muted);
}

.hotnews-card-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.hotnews-card-title a {
  color: var(--hotnews-text);
  text-decoration: none;
}

.hotnews-card-title a:hover {
  color: #245c96;
}

.hotnews-card-excerpt {
  margin: 0 0 24px;
  line-height: 1.75;
  color: var(--hotnews-text-soft);
}

.hotnews-card-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hotnews-border);
  font-size: 0.88rem;
  color: var(--hotnews-muted);
}

.hotnews-card-link {
  font-weight: 700;
  color: var(--hotnews-primary);
  text-decoration: none;
}

.hotnews-card-link:hover {
  text-decoration: underline;
}

/* ==================================================
   HALAMAN DETAIL ARTIKEL
   ================================================== */

.hotnews-detail-page {
  min-height: 100vh;
  padding: 50px 20px 90px;
  background: #ffffff;
}

.hotnews-article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.hotnews-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 0.86rem;
  color: var(--hotnews-muted);
}

.hotnews-breadcrumb a {
  color: var(--hotnews-primary);
  text-decoration: none;
}

.hotnews-breadcrumb a:hover {
  text-decoration: underline;
}

.hotnews-article-header {
  margin-bottom: 42px;
}

.hotnews-article-category {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hotnews-primary);
  background: var(--hotnews-primary-light);
}

.hotnews-article-header h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--hotnews-text);
}

.hotnews-article-excerpt {
  margin: 0 0 22px;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--hotnews-text-soft);
}

.hotnews-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--hotnews-muted);
  font-size: 0.9rem;
}

/* ==================================================
   ISI ARTIKEL
   ================================================== */

.hotnews-article-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2f4053;
}

.hotnews-article-body h2 {
  margin: 48px 0 18px;
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--hotnews-text);
}

.hotnews-article-body h3 {
  margin: 34px 0 14px;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--hotnews-primary);
}

.hotnews-article-body p {
  margin: 0 0 20px;
}

.hotnews-article-body ul,
.hotnews-article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.hotnews-article-body li {
  margin-bottom: 8px;
}

.hotnews-lead {
  margin-bottom: 28px;
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--hotnews-text);
}

/* ==================================================
   TABEL ARTIKEL
   ================================================== */

.hotnews-table-wrapper {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--hotnews-border);
  border-radius: 16px;
  background: #ffffff;
}

.hotnews-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.hotnews-table th,
.hotnews-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(25, 55, 90, 0.1);
  text-align: left;
  vertical-align: middle;
}

.hotnews-table th {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--hotnews-primary);
}

.hotnews-table th:not(:first-child),
.hotnews-table td:not(:first-child) {
  text-align: center;
}

.hotnews-table tbody tr:last-child td {
  border-bottom: 0;
}

.hotnews-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.status-yes,
.status-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-yes {
  color: #12633d;
  background: #e8f7ef;
}

.status-no {
  color: #9c3030;
  background: #fff0f0;
}

/* ==================================================
   PETUNJUK MENU
   ================================================== */

.hotnews-menu-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--hotnews-accent);
  border-radius: 0 14px 14px 0;
  font-weight: 700;
  color: var(--hotnews-primary);
  background: #f8f4e9;
}

/* ==================================================
   CATATAN KABAYAN
   ================================================== */

.hotnews-note {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid rgba(214, 166, 60, 0.35);
  border-radius: 16px;
  color: #28384a;
  background: #fffaf0;
}

.hotnews-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hotnews-primary);
}

.hotnews-note p {
  margin: 0;
}

/* ==================================================
   SUMBER ARTIKEL
   ================================================== */

.hotnews-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--hotnews-border);
  font-size: 0.9rem;
}

.hotnews-source span {
  color: var(--hotnews-muted);
}

.hotnews-source a {
  font-weight: 700;
  color: var(--hotnews-primary);
  text-decoration: none;
}

.hotnews-source a:hover {
  text-decoration: underline;
}

/* ==================================================
   BAGIAN BAWAH ARTIKEL
   ================================================== */

.hotnews-article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hotnews-border);
}

.hotnews-back-link {
  font-weight: 700;
  color: var(--hotnews-primary);
  text-decoration: none;
}

.hotnews-back-link:hover {
  text-decoration: underline;
}

/* ==================================================
   KONDISI KOSONG DAN ERROR
   ================================================== */

.hotnews-not-found,
.hotnews-loading,
.hotnews-empty {
  padding: 70px 24px;
  text-align: center;
}

.hotnews-not-found-code {
  display: block;
  margin-bottom: 10px;
  font-size: 3rem;
  font-weight: 800;
  color: var(--hotnews-accent);
}

/* ==================================================
   TAMPILAN PONSEL
   ================================================== */

@media (max-width: 760px) {
  .hotnews-hero {
    padding: 60px 20px 48px;
  }

  .hotnews-container {
    width: min(100% - 28px, 1120px);
  }

  .hotnews-grid {
    grid-template-columns: 1fr;
  }

  .hotnews-card-content {
    padding: 22px;
  }

  .hotnews-card-meta,
  .hotnews-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotnews-detail-page {
    padding: 32px 18px 70px;
  }

  .hotnews-article-header h1 {
    font-size: 2.15rem;
  }

  .hotnews-lead {
    font-size: 1.05rem;
  }

  .hotnews-table th,
  .hotnews-table td {
    padding: 13px 14px;
  }

  .hotnews-note {
    padding: 18px;
  }
}
