html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #1e293b;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}
body.blog-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.blog-page main {
  flex: 1 0 auto;
}
body.blog-page .footer {
  flex-shrink: 0;
}
.navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 2px 8px #0001;
  padding: 1rem 1rem 1rem 1rem;
  align-items: center;
  margin-bottom: 0;
  border-bottom: none;
}
.navbar-brand {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: inherit !important;
  cursor: default !important;
}
.navbar-brand:visited {
  color: inherit !important;
}
.navbar-brand:hover,
.navbar-brand:active,
.navbar-brand:focus {
  color: inherit !important;
  text-decoration: none !important;
  cursor: default !important;
}
.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navbar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.navbar-menu a.active, .navbar-menu a:hover {
  color: #fbbf24;
  border-bottom: 2px solid #fbbf24;
}
.blog-hero {
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 0 0 1.2rem 0;
  text-align: center;
  width: 100vw;
  max-width: 100vw;
  margin-top: 0;
  border-top: none;
}
.blog-hero-content {
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  padding: 0;
}
.blog-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1e40af;
  margin-bottom: 1rem;
  font-weight: 700;
}
.blog-hero-content p {
  color: #1d4ed8;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.blog-grid {
  padding: 2rem 1rem 3rem 1rem;
  background: #fff;
}
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px #1e293b22, 0 1.5px 4px #1e293b11;
  border: 1px solid #dbeafe;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
  min-height: 220px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover, .blog-card:focus-within {
  box-shadow: 0 16px 48px #1e293b33, 0 4px 16px #1e293b22;
  transform: translateY(-6px) scale(1.025);
  z-index: 2;
}
.blog-img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: #dbeafe;
  margin-bottom: 1rem;
}
.blog-meta {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}
.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1e40af;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}
.blog-excerpt {
  color: #1e293b;
  font-size: 1rem;
  margin: 0;
}
.footer {
  background: #eff6ff;
  color: #1e40af;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  border-top: 1px solid #dbeafe;
  min-height: 70px;
  position: relative;
}
.policy-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.2rem;
  justify-content: end;
  align-items: end;
  position: absolute;
  right: 2.2rem;
  bottom: 1.2rem;
  min-width: 220px;
  max-width: 320px;
  width: fit-content;
  background: none;
}
.policy-link-item {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.policy-link-item:hover {
  color: #15803d;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .policy-links-grid {
    position: static;
    justify-content: center;
    align-items: center;
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-top: 0.7rem;
    gap: 0.2rem 0.7rem;
    grid-template-columns: 1fr 1fr;
  }
  .policy-link-item {
    width: 100%;
    min-width: unset;
    text-align: center;
  }
}
@media (max-width: 900px) {
  .blog-container {
    flex-direction: column;
    align-items: center;
  }
  .blog-card {
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 1rem 0.5rem 0 0.5rem;
  }
  .blog-hero {
    padding: 0 0 0.7rem 0;
  }
  .blog-grid {
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  .blog-card {
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    font-size: 0.95rem;
  }
  .blog-hero-content h1 {
    font-size: 1.3rem;
  }
}
@media (min-width: 900px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .navbar-brand {
    margin-right: auto;
  }
  .navbar-menu {
    margin-left: auto;
  }
} 