/*
 * Blog overrides for NetGrade — preserves the site’s dark theme while giving
 * the blog a distinct yet consistent look. This stylesheet is layered after
 * the main site’s base.css and therefore only contains overrides and new
 * component styles needed for the blog page. Variables defined here mirror
 * those found in the base styles so that colors, fonts and spacing remain
 * cohesive. Only blog‑specific classes are declared to avoid polluting
 * global scope. Refer to the HTML file for structure. The accent color,
 * border radius and shadow values are drawn from the original site’s
 * design tokens【139038331940863†L0-L1】.
 */

:root {
  /* Palette derived from the NetGrade landing page: dark backgrounds and
   * vibrant turquoise accent. These variables correspond to background,
   * panel surfaces, primary foreground, muted text and accent color.
   */
  --ng-bg: #0a0b0c;
  --ng-panel: #111315;
  --ng-fg: #e8e8e8;
  --ng-muted: #9aa4ad;
  --ng-accent: #0affb7;
  --ng-radius: 20px;
  --ng-font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --ng-base-size: 16px;
}

html, body {
  background: var(--ng-bg);
  color: var(--ng-fg);
  font-family: var(--ng-font-family);
  font-size: var(--ng-base-size);
  line-height: 1.6;
  margin: 0;
}

a {
  color: var(--ng-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover, a:focus {
  opacity: 0.9;
}

/* Header: contains only the logo linking back home. It mirrors the
 * horizontal padding and alignment of the main site’s header but removes
 * any navigation list. When the logo image fails to load, a text label
 * appears instead. The background and border echo card styling.
 */
.blog-header {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.blog-header .logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.1s ease;
}
.blog-header .logo-link:active {
  transform: translateY(1px);
}
.blog-header .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: invert(1) brightness(1.3) contrast(1.05) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.blog-header .logo-text {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--ng-fg);
}

/* Hero section: introduces the blog. The card styling matches the site’s
 * panels with subtle border and shadow. Spacing is generous to create
 * breathing room between sections【139038331940863†L0-L1】. */
.blog-hero {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.blog-hero .hero-card {
  background: var(--ng-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ng-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 26px 24px;
}
.blog-hero h1 {
  font-size: clamp(28px, 4.6vw, 40px);
  margin: 0.2em 0 0.2em;
}
.blog-hero .lede {
  color: var(--ng-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Grid of post cards. Using CSS Grid with auto-fit ensures responsive
 * behaviour from mobile up to large displays. Each card lifts slightly on
 * hover for interactivity without requiring JavaScript. */
.post-grid {
  max-width: 1080px;
  margin: 18px auto 36px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.post-card {
  background: var(--ng-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.post-card .eyebrow {
  color: var(--ng-muted);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.post-card h2 {
  font-size: 1.25rem;
  margin: 0;
}
.post-card p {
  margin: 0;
  color: #d6d6d6;
  font-size: 0.9rem;
}
.post-card .tag {
  font-size: 0.75rem;
  border: 1px solid rgba(10, 255, 183, 0.45);
  color: var(--ng-accent);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Footer: small, centered and muted. Includes a secondary back‑to‑home
 * link for convenience. */
.blog-footer {
  max-width: 1080px;
  margin: 10px auto 40px;
  padding: 0 20px;
  color: var(--ng-muted);
  font-size: 0.875rem;
  text-align: center;
}
.blog-footer a {
  color: var(--ng-accent);
}
