body {
    margin: 0;
    background-color: #7399ae;
    font-family: "fractul-variable", sans-serif;
    font-variation-settings: 'wght' 450;
}

.navbar {
  background-color: #506a7b;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, links right */
  padding: 0 20px; /* desktop horizontal padding */
}

.logo img {
  height: 100px; /* desktop logo size */
  margin-left: 20%; /* optional offset */
  padding-top: 20px; /* add top spacing */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* space between links */
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f2f6f7;
  text-decoration: none;
  padding: 50px; /* desktop padding */
  display: block;
  text-align: center;
  font-family: "fractul-variable", sans-serif;
  font-variation-settings: 'wght' 700;
  font-size: larger;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .logo img {
    height: 70px; /* shrink logo */
    padding-top: 10px; /* less top padding */
  }

  .nav-links a {
    padding: 20px 10px; /* smaller clickable area for mobile */
    font-size: medium; /* smaller text */
  }

  .nav-links {
    gap: 10px; /* smaller gap between links */
    flex-wrap: wrap; /* allow wrapping if needed */
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 50px;
    padding-top: 5px;
  }

  .nav-links a {
    padding: 10px 5px;
    font-size: 14px;
  }

  .nav-links {
    gap: 5px;
  }
}

/* Layout wrapper */
.layout {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    gap: 20px;   /* space between sidebar and main content */
}

.sidebar {
    width: 200px;
    margin: 0;
    padding: 0;   /* flush */
}

.sidebar-box {
    background-color: #506a7b;
    color: #f2f6f7;
    padding: 12px;       /* text inside box padded */
}

.sidebar-box img {
    display: block;   /* stack images */
    height: 42px;
    margin: 0;        /* remove gaps */
    padding: 0;
}


.main {
    flex: 1; /* takes the rest of the width */
}

.home-content {
    background-color: #a8b5bd;
    margin-top: 20px;
    margin-right: 20px;
    padding: 20px;
}


h1, h2 {
    text-align: center;
}

h3 {
    text-align: center;
    font-variation-settings: 'wght' 600;
}

.john-container {
  display: flex;
  justify-content: center;
}

.flex-john {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 25%;   /* scales down with container */
  height: 25%;      /* keeps aspect ratio */
}