/* =========================================================
   ARTICLES (List + Detail) - clean & corporate
   - hanya styling (tanpa ubah logic/backend)
========================================================= */

.articles-page{
  padding:26px 0 46px;
}

/* list */
.articles-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:18px;
}

.article-card{
  background:#fff;
  border:1px solid #e9edf5;
  border-radius:16px;
  box-shadow:0 8px 18px rgba(11,31,59,0.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
  transition:transform .18s ease, box-shadow .18s ease;
}

.article-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 22px rgba(11,31,59,0.10);
}

.article-card__thumb{
  display:block;
  background:#f7f9fc;
  aspect-ratio: 16 / 10;
  overflow:hidden;
}

.article-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.article-card__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.article-card__meta{
  font-size:12px;
  color:#64748b;
}

.article-card__title{
  font-weight:900;
  color:#0B1F3B;
  text-decoration:none;
  font-size:16px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.article-card__title:hover{
  text-decoration:underline;
}

.article-card__excerpt{
  color:#44546a;
  font-size:13px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:60px;
}

.article-card__more{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0B1F3B;
  font-weight:900;
  text-decoration:none;
  padding-top:6px;
}

.article-card__more:hover{
  text-decoration:underline;
}

/* pagination */
.pagination{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.page-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid #e9edf5;
  background:#fff;
  color:#0B1F3B;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 6px 14px rgba(11,31,59,0.06);
}

.page-pill.is-active{
  background:#0B1F3B;
  color:#fff;
  border-color:#0B1F3B;
}

/* detail */
.article-detail{
  padding:26px 0 46px;
}

.article-detail__wrap{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:16px;
  align-items:start;
}

.article-media,
.article-content{
  background:#fff;
  border:1px solid #e9edf5;
  border-radius:18px;
  box-shadow:0 10px 20px rgba(11,31,59,0.06);
}

.article-media{
  overflow:hidden;
}

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

.article-media__empty{
  padding:18px;
  color:#64748b;
  background:#f7f9fc;
}

.article-content{
  padding:16px 16px 18px;
}

.article-content__title{
  margin:0;
  font-weight:900;
  color:#0B1F3B;
  font-size:20px;
  line-height:1.25;
}

.article-content__meta{
  margin-top:8px;
  font-size:12px;
  color:#64748b;
}

.article-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 10px;
}

.article-excerpt{
  margin:0;
  padding:10px 12px;
  border-radius:14px;
  background:#f7f9fc;
  color:#2b3b52;
  line-height:1.75;
}

.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #cfe0ff;
  background:#fff;
  color:#0B1F3B;
  text-decoration:none;
  font-weight:900;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid #0B1F3B;
  background:#0B1F3B;
  color:#fff;
  text-decoration:none;
  font-weight:900;
}

.article-body{
  border-top:1px solid #eef2f8;
  padding-top:12px;
  margin-top:10px;
  color:#1f2a3a;
  line-height:1.9;
  font-size:14px;
}

.article-body p{ margin:0 0 14px; }
.article-body h2{ font-size:18px; margin:18px 0 10px; color:#0B1F3B; }
.article-body h3{ font-size:16px; margin:16px 0 8px; color:#0B1F3B; }
.article-body ul,.article-body ol{ padding-left:18px; margin:0 0 14px; }
.article-body li{ margin:6px 0; }
.article-body blockquote{
  margin:14px 0;
  padding:12px 14px;
  border-left:4px solid #0B1F3B;
  background:#f7f9fc;
  border-radius:12px;
  color:#2b3b52;
}
.article-body img{ max-width:100%; height:auto; border-radius:14px; }

@media (max-width: 1100px){
  .articles-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 920px){
  .article-detail__wrap{ grid-template-columns:1fr; }
  .article-media__img{ aspect-ratio: 16 / 10; }
}

@media (max-width: 520px){
  .articles-grid{ grid-template-columns:1fr; gap:12px; }
  .article-card__body{ padding:12px; }
}
