/* ==========================================================================
   BLOGS PAGE MAIN STYLES
   ========================================================================== */

.blogs-page {
  min-height: calc(100vh - 70px);
  padding: 30px 0 80px;
  background: radial-gradient(circle at 50% 0%, #edf6fd 0%, #f8fafc 45%);
}

.blogs-page .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #2073bd;
}

/* Page Header */
.blogs-heading {
  max-width: 1280px;
  margin: 28px 0 36px;
}

.blogs-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.blogs-heading h1 {
  margin-top: 14px;
  font-size: 62px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.blogs-heading h1 .highlight {
  color: #2073bd;
}

.blogs-heading p {
  margin-top: 10px;
  font-size: 18px;
  color: #475569;
  line-height: 1.55;
}

/* Featured Article Banner */
.featured-article {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.featured-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.featured-article > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
}

.tag-featured {
  background: #2073bd;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.article-meta {
  color: #64748b;
  font-size: 11px;
}

.featured-article h2 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.featured-article .featured-copy > p {
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

.btn-read-article {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 20px;
  background: #2073bd;
  color: #ffffff;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   LATEST PERSPECTIVES & GUIDES (3-COLUMN GRID FIX)
   ========================================================================== */

.latest-articles {
  margin-top: 50px;
}

.latest-heading h2 {
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
}

.latest-heading p {
  margin-top: 4px;
  font-size: 14px;
  color: #64748b;
}

/* Fixed 3-column grid layout */
.article-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin-top: 24px !important;
  overflow: visible !important;
  padding: 0 !important;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Image container with strict height */
.card-thumb {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pill tags positioned top-left over image */
.card-thumb .article-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  color: #2073bd;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* Card content body */
/* ==========================================================================
   UPDATED CARD CONTENT BODY (TRUNCATION & SPACING FIX)
   ========================================================================== */

/* Card content body */
.article-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta info row with clock icon */
.article-card .article-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 2-Line Truncation with Ellipsis for Title */
.article-card h3 {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2-Line Truncation with Ellipsis for Summary */
.card-excerpt {
  margin-top: 8px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read More Link */
.article-card .article-link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 14px;
  color: #2073bd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.article-card .article-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments for tablet and mobile */
@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .featured-article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr !important;
  }
  
  .card-thumb {
    height: 160px;
  }
}