
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Merriweather&display=swap');

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: white;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: black;
  width: 100%;
}

/* Hero Sections */
.hero, .hero2, .hero3, .hero4, .hero5 {
  position: relative;
  height: 100vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 0;
  margin-top: -20px;
  z-index: 0;
  overflow: hidden;
}

.hero { background: url('blog.jpg') no-repeat center center/cover; }
.hero2 { background: url('about.jpg') no-repeat center center/cover; }
.hero3 { background: url('research.jpg') no-repeat center center/cover; }
.hero4 { background: url('blog2.jpg') no-repeat center center/cover; }
.hero5 { background: url('notes.jpg') no-repeat center center/cover; }

.hero .overlay, .hero2 .overlay, .hero3 .overlay, .hero4 .overlay, .hero5 .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
}

.hero::after, .hero2::after, .hero3::after, .hero4::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(40, 40, 40, 0.3);
  backdrop-filter: blur(10px) saturate(150%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  z-index: 1000;
  border-radius: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topbar-title {
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
  font-family: 'Inter', sans-serif;
}

.topbar-title:hover {
  color: #ccc;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  margin: 0 1rem;
}

.nav a:hover {
  color: #ccc;
}

/* Main Layout */
main {
  width: 100%;
  max-width: 960px;
  padding: 2rem 1rem;
  margin: 0 auto;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links a:hover {
  color: #ccc;
}

.footer-links i {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.blog-grid, .research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  row-gap: -1rem; /* or 0.5rem for tighter spacing */
  column-gap: 2rem; /* keep horizontal spacing wider if desired */
  padding: 1rem;
}


.blog-card,
.research-card {
  background: #f7f7f7;
  padding: 2rem 2.5rem;  /* increased horizontal padding */
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
  overflow: hidden;
  margin: 2rem auto;  /* center the card itself horizontally with vertical spacing */
}

.blog-card.expanded,
.research-card.expanded {
  position: fixed;
  top: 5%;
  left: 7.5%;
  right: 7.5%;
  width: 85%;
  height: 90%;
  overflow-y: auto;
  backgroundcolor: white; /* optional: adjust text color for contrast */
  z-index: 1001;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.blog-snippet, .research-snippet {
  font-size: 1rem;
  color: #444;
}

.blog-full-content, .research-full-content {
  display: none;
}

.blog-card.expanded .blog-snippet,
.research-card.expanded .research-snippet {
  display: none;
}

.blog-card.expanded .blog-full-content,
.research-card.expanded .research-full-content {
  display: block;
  margin-top: 2rem;
}

#blog-overlay, #research-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

/* Typography for Cards */
.blog-title, .research-title {
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Pub Card Style */
.pub-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-left: 5px solid #ccc;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

.pub-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pub-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.pub-card ol {
  padding-left: 1.2rem;
}

.pub-card li {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .topbar-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
    color: white;
    margin: 0.5rem 0;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
  }

  .hero, .hero2, .hero3, .hero4, .hero5 {
    height: 60vh;
    background-attachment: scroll;
  }

  main {
    padding: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-card.expanded, .research-card.expanded {
    top: 5%;
    left: 5%;
    right: 5%;
    width: 80%;
    height: 80%;
  }

  .pub-card {
    padding: 1rem;
  }

  .blog-title, .research-title {
    font-size: 1.3rem;
  }
}
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -40px; /* pulls hero under fixed topbar */
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('blog.jpg') no-repeat center center/cover;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.1s ease-out;
  z-index: 0;
}

.hero .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero2 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -40px;
}

.hero2-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('about.jpg') no-repeat center center/cover;
  background-size: cover;
  transition: transform 0.1s ease-out;
  z-index: 0;
}

.hero2 .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 3rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
}
.hero3 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -40px;
}

.hero3-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('research.jpg') no-repeat center center/cover;
  background-size: cover;
  transition: transform 0.1s ease-out;
  z-index: 0;
}

.hero3 .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 3rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
}
.hero4 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -40px; /* pulls hero under fixed topbar */
}

.hero4-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('blog2.jpg') no-repeat center center/cover;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.1s ease-out;
  z-index: 0;
}

.hero4 .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
}
.hero5 {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: -40px; /* pulls hero under fixed topbar */
}

.hero5-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('notes.jpg') no-repeat center center/cover;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.1s ease-out;
  z-index: 0;
}

.hero5 .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
}
p {
  line-height: 1.7;
  margin-bottom: 1.2rem;
}