﻿:root {
  --page-bg: #e9ecf7;
  --ink: #1c1e2b;
  --muted: #3d4152;
  --border: #4ac3f7;
  --link: #1c1e2b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family:"Inter", sans-serif;
  background: var(--page-bg);
}

.hub-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.hub-title {
  text-align: center;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 32px;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.hub-card-body {
  padding: 22px 22px 18px;
}

.hub-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.hub-card-body p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.hub-read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Underline that swipes in on hover */

.hub-read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.hub-read-more:hover {
  color: #1e72d1;
}

.hub-read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
  .hub-read-more::after {
    transition: none;
  }
}

.hub-card-media {
  flex: 1;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 900px) {
  .hub-cards { grid-template-columns: 1fr; }
  .hub-card-media { min-height: 220px; }
}