@charset "UTF-8";
/*
 * Article module styles (listing + single article page).
 * Built on top of Bootstrap utility/grid classes so the markup stays
 * portable across projects — this file only adds what Bootstrap doesn't
 * already provide (cards, hero, badges, clamped excerpts, hover motion).
 */
:root {
  --article-accent: #EA910B;
  --article-accent-rgb: 234, 145, 11;
  --article-ink: #222831;
  --article-muted: #8f8f8f;
  --article-border: #edeef0;
  --article-radius-lg: 16px;
  --article-radius-md: 10px;
  --article-shadow: 0 2px 20px rgba(0, 0, 0, .07);
  --article-shadow-hover: 0 14px 30px rgba(0, 0, 0, .12);
}

/* ---------- shared surface (also patches the legacy .box / .post-page
   containers used on the single article page, which ship with no styling) --------- */
.box,
.post-page {
  background: #fff;
  border-radius: var(--article-radius-lg);
  box-shadow: var(--article-shadow);
  padding: 24px;
}

.post-page > img.img-fluid:first-child {
  display: block;
  margin: -24px -24px 20px;
  width: calc(100% + 48px);
  max-width: calc(100% + 48px);
  max-height: 420px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--article-radius-lg) var(--article-radius-lg) 0 0;
}

@media (max-width: 576px) {
  .box,
.post-page {
    padding: 16px;
  }
  .post-page > img.img-fluid:first-child {
    margin: -16px -16px 16px;
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
  }
}
/* ---------- page heading ---------- */
.article-page-header {
  background: linear-gradient(135deg, rgba(var(--article-accent-rgb), 0.08), rgba(var(--article-accent-rgb), 0.02));
  border-radius: var(--article-radius-lg);
  padding: 40px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.article-page-header h1 {
  font-weight: 800;
  color: var(--article-ink);
}

/* ---------- featured / hero article ---------- */
.article-hero {
  background: #fff;
  border-radius: var(--article-radius-lg);
  box-shadow: var(--article-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.article-hero:hover {
  box-shadow: var(--article-shadow-hover);
}

.article-hero .article-hero-img {
  height: 320px;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  .article-hero .article-hero-img {
    height: 200px;
  }
}
/* ---------- listing grid card ---------- */
.article-card {
  background: #fff;
  border-radius: var(--article-radius-lg);
  box-shadow: var(--article-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--article-shadow-hover);
}

.article-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.article-card-img-wrap img {
  height: 190px;
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card-img-wrap img {
  transform: scale(1.05);
}

.article-card-title {
  color: var(--article-ink);
  font-weight: 700;
  text-decoration: none;
}

.article-card-title:hover {
  color: var(--article-accent);
}

.article-card-excerpt {
  color: var(--article-muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* category / accent badge, reused for both hero and grid cards */
.article-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--article-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  z-index: 1;
}

.article-badge:hover {
  color: #fff;
  opacity: 0.9;
}

/* meta row: date / views / read time */
.article-meta {
  color: var(--article-muted);
  font-size: 13px;
}

.article-meta > * + * {
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--article-border);
}

.article-meta i {
  color: var(--article-accent);
  margin-left: 4px;
}

/* ---------- sidebar ---------- */
.article-sidebar .card-header {
  font-weight: 700;
  background: #fff;
}

.article-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid var(--article-border);
  padding: 0.6rem 0.25rem;
}

.article-sidebar .list-group-item:last-child {
  border-bottom: none;
}

.article-sidebar .list-group-item a {
  color: var(--article-ink);
  text-decoration: none;
}

.article-sidebar .list-group-item a:hover {
  color: var(--article-accent);
}

.article-tag {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 4px 8px 0;
  border-radius: 20px;
  background: rgba(var(--article-accent-rgb), 0.1);
  color: var(--article-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.article-tag:hover {
  background: var(--article-accent);
  color: #fff;
}
