/* ========================================
   Blog Index Page
   ======================================== */

/* Hero */
.blog-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--ice);
}

.blog-hero h1 {
  margin-bottom: 16px;
  font-family: var(--font-h);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--graphite);
}

.blog-hero .text-brand {
  color: var(--brand);
}

.blog-hero__desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #606060;
}

/* Tabs */
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.blog-tab {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  cursor: pointer;
  background: var(--ice);
  border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}

.blog-tab:hover {
  background: var(--ice-alt);
}

.blog-tab.active {
  color: var(--white);
  background: var(--brand);
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Card */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}

.blog-card:hover,
.blog-card.reveal-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.blog-card.hidden {
  display: none;
}

.blog-card__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.blog-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.5px;
  background: rgba(255, 125, 85, .1);
  border-radius: 6px;
}

.blog-card__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--graphite);
}

.blog-card__excerpt {
  flex: 1;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #606060;
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: color .2s;
}

.blog-card__link:hover {
  color: var(--brand-hover);
}

/* Responsive */
@media (max-width: 768px){
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
