/* Blog Index Page - Clean 2-Column Design */

.blog-index-main {
  background: var(--bg-secondary, #12121A);
  min-height: 100vh;
  padding-bottom: 4rem;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.page-badge {
  display: inline-block;
  background: var(--primary, #818CF8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section Title */
.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-title p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Articles Grid - 2 Columns */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-bottom: 4rem;
}

/* Article Card */
.article-card {
  background: var(--bg-card, #16161F);
  border: 1px solid var(--border, #27272A);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-card.coming-soon {
  opacity: 0.6;
}

.article-card.coming-soon:hover {
  transform: none;
}

/* Article Image */
.article-image-link {
  display: block;
  text-decoration: none;
}

.article-image {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-icon {
  font-size: 5rem;
  opacity: 0.25;
}

.article-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-elevated, #1E1E2A);
  color: var(--primary, #818CF8);
  border: 1px solid var(--border, #27272A);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-badge.latest {
  background: var(--primary, #818CF8);
  color: white;
}

.article-badge.coming-soon-badge {
  background: var(--warning, #FBBF24);
  color: white;
}

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

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-category {
  background: var(--bg-tertiary, #1A1A25);
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary, #B4B4BC);
  white-space: nowrap;
}

.article-category.mortgage {
  background: rgba(52, 211, 153, 0.15);
  color: #6EE7B7;
}

.article-category.tax {
  background: rgba(96, 165, 250, 0.15);
  color: #93C5FD;
}

.article-category.property {
  background: rgba(251, 191, 36, 0.15);
  color: #FCD34D;
}

.article-category.savings {
  background: rgba(103, 232, 249, 0.15);
  color: #67E8F9;
}

.article-date {
  font-size: 0.875rem;
  color: var(--text-muted, #9CA3AF);
}

.article-title {
  font-size: 1.375rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-footer {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #27272A);
}

.article-reading-time {
  font-size: 0.875rem;
  color: var(--text-muted, #9CA3AF);
}

.article-popularity {
  font-size: 0.875rem;
  color: var(--error, #F87171);
  font-weight: 600;
}

.article-read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  margin-top: auto;
}

.article-read-more:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

/* Topics Section */
.topics-section {
  margin: 5rem 0;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.topic-card {
  background: var(--bg-card, #16161F);
  border: 1px solid var(--border, #27272A);
  padding: 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.topic-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.topic-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.topic-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.topic-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

/* CTA Section */
.cta-section {
  margin: 5rem 0;
}

.cta-box-large {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 3rem;
  border-radius: 16px;
  text-align: center;
  color: white;
}

.cta-box-large h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-box-large p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-primary-large {
  display: inline-block;
  background: white;
  color: var(--primary, #818CF8);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.125rem;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Tablet */
@media (max-width: 1024px) {
  .blog-container {
    padding: 0 1.5rem;
  }
  
  .articles-grid {
    gap: 2.5rem 2rem;
  }
  
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-container {
    padding: 0 1rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .article-image {
    height: 200px;
  }
  
  .article-title {
    font-size: 1.25rem;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box-large {
    padding: 3rem 2rem;
  }
  
  .cta-box-large h2 {
    font-size: 1.5rem;
  }
}


/* ============================================================
   DARK THEME EXPLICIT OVERRIDES
   ============================================================ */

.article-card {
  color: var(--text-primary, #FFFFFF);
}

.article-content p,
.article-excerpt {
  color: var(--text-secondary, #B4B4BC) !important;
}

.article-title a {
  color: var(--text-primary, #FFFFFF) !important;
}

.article-title a:hover {
  color: var(--primary, #818CF8) !important;
}

.topic-card {
  color: var(--text-primary, #FFFFFF);
}

.topic-info p {
  color: var(--text-secondary, #B4B4BC);
}
