/* ============================================================
   AIKO ARTICLES (PUBLIK) STYLES
   Adhering to Aiko Brand Guidelines (Pally typography, green/orange)
   ============================================================ */

.page-artikel {
  background: #fbfbf9;
}

.artikel-hero {
  padding: 60px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, #fafae6 0%, rgba(250, 250, 230, 0.2) 100%);
  border-bottom: 1px solid rgba(64, 172, 76, 0.12);
  margin-bottom: 40px;
}

.artikel-hero h1 {
  font-family: var(--font-display, "Pally", sans-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #143e2b;
  margin: 0 0 12px;
  line-height: 1.2;
}

.artikel-hero p {
  color: #52665a;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Category Filter Pills */
.category-filter-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #52665a;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: #40ac4c;
  color: #1f6b28;
  background: #f4faf5;
}

.cat-pill.is-active {
  background: #40ac4c;
  color: #fff;
  border-color: #40ac4c;
  box-shadow: 0 3px 10px rgba(64, 172, 76, 0.3);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 50px;
}

.article-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8ede9;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 43, 29, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 43, 29, 0.09);
  border-color: #c9ded0;
}

.article-card-cover {
  width: 100%;
  height: 200px;
  background: #f1f5f3;
  overflow: hidden;
  position: relative;
}

.article-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-cover img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #71877b;
}

.article-category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-badge--edukasi {
  background: #eaf6ef;
  color: #236b30;
}

.cat-badge--inspirasi {
  background: #fff8e8;
  color: #925f0a;
}

.cat-badge--produk {
  background: #eff6ff;
  color: #1e40af;
}

.cat-badge--aktivitas {
  background: #faf5ff;
  color: #6b21a8;
}

.article-card-title {
  font-family: var(--font-display, "Pally", sans-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  color: #143e2b;
  margin: 0 0 10px;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover {
  color: #40ac4c;
}

.article-card-summary {
  color: #5c7265;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f2;
  font-size: 0.88rem;
  font-weight: 600;
}

.article-read-more {
  color: #40ac4c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-read-more:hover {
  color: #2d8a37;
  text-decoration: underline;
}

/* Pagination */
.articles-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.articles-pagination a,
.articles-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #143e2b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.articles-pagination span.current {
  background: #40ac4c;
  color: #fff;
  border-color: #40ac4c;
}

/* ============================================================
   ARTICLE DETAIL STYLES
   ============================================================ */
.article-detail-wrap {
  max-width: 820px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: #71877b;
}

.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: #40ac4c;
}

.article-breadcrumbs li + li:before {
  content: "›";
  margin-right: 8px;
  color: #a4b5ab;
}

.article-detail-header {
  margin-bottom: 28px;
}

.article-detail-title {
  font-family: var(--font-display, "Pally", sans-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #0f3021;
  line-height: 1.25;
  margin: 14px 0 16px;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #647a6d;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8ede9;
}

.article-featured-image {
  width: 100%;
  max-height: 440px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #eef4f0;
  border: 1px solid #e2ece5;
}

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

.article-body-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #26382f;
  margin-bottom: 48px;
}

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

.article-body-content h2,
.article-body-content h3 {
  font-family: var(--font-display, "Pally", sans-serif);
  color: #103423;
  margin: 36px 0 16px;
  line-height: 1.3;
}

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

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

/* Bottom CTA */
.article-bottom-cta {
  background: linear-gradient(135deg, #184a37 0%, #28684e 100%);
  border-radius: 18px;
  padding: 36px 32px;
  color: #fff;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 8px 24px rgba(24, 74, 55, 0.15);
}

.article-bottom-cta h3 {
  font-family: var(--font-display, "Pally", sans-serif);
  font-size: 1.65rem;
  margin: 0 0 10px;
}

.article-bottom-cta p {
  color: #d6e8df;
  max-width: 580px;
  margin: 0 auto 24px;
  font-size: 1rem;
  line-height: 1.5;
}

.article-bottom-cta .btn {
  background: #f78e33;
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(247, 142, 51, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.article-bottom-cta .btn:hover {
  background: #e07a22;
  transform: translateY(-2px);
}

/* Related articles */
.related-articles-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e8ede9;
}

.related-articles-section h3 {
  font-family: var(--font-display, "Pally", sans-serif);
  font-size: 1.45rem;
  color: #143e2b;
  margin: 0 0 24px;
}

