/* Home page specific styles */
.content-intro {
  margin-bottom: var(--space-8);
  max-width: var(--content-width-lg);
  font-size: 1.125rem;
  line-height: 1.6;
}

.home-section {
  margin-bottom: var(--space-12);
}

.home-section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  position: relative;
  padding-bottom: var(--space-2);
}

.home-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent-light);
  border-radius: 3px;
}

/* Recent posts grid */
.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.recent-post-card {
  background-color: var(--color-background-alt);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.recent-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.recent-post-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.recent-post-title a {
  color: var(--color-accent);
  text-decoration: none;
}

.recent-post-title a:hover {
  color: var(--color-link-hover);
}

.recent-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.section-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.section-coxing { background-color: #3b82f6; }
.section-coaching { background-color: #10b981; }
.section-races { background-color: #ef4444; }
.section-programs { background-color: #8b5cf6; }
.section-journal { background-color: #f59e0b; }

.recent-post-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.recent-post-summary {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.recent-post-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.recent-post-link:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Section navigation buttons */
.section-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.section-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: var(--color-background-alt);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.section-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.section-button-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section-button-count {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.section-button.section-coxing .section-button-title { color: #3b82f6; }
.section-button.section-coaching .section-button-title { color: #10b981; }
.section-button.section-races .section-button-title { color: #ef4444; }
.section-button.section-programs .section-button-title { color: #8b5cf6; }
.section-button.section-journal .section-button-title { color: #f59e0b; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .recent-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .section-buttons {
    grid-template-columns: 1fr;
  }
}