:root {
  --ink: #18243b;
  --muted: #59647a;
  --blue: #3156a7;
  --line: #e3e6ef;
  --paper: #ffffff;
  --bg: #fcfafc;
}

/* GLOBAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e7e5ea;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-brand img {
  display: block;
  width: 270px;
  max-width: 100%;
  max-height: 75px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 18px;
  color: #111111;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.site-main {
  padding: 36px 0 65px;
}

.intro {
  margin-bottom: 42px;
}

.intro h1 {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 500;
  margin: 4px 0 24px;
  color: #111111;
}

.intro p {
  font-size: 19px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: #111111;
}

/* ==========================================
   HIGHLIGHT
   ========================================== */

.highlight {
  border: 1px solid #d6e0ff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(30,55,110,.09);
  margin-bottom: 34px;
  background: #ffffff;
}

.highlight-heading {
  background: linear-gradient(
    100deg,
    #182458,
    #5287e7
  );
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tiles-icon {
  font-size: 32px;
  line-height: 1;
}

/* HIGHLIGHT MARQUEE */

.highlight-marquee {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  padding: 24px 0;
}

.highlight-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: highlight-scroll 40s linear infinite;
  will-change: transform;
}

.highlight-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
  padding-right: 28px;
  white-space: nowrap;
}

.highlight-group a,
.highlight-group > span:not(.highlight-separator) {
  display: inline-block;
  color: #243a65;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.highlight-group a:hover {
  color: #3156a7;
}

.highlight-separator {
  color: #6287e8;
  font-size: 12px;
  flex-shrink: 0;
}

/* ANIMASI KANAN KE KIRI */

@keyframes highlight-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* PAUSE SAAT HOVER / FOKUS */

.highlight-marquee:hover .highlight-track,
.highlight-marquee:focus-within .highlight-track {
  animation-play-state: paused;
}

/* ==========================================
   ARTICLE AND SIDEBAR LAYOUT
   ========================================== */

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.latest {
  min-width: 0;
}

.latest h2 {
  font-size: 29px;
  font-weight: 500;
  margin: 0 0 20px;
  color: #111111;
}

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

/* ==========================================
   ARTICLE CARDS
   ========================================== */

.article-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(26,42,72,.04);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* BANNER 16:9 TANPA TERPOTONG */

.card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
}

.card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    120deg,
    #182b53,
    #4371bb
  );
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 20px;
}

.card-content time {
  font-size: 14px;
  color: #7a7e89;
}

.card-content h3 {
  font-size: 19px;
  line-height: 1.45;
  margin: 8px 0 10px;
  color: #1f3258;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.card-content p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.read-more {
  font-size: 15px;
  color: #3157a5;
  font-weight: 700;
  margin-top: auto;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.archive-panel {
  border: 1px solid #e1e1e6;
  border-radius: 13px;
  background: #ffffff;
  padding: 20px 22px;
}

.archive-panel h2 {
  font-size: 22px;
  font-weight: 500;
  color: #111111;
  margin: 0 0 12px;
}

.archive-rule {
  height: 2px;
  background: #355cae;
  margin-bottom: 15px;
}

.archive-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  border-bottom: 1px solid #e8e8ef;
  padding: 15px 0;
  color: #253d6d;
}

.archive-row small {
  color: #707b90;
}

.archive-button {
  display: block;
  background: #3157a5;
  color: #ffffff !important;
  border-radius: 9px;
  text-align: center;
  padding: 13px 10px;
  font-weight: 700;
  margin-top: 24px;
}

.archive-button:hover {
  background: #244487;
}

.picked-row {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8ef;
  color: #253d6d;
  line-height: 1.6;
}

.all-articles {
  display: inline-block;
  margin-top: 22px;
  color: #3157a5;
  font-weight: 700;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
  border-top: 1px solid #e4e6ed;
  padding: 32px 0;
  background: #ffffff;
  color: #4b5569;
}

.site-footer p {
  margin: 5px 0;
}

/* ==========================================
   SINGLE ARTICLE
   ========================================== */

.article-page {
  max-width: 850px;
  margin: auto;
}

.article-header h1 {
  font-size: 36px;
  line-height: 1.25;
  margin: 8px 0 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.article-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  margin: 24px 0 30px;
}

.article-body {
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.article-body h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 34px 0 12px;
}

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

.article-actions {
  margin-top: 30px;
}

/* ==========================================
   ARCHIVE PAGE
   ========================================== */

.archive-list {
  margin: 30px 0;
}

.archive-list li {
  margin: 10px 0;
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 760px) {

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

  .header-inner {
    min-height: 75px;
  }

  .site-brand img {
    width: 190px;
  }

  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

  .site-main {
    padding-top: 25px;
  }

  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 16px;
  }

  .highlight-heading {
    font-size: 21px;
    padding: 14px 17px;
  }

  .highlight-marquee {
    padding: 20px 0;
  }

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

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-header h1 {
    font-size: 29px;
  }

  .article-body {
    font-size: 16px;
  }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 560px) {

  .header-inner {
    gap: 10px;
  }

  .site-brand img {
    width: 150px;
  }

  .site-nav {
    gap: 10px;
    font-size: 12px;
  }

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

  .intro h1 {
    font-size: 26px;
  }

  .highlight-marquee {
    padding: 18px 0;
  }

  .highlight-group {
    gap: 20px;
    padding-right: 20px;
  }

  .highlight-group a,
  .highlight-group > span:not(.highlight-separator) {
    font-size: 15px;
  }

  .card-content h3 {
    font-size: 18px;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  .highlight-track {
    animation: none;
    width: auto;
  }

  .highlight-group {
    flex-wrap: wrap;
    white-space: normal;
  }

  .highlight-group[aria-hidden="true"] {
    display: none;
  }
}
