/* ===================================================
   Blog List Page Styles — blog-list.css
   =================================================== */

/* === Hero Section === */
.blog-hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, #0d2137 60%, #193963 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(45, 111, 175, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7cb8f5;
  border: 1px solid rgba(124, 184, 245, 0.35);
  padding: 4px 14px;
  margin-bottom: 22px;
}

.blog-hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #fff;
}

.blog-hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.blog-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.blog-hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.blog-hero-stat strong {
  color: #fff;
  font-weight: 500;
  font-size: 22px;
}

.blog-hero-stat i {
  color: #7cb8f5;
  font-size: 13px;
}

/* === Blog Main Content === */
.blog-main {
  padding: 60px 0 80px;
  background: #f8f9fb;
  min-height: 500px;
}

/* === Featured Card === */
.blog-featured-wrap {
  margin-bottom: 48px;
}

.blog-featured-card {
  display: flex;
  min-height: 380px;
  background: #fff;
  border: 1px solid #e5e8ef;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.blog-featured-card:hover {
  box-shadow: 0 12px 40px rgba(25, 57, 99, 0.12);
  transform: translateY(-2px);
}

.blog-featured-cover {
  flex: 0 0 46%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-featured-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
}

.blog-featured-cover-fallback i {
  font-size: 72px;
  color: rgba(255, 255, 255, 0.35);
}

.blog-featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.blog-featured-body {
  flex: 1;
  padding: 44px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand-blue);
  background: rgba(25, 57, 99, 0.08);
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.blog-featured-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.blog-featured-title a {
  color: inherit;
}

.blog-featured-title a:hover {
  color: var(--brand-blue);
}

.blog-featured-summary {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light-gray);
}

.blog-card-meta i {
  margin-right: 4px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
  transition: gap 0.25s ease;
}

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

/* === Regular Cards Grid === */
.blog-grid-section {
  margin-top: 0;
}

.blog-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e8ef;
}

.blog-grid-header h2 {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
}

.blog-grid-header span {
  font-size: 13px;
  color: var(--text-light-gray);
}

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

.blog-card {
  background: #fff;
  border: 1px solid #e5e8ef;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  box-shadow: 0 8px 28px rgba(25, 57, 99, 0.1);
  transform: translateY(-2px);
}

.blog-card-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.blog-card-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
}

.blog-card-cover-fallback i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.35);
}

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

.blog-card-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--brand-blue);
}

.blog-card-summary {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 18px;
}

.blog-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f2f5;
  padding-top: 14px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--text-light-gray);
}

.blog-card-reading {
  font-size: 12px;
  color: var(--text-light-gray);
}

.blog-card-reading i {
  margin-right: 4px;
}

/* === Filter / Category Bar === */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-gray);
  background: #fff;
  border: 1px solid #dde1ea;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-main);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* === Empty State === */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light-gray);
}

.blog-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #ccc;
}

/* === CTA Banner === */
.blog-cta {
  background: var(--bg-dark);
  padding: 64px 0;
}

.blog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.blog-cta-text .section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7cb8f5;
  margin-bottom: 12px;
}

.blog-cta-text h2 {
  font-size: 28px;
  font-weight: 200;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.blog-cta-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}

.blog-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand-blue);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.btn-cta-primary:hover {
  background: #e8effa;
  color: var(--brand-blue-hover);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.btn-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .blog-featured-card {
    flex-direction: column;
    min-height: auto;
  }

  .blog-featured-cover {
    flex: 0 0 240px;
    height: 240px;
  }

  .blog-featured-body {
    padding: 28px 28px 24px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 52px 0 44px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-cover {
    height: 200px;
  }

  .blog-featured-body {
    padding: 22px 20px 20px;
  }

  .blog-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    justify-content: center;
    width: 100%;
  }

  .blog-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
