:root {
  --dark-blue: #222F5B;
  --text-on-dark: #F6F6F6;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.5rem 1rem;
  column-gap: 2rem;
}
.blog-hero {
  position: absolute;
  top: 81px;
  left: 0;
  width: 100%;
  height: 500px;  /* set explicit height */
  background-image: url('/files/hero-bg1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -20;
}
.blog-index {
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #9bbad8;
  padding: 3rem;
  background-color: #ffffff;
}
.blog-index h1 {
  margin-bottom: 0;
  color: #2061B7;
  font-size: 3.5rem;
  padding-top: 2rem;
  padding-left: 4rem;
  line-height: 1.3;
}
.blog-index p {
  font-size: 16px;
  line-height: 1.5;
}
.blog-box {
  padding: 2rem;
  background-color: var(--dark-blue);
  color: var(--text-on-dark);
}
.blog-box h2 {
  font-size: 24px;
  line-height: 1.4;
}
.blog-box p {
  font-size: 16px;
  line-height: 1.6;
}
.blog-box a {
  color: #62CFF1;
  text-decoration: none;
}
.blog-box .gridleft {
  padding: 3rem 1rem;
  display: grid;
  border-bottom: 1px solid var(--text-on-dark);
  grid-template-columns: 3fr 2fr;
  place-content: center;
  align-items: center;
  justify-items: center;
  gap: 3rem;
}
.blog-box .gridright {
  padding: 3rem 1rem;
  display: grid;
  border-bottom: 1px solid var(--text-on-dark);
  grid-template-columns: 2fr 3fr;
  align-items: center;
  justify-items: center;
  place-content: center;
  gap: 3rem;
}
..blog-box time {
  font-size: 10px;
}
.card-image {
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  max-width: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.header-grid {
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  column-gap: 2.2rem;
  font-family: "Helvetica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.header-grid a {
  text-decoration: none;
  line-height: 49px;
  padding: 0 10px;
  color: #1A2A4A;
}
.header-grid a:hover {
  color: #2061B7;
}
/* Base (desktop / large tablet) – your existing styles are fine */

footer {
  background-color: #1A2A4A;
  color:#BFC3CB;
  height:33px;
  padding-top:14px;
  font-family: "Helvetica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.bg-color {
  background-color: var(--dark-blue);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  margin: 36px;
  max-width: 630px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.author-box img {
  border-radius: 50%;
}
.author-box h3 {
  margin: 0 0 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Medium screens: tighten spacing a bit */
@media (max-width: 900px) {
  .header-grid {
    column-gap: 1.2rem;
    font-size: 16px;
  }

  .header-grid a {
    line-height: 40px;
    padding: 0 6px;
  }
}

/* Small screens: stack logo + nav, make nav wrap */
@media (max-width: 600px) {
  header {
    grid-template-columns: 1fr;     /* logo on its own row */
    row-gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  header img {
    justify-self: center;           /* center logo on mobile */
    max-width: 160px;
    height: auto;
  }

  .header-grid {
    justify-self: stretch;
    justify-content: center;
    grid-auto-flow: row;            /* stack links vertically */
    row-gap: 0.25rem;
    text-align: center;
    font-size: 16px;
  }

  .header-grid a {
    display: block;
    line-height: 1.4;
    padding: 0.35rem 0.5rem;
  }
}
