/* ===============================
   ARTICLE LISTING PAGE
================================ */
/* ================================
   ARTICLES LIST – HEADER
================================ */

.articles-header {
  padding: 60px 0 30px;
}

.articles-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
}

.articles-subtitle {
  font-size: 18px;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.articles-grid-section {
  padding-bottom: 60px;
}

.article-card-v2 {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* IMAGE */
.article-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* BODY */
.article-card-body {
  padding: 22px;
  flex: 1;
}

/* META */
.article-card-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 14px;
}

.article-card-meta i {
  margin-right: 4px;
  color: #0f66d7;
}

/* TITLE – 2 lines */
.article-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 50px;
}

/* EXCERPT – 3 lines maximum */
.article-card-excerpt {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  margin-bottom: 20px;
}

/* BUTTON */
.article-card-btn {
  background: #0f66d7;
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.article-card-btn:hover {
  background: #000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .articles-title {
    font-size: 32px;
  }
  .article-card-image img {
    height: 180px;
  }
}

/* ================================
   ARTICLE DETAIL PAGE
================================ */
.article-detail {
  margin-bottom: 40px;
}
.article-detail-hero img {
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.article-detail-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

/* MAIN CONTENT */
.article-detail-content {
  width: 70%;
}

.article-detail-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.25;
}

.article-detail-meta {
  display: flex;
  gap: 20px;
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 30px;
}

.article-detail-meta i {
  margin-right: 6px;
}
.article-detail-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.25;
}
.article-detail-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}
.article-detail-content a {
  color: #0f66d7;
  transition: 0.3s all ease-in-out;
}
.article-detail-content a:hover {
  text-decoration: underline;
}
/* IMAGE */
/* .article-detail-image {
  text-align: center;
} */
.article-detail-content img {
  border-radius: 14px;
  margin: 25px 0;
  width: 100%;
}

/* VIDEO */
.article-detail-content iframe {
  width: 100%;
  height: 420px;
  margin: 30px 0;
  border-radius: 14px;
  border: none;
}

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

.article-detail-sidebar {
  width: 30%;
  position: sticky;
  top: 30px;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CARD STYLE */
.sidebar-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f5;
  transition: 0.25s ease;
}

.sidebar-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* TITLE BAR */
.sidebar-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f3f7;
}

.sidebar-card-title i {
  color: #0f66d7;
  font-size: 20px;
}

/* CATEGORY LINKS */
.sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories-list li {
  margin-bottom: 5px;
}

.sidebar-categories-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-size: 15px;
  padding: 6px 0;
  border-radius: 10px;
  transition: 0.2s;
}

.sidebar-categories-list a i {
  color: #0f66d7;
  font-size: 14px;
}

.sidebar-categories-list a:hover {
  color: #0f66d7;
  padding-left: 6px;
}

/* ===============================
   SIDEBAR – LATEST ARTICLES (UPDATED)
================================ */

.sidebar-latest-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  margin-bottom: 0;
  border-radius: 12px;
  transition: 0.2s ease;
  cursor: pointer;
  align-items: center;
}

.sidebar-latest-item:hover {
  background: #f7faff;
  padding-left: 8px;
}

/* Thumbnail container */
.latest-thumb {
  width: 94px;
  height: 49px;
  /* background: #f2f4f7; */
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Thumbnail image */
.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ensure no cropping */
}

/* Info block */
.latest-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title – always 2 lines */
.latest-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* force 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 215px; /* layout fit */
  text-align: left;
}

/* Date */
.latest-date {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.latest-date i {
  margin-right: 4px;
  color: #0f66d7;
}

/* RESPONSIVE */
@media screen and (max-width: 1400px) {
  .article-detail-sidebar {
    position: static;
  }
}
@media (max-width: 992px) {
  .article-detail-wrapper {
    flex-direction: column;
    margin-top: 0;
  }
  .article-detail-content,
  .article-detail-sidebar {
    width: 100%;
  }
  .article-detail-title {
    font-size: 26px;
  }
  .article-detail-content p {
    font-size: 14px;
  }
  .article-detail-content h2 {
    font-size: 18px;
  }
}
