:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  --imperial: #5c7edb;
  --french: #7ba1f2;
  --steel: #a5c5ff;
  --school-bus: #f2c14e;
  --gold: #f5d279;
  --accent: var(--imperial);
  --bg: #f4f7ff;
  --card: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.86);
  --border: rgba(92, 126, 219, 0.25);
  --text: #0f1b3d;
  --muted: rgba(15, 27, 61, 0.65);
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(123, 161, 242, 0.35), transparent 32%), radial-gradient(circle at 80% 0%, rgba(92, 126, 219, 0.3), transparent 32%), linear-gradient(145deg, #f9fbff, #ecf1ff 45%, #e0e9ff);
  color: var(--text);
}

.wrapper {
  margin: 0 auto;
  padding: 1.5rem;
  max-width: 960px;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(92, 126, 219, 0.14);
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(92, 126, 219, 0.55);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--french);
}

.section a:not(.cta) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(92, 126, 219, 0.55);
  font-weight: 600;
}

.section a:not(.cta):hover {
  color: var(--french);
}

.section {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 16px 32px rgba(92, 126, 219, 0.16);
  border: 1px solid var(--border);
}

.section h2 {
  margin-top: 0;
}

.key-skills {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.35rem 1.5rem;
  list-style: disc;
  list-style-position: outside;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
}

.link-more {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.hero-media {
  flex-shrink: 0;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  width: 100%;
}

.blog-grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tag-filter__label {
  font-weight: 600;
}

.tag-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-filter button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(123, 161, 242, 0.15);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tag-filter button[aria-pressed="true"] {
  background: var(--accent);
  color: #f7fbff;
  border-color: rgba(92, 126, 219, 0.55);
  transform: translateY(-1px);
}

.blog-card[hidden],
.blog-card.is-hidden {
  display: none !important;
}

.blog-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 30px rgba(92, 126, 219, 0.18);
  border: 1px solid var(--border);
}

.blog-card__image {
  display: block;
  background: #dfe8ff;
}

.blog-card__image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card__body h3,
.blog-card__body h2 {
  margin: 0;
}

.blog-card__body a {
  text-decoration: none;
  color: inherit;
}

.post-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination__link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.blog-post {
  padding: 3rem;
}

.blog-post__header {
  margin-bottom: 1.5rem;
}

.blog-post__header h1 {
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
}

.post-hero {
  margin: 0 0 2rem;
}

.post-hero img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

.blog-post__content {
  display: grid;
  gap: 1rem;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(92, 126, 219, 0.22);
  border: 4px solid rgba(92, 126, 219, 0.2);
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-media {
    order: -1;
  }

  .blog-card__image img {
    height: 220px;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--imperial), var(--french));
  color: #f7fbff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(92, 126, 219, 0.35);
}

.site-footer {
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  color: var(--muted);
}
