/* ===== BLOG ARCHIVE ===== */

/* Remove default padding from site-main */
body.blog .site-main,
body.archive .site-main {
  padding: 0 !important;
  max-width: none !important;
}

/* ===== HERO SECTION ===== */
.blog-hero {
  background: var(--gb-navy);
  color: var(--gb-white);
  padding: 4rem 2rem;
  text-align: center;
}

.blog-hero-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--gb-white);
}

/* ===== ARTICLES SECTION ===== */
.blog-articles {
  background: var(--gb-white);
  padding: 3rem 2rem 4rem;
}

.blog-articles-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--gb-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Article Image */
.article-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e0e0e0;
}

.article-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
}

/* Article Content */
.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.article-content h2 a {
  color: var(--gb-navy);
  text-decoration: none;
}

.article-content h2 a:hover {
  color: var(--gb-gold);
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.article-meta time {
  color: #666;
}

.article-meta .meta-separator {
  color: #999;
}

.article-meta .article-category a {
  color: var(--gb-gold);
  font-weight: 500;
  text-decoration: none;
}

.article-meta .article-category a:hover {
  text-decoration: underline;
}

/* Article Excerpt */
.article-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gb-text);
  margin-bottom: 1rem;
  flex: 1;
}

/* Read More Link */
.article-content .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gb-navy);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.article-content .read-more:hover {
  color: var(--gb-gold);
}

/* ===== INFINITE SCROLL LOADER ===== */
.articles-loader {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.articles-loader p {
  color: #888;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--gb-navy);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.articles-end {
  text-align: center;
  width: 100%;
  padding: 2rem 1rem 0;
  clear: both;
}

.articles-end p {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== NO POSTS MESSAGE ===== */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts h2 {
  font-size: 1.5rem;
  color: var(--gb-navy);
  margin-bottom: 1rem;
}

.no-posts p {
  color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 1.5rem;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
  }

  .blog-articles {
    padding: 2rem 1.5rem 3rem;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .article-content {
    padding: 1.25rem;
  }

  .article-content h2 {
    font-size: 1rem;
  }

  .article-excerpt {
    font-size: 0.85rem;
  }
}

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

}
