:root {
  --primary-color: #4682B4;
  --background-color: #fafafa;
  --text-color: #333333;
  --accent-color: #ADD8E6;
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Lato", sans-serif;
}
body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  line-height: 1.7;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
header {
  background: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}
.logo img {
  height: 40px;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
}
nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
}
.hero {
  background-image: url("background2.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cta-button {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s;
}
.cta-button:hover {
  background-color: #9ac7d8;
}
h2 {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-top: 0;
  margin-bottom: 3rem;
}
.research-philosophy {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}
.research-philosophy p {
  font-size: 1.1rem;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 3rem;
    padding: 4rem 0;
}
.about-intro {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.about-text {
    text-align: left;
}
.about-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 50%;
}
.about-image .team-name {
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.about-intro h2 {
  margin-bottom: 1.5rem;
}

.about-image .team-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}
.cv-download {
    margin-top: 1.5rem;
}
.cv-download a {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.cv-download a:hover {
    background-color: #36729e;
}

.core-pillars {
  padding: 4rem 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.pillar {
  background: #fff;
  padding: 2.5rem;
  border-left: 4px solid var(--primary-color);
}
.pillar h3 {
  font-family: var(--heading-font);
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}
footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}
footer a {
  color: #fff;
  text-decoration: underline;
}

.join-us {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.join-us h2 {
    color: #fff;
}

.join-us p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

@media (max-width: 768px) {
  .pillars-grid, .main-content-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.gallery-item img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 1rem;
}
.news-item {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 2rem;
  overflow: hidden;
}
.news-item img {
  width: 100%;
  max-width: 400px;
  float: left;
  margin-right: 1.5rem;
  border-radius: 5px;
}
.publication-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.publication-item {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.publication-item .publication-image {
  margin-bottom: 1rem;
}
.publication-item .publication-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}
.publication-item .publication-content {
  flex-grow: 1;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-member {
  text-align: center;
}
.team-member img {
  width: 100%;
  border-radius: 50%;
}
.team-member h4 {
  margin-top: 1rem;
}
.info-box {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 1rem;
}
.map {
  margin-top: 2rem;
}
/* --- MOBILE NAVIGATION SCROLLING --- */
@media (max-width: 991px) {
  nav ul {
    /* Enable horizontal scrolling */
    overflow-x: auto;
    /* Prevent nav items from wrapping to a new line */
    white-space: nowrap;

    /* Hide scrollbar for a cleaner look across browsers */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;   /* IE 10+ */
  }
  
  nav ul::-webkit-scrollbar { /* Chrome, Safari, and Opera */
    display: none;
  }
}