@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

  font-family: Arial, Helvetica, sans-serif;
  background-color: #F7F5F0;
}

/* Header styles */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #f7f5f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid #ccc;
  transition: top 0.3s ease-in-out;
  z-index: 999;
}

/* Left part (site title/logo) */
.left-part h2 {
  font-size: 18px;
  color: #496E83;
}

/* Right part (nav menu) */
.right-part nav ul {
  font-family: Arial, Helvetica, sans-serif;
  list-style: none;
  display: flex;
  gap: 40px;
  /* right: 50%; */
}

.right-part nav ul li a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #496E83;
  font-size: 16px;
  transition: color 0.2s;
  /* margin-left: 100px; */
  align-self  : center;
  /* right: 50%; */
}

.right-part nav ul li a:hover {
  font-family: Arial, Helvetica, sans-serif;
  color: #496E83;
}

.main {
  background-color: #F7F5F0;
  color: #F7F5F0;
}

/* Background container */
.video-background {
  position: relative;
  top: 40px; /* below the fixed header */
  width: 100%;
  height: 457px;
  overflow: hidden;
  z-index: -1;
}

.bg-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Foreground text aligned left */
.foreground-text {
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  left: 50px;
  top: calc(40px + 457px / 2); /* vertically center within gif height */
  transform: translateY(-50%);
  text-align: left;
}

.foreground-text .cospi {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 120px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.foreground-text .lab-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  color: rgb(64, 95, 114);
  margin-top: 10px;
}

/* What we do section */
/* .what-we-do {
  font-family: Arial, Helvetica, sans-serif;
  margin: 80px 20%; 
  text-align: justify;
} */

.what-we-do {
  /* font-family: 'Cormorant Garamond', serif;   */
  font-family: Arial, Helvetica, sans-serif;
  margin: 80px 20%;
  text-align: justify;
  background-color: #F7F5F0;
  padding: 40px 20px;
  border-radius: 8px;
}
.what-we-do h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: justify;
  color: #496E83;
}

.what-we-do p {
  font-size: 20px;
  line-height: 1.6;
  text-align: justify;
  color: #496E83;
}
/*

.research-section {
  width: 100%;
  background-color: #E1EBF5;
  padding: 60px;
}

.inner-box {
  background-color: #F7F5F0;
  padding: 60px;
  display: flex;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  height: auto;
}

.left-research {
  flex: 2;
  color: #496E83;
} 

.left-research h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.left-research p {
  font-size: 18px;
  line-height: 1.6;
}

.right-research {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.right-research img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
*/

.grants-section {
  width: 100%;
  background-color: #F7F5F0;
  padding: 80px 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #496E83;
}

.grants-container {
  display: flex;
  width: 100%;
}

.grants-left {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
}

.grants-left h2 {
  font-size: 56px;
  margin: 0;
  line-height: 1.2;
}

.grants-middle {
  width: 50%;
  padding: 0 20px;
}

.grants-right {
  width: 25%;
  /* blank with background-color from .grants-section */
}

/* Grant formatting */
.grant {
  margin-bottom: 40px;
}

.grant .year {
  font-weight: bold;
  margin-bottom: 5px;
}

.grant .role {
  font-style: italic;
  margin-bottom: 5px;
}

.grant .title {
  margin-bottom: 5px;
}

.grant .amount {
  font-weight: bold;
}

.industry-collaborations-section {
  width: 100%;
  background-color: #F7F5F0;
  padding: 80px 0;
  font-family: sans-serif;
  color: #496E83;
}

.industry-collaborations-container {
  display: flex;
  width: 100%;
}

.industry-collaborations-left {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 30px;
}

.industry-collaborations-left h2 {
  font-size: 32px;
  margin: 0;
  line-height: 1.2;
}

.industry-collaborations-middle {
  width: 50%;
  padding: 0 20px;
}

.industry-collaborations-right {
  width: 25%;
  /* blank with background-color from .grants-section */
}

/* Grant formatting */
.industry-collaboration {
  margin-bottom: 40px;
}

.industry-collaboration .year {
  font-weight: bold;
  margin-bottom: 5px;
}

.industry-collaboration .company-name {
  margin-bottom: 5px;
}

.footer-section {
  background-color: rgb(225, 235, 245);
  padding: 40px 0;
  color: #496E83;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-line {
  width: 80%;
  margin: 0 auto 40px auto;
  border: 0;
  height: 1px;
  background-color: #496E83;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 40px; /* equal left-right padding */
}

.footer-left, .footer-right {
  flex: 1;
}

.footer-left {
  width: 30%;
  padding-left: 160px; /* Existing left padding for COSPI */
}

.footer-title {
  font-size: 30px;
  font-weight: bold;
  margin: 0;
}

.footer-right {
  width: 70%;
  padding-right: 160px; /* Matches COSPI's left padding */
  font-size: 16px;
  line-height: 1.6;
  text-align: right; /* Optional: right-align address text */
}
