body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f8f9fa;
  color: #181b1e;
}
/* HEADER */
.site-header {
  width: 100%;
  background: #0a2740;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px #0002;
}
.header-bar {
  display: flex;
  align-items: center;         /* This centers ALL direct children vertically */
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 76px;
  gap: 28px;
}
.main-nav {
  min-height: 76px;  /* Same as header bar height */
  display: flex;
  align-items: center;         /* This centers the nav links */
  justify-content: center;
  flex: 1 1 auto;
  gap: 38px;
  min-width: 0;
}
.header-logo {
  display: flex;
  align-items: right;
  justify-content: right;
  min-width: 200px; /* or adjust for your logo */
  flex: 0 0 200px;
}
.header-logo img {
  height: 70px;
  max-width: 500px;
  display: block;
  /* Remove extra vertical space, e.g. margin or padding: */
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.13em;
  line-height: 76px;       /* Match this to your header-bar min-height */
  padding: 0 8px;
  transition: color 0.15s;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.main-nav a:hover {
  color: #7ed6fa;
}
.header-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 190px;
  flex: 0 0 210px;
  /* Remove extra margin/padding: */
  margin: 0;
  padding: 0;
}
.header-search input {
  width: 140px;
  padding: 7px 13px;
  border: 1px solid #ccc;
  border-radius: 22px 0 0 22px;
  font-size: 1em;
  background: #f7f7fa;
  outline: none;
}
.header-search button {
  border: 1px solid #ccc;
  border-left: 0;
  background: #f7f7fa;
  border-radius: 0 22px 22px 0;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 1em;
}
/* NAVIGATION BAR */
.main-nav {
  width: 100%;
  background: #0a2740;
  border-bottom: 1px solid #073763;
  position: sticky;
  top: 80px;
  z-index: 99;
}
.nav-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 12px 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.12em;
  padding: 6px 0;
  transition: color 0.15s;
  position: relative;
}
.main-nav a:hover {
  color: #7ed6fa;
}

/* HERO: Edge-to-edge image, overlay left */
.hero-section {
  display: flex;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  background: #222;
}
.hero-bg {
  width: 100vw;
  height: 440px;
  background-image: url('https://www.ntu.edu.sg/images/innovationlibraries/innovates/category-listing/artificial-and-augmented-intellligence.jpg?sfvrsn=55bac95d_20');
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-overlay-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 440px;
  min-width: 340px;
  max-width: 600px;
  padding-left: 7vw;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 75%, rgba(255,255,255,0.05) 100%);
}
.hero-label {
  color: #0a2740;
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 1.15em;
  letter-spacing: 0.6px;
}
.hero-overlay-text h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin: 0 0 19px 0;
}
.hero-overlay-text p {
  font-size: 1.15em;
  color: #333;
  margin-bottom: 20px;
}
.hero-text-panel {
  flex: 1;
  background: #ffffff;               /* <-- White background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 48px 54px 48px;
  min-width: 320px;
  max-width: 480px;
  box-sizing: border-box;
  border-left: 1px solid #e5e5e5;
  /* Optional: subtle left shadow for "card" effect */
  box-shadow: -8px 0 32px -12px rgba(30,40,90,0.08);
}
.hero-img-wrap {
  flex: 2;
  min-width: 0;
  position: relative;
  overflow: hidden;
  height: 500px; /* Adjust as needed */
  width: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* This makes it fill and crop nicely */
  object-position: center; /* Center the crop */
  display: block;
}
/* FOOTER */
.site-footer {
  background: #171f2c;
  color: #e7e8ec;
  padding: 34px 8vw 24px 8vw;
  text-align: center;
  font-size: 1em;
}
.footer-links {
  margin-bottom: 10px;
}
.footer-links a {
  color: #6eb6f9;
  text-decoration: underline;
  margin: 0 14px;
  font-size: 1.03em;
  transition: color 0.16s;
}
.footer-links a:hover { color: #fff; 
}
.footer-disclaimer {
  margin-bottom: 12px;
  color: #a2acc7;
  font-size: 0.96em;
}
.footer-copyright {
  color: #7d8dad;
  font-size: 0.96em;
}
.feature-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 64px 5vw;
  background: #fff;
  max-width: 1400px;
  margin: 0 auto 32px auto;
}
.feature-row-a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 64px 5vw;
  background: #fff;
  max-width: 1400px;
  margin: 0 auto 32px auto;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1 1 380px;
  max-width: 500px;
  color: #23294a;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-text-a {
  flex: 1 1 380px;
  max-width: 1000px;
  color: #23294a;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-text h2 {
  font-size: 2em;
  margin: 0 0 24px 0;
  font-weight: 800;
}
.feature-text p {
  font-size: 1.13em;
  margin-bottom: 24px;
  line-height: 1.55;
}
/* Make button and text next to each other */
.feature-btn {
  display: inline-block;
  background: #18354a;
  color: #fff;
  border-radius: 8px;
  padding: 13px 36px;
  font-size: 1.1em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s;
  vertical-align: middle;
  margin-right: 16px;
}
.feature-btn:hover {
  background: #1278d6;
}
/* If you want text inline with the button, add a span after the button in your HTML */
.feature-btn + span {
  display: inline-block;
  vertical-align: middle;
  font-size: 1em;
  color: #23294a;
  margin-left: 10px;
}
.feature-img {
  flex: 1 1 420px;
  max-width: 420px;
  min-width: 260px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Keeps all images the same size and crops as needed */
  border-radius: 12px;
  box-shadow: 0 6px 40px #2221;
}
/* Responsive: stack columns on mobile */
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column !important;
    text-align: center;
    gap: 32px;
    padding: 40px 3vw;
  }
  .feature-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 220px;
    margin-bottom: 0;
  }
  .feature-img img {
    border-radius: 12px;
  }
  .feature-text, .feature-img {
    max-width: 100%;
  }
}
