/* ============================================================
   blog.css — Page-specific styles for the Blog listing page
   Shared styles (tokens, base, components, nav, footer) are
   loaded from their respective shared files.
   ============================================================ */

/* ==================== HERO ==================== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 400;
  letter-spacing: -1.44px;
  line-height: 1.05;
  max-width: 929px;
  margin: 0 auto;
}

/* ==================== POPULAR POSTS ==================== */
.popular-section {
  padding: 40px 0 80px;
}

.popular-heading {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
  margin-bottom: 40px;
}

.popular-post {
  display: grid;
  grid-template-columns: 120px 325px 1fr;
  gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--navy-light);
  transition: opacity var(--transition-medium);
}

.popular-post:first-child {
  padding-top: 0;
}

.popular-post:hover {
  opacity: 0.85;
}

.popular-date {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -1.44px;
  padding-top: 4px;
  flex-shrink: 0;
}

.popular-image {
  width: 325px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

.popular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-text h3 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -1.44px;
  line-height: 1.1;
}

.popular-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ==================== LATEST GRID ==================== */
.latest-section {
  background: var(--bg-alt);
  padding: 60px 0 80px;
  position: relative;
}

.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.latest-heading {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
}

.see-more {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: underline;
  color: var(--text-dark);
}

.see-more:hover {
  opacity: 0.7;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

/* Vertical center divider */
.latest-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--navy-light);
  transform: translateX(-50%);
}

.blog-card {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--navy-light);
  transition: opacity var(--transition-medium);
}

.blog-card:hover {
  opacity: 0.85;
}

/* Left column cards get right padding, right column cards get left padding */
.latest-grid .blog-card:nth-child(odd) {
  padding-right: 30px;
}

.latest-grid .blog-card:nth-child(even) {
  padding-left: 30px;
}

.blog-card-image {
  width: 325px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

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

.blog-card-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-text h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
  line-height: 1.15;
}

.blog-card-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.blog-card-date {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

/* ==================== PAGINATION ==================== */
.pagination {
  padding: 40px 0 60px;
}

.pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== FOOTER CTA BAND ==================== */
.footer-cta {
  background: #303030;
  padding: 50px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-cta-text h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.64px;
  color: #ededed;
}

.footer-cta-text p {
  font-size: 15px;
  color: #e8e8e8;
  margin-top: 9px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .popular-post {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .popular-image {
    width: 100%;
    max-width: 400px;
  }

  .popular-date {
    font-size: 16px;
  }

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

  .latest-grid::before {
    display: none;
  }

  .latest-grid .blog-card:nth-child(odd),
  .latest-grid .blog-card:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

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

  .blog-card-image {
    width: 100%;
    max-width: 400px;
  }

  .footer-cta-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .popular-text h3 {
    font-size: 28px;
  }
}
