/* ==========================================================================
   Skill Library — Blog Hub Styles (Modern Responsive Grid & Featured Post)
   ========================================================================== */

.blog-section {
  padding: 50px 0 100px;
  background-color: var(--bg-darker);
  min-height: 100vh;
}

.blog-container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Breadcrumb */
.blog-header {
  margin-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent-emerald);
}

.breadcrumb .active-crumb {
  color: var(--accent-emerald);
}

.blog-hero-content {
  max-width: 820px;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.blog-main-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-main-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
}

/* ==========================================================================
   FEATURED POST (Top Hero Card)
   ========================================================================== */
.featured-post-section {
  margin-bottom: 56px;
}

.section-label-row {
  margin-bottom: 16px;
}

.section-label-tag {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.featured-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
}

.featured-img-wrap {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.featured-card-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.featured-img-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.featured-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 16px;
}

.card-dot {
  color: var(--text-dark);
}

.card-read-time {
  color: var(--text-muted);
}

.featured-card-title {
  font-family: var(--font-title);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

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

.featured-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-emerald);
  transition: gap 0.2s ease;
}

.featured-card:hover .card-read-more {
  gap: 12px;
}

/* ==========================================================================
   RECENT ARTICLES SECTION & 3-COLUMN GRID
   ========================================================================== */
.recent-articles-section {
  margin-top: 20px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.recent-section-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.articles-count-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-grid-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.blog-grid-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.blog-grid-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -10px rgba(16, 185, 129, 0.18);
}

.grid-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.grid-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.blog-grid-card:hover .grid-card-img {
  transform: scale(1.05);
}

.grid-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.grid-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.grid-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-bottom: 12px;
}

.grid-card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  text-transform: none;
  transition: color 0.2s ease;
}

.blog-grid-card:hover .grid-card-title {
  color: var(--accent-emerald);
}

.grid-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  text-transform: none;
}

.grid-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
}

.grid-read-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.blog-grid-card:hover .grid-read-arrow {
  gap: 8px;
  color: var(--accent-emerald);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img-wrap {
    min-height: 260px;
  }
  .featured-card-content {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .blog-section {
    padding: 30px 0 60px;
  }
  .blog-container {
    padding: 0 16px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .featured-img-wrap {
    min-height: 200px;
  }
  .featured-card-content {
    padding: 20px;
  }
  .featured-card-title {
    font-size: 20px;
  }
  .section-heading-row {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   Related Articles Section (Internal Linking on Single Article Pages)
   ========================================================================== */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-articles h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-articles h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.related-card-img {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-darker);
}

.related-card-body {
  padding: 14px 16px 18px;
}

.related-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  margin-bottom: 6px;
  display: block;
}

.related-card-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Inline article links inside article content */
.article-content .inline-link {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(245, 158, 11, 0.4);
  transition: var(--transition);
  font-weight: 600;
}

.article-content .inline-link:hover {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
