/* Blog index — matches index.html resBlog() layout */

.blog-page {
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e2e6ed;
  --gray-300: #c8cfd8;
  --gray-400: #8d9aab;
  --gray-500: #5f7080;
  --gray-600: #3d5166;
  --gray-900: #111c27;
  --navy: #0f2240;
  --navy-light: #1e4976;
  --silver: #d4dde6;
  --blue: #1a5fff;
  --blue-light: #eaf0ff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  line-height: 1.6;
}

.blog-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-page .section {
  padding: 80px 0;
}

.blog-page .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  margin-bottom: 12px;
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.blog-page .h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--gray-900);
  margin: 0;
}

.blog-page .h2 em {
  color: var(--navy-light);
  font-style: normal;
}

.blog-page .lead {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.75;
  margin: 0;
}

.blog-page .blog-hero {
  background: var(--blue);
  padding: 80px 0;
}

.blog-page .blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.blog-page .blog-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.blog-page .blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.05;
}

.blog-page .blog-hero h1 span {
  color: rgba(255, 255, 255, 0.6);
}

.blog-page .blog-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin: 0 0 22px;
}

.blog-page .blog-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-page .blog-hero-stat-n {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.blog-page .blog-hero-stat-l {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.blog-page .blog-hero-img {
  border-radius: 10px;
  height: 300px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.blog-page .res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}

.blog-page a.rc-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-page .rc {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.18s;
  cursor: pointer;
  height: 100%;
}

.blog-page .rc:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  border-color: var(--gray-300);
}

.blog-page .rc-img {
  height: 160px;
  overflow: hidden;
}

.blog-page .rc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-page .rc:hover .rc-img img {
  transform: scale(1.04);
}

.blog-page .rc-body {
  padding: 16px;
}

.blog-page .rc-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.blog-page .rc h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 5px;
  line-height: 1.35;
}

.blog-page .rc p {
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

.blog-page .rc-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-light);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-page .rc-cta::after {
  content: "→";
}

.blog-page .blog-newsletter {
  background: var(--blue);
  padding: 56px 0;
}

.blog-page .blog-newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.blog-page .blog-newsletter-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 10px;
}

.blog-page .blog-newsletter h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.blog-page .blog-newsletter h2 span {
  color: rgba(255, 255, 255, 0.6);
}

.blog-page .blog-newsletter-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin: 0 0 20px;
}

.blog-page .blog-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
}

.blog-page .blog-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 7px;
  border: none;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.blog-page .blog-newsletter-form button {
  padding: 10px 18px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.blog-page .blog-newsletter-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.blog-page .blog-newsletter-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.blog-page .blog-newsletter-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 16px;
}

.blog-page .blog-newsletter-tile-ic {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.blog-page .blog-newsletter-tile-t {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.blog-page .blog-newsletter-tile-d {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .blog-page .blog-hero-grid,
  .blog-page .blog-newsletter-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 640px) {
  .blog-page .blog-newsletter-tiles {
    grid-template-columns: 1fr;
  }

  .blog-page .blog-newsletter-form {
    flex-direction: column;
    max-width: none;
  }
}
