/* CSS for cross-promotion components */
.cross-promotion-sidebar {
  background-color: #f5f9f5;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border-left: 4px solid #2e7d32;
}

.cross-promotion-sidebar h3 {
  color: #2e7d32;
  margin-top: 0;
  font-size: 1.3rem;
}

.cross-promotion-sidebar h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
}

.cross-promotion-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.cross-promotion-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.cross-promotion-list li:last-child {
  border-bottom: none;
}

.cross-promotion-list a {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.cross-promotion-list a:hover {
  text-decoration: underline;
}

.cross-promotion-description {
  font-size: 0.9rem;
  color: #555;
  margin: 5px 0 0 0;
}

.view-all {
  text-align: right;
  margin-top: 10px;
}

.view-all a {
  color: #2e7d32;
  font-size: 0.9rem;
  text-decoration: none;
}

.view-all a:hover {
  text-decoration: underline;
}

/* Featured content on homepage */
.featured-calculators, .featured-qa {
  margin-bottom: 50px;
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.featured-experts-section {
  margin-bottom: 50px;
}

.view-all-centered {
  text-align: center;
  margin-top: 30px;
}

.view-all-button {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.view-all-button:hover {
  background-color: #1b5e20;
}

/* Related content section */
.related-content {
  background-color: #f5f9f5;
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
}

.related-content h3 {
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.related-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-card h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.related-card h4 a {
  color: #2e7d32;
  text-decoration: none;
}

.related-card p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
}

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