:root {
  --blue: #0677fd;
  --blue-dark: #0455c4;
  --blue-light: #e8f1ff;
  --footer-bg: #242422;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --text: #1a1a1a;
  --text-mid: #555555;
  --text-light: #888888;
  --border: #e5e5e5;
  --section-dark: #1d2327;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Montserrat, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--section-dark);
  padding: 10px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.top-bar-contact:hover {
  color: white;
}
.top-bar-contact svg {
  width: 14px;
  height: 14px;
  fill: var(--blue);
  flex-shrink: 0;
}
.top-bar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}
.top-bar-social {
  display: flex;
  gap: 8px;
}
.top-bar-social a {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.top-bar-social a:hover {
  background: var(--blue);
  color: white;
}

/* ── MAIN NAV ── */
.main-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.3px;
}
.nav-logo-text small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.2s;
  letter-spacing: 0.2px;
}
.nav-link:hover {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-cta {
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 200px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-dark);
  box-shadow: rgba(6, 119, 253, 0.35) 0px 6px 20px;
  transform: translateY(-1px);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--section-dark);
  padding: 56px 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(6, 119, 253, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}
.page-hero h1 span {
  color: var(--blue);
}
.page-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.75;
}
.hero-crumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  font-weight: 500;
}
.hero-crumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.hero-crumb a:hover {
  color: rgba(255, 255, 255, 0.75);
}
.hero-crumb span {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 6px;
}

/* ── CONTENT LAYOUT ── */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 50px 80px;
  display: grid;
  gap: 52px;
  align-items: start;
}

.content-wrap {
  grid-template-columns: 1fr;
}

@media screen and (min-width: 800px) {
  .content-wrap {
    grid-template-columns: 1fr 280px;
  }
}
/* ── BLOG GRID ── */
.blog-grid {
  display: grid;
  gap: 30px;
}

.blog-grid {
  grid-template-columns: 1fr;
}

.blog-card.featured {
  grid-template-columns: 1fr !important;
}

@media screen and (min-width: 800px) {
  .blog-grid,
  .blog-card.featured {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── BLOG CARD ── */
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.blog-card:hover {
  border-color: var(--blue);
  box-shadow: rgba(6, 119, 253, 0.12) 0px 8px 32px;
  transform: translateY(-4px);
}
.blog-card:hover::before {
  transform: scaleX(1);
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card-image-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.card-body {
  padding: 24px 26px 20px;
}

.card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.card-excerpt {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-meta {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}
.card-meta strong {
  color: var(--text-mid);
  font-weight: 600;
}
.card-read-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.blog-card:hover .card-read-more {
  gap: 8px;
}

/* Featured card — spans full width */
.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.blog-card.featured .card-image-placeholder {
  height: 100%;
  min-height: 220px;
}
.blog-card.featured .card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card.featured .card-title {
  font-size: 20px;
  margin-bottom: 12px;
}
.blog-card.featured .card-excerpt {
  font-size: 14px;
}

/* ── CATEGORY COLOUR VARIANTS ── */
.cat-gp {
  background: #eef7ff;
  color: #0455c4;
}
.cat-pcn {
  background: #f0f9f0;
  color: #2e7d32;
}
.cat-locum {
  background: #fff8e7;
  color: #e65100;
}
.cat-career {
  background: #f3e5f5;
  color: #7b1fa2;
}
.cat-compliance {
  background: #fbe9e7;
  color: #bf360c;
}
.cat-news {
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* Image backgrounds for placeholder cards */
.img-gp {
  background: linear-gradient(135deg, #1d2327 0%, #0455c4 100%);
}
.img-pcn {
  background: linear-gradient(135deg, #1d2327 0%, #1b5e20 100%);
}
.img-locum {
  background: linear-gradient(135deg, #1d2327 0%, #e65100 80%);
}
.img-career {
  background: linear-gradient(135deg, #1d2327 0%, #6a1b9a 100%);
}
.img-compliance {
  background: linear-gradient(135deg, #1d2327 0%, #b71c1c 100%);
}
.img-news {
  background: linear-gradient(135deg, #0677fd 0%, #1d2327 100%);
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-widget {
  background: var(--white);
  border: 1.5px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
}
.widget-title {
  background: var(--section-dark);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 20px;
}

/* Search widget */
.search-form {
  padding: 18px 20px;
  display: flex;
  gap: 0;
}
.search-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-right: none;
  padding: 9px 14px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  border-radius: 4px 0 0 4px;
}
.search-input:focus {
  border-color: var(--blue);
}
.search-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 9px 16px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s;
}
.search-btn:hover {
  background: var(--blue-dark);
}

/* Categories widget */
.categories-list {
  list-style: none;
}
.categories-list li {
  border-bottom: 1px solid var(--border);
}
.categories-list li:last-child {
  border-bottom: none;
}
.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
}
.categories-list a:hover {
  color: var(--blue);
  background: var(--blue-light);
}
.categories-list .count {
  font-size: 11px;
  font-weight: 700;
  background: var(--off-white);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* Recent posts widget */
.recent-post {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.2s;
  cursor: pointer;
}
.recent-post:last-child {
  border-bottom: none;
}
.recent-post:hover {
  background: var(--off-white);
}
.recent-post-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.recent-post-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 3px;
}
.recent-post-date {
  font-size: 11px;
  color: var(--text-light);
}

/* Newsletter widget */
.newsletter-widget {
  padding: 20px;
}
.newsletter-widget p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 14px;
}
.newsletter-input {
  width: 100%;
  border: 1.5px solid var(--border);
  padding: 9px 14px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  border-radius: 4px;
  margin-bottom: 10px;
  display: block;
}
.newsletter-input:focus {
  border-color: var(--blue);
}
.newsletter-btn {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 11px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.newsletter-btn:hover {
  background: var(--blue-dark);
}

/* Pagination */
.pagination-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}
.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: 0.2s;
}
.page-num:hover,
.page-num.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.page-next {
  padding: 0 18px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: 0.2s;
}
.page-next:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.55);
  padding: 70px 50px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.footer-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.footer-brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  max-width: 570px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: 0.2s;
}
.footer-social a:hover {
  background: var(--blue);
  color: white;
}
.footer-app-badges {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.app-badge {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.app-badge:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  margin-left: 18px;
}
.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}
