/**
 * Rathbones Insights Page Styles
 * Custom styles for the Insights page with Rathbones branding      
 */

/* Main Layout */
.insights-page-wrapper {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.insights-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.insights-main-content {
  width: 100%;
}

/* Page Title and Intro */
.insights-title {
  color: #404a9a;
  margin-bottom: 30px;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Noto Sans KR", sans-serif;
}

.insights-intro {
  margin-bottom: 50px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Posts Container */
.insights-posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Individual Post Styling */
.insights-post {
  background-color: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid #404a9a;
  margin-bottom: 20px;
}

.insights-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.insights-post-image {
  overflow: hidden;
  height: 220px;
}

.insights-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insights-post:hover .insights-post-image img {
  transform: scale(1.05);
}

.insights-post-content {
  padding: 30px;
}

.insights-post-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
  line-height: 1.3;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 500;
}

.insights-post-title a {
  color: #404a9a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.insights-post-title a:hover {
  color: #8690e1;
}

.insights-post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
  font-family: "Noto Sans KR", sans-serif;
}

.insights-post-date,
.insights-post-reading-time {
  display: flex;
  align-items: center;
}

/* Replace the Font Awesome icon approach with Unicode characters */
.insights-post-date::before {
  content: "📅"; /* Calendar emoji */
  margin-right: 8px;
  display: inline-block;
}

.insights-post-reading-time::before {
  content: "⏱️"; /* Clock emoji */
  margin-right: 8px;
  display: inline-block;
}

.insights-post-link::before {
  content: "→"; /* Arrow right */
  margin-right: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* Important for solid icons */

}

.insights-post-excerpt {
  margin-bottom: 25px;
  color: #444;
  line-height: 1.6;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
}

.insights-post-link {
  display: inline-flex;
  align-items: center;
  color: #404a9a;
  font-weight: 500;
  text-decoration: none;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.insights-post-link:hover {
  color: #8690e1;
}

.insights-post-link:hover::before {
  transform: translateX(3px);
}

/* Pagination */
.insights-pagination {
  margin-top: 50px;
  text-align: center;
}

.insights-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 3px;
  background-color: #fff;
  color: #404a9a;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 400;
  font-family: "Noto Sans KR", sans-serif;
}

.insights-pagination .page-numbers.current {
  background-color: #404a9a;
  color: #fff;
  font-weight: 600;
}

.insights-pagination .page-numbers:hover {
  background-color: #f0f0f0;
}

/* No Posts Found */
.no-posts-found {
  text-align: center;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .insights-posts-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .insights-page-wrapper {
    padding: 40px 0;
  }

  .insights-title {
    font-size: 2rem;
  }

  .insights-posts-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Sidebar Styling */
.insights-sidebar {
  background-color: #fff;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.insights-widget {
  margin-bottom: 30px;
}

.insights-widget:last-child {
  margin-bottom: 0;
}

.insights-widget-title {
  color: #404a9a;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 500;
  font-family: "Noto Sans KR", sans-serif;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}
