:root {
  --primary-color: #212586;
  --accent-color: #fb0e76;
  --text-color: #333;
  --bg-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/*
header {
  background: white;
  padding: 1px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
*/

header {
  height: 120px;              /* fixed height if you want a defined space */
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}



header nav a {
  color: rgb(33, 37, 134);
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
}

header nav a:hover {
  text-decoration: underline;
}


nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
}

.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section p {
  max-width: 800px;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fafafa;
}

footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 2rem;
}


/*
.logo-img {
  height: 200px;
  max-height: 20vh; 
  width: auto;
  margin-top: 45px; 
  display: block;
  }
*/

.logo-img {
  /*max-height: 80%;*/        /* use all available header height */
  height: 120px;            /* maintain aspect ratio */
  width: auto;
  display: block;
  margin-top: 10px;
  object-fit: contain;     /* ensures the logo scales nicely */
  padding: 10px;
  border: none;
}


/*
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 1rem;
  }
}
*/

@media (max-width: 768px) {
  .logo-img {
    max-height: 80px;
    height: auto;
    width: auto;
    margin-top: 0;         /* remove extra gap */
    object-fit: contain;
    padding: 0;            /* tighten logo padding */
    border: none;
    left:20px;
  }

  header {
  flex-direction: column;
  align-items: center;
  height: 160px;         /* allow content to define height */
  padding: 5px 10px;
    }


  nav {
    margin-top: 1px;
  }
}